joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431370
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, edx
push edi
mov edi, eax
test esi, esi
je 0x43147b
test edi, edi
jle 0x43147b
cmp edi, 3
jl 0x431415
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
jmp 0x4313b0
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x4313b0
pop ebx
test edi, edi
jle 0x431473
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x43143d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x43145e
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x431610
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x43161d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x431619
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x431510
push 0
push 0
call fcn.0046203d
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x431672
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x431662
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x431694
mov esi, dword [edi]
call fcn.004315a0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x431c70
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x492059
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
call fcn.00442d9a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x431cbd
push 0x80004005
call fcn.004010b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x24], edi
push edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x431d5b
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
jge 0x431d15
push 0x104
mov ecx, esi
call fcn.00402310
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, edi
jne 0x431d30
xor eax, eax
jmp 0x431d3e
push ecx
push eax
call fcn.004602bb
add esp, 8
cmp eax, edi
jl 0x431d6f
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x431d6f
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret
push 0x80070057
call fcn.004010b0
int3
Function at 0x434710
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x434721
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x43473f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x434776
test ecx, ecx
je 0x43476f
test esi, esi
ja 0x434730
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x437260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4be2e0], ecx
inc edx
cmp edx, 0x100
jb 0x437263
cmp edx, 0x800
jae 0x437339
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x4bdee0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4be2e0]
inc edx
mov dword [edx*4 + 0x4be2dc], eax
cmp edx, 0x800
jb 0x437310
mov dword [0x4bcc50], 0x4386d0
call fcn.004388a0
test eax, eax
jne 0x437356
mov dword [0x4bcc50], 0x438780
pop ecx
ret
Function at 0x437ca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x4b7a40]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.0043aed0
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x437e1b
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x437d53
jb 0x437d4f
cmp ebx, 0x40000
jae 0x437d53
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x437e07
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.0043ab40
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x437e07
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x437de4
test eax, eax
jne 0x437dcd
cmp edi, dword [esp + 0x4c]
je 0x437de4
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x437e07
xor edi, edi
jmp 0x437d30
cmp ecx, dword [esp + 0xb4]
jne 0x437e02
cmp dword [esp + 0x14], 0
jne 0x437e02
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x437e07
cmp eax, 4
je 0x437e07
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045ff59
add esp, 0x90
ret
Function at 0x437e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x4b7a40]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x437e87
mov eax, edi
jmp 0x437fdd
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00438f20
add esp, 4
cmp eax, ebx
jne 0x437fdd
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x437f1c
jb 0x437f11
cmp dword [esp + 0xc8], eax
jae 0x437f1c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x437fc9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.004390d0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x437fc9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x437fae
cmp eax, ebx
jne 0x437f98
cmp edi, dword [esp + 0x4c]
je 0x437fae
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x437ef0
jmp 0x437fc9
cmp ecx, dword [esp + 0xd4]
jne 0x437fc4
cmp dword [esp + 0x14], ebx
jne 0x437fc4
cmp dword [esp + 0x20], 1
je 0x437fc9
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045ff59
add esp, 0xb0
ret
Function at 0x438c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x491ed3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b7a40]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0047e465
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x438c51
mov eax, dword [esi + 0x1c]
push eax
call fcn.00441318
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4393c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x4393dd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x43940d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x43940d
inc edi
cmp edi, ebx
jb 0x439400
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x439515
cmp eax, 3
jbe 0x439440
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x43947b
cmp al, 0xff
je 0x43947b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x4393f3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x439426
movzx ecx, byte [esi + 0x4a3950]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x4a3948], 0
mov al, byte [eax + 4]
je 0x439469
test al, al
je 0x439469
cmp al, 0xff
jne 0x439426
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x4393f3
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x4394e7
movzx edx, byte [esi + 0x4a3950]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x4394cc
cmp bl, 0xff
jne 0x4394e3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x4394a0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x4393f3
pop edi
pop ebx
cmp eax, 3
jbe 0x43952c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x441e4b
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x441e76
call fcn.00447014
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x441e99
push eax
push dword [esi + 4]
call fcn.00441dd1
push esi
push eax
mov ecx, 0x4b9da4
call fcn.00441a51
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x442919
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x48faa6
call fcn.00464c21
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004428d9
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401b90
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x442980
push eax
push dword [esi + 8]
call fcn.00441dd1
push dword [esi + 0xc]
mov ecx, 0x4b9da4
push eax
call fcn.00441a51
mov eax, esi
call fcn.00464cf9
ret 0x1c

Function at 0x445607
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44564f
call fcn.00447014
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44564f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x445692
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44567b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44567b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44568f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x447976
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48fe75
call fcn.00464c21
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44799b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4479e1
lea ecx, [ebp - 0x10]
call fcn.00401b90
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00441685
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401180
mov eax, esi
call fcn.00464cf9
ret 8

Function at 0x44da5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44daa1
call fcn.00447014
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44daa1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44dabd
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044d5d2
mov esi, eax
test edi, edi
je 0x44dabb
test ebx, ebx
je 0x44dabb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45e945
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x45e969
cmp dword [edi + 0x54], 0
jne 0x45e969
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00447014
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0045e906
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45ff59
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b7a40]
jne 0x45ff63
repz ret
jmp fcn.0046936e
Function at 0x47525f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00468cd2
and dword [ebp - 4], 0
cmp dword [0x4bc864], 0
mov ebx, eax
jne 0x475310
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4753c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4753c1
push eax
call fcn.00468c60
mov dword [esp], 0x49bcf0
push edi
mov dword [0x4bc864], eax
call esi
push eax
call fcn.00468c60
mov dword [esp], 0x49bcdc
push edi
mov dword [0x4bc868], eax
call esi
push eax
call fcn.00468c60
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4bc86c], eax
call esi
push eax
call fcn.00468c60
pop ecx
mov dword [0x4bc874], eax
test eax, eax
je 0x475310
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00468c60
pop ecx
mov dword [0x4bc870], eax
mov eax, dword [0x4bc870]
cmp eax, ebx
je 0x475368
cmp dword [0x4bc874], ebx
je 0x475368
push eax
call fcn.00468cdb
push dword [0x4bc874]
mov esi, eax
call fcn.00468cdb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x475368
test edi, edi
je 0x475368
call esi
test eax, eax
je 0x47535f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47535f
test byte [ebp - 0xc], 1
jne 0x475368
or dword [ebp + 0x10], 0x200000
jmp 0x4753a1
mov eax, dword [0x4bc868]
cmp eax, ebx
je 0x4753a1
push eax
call fcn.00468cdb
pop ecx
test eax, eax
je 0x4753a1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4753a1
mov eax, dword [0x4bc86c]
cmp eax, ebx
je 0x4753a1
push eax
call fcn.00468cdb
pop ecx
test eax, eax
je 0x4753a1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bc864]
call fcn.00468cdb
pop ecx
test eax, eax
je 0x4753c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4753c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4505f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e76fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004d96a4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x450672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004d6d90
mov eax, dword [eax]
push 0x641d78
push eax
call fcn.004c8994
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004d992f
test bl, bl
je 0x450672
push 0x641d78
lea ecx, [esp + 0xc]
call fcn.004d9d0b
push 0x641d84
lea ecx, [esp + 0xc]
call fcn.004d9d0b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4506ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004d992f
jmp 0x450779
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x450732
lea edx, [esp + 0x7c]
push 0x641d80
push edx
call fcn.004c8994
add esp, 8
test eax, eax
je 0x450732
lea eax, [esp + 0x7c]
push 0x641d7c
push eax
call fcn.004c8994
add esp, 8
test eax, eax
je 0x450732
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4506c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004d992f
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x450f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x450fd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc