joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438dc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47f493
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047318c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00478822
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00479d3e
test eax, eax
je 0x438edc
mov ecx, dword [esp + 0x3c]
call fcn.0047884f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438ea0
push edi
mov ecx, esi
call fcn.00475eb6
mov ecx, esi
call fcn.00439040
cmp dword [esp + 0x38], 1
jne 0x438ed5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00475ff1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43b900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b933
push esi
call fcn.0043ea00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b92c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b9b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b9a2
mov eax, dword [esi + 8]
test eax, eax
je 0x43b957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b99e
cmp eax, 2
je 0x43b9a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b94a
cmp eax, 3
je 0x43b97d
cmp eax, 1
jne 0x43b94a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b94a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b94a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b9e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b9c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b9e0
add esp, 4
pop esi
ret

Function at 0x447510
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4475b3
test eax, eax
jbe 0x4475b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4475b3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44755e
xor esi, esi
jmp 0x447564
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44758f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403220
add esi, eax
push esi
mov ebx, esi
call fcn.00403220
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x447570
pop ebp
test edi, edi
pop edi
jne 0x4475b3
test ebx, ebx
je 0x4475b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00462380
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4476f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44780d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44780d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004735de
mov esi, eax
test esi, esi
je 0x44780d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44780d
mov ecx, esi
call fcn.00447660
cmp edi, eax
jge 0x44780d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x447793
mov dword [esp + 0x34], 1
jmp 0x4477ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44780d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00446c40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x44c400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ce94c]
xor edx, edx
cmp eax, edx
jne 0x44c426
xor eax, eax
mov byte [eax + 0x4ce84c], al
inc eax
cmp eax, 0x100
jl 0x44c40e
mov dword [0x4ce94c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ce84c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x44c4b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x44c48a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x44c458
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x44c530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x44c583
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x44c56a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x452f30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47fb4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00453850
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x49561c
call fcn.0047191c
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x452fc3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0047191c
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x452fbc
push 0
mov ecx, eax
call fcn.0044a030
mov dword [esi + 0xc], eax
jmp 0x452fc5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x452fc5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x473f82
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x473fba
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00472036
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047200e
jmp 0x473fc6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x475670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4756b2
call fcn.0047b124
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4756b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4756a9
xor eax, eax
jmp 0x4756ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004756c0
pop edi
pop esi
pop ebx
ret 4
Function at 0x47b654
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47b682
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47b6a0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047b5ba
jmp 0x47b6a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47b6a0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047b5ba
test edi, edi
mov eax, edi
jne 0x47b68a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x408fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040685c
xor eax, eax
push ebp
push 0x409195
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408ff0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call fcn.004024d0
jmp 0x40900a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
lea eax, [ebp - 0x21a]
push eax
call fcn.00402510
cmp word [ebp - 0x21a], 0
je 0x40917f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091a4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409099
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40920c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40917f
xor eax, eax
push ebp
push 0x409178
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408db4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409108
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a30
jmp 0x409153
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409153
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40917f
cmp dword [ebp - 8], 0
je 0x40916e
mov eax, dword [ebp - 8]
call fcn.004041f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40919c
lea eax, [ebp - 4]
call fcn.00406864
ret
Function at 0x40cfe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4f1c58
push 0xa
push 0x40d074
mov eax, dword [0x4f1c40]
push eax
call fcn.0040b258
mov ebx, eax
test ebx, ebx
jne 0x40d004
call fcn.00418938
push ebx
mov eax, dword [0x4f1c40]
push eax
call fcn.0040b48c
mov ebx, eax
test ebx, ebx
jne 0x40d01b
call fcn.00418938
push ebx
call fcn.0040b494
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d02d
call fcn.00418938
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4f1c5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4f1c60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4f1c64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4f1c68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4f1c6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4f1c70], edx
pop esi
pop ebx
ret

