joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0944
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4b09e6
cmp dword [ebx + 0x94], 0
jne 0x4b09e0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4b0890
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4b09e0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4b09a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4b09e0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043dd9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4b09b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4b0c04
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x545254]
cmp dword [eax + 0x170], 0
je 0x4b0d69
test bl, bl
jne 0x4b0cb7
cmp dword [esi + 0x9c], 0
jne 0x4b0cac
mov eax, esi
call fcn.004b3a84
push eax
push 0x4b0b10
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4b0c7d
mov eax, dword [0x545254]
cmp byte [eax + 0xd3], 0
je 0x4b0c7d
mov eax, dword [esi + 0xd8]
call fcn.004082e8
mov edi, eax
cmp edi, 0
jl 0x4b0c7d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b0c66
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b0cac
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043dd9c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b0c8c
inc dword [esi + 0x9c]
jmp 0x4b0d69
cmp dword [esi + 0x9c], 0
jle 0x4b0d69
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4b0d69
cmp dword [esi + 0x44], 0
je 0x4b0d14
mov eax, dword [0x545254]
cmp byte [eax + 0xd3], 0
je 0x4b0d14
mov eax, dword [esi + 0xd8]
call fcn.004082e8
mov edi, eax
cmp edi, 0
jl 0x4b0d14
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4b0cfd
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4b0d43
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043dd9c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4b0d23
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4a3f94]
call fcn.004084a8
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4b19ac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4b1a17
cmp byte [ebx + 0xd3], 0
jne 0x4b1a17
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406ad0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4b1a04
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4b1a24
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d28
jmp 0x4b1a24
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d28
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4b31ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4b325a
mov eax, esi
call fcn.0047d83c
test al, al
je 0x4b325a
mov eax, dword [ebx + 0x84]
call fcn.0047d4bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b325a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4b324e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047d4bc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004744f0
jmp 0x4b325a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004b3024
pop esi
pop ebx
ret
Function at 0x4b7a08
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b7a36
mov eax, ebx
call fcn.004b84bc
cmp dword [ebx + 0x40], 0
je 0x4b7a2f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b7aa7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b7a99
cmp dword [ebx + 8], 0
je 0x4b7a58
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b7a6a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b7a99
cmp dword [ebx + 8], 0
je 0x4b7a4b
cmp eax, 3
je 0x4b7a7d
dec eax
jne 0x4b7a4b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b7a4b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b7a4b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b7ac5
cmp dword [ebx + 0x14], 0xcc
je 0x4b7ac5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b7ad0
pop ebx
ret

