joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460b1aad
Capabilities:
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp byte [ecx + 0xd], 0
je 0x460b1b43
movzx edx, word [0x460ec034]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
inc ebx
cmp edi, edx
je 0x460b1ae9
cmp edi, 0xd
je 0x460b1ae9
cmp edi, 8
je 0x460b1ae9
cmp edi, ebx
jne 0x460b1b41
push 0xb
pop eax
cmp edi, edx
jne 0x460b1af4
mov eax, ebx
jmp 0x460b1b03
cmp edi, 8
jne 0x460b1afc
push edi
jmp 0x460b1b02
cmp edi, ebx
jne 0x460b1b03
push 0xc
pop eax
mov ecx, dword [ecx + 8]
lea edx, [ebp - 0x10]
imul eax, eax, 0x14
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov esi, dword [ecx]
add eax, 0x460ec020
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x460ed508]
call dword [esi + 0xc]
mov esi, eax
test esi, esi
jne 0x460b1b41
push dword [ebp - 0xc]
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x460b1b41
mov esi, ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.460ea320
mov esp, ebp
pop ebp
ret 4
Function at 0x460e3a0d
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x460ec784]
push ebx
shr eax, 0xe
mov ebx, ecx
push esi
and eax, 0xffffff01
mov dword [ebp - 0xc], ebx
push edi
mov edi, edx
mov dword [ebp - 4], eax
call fcn.460e3c11
mov ecx, dword [0x460ec780]
call fcn.460e8e51
mov esi, eax
mov eax, dword [ebx]
sub eax, 0xd
je 0x460e3bc1
sub eax, 1
je 0x460e3baa
sub eax, 0xf4
jne 0x460e3be5
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov word [edx + 1], bx
mov byte [edx + 3], bl
cmp byte [edx], bl
je 0x460e3a79
mov byte [edx + 2], 1
jmp 0x460e3be5
cmp byte [ebp - 4], bl
je 0x460e3aaa
movzx eax, word [0x460ec774]
cmp eax, 0x100
jae 0x460e3a98
test dword [0x460ec784], 0x2000
je 0x460e3aaa
mov dword [edi], eax
lea eax, [esi - 0x4e2]
cmp eax, 8
jbe 0x460e3aaa
mov esi, 0x4e4
mov ecx, dword [edi]
lea eax, [ecx - 0x80]
cmp eax, 0x7f
ja 0x460e3b68
cmp byte [ebp - 4], bl
je 0x460e3ad0
mov eax, dword [0x460ec784]
test al, 0x30
setne cl
test al, 3
setne al
test al, cl
je 0x460e3ae9
mov cl, byte [edi]
mov edx, esi
call fcn.460e9162
test eax, eax
je 0x460e3ae9
mov eax, dword [ebp + 0xc]
mov byte [eax + 1], 1
jmp 0x460e3be5
mov dword [ebp - 8], ebx
cmp esi, 0x3a4
je 0x460e3b0e
cmp esi, 0x3a8
je 0x460e3b1f
cmp esi, 0x3b4
jbe 0x460e3b24
cmp esi, 0x3b6
jbe 0x460e3b1f
jmp 0x460e3b24
push 0x15
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x460e3b3a
cmp dword [ebp + 0x10], ebx
jne 0x460e3b3a
mov esi, 0x4e4
cmp esi, 0x4e4
jne 0x460e3b3a
mov eax, dword [edi]
add eax, 0xffffff80
cmp eax, 0x1f
ja 0x460e3be5
push esi
push 1
xor edx, edx
lea ecx, [ebp - 8]
push edi
inc edx
call fcn.460e8d1c
cmp eax, 1
jne 0x460e3be5
mov eax, dword [ebp - 8]
mov dword [edi], eax
cmp byte [ebp - 4], bl
je 0x460e3be5
mov word [0x460ec774], ax
jmp 0x460e3be5
cmp dword [ebp + 8], 1
jne 0x460e3be5
cmp dword [0x460ec72c], 2
jne 0x460e3be5
cmp ecx, 0x100
jbe 0x460e3be5
cmp byte [ebp - 4], bl
jne 0x460e3be5
cmp esi, 0x3a8
je 0x460e3b94
cmp esi, 0x3b6
jne 0x460e3be5
movzx eax, byte [edi]
shr ecx, 8
movzx ecx, cl
shl eax, 8
or ecx, eax
mov dword [edi], ecx
mov byte [edx + 3], 1
jmp 0x460e3be5
mov eax, dword [ebp + 0xc]
and dword [eax + 4], 0
mov dword [eax], 0x13
mov dword [ebx], 0x45f
mov dword [edi], eax
jmp 0x460e3be5
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], 1
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [eax], 0x45e
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x460e63f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
call fcn.460a2fb7
test al, al
jne 0x460e64a9
call fcn.460a17ba
test al, al
jne 0x460e64a9
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov edx, eax
mov ecx, edx
call fcn.460e8f3a
test eax, eax
jne 0x460e644c
mov eax, edx
and eax, 0x3ff
cmp ax, 0x1e
je 0x460e644c
cmp ax, 0x2a
je 0x460e644c
mov ecx, edx
call fcn.460e8f5d
test eax, eax
je 0x460e64a9
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x46085e94
push reloc.msls31.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x460e64a9
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x46085eb0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460e64a0
mov ax, word [ebp - 4]
cmp al, 0x2f
jbe 0x460e64a0
sub al, 0x2f
mov bl, al
cmp bl, 3
jbe 0x460e64a0
mov bl, 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460e67cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x460ec630], 0
jne 0x460e6914
push edi
xor edi, edi
mov dword [0x460ec630], edi
call fcn.460abce9
test al, al
jne 0x460e6812
mov eax, dword [0x460ec72c]
cmp eax, 2
jne 0x460e687e
cmp dword [0x460ec728], 4
jae 0x460e6887
lea eax, [ebp - 0x88]
push eax
push 1
push edi
push 0x46085f18
push reloc.msls31.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x460e6898
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push 0x46085f30
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x460e6907
lea ecx, [ebp - 0x84]
call fcn.460e8bd3
mov dword [0x460ec630], eax
jmp 0x460e6907
cmp eax, 1
jne 0x460e6913
push edi
push 0x460ec630
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
jmp 0x460e6913
mov eax, dword fs:[0x2c]
mov ecx, dword [0x460ec520]
push esi
mov esi, dword [eax + ecx*4]
mov eax, dword [0x460ecb88]
cmp eax, dword [esi + 4]
jle 0x460e68b8
jmp 0x460e6927
pop ebx
mov eax, dword [0x460ecb7c]
cmp eax, dword [esi + 4]
jg 0x460e695d
push 0x46085f74
push 0x46085f88
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x460e6906
push edi
push edi
push dword [0x460ecb84]
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x460e6906
push edi
push edi
push dword [0x460ecb80]
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x460ec630], eax
pop esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x460ec630]
xor ecx, ebp
call fcn.460ea320
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, 0x460ecb88
push ebx
call fcn.460ea6dd
cmp dword [0x460ecb88], 0xffffffff
pop ecx
jne 0x460e68b7
push 0x46085f44
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push ebx
mov dword [0x460ecb84], eax
call fcn.460ea69c
pop ecx
jmp 0x460e68b7
mov esi, 0x460ecb7c
push esi
call fcn.460ea6dd
cmp dword [0x460ecb7c], 0xffffffff
pop ecx
jne 0x460e68c9
push 0x46085f5c
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push esi
mov dword [0x460ecb80], eax
call fcn.460ea69c
pop ecx
jmp 0x460e68c9
Function at 0x460e77d1
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x460ec72c], 1
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x21c], eax
mov esi, ecx
je 0x460e7824
push esi
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x460e781e
push dword [ebp - 0x21c]
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x460e788a
mov eax, dword [ebp - 0x21c]
cmp edi, 0xd
je 0x460e7835
push eax
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x460e788a
push ebx
push eax
lea ecx, [ebp - 0x218]
call fcn.460e6a34
push dword [ebp - 0x218]
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0xd
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x218]
call fcn.460e6a9f
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.460e6a9f
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
cmp ecx, eax
je 0x460e7888
test ecx, ecx
je 0x460e7888
call fcn.460e9cb0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.460ea320
mov esp, ebp
pop ebp
ret 8
Function at 0x460e87bb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
xor ebx, ebx
mov esi, ecx
push eax
mov dword [0x460ec72c], ebx
mov dword [0x460ec728], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x460e8844
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x94]
mov dword [0x460ec72c], eax
mov eax, dword [ebp - 0x90]
mov dword [0x460ec728], ecx
mov dword [0x460ec824], eax
mov dword [0x460ec750], ebx
mov dword [0x460ec71c], ebx
mov dword [0x460ec80c], 6
cmp ecx, 4
jb 0x460e8844
mov dword [0x460ec80c], 0x15
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x460ec800], eax
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x460ec74c], eax
mov byte [0x460ec531], bl
mov byte [0x460ec532], bl
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x40
pop edx
push 8
pop ecx
mov dword [0x460ec708], eax
call fcn.460e9c80
test eax, eax
je 0x460e8888
mov dword [eax], ebx
mov word [eax + 4], bx
jmp 0x460e888a
mov eax, ebx
push 0x46086058
mov dword [0x460ec718], eax
mov byte [eax + 5], 1
mov byte [0x460ec54a], bl
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x46086068
mov dword [0x460ec830], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x4608607c
mov dword [0x460ec820], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x46086090
mov dword [0x460ec740], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x460860a4
mov dword [0x460ec73c], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x460ec738], eax
mov eax, dword [0x460ec72c]
cmp eax, 1
je 0x460e890f
cmp eax, 2
jne 0x460e8901
cmp dword [0x460ec728], 4
jbe 0x460e890f
mov dword [0x460ec744], ebx
mov dword [0x460ec748], ebx
jmp 0x460e892f
push 0x460860b4
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x460860c4
mov dword [0x460ec744], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x460ec748], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.460ea320
mov esp, ebp
pop ebp
ret

