joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b8fc
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x523b14
call fcn.004f8194
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.__Postback_using_Shell...
call fcn.00401769
mov byte [ebp - 4], 1
push 2
mov byte [ebp - 4], bl
call fcn.0041474e
push ecx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
mov dword [eax], vtable.CFlags_enum_WebArgFlag_.0
mov dword [eax + 4], 1
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0xc]
call fcn.0042cf72
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 8]
call fcn.004044be
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00401898
push str.ShellExecuteEx:
lea ecx, [ebp + 0xc]
call fcn.00401769
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
lea edx, [ebp + 8]
push edx
push eax
push ecx
call fcn.0040414a
add esp, 0xc
mov byte [ebp - 4], 6
push 4
mov byte [ebp - 4], 5
call fcn.0041474e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401898
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004f3c10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x440
mov dword [ebp - 0x48], 0x5439b0
mov dword [ebp - 0x38], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x43ba5f
push 1
push 0x18f
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CWebManager::PostbackShell
call fcn.00401769
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.ShellExecuteEx_failed_
call fcn.00401769
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.postshell
call fcn.00401769
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov byte [ebp - 4], bl
call dword [eax + 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401898
mov eax, ebx
call fcn.004f826c
ret 0xc
cmp dword [ebp - 0x1c], ebx
je 0x43ba7b
push 0xbb8
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x43ba49
Function at 0x4443e0
Capabilities:
Read file on windows

Disassembly:
push 8
mov eax, 0x511873
call fcn.004f8194
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x444409
push ebx
push ebx
push 2
xor ecx, ecx
pop eax
call fcn.0044590f
xor al, al
jmp 0x444573
call fcn.00443d8f
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 0xc]
call fcn.004f5e5b
push dword [ebp + 0xc]
call fcn.004f6b1d
push ebx
push ebx
push dword [ebp + 0xc]
mov esi, eax
call fcn.004f5e5b
add esp, 0x1c
cmp esi, ebx
jg 0x444442
push ebx
push ebx
push 0xd
jmp 0x4443fa
mov ebx, 0x59b054
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00444fc5
lea eax, [esi + 1]
push eax
call fcn.004d0c4c
push dword [ebp + 0xc]
mov edi, eax
push 1
push esi
push edi
mov dword [ebp - 0x14], edi
mov byte [edi], 0
call fcn.004f6869
add esp, 0x14
cmp eax, 1
je 0x4444b1
push edi
call fcn.004d0c7b
mov edi, dword [ebp + 8]
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.0044590f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x444402
push dword [ebp - 0x10]
call fcn.004d0c7b
pop ecx
jmp 0x444402
mov ebx, edi
mov eax, ebx
mov byte [eax + esi], 0
cmp byte [eax], 0
je 0x444516
mov al, byte [ebx]
cmp al, 0xa
jne 0x4444d6
mov eax, ebx
sub eax, edi
inc eax
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.004450c5
inc ebx
jmp 0x44450c
cmp al, 0xd
jne 0x444510
mov eax, ebx
sub eax, edi
test eax, eax
jle 0x4444ec
push eax
push edi
lea edi, [ebp - 0x10]
call fcn.004450c5
push 1
lea eax, [ebp + 0xc]
push eax
lea edi, [ebp - 0x10]
mov byte [ebp + 0xc], 0xa
call fcn.004450c5
lea eax, [ebx + 1]
cmp byte [eax], 0xa
jne 0x44450a
inc ebx
inc ebx
jmp 0x44450c
mov ebx, eax
mov edi, ebx
jmp 0x444511
inc ebx
cmp byte [ebx], 0
jne 0x4444be
sub ebx, edi
je 0x444524
push ebx
push edi
lea edi, [ebp - 0x10]
call fcn.004450c5
push dword [ebp - 0x14]
call fcn.004d0c7b
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
pop ecx
push 0
push 0
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call dword [eax + 8]
cmp byte [esi + 0x2c], 0
je 0x44455e
or dword [ebp - 4], 0xffffffff
cmp edi, 0x59b054
je 0x444402
push edi
jmp 0x4444a6
or dword [ebp - 4], 0xffffffff
cmp edi, 0x59b054
je 0x444571
push edi
call fcn.004d0c7b
pop ecx
mov al, 1
call fcn.004f826c
ret 8
Function at 0x4472cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xa4
mov eax, 0x51675f
call fcn.004f81c7
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x78], eax
cmp eax, ebx
jne 0x447307
mov dword [ebp - 0x1c], edi
push 0x569b50
lea eax, [ebp - 0x1c]
push eax
call fcn.004f829e
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x44731b
mov ecx, dword [esi + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov dword [esi + 0x3c], eax
call fcn.00446e5a
mov eax, dword [esi + 0x18]
call fcn.0044adc2
mov eax, dword [esi + 0x2c]
dec eax
mov dword [esi + 0x30], eax
push ebx
push 0xe
mov ecx, esi
call fcn.00447614
cmp dword [esi + 0x24], edi
jne 0x447370
lea edi, [esi + 0x20]
cmp dword [edi], ebx
jne 0x44734c
call fcn.00446a9b
jmp 0x44734e
mov eax, dword [edi]
lea ebx, [esi + 0x40]
call fcn.00446696
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 1
jae 0x44736a
call fcn.00446ab5
inc dword [ebp - 0x14]
jmp 0x44735a
and dword [esi + 0x1c], 0
jmp 0x44739e
lea eax, [ebp - 0x50]
push eax
xor edx, edx
call fcn.00446611
mov byte [ebp - 4], 2
lea ebx, [esi + 0x40]
lea eax, [ebp - 0x50]
call fcn.00446696
mov dword [esi + 0x1c], 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
call fcn.004196a5
and dword [ebp - 4], 0
jmp 0x447464
add esi, 0x40
push esi
push dword [ebp + 0xc]
call fcn.00446659
and dword [ebp - 4], 0
or dword [ebp - 0x18], 1
mov eax, dword [ebp + 0xc]
call fcn.004f826c
ret 8
Function at 0x44ccea
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push esi
call fcn.00429f01
test eax, eax
mov eax, dword [esi]
mov ecx, esi
je 0x44cd06
call dword [eax + 0xac]
xor eax, eax
inc eax
pop esi
ret
call dword [eax + 0x38]
mov ecx, esi
pop esi
jmp method.CIQDownloader.virtual_52
push 0xc
mov eax, 0x520dc2
call fcn.004f8194
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x24], edi
je 0x485ecc
push 1
push 0x20
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CCoreThread::StartThread
call fcn.00401769
mov dword [ebp - 4], edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Thread_is_not_NULL_
call fcn.00401769
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.nullthread
call fcn.00401769
mov byte [ebp - 4], 2
mov eax, dword [esi]
push 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x14]
xor eax, eax
jmp 0x485f92
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Starting_thread...
call fcn.00401769
mov dword [ebp - 4], 3
push 4
pop ebx
push ebx
or dword [ebp - 4], 0xffffffff
call fcn.0041474e
push edi
push ebx
push edi
push edi
push esi
push 0x48600f
mov dword [esi + 0x28], edi
call fcn.004db2de
mov dword [esi + 0x24], eax
cmp eax, edi
jne 0x485f5f
push 1
push 0x2d
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.CCoreThread::StartThread
call fcn.00401769
mov dword [ebp - 4], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.AfxStartThread_failed_
call fcn.00401769
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.beginthreadfailed
call fcn.00401769
mov byte [ebp - 4], 6
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [edi + 0x14]
jmp 0x485ec5
mov dword [eax + 0x28], edi
mov esi, dword [esi + 0x24]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Thread_started.
call fcn.00401769
mov dword [ebp - 4], 7
push ebx
or dword [ebp - 4], 0xffffffff
call fcn.0041474e
xor eax, eax
inc eax
call fcn.004f826c
ret
Function at 0x4546d5
Capabilities:
Inspect section memory permissions

Disassembly:
push 0x5c
mov eax, 0x518e13
call fcn.004f8194
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
xor edi, edi
mov ebx, str.DxPresent
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], str.DxVersionSatisfy
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x58], str.DxUseHardware
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x50], str.DxMaxTextureHeight
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x48], str.DxMaxTextureWidth
mov dword [ebp - 0x44], 0x10
mov dword [ebp - 0x40], str.DxMaxNumBlendingStages
mov dword [ebp - 0x3c], 0x20
mov dword [ebp - 0x38], str.Stencil16
mov dword [ebp - 0x34], 0x20000000
mov dword [ebp - 0x30], str.Stencil32
mov dword [ebp - 0x2c], 0x40000000
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
call fcn.00452e60
mov dword [ebp - 4], edi
lea eax, [ebp - 0x18]
push eax
mov esi, 0x540c4c
push esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407f05
mov byte [ebp - 4], 1
jmp 0x454848
and dword [ebp - 0x10], 0
mov eax, ebx
push eax
lea ecx, [ebp + 0xc]
call fcn.004040fb
test eax, eax
je 0x454817
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*8 - 0x68]
test eax, eax
jne 0x454791
push 1
push 0x21f
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.CIQXmlRequirements::ParseExecuteResult
call fcn.00401769
mov byte [ebp - 4], 2
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp + 0xc]
push ecx
push str.Invalid_flag_in_ExecuteResult:
push eax
call fcn.00404205
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add eax, 0x10
push 1
mov byte [ebp - 4], 1
call dword [eax]
xor edi, edi
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401898
mov eax, edi
call fcn.004f826c
ret 8
mov eax, dword [ebp - 0x10]
or edi, dword [ebp + eax*8 - 0x64]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407f05
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 0xc]
call fcn.004044be
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401898
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x45478b
jmp 0x4547f5
Function at 0x454a9f
Capabilities:
Persist via run registry key

Disassembly:
push 0x3c
mov eax, 0x52b924
call fcn.004f8194
push 1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.00401769
and dword [ebp - 4], 0
push SysReAllocStringLen
lea eax, [ebp - 0x48]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.00420ee9
mov dword [ebp - 4], 1
lea esi, [ebp - 0x14]
call fcn.00413952
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x10]
push 0x53b72c
push eax
call fcn.00404205
mov byte [ebp - 4], 3
add esp, 8
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x551e80
push eax
push ecx
call fcn.004041a1
mov byte [ebp - 4], 4
add esp, 8
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.InstallIQ
call fcn.00401769
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00422285
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.00401898
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00401898
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00420fe2
call fcn.004f826c
ret

Function at 0x454b5e
Capabilities:
Persist via run registry key

Disassembly:
push 0x30
mov eax, 0x52b8d9
call fcn.004f8194
push 1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
call fcn.00401769
and dword [ebp - 4], 0
push SysReAllocStringLen
lea eax, [ebp - 0x3c]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.00420ee9
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.InstallIQ
call fcn.00401769
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.0042233d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00420fe2
call fcn.004f826c
ret
Function at 0x459cac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52ed67
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5937d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.00487bb0
mov dword [esp + 0x80], ebx
mov dword [esp + 0x18], ebx
push dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
lea esi, [esp + 0x3c]
call fcn.00487d4c
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
je 0x459de3
push ecx
lea eax, [edi + 0x54]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.0040184e
mov byte [esp + 0x84], 2
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0040184e
mov byte [esp + 0x88], 3
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x8c], 1
mov ecx, esi
call fcn.00489c65
mov byte [esp + 0x80], 4
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00414e3f
mov byte [esp + 0x80], 6
lea ecx, [esp + 0x20]
call fcn.00401898
mov eax, dword [edi + 0x58]
push ebx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004151c1
test eax, eax
jge 0x459dca
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x2c]
call fcn.00414f13
mov byte [esp + 0x80], bl
lea ecx, [esp + 0x14]
call fcn.00401898
inc dword [esp + 0x18]
cmp dword [esp + 0x18], 0x14
jl 0x459cf5
jmp 0x459df3
mov dword [esp + 0x1c], 1
mov byte [esp + 0x80], 1
lea ecx, [esp + 0x2c]
call fcn.00414f13
mov byte [esp + 0x80], bl
lea ecx, [esp + 0x14]
call fcn.00401898
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00487c21
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dc9b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5937d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
inc dword [0x59b0b0]
cmp dword [0x59b0b0], 1
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
jne 0x45dce4
push 0
call fcn.004f7742
xor eax, 0xbb40e64e
push eax
call fcn.004f770e
pop ecx
pop ecx
push edi
mov ecx, ebx
mov eax, esi
call fcn.0045dc63
add esp, 4
xor esi, esi
call fcn.004f7720
mov ebx, eax
mov eax, dword [ebp - 0x14]
sar ebx, 7
and ebx, 0xff
call fcn.0045dc46
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 0x18], eax
call fcn.0045e8e5
xor bl, byte [ebp - 0x18]
add esp, 4
mov byte [ebp + esi - 0x10], bl
inc esi
cmp esi, 0xa
jl 0x45dcf3
mov eax, dword [ebp - 0x20]
push edi
call fcn.0045dc63
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
add esp, 4
xor esi, esi
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
call fcn.0045dc46
mov bl, byte [ebp + esi - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
movzx eax, bl
push eax
call fcn.0045e8e5
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x20]
add eax, esi
add esp, 4
inc esi
cmp esi, 0xa
mov byte [ebp + eax - 0x10], bl
jl 0x45dd40
mov eax, ecx
call fcn.0045dc46
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
shr ebx, 0x10
mov eax, ebx
and eax, 0xff
push eax
call fcn.0045e8e5
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
mov eax, ecx
inc esi
call fcn.0045dc46
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
shr ebx, 0x18
push ebx
mov dword [ebp - 0x18], eax
call fcn.0045e8e5
xor bl, byte [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
add esp, 8
mov byte [eax + esi], bl
pop edi
lea eax, [esi + 1]
pop esi
xor ecx, ebp
pop ebx
call fcn.004f2b62
leave
ret
Function at 0x45e3f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x4090], eax
je 0x45e454
cmp dword [esi + 0x6c], eax
jbe 0x45e454
push ebx
mov dword [ebp - 4], 0xffffff78
sub dword [ebp - 4], esi
push edi
lea ebx, [esi + 0x88]
lea edx, [esi + 0x4094]
mov eax, edx
call fcn.0045dc46
mov edi, dword [esi + 0x40a0]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
push eax
mov ecx, edx
call fcn.0045e8e5
mov al, byte [ebp - 0xc]
xor byte [ebx], al
mov eax, dword [ebp - 4]
add esp, 4
inc ebx
add eax, ebx
cmp eax, dword [esi + 0x6c]
jb 0x45e41e
pop edi
pop ebx
push dword [esi + 0x6c]
lea eax, [esi + 0x88]
push eax
push dword [esi + 0x20]
push dword [esi + 0x1c]
call dword [esi + 8]
add esp, 0x10
cmp eax, dword [esi + 0x6c]
je 0x45e473
or dword [ebp - 8], 0xffffffff
and dword [esi + 0x6c], 0
mov eax, dword [ebp - 8]
leave
ret
Function at 0x45e556
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push edi
xor edi, edi
mov dword [esp + 4], edi
mov dword [esp + 8], edi
cmp ebx, edi
jne 0x45e570
push 0xffffffffffffff9a
pop eax
jmp 0x45e721
cmp dword [ebx + 0x2c], edi
je 0x45e568
cmp dword [ebx + 0x80], 8
push ebp
push esi
mov dword [ebx + 0x34], edi
jne 0x45e5cc
cmp dword [ebx + 0x84], edi
jne 0x45e5cc
lea ebp, [ebx + 0x30]
cmp dword [ebx + 0x40], 0
jne 0x45e5ab
mov esi, ebx
call fcn.0045e3f4
lea eax, [ebx + 0x88]
mov dword [ebx + 0x40], 0x4000
mov dword [ebx + 0x3c], eax
mov esi, dword [ebx + 0x44]
push 4
mov edi, ebp
call fcn.0045fe83
mov edi, eax
mov eax, dword [ebx + 0x44]
sub eax, esi
add dword [ebx + 0x6c], eax
test edi, edi
je 0x45e58e
cmp edi, 1
jne 0x45e5cc
xor edi, edi
cmp dword [ebx + 0x6c], 0
jbe 0x45e5e4
test edi, edi
jne 0x45e5e4
mov esi, ebx
call fcn.0045e3f4
cmp eax, 0xffffffff
jne 0x45e5e4
or edi, eax
cmp dword [ebx + 0x80], 8
jne 0x45e604
cmp dword [ebx + 0x84], 0
jne 0x45e61e
lea esi, [ebx + 0x30]
call fcn.00460577
and dword [ebx + 0x68], 0
mov edi, eax
cmp dword [ebx + 0x84], 0
jne 0x45e61e
mov eax, dword [ebx + 0x408c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0x74]
mov ebp, dword [ebx + 0x40a4]
mov ecx, dword [esp + 0xc]
add ebp, dword [ebx + 0x44]
push 4
add esi, 0x10
pop edx
call fcn.0045dec6
mov esi, dword [ebx + 0x74]
push 4
add esi, 0x14
pop edx
mov ecx, ebp
call fcn.0045dec6
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x5c], ecx
jne 0x45e65f
mov esi, dword [ebx + 0x74]
push 2
add esi, 0x24
pop edx
call fcn.0045dec6
mov esi, dword [ebx + 0x74]
mov ecx, dword [esp + 0x10]
push 4
add esi, 0x18
pop edx
call fcn.0045dec6
test edi, edi
jne 0x45e687
push dword [ebx + 0x78]
lea edi, [ebx + 0x24]
push dword [ebx + 0x74]
call fcn.0045ddef
pop ecx
pop ecx
mov edi, eax
push dword [ebx + 0x74]
call fcn.004f6134
pop ecx
test edi, edi
jne 0x45e713
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x70]
push edi
add eax, 0xe
push eax
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x18
test eax, eax
je 0x45e6be
or edi, 0xffffffff
jmp 0x45e6fa
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x10]
push 4
pop esi
mov edi, ebx
call fcn.0045de7d
mov edi, eax
pop ecx
test edi, edi
jne 0x45e6fa
push dword [ebx + 0x20]
mov ecx, ebp
mov edi, ebx
call fcn.0045de7d
mov edi, eax
pop ecx
test edi, edi
jne 0x45e6fa
push dword [ebx + 0x20]
mov ecx, dword [esp + 0x14]
mov edi, ebx
call fcn.0045de7d
pop ecx
mov edi, eax
push 0
push dword [esp + 0x18]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
call dword [ebx + 0x10]
add esp, 0x10
test eax, eax
je 0x45e713
or edi, 0xffffffff
inc dword [ebx + 0x40b0]
and dword [ebx + 0x2c], 0
pop esi
mov eax, edi
pop ebp
pop edi
add esp, 0xc
ret
Function at 0x45e8e5
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret
Function at 0x46073f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x4607cc
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004f4410
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x46078c
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4607ae
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x460887
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x4607f4
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4607ff
xor eax, eax
jmp 0x460848
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x46081c
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.00463910
jmp 0x46082c
cmp ecx, 2
jne 0x460832
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.0045f8a2
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.004f4410
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x460873
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x460887
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x46074a
pop edi
pop ebx
leave
ret
Function at 0x478754
Capabilities:
Persist via run registry key

Disassembly:
push 0x10
mov eax, 0x529cf9
call fcn.004f8194
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov ecx, edi
call fcn.00404402
and dword [ebp - 4], 0
xor esi, esi
inc esi
push esi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x541cac
mov dword [ebp - 0x10], esi
call fcn.00401769
mov dword [ebp - 4], esi
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.00401769
mov byte [ebp - 4], 2
push SysReAllocStringLen
mov byte [ebp - 4], 0
call fcn.004216e8
add esp, 0x14
test eax, eax
jne 0x4787cd
push str._windows_Desktop
mov ecx, edi
call fcn.00401732
push esi
call fcn.0041da15
pop ecx
mov eax, edi
call fcn.004f826c
ret 4