Function at 0x4e3f84
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4e40ac
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004e3e70
mov eax, dword [esi]
call fcn.004082e0
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41614c]
call fcn.004084a8
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00404564
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00404564
add ebx, 0x1c
mov eax, dword [esi]
call fcn.004082e0
mov dword [ebp - 0xc], eax
mov eax, dword [0x53f8a0]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004cac14
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.004048e0
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.004082e0
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004cab04
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004ca948
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004cac0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e40b3
lea eax, [ebp - 4]
mov edx, dword [0x41614c]
call fcn.004085a8
ret
Function at 0x50b284
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov eax, 8
test byte [edx + 1], 0x80
setne bl
movzx esi, word [edx]
add esi, esi
movzx edi, cl
shr edi, 7
or si, di
mov word [edx], si
test bl, bl
je 0x50b2ad
xor word [edx], 0x1021
add ecx, ecx
and cl, 0xff
dec eax
jne 0x50b28c
pop edi
pop esi
pop ebx
ret
Function at 0x52f7cc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a4c
mov eax, dword [ebp - 8]
call fcn.00406a4c
xor eax, eax
push ebp
push 0x52f902
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x52f91c
mov edx, 0x52f94c
mov eax, 0x80000001
call fcn.0052efc8
xor eax, eax
push ebp
push 0x52f845
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov ecx, 0x52f9d4
mov edx, 0x52f9f4
mov eax, 0x80000002
call fcn.0052efc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f865
xor eax, eax
push ebp
push 0x52f8ad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52fafc
push dword [ebp - 8]
push 0x52fafc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004075c8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x52fb0c
mov eax, 0x80000002
call fcn.0052ef1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f8e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f909
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004069c8
ret
Function at 0x468387
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [esp + 0x3c], 1
cmp dword [ebp + 4], esi
jne 0x4683b0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov byte [ebx], 0
mov byte [eax], 0
mov byte [ecx], 0
mov byte [edx], 0
push esi
push ebp
call fcn.00438a19
movzx eax, word [eax]
cmp ax, 0x2b
je 0x4683f0
cmp ax, 0x5e
je 0x4683ea
cmp ax, 0x21
je 0x4683ea
cmp ax, 0x23
jne 0x468426
cmp ax, 0x2b
jne 0x4683fa
mov eax, dword [esp + 0x30]
mov byte [eax], 1
inc esi
jmp 0x4683c8
cmp ax, 0x5e
jne 0x46840a
mov ecx, dword [esp + 0x34]
mov byte [ecx], 1
inc esi
jmp 0x4683c8
cmp ax, 0x21
jne 0x46841a
mov edx, dword [esp + 0x38]
mov byte [edx], 1
inc esi
jmp 0x4683c8
cmp ax, 0x23
jne 0x468423
mov byte [ebx], 1
inc esi
jmp 0x4683c8
mov eax, esi
push eax
inc esi
push ebp
mov dword [esp + 0x30], esi
call fcn.00438a19
movzx eax, word [eax]
cmp ax, 0x7b
jne 0x46850f
mov eax, 0x40
lea ecx, [esp + 0x10]
call fcn.00401400
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0x7d
call fcn.0045f717
test al, al
je 0x4684e7
mov edx, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x492b10]
push edx
push eax
call fcn.004115d0
add esp, 8
test eax, eax
je 0x468488
inc edi
cmp edi, 0x62
jl 0x468469
cmp edi, 0x62
jne 0x4684de
xor edi, edi
lea esi, [esp + 0x10]
call fcn.00401be0
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [esp + 0x2c]
cwde
mov dword [edx], eax
test eax, 0x200
je 0x4684b7
mov ecx, dword [esp + 0x34]
mov byte [ecx], 1
test eax, 0x400
je 0x4684c5
mov edx, dword [esp + 0x38]
mov byte [edx], 1
test eax, 0x100
je 0x468504
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov byte [eax], 1
call fcn.00402620
jmp 0x468547
cmp byte [edi + 0x492c98], 0
je 0x4684f7
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.00402620
jmp 0x468547
movzx ecx, byte [edi + 0x492d00]
mov edx, dword [esp + 0x2c]
mov dword [edx], ecx
lea ecx, [esp + 0x10]
call fcn.00402620
jmp 0x468547
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [esp + 0x2c]
cwde
mov dword [ecx], eax
test eax, 0x200
je 0x46852b
mov edx, dword [esp + 0x34]
mov byte [edx], 1
test eax, 0x400
je 0x468539
mov ecx, dword [esp + 0x38]
mov byte [ecx], 1
test eax, 0x100
je 0x468547
mov edx, dword [esp + 0x30]
mov byte [edx], 1
mov eax, dword [esp + 0x2c]
and dword [eax], 0xff
mov al, byte [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18
Function at 0x5243f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x529494]
cmp dword [eax + 0x28], 0
jne 0x524408
xor eax, eax
jmp 0x524537
mov ecx, dword [0x529414]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x529408], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x529404], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x529408]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x529404]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x52948c]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x528604
push 0x528620
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x529400], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00524330
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x5243c0
mov edx, dword [0x529494]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x52940c], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x524537
cmp dword [ebp - 0x38], 0x12
jne 0x52452b
mov dword [0x52941c], 0
call fcn.00524540
xor eax, eax
jmp 0x524537
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x5244fc
mov esp, ebp
pop ebp
ret 4

Function at 0x525840
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x52620c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x528118
sub eax, eax
test esi, esi
je 0x5262e4
sub eax, 1
test ecx, ecx
je 0x5262e2
test esi, 3
je 0x52624a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x52622f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x5262c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x526254
mov ecx, edx
test ecx, ecx
je 0x5262e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5262cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5262ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0052636f
jae 0x5262fa
xor ecx, ecx
call fcn.0052636f
jae 0x526329
xor eax, eax
call fcn.0052636f
jae 0x526339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0052636f
adc al, al
jae 0x52631b
jne 0x526365
stosb byte es:[edi], al
jmp 0x5262fd
call fcn.0052637b
sub ecx, ebx
jne 0x526342
call fcn.00526379
jmp 0x526361
lodsb al, byte [esi]
shr eax, 1
je 0x52638b
adc ecx, ecx
jmp 0x52635e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00526379
cmp eax, 0x7d00
jae 0x52635e
cmp ah, 5
jae 0x52635f
cmp eax, 0x7f
ja 0x526360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5262fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x526c7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x529000]
jne 0x526c86
repz ret
jmp fcn.00526f2d
Function at 0x402880
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x2e2c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417810
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40294f
mov eax, 0x2dc894
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4028c5
sub eax, edx
sar eax, 1
je 0x40294f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [0x2d9234]
push 0x2dc894
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041543b
push 0x2dc8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0041598b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40294f
push eax
push 1
push 0x200
push esi
call fcn.00415c7e
mov eax, dword [esp + 0x14]
push eax
call fcn.00415d12
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041542c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041542c
add esp, 0x214
ret

Function at 0x402970
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x2e2c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00417810
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x402a75
mov eax, 0x2dc7e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4029b5
sub eax, edx
sar eax, 1
je 0x402a75
cmp dword [0x2e3fbc], 3
jne 0x4029fc
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [0x2d9214]
push 0x2dc8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0041543b
add esp, 0xc
jmp 0x402a0c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [0x2d9234]
push 0x2dc7e0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0041543b
push 0x2dc8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0041598b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x402a75
push eax
push 1
push 0x200
push esi
call fcn.00415c7e
mov edx, dword [esp + 0x14]
push edx
call fcn.00415d12
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041542c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0041542c
add esp, 0x214
ret
Function at 0x403130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.00415539
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x2de488]
fadd qword [0x2de4a0]
call fcn.00419530
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403250
call fcn.00415539
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x2de488]
fmul qword [0x2de498]
fadd qword [0x2de490]
call fcn.00419530
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403238
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403229
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403220
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4031e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x4032f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x2e2c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00417810
add esp, 0xc
cmp edi, esi
je 0x4033d8
mov eax, 0x2dc790
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403335
sub eax, edx
sar eax, 1
je 0x40335f
push 0x2dc924
lea edx, [esp + 8]
push 0x2dc790
push edx
call fcn.0041598b
add esp, 0xc
jmp 0x40339a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [0x2d9234]
push 0x2dc894
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0041543b
push 0x2dc924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0041598b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x4033bd
push eax
push 1
push 0x200
push edi
call fcn.00415f51
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00415d12
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0041542c
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041542c
add esp, 0x214
ret
Function at 0x4033f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x2dc8b0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.0041598b
add esp, 0xc
test eax, eax
je 0x403414
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0041605d
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041627f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0041605d
lea ebp, [esi + 0x32]
push ebp
call fcn.0041633c
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.00415c7e
mov eax, dword [esp + 0x40]
push eax
call fcn.00415d12
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.004034c0
mov ecx, dword [esp + 0x4c]
push 0x2dc924
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0041598b
add esp, 0x40
test eax, eax
je 0x403492
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00415f51
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00415d12
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x4050e0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00419cc0
mov eax, dword [0x2e2c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0x2d93ec]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x405138
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0041542c
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x405177
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x405176
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00415f51
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x405140
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00415d12
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.0041542c
add esp, 0x100c
ret