Function at 0x460e8999
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [0x460ec708]
cmp eax, 0xffffffff
je 0x460e8973
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x460e8973
or dword [0x460ec708], 0xffffffff
ret
cmp dword [0x460ec708], 0xffffffff
push esi
mov esi, ecx
je 0x460e8a03
cmp esi, 1
jne 0x460e89d5
push 0x40
pop edx
push 8
pop ecx
call fcn.460e9c80
test eax, eax
je 0x460e89c3
xor ecx, ecx
mov dword [eax], ecx
mov word [eax + 4], cx
jmp 0x460e89c5
xor eax, eax
pop esi
test eax, eax
je 0x460e89d1
mov ecx, eax
jmp 0x460e8956
xor ecx, ecx
jmp 0x460e89cc
test esi, esi
je 0x460e89de
cmp esi, 2
jne 0x460e8a03
call fcn.460e8941
test eax, eax
je 0x460e89f6
cmp eax, dword [0x460ec718]
je 0x460e89f6
mov ecx, eax
call fcn.460e9cb0
test esi, esi
pop esi
je 0x460e89d1
mov ecx, dword [0x460ec718]
jmp 0x460e89cc
pop esi
ret
Function at 0x460e8a05
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x460ec708], 0xffffffff
push esi
je 0x460e8a45
call fcn.460e8974
test eax, eax
jne 0x460e8a21
push 2
pop ecx
pop esi
jmp fcn.460e8999
cmp eax, 1
jne 0x460e8a45
call fcn.460e8941
mov esi, eax
cmp byte [esi + 4], 0
jne 0x460e8a45
call fcn.460e465e
cmp eax, 1
je 0x460e8a47
test eax, eax
js 0x460e8a18
mov byte [esi + 4], 1
pop esi
ret
call fcn.460e46b7
jmp 0x460e8a18