Function at 0x410cc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410d71
test eax, edx
je 0x410d74
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410cf1
push edx
mov edx, eax
mov eax, esp
call fcn.00406aa0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x410d07
push eax
lea eax, [esp + 8]
call fcn.00406aa0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x410d16
movzx eax, word [eax]
sub eax, ecx
jmp 0x410d3d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x410d57
add ecx, 4
js 0x410d2e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410d54
push eax
mov eax, ecx
mov edx, 2
call fcn.0040605c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410d3b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410d3d
xor eax, eax
ret
test eax, eax
je 0x410d84
test edx, edx
jne 0x410cd8
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x411e78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406900
push eax
call fcn.0040b308
cmp eax, 0xffffffff
je 0x411e96
test al, 0x10
sete al
pop esi
pop ebx
ret
call fcn.0040b318
mov ebx, eax
cmp ebx, 2
je 0x411eb7
cmp ebx, 3
je 0x411eb7
cmp ebx, 0x7b
je 0x411eb7
mov eax, esi
call fcn.00411e38
test al, al
jne 0x411ebb
xor eax, eax
jmp 0x411ebd
mov al, 1
pop esi
pop ebx
ret

Function at 0x411ec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406900
push eax
call fcn.0040b308
cmp eax, 0xffffffff
je 0x411ed9
test al, 0x10
jne 0x411edd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x415cb8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call fcn.0040b328
test eax, eax
jle 0x415cf1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069b0
jmp 0x415cfa
mov eax, ebx
mov edx, esi
call fcn.00406874
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415d04
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call fcn.0040b328
test eax, eax
jle 0x415d26
movzx eax, word [esp]
jmp 0x415d28
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4164b8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4165dd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004162c8
mov esi, eax
mov eax, dword [0x4ee8d0]
cmp byte [eax], 0
je 0x416585
mov eax, dword [0x4ee640]
call fcn.0040467c
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call fcn.0040b57c
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416490]
call fcn.00408234
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call fcn.0040b57c
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call fcn.0040b3dc
push eax
call fcn.0040b584
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4165f8
push 0xfffffffffffffff4
call fcn.0040b3dc
push eax
call fcn.0040b584
jmp 0x4165c1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4ee5d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f1c40]
call fcn.0040843c
push eax
call fcn.0040bc3c
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call fcn.0040bc5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4165e4
lea eax, [ebp - 4]
mov edx, dword [0x416490]
call fcn.00408354
ret
Function at 0x4173d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4174ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004068c8
lea eax, [ebp - 4]
call fcn.00407288
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
call fcn.0040b5ac
mov ebx, eax
test ebx, ebx
je 0x417498
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417491
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406900
push eax
call fcn.0040b5a4
test eax, eax
je 0x41747b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4174c0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040b5b4
test eax, eax
je 0x41747b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417498
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4174b5
lea eax, [ebp - 4]
call fcn.00406864
ret

Function at 0x4187e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040638c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040b4ac
mov edi, eax
cmp edi, 0x104
jbe 0x41878a
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x41878c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.0040b4ac
push edi
push esi
call fcn.0040b8ac
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4187c5
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4187af
mov eax, esp
cmp esi, eax
je 0x4187d2
mov eax, esi
call fcn.004041f0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41880c
cmp bl, 0
je 0x418808
cmp bl, 0x41
jl 0x418803
cmp bl, 0x5a
jg 0x418803
or bl, 0x20
xor al, bl
inc esi
jmp 0x4187e7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41874c
Function at 0x43a114
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43a1b2
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43a176
cmp byte [ebx + 0x10], 0
jne 0x43a176
cmp byte [ebx + 0x3c], 0
jne 0x43a176
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call fcn.0040b4d4
cmp eax, 1
je 0x43a197
lea edx, [ebp - 4]
mov eax, dword [0x4ee870]
call fcn.00409cd0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42bcfc]
call fcn.004165fc
call fcn.00405870
jmp 0x43a197
lea edx, [ebp - 8]
mov eax, dword [0x4ee870]
call fcn.00409cd0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42bcfc]
call fcn.004165fc
call fcn.00405870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a1b9
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040686c
ret

Function at 0x43a4a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43a4ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call fcn.0040b534
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043a098
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43a507
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43a510
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call fcn.0040b4d4
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043a098
dec esi
jne 0x43a532
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43baf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f3f98
cmp dword [edi], 0
jne 0x43bb6c
push 0x40
push 0x1000
push 0x1000
push 0
call fcn.0040b54c
mov esi, eax
mov eax, dword [0x4f3f94]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4ed060
mov ecx, 2
call fcn.0040438c
mov edx, 0x43bac8
lea eax, [esi + 5]
call fcn.0043bae8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043bae8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43bb41
mov dword [0x4f3f94], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8