Function at 0x460e8ecc
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x460ec784]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
and eax, esi
push edi
test ax, ax
movzx edi, ax
movzx eax, dx
push eax
setne bl
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 1
cmp eax, ebx
je 0x460e8f0e
test di, di
je 0x460e8f09
not esi
and word [0x460ec784], si
xor eax, eax
jmp 0x460e8f10
xor eax, eax
inc eax
jmp 0x460e8f10
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x460ea830
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x460ea86e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x460ea866
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x460ea870
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x460ea856
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x460ea940
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x460ea956
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x460ea971
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x40572d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004059eb
test bl, 8
mov dword [ebp - 0xc], eax
je 0x40576c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4a8], eax
jmp 0x4058f6
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405786
test eax, eax
je 0x4058a4
test bl, 2
je 0x4058a4
mov esi, 0x42b878
push edi
push esi
call fcn.00405f65
cmp dword [ebp + 8], 0
je 0x4057a5
push 0x40a3ac
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4057ab
push edi
call fcn.00405944
cmp byte [edi], 0
jne 0x4057b9
cmp byte [0x42b878], 0x5c
jne 0x4057c4
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40589a
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405928
cmp byte [eax], 0
je 0x40580a
cmp byte [ebp - 0x1c], 0
je 0x40580a
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405820
mov al, byte [esi + 1]
test al, al
je 0x405879
cmp al, 0x2e
jne 0x405820
cmp byte [esi + 2], 0
je 0x405879
push esi
push ebx
call fcn.00405f65
test byte [ebp - 0x14c], 0x10
je 0x405845
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405879
push dword [ebp + 0xc]
push edi
call fcn.0040572d
jmp 0x405879
push dword [ebp - 4]
push edi
call fcn.004056e5
test eax, eax
jne 0x405871
cmp dword [ebp - 4], eax
je 0x405869
push edi
push 0xfffffffffffffff1
call fcn.0040508c
push 0
push edi
call fcn.00405d44
jmp 0x405879
inc dword [0x42f4a8]
jmp 0x405879
push edi
push 0xfffffffffffffff2
call fcn.0040508c
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058a4
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058f6
cmp dword [ebp - 0xc], esi
jne 0x4058b8
inc dword [0x42f4a8]
jmp 0x4058f6
push edi
call fcn.00406268
test eax, eax
je 0x4058f6
push edi
call fcn.004058fd
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056e5
test eax, eax
jne 0x4058ee
cmp dword [ebp - 4], esi
je 0x4058b0
push edi
push 0xfffffffffffffff1
call fcn.0040508c
push esi
push edi
call fcn.00405d44
jmp 0x4058f6
push edi
push 0xffffffffffffffe5
call fcn.0040508c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4f8008], 0x8088405
inc edx
mov dword [ebx + 0x4f8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e16d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e16da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x4e20cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x4fa258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x4fa258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x4f90e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e20d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret