joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c8760
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4c8793
push esi
call fcn.004d6b00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4c878c
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 0x4c8819
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4c8802
mov eax, dword [esi + 8]
test eax, eax
je 0x4c87b7
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 0x4c87fe
cmp eax, 2
je 0x4c8802
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4c87aa
cmp eax, 3
je 0x4c87dd
cmp eax, 1
jne 0x4c87aa
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 0x4c87aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4c87aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004c8840
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4c8828
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004c8840
add esp, 4
pop esi
ret

Function at 0x4c90b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4c90d1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4c90d1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4c90d1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4e4b38
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55953c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005473e8
mov dword [esi], method.CTreeCtrl.virtual_0
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.004b8520
call fcn.004e9680
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.004e9680
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.004e9680
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.004e9680
mov dword [edi], 0xbbdfb4
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.00544399
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0xbbe084
mov eax, dword [0xcbc958]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.004e9680
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.00544399
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CTreeCtrl.virtual_0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4e4c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5595c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.005443c2
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0xbbdfb0
call fcn.004e9880
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.00545cdc
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.0054cddb
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.005443c2
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0xbbdfb0
call fcn.004e9880
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0xbbdfb0
call fcn.004e9880
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xbbdfb0
call fcn.004e9880
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0xbbdfb0
call fcn.004e9880
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00543ffb
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4e5820
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 0x4e58c3
test eax, eax
jbe 0x4e58c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4e58c3
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 0x4e586e
xor esi, esi
jmp 0x4e5874
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4e589f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004e9af0
add esi, eax
push esi
mov ebx, esi
call fcn.004e9af0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4e5880
pop ebp
test edi, edi
pop edi
jne 0x4e58c3
test ebx, ebx
je 0x4e58c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00528ed0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4e5a25
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 0x4e5b3d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4e5b3d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0054783a
mov esi, eax
test esi, esi
je 0x4e5b3d
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 0x4e5b3d
mov ecx, esi
call fcn.004e59b0
cmp edi, eax
jge 0x4e5b3d
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 0x4e5ac3
mov dword [esp + 0x34], 1
jmp 0x4e5b1e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4e5b3d
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.004e3700
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 0x4eb3e8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x559b99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004ede40
lea edi, [esi + 0x108]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0xc]
mov dword [edi], fcn.004b8520
call fcn.00544399
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 1
call fcn.00544399
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 2
call fcn.004eda60
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 3
call fcn.004eda60
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 4
call fcn.00544399
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 5
call fcn.00544399
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 6
call fcn.004eda60
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 7
call fcn.004eda60
mov dword [edi], 0xbbe528
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 8
call fcn.004ede40
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 9
call fcn.004ede40
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 0xa
call fcn.004ede40
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 0xb
call fcn.004ede40
lea ecx, [esi + 0x654]
mov byte [esp + 0x18], 0xc
call fcn.004ede40
mov ecx, esi
mov byte [esp + 0x18], 0xd
mov dword [esi], method.CWnd.virtual_0
call fcn.004eb710
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4eb5d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x559cab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0x654]
mov dword [esp + 0x18], 5
call fcn.004ee010
lea ecx, [esi + 0x558]
mov byte [esp + 0x18], 4
call fcn.004ee010
lea ecx, [esi + 0x45c]
mov byte [esp + 0x18], 3
call fcn.004ee010
lea ecx, [esi + 0x360]
mov byte [esp + 0x18], 2
call fcn.004ee010
lea ecx, [esi + 0x264]
mov byte [esp + 0x18], 1
call fcn.004ee010
lea edi, [esi + 0x108]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x74]
mov byte [esp + 0x18], 0xc
mov dword [ecx], 0xbbe538
call fcn.004edc60
lea ecx, [edi + 0x60]
mov byte [esp + 0x18], 0xb
mov dword [ecx], 0xbbe538
call fcn.004edc60
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 0xa
call fcn.005443c2
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 9
call fcn.005443c2
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 8
mov dword [ecx], 0xbbe538
call fcn.004edc60
lea ecx, [edi + 0x1c]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xbbe538
call fcn.004edc60
lea ecx, [edi + 0x14]
mov byte [esp + 0x18], 6
call fcn.005443c2
lea ecx, [edi + 0xc]
mov byte [esp + 0x18], 0
call fcn.005443c2
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004ee010
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4f3900
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xcae804]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4f3913
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4f3954
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xcae8ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4f3986
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f398a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4f397b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4f39a8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4f39ac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4f399d
xor ecx, ecx
mov eax, 0xcae814
xor ebx, ebx
mov bl, byte [ecx + 0xcae8bc]
cmp byte [esp + ebx + 0x14], 0
je 0x4f39d7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xcae8d4]
cmp byte [esp + ebx + 0x14], 0
je 0x4f39ee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4f39be
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4f3947
lea edx, [esp + 0x84]
push edx
call fcn.004f3a30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4fc200
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4fc24c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4fc24c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4fc236
push eax
call ebp
test ax, ax
jl 0x4fc244
inc esi
add edi, 4
cmp esi, 6
jb 0x4fc228
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004fbf00
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4ffe90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4ffef0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4ffef0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4ffef0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4ffef0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4fff00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x500f80
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x500fe6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x500fe6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x500fc7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x501370
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x5013a8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x502030
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x502079
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x5024f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55abf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005020a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00502120
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00502120
lea ecx, [esi + 0xc]
call fcn.00545c67
lea ecx, [esi + 0x10]
call fcn.00545c67
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005036b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005036b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005036b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00545cdc
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00545cdc
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x50ad60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xd15ba0]
xor edx, edx
cmp eax, edx
jne 0x50ad86
xor eax, eax
mov byte [eax + 0xd15aa0], al
inc eax
cmp eax, 0x100
jl 0x50ad6e
mov dword [0xd15ba0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xd15aa0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x50ae17
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 0x50adea
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 0x50adb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x50ae20
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 0x50ae73
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 0x50ae5a
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 0x5117f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55b29e
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.00512110
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xbc3f54
call fcn.00545a1d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x511883
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00545a1d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x51187c
push 0
mov ecx, eax
call fcn.00508990
mov dword [esi + 0xc], eax
jmp 0x511885
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x511885
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 0x546bc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.00551177
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x546bf3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00546c06
pop edi
pop esi
pop ebx
ret 8

Function at 0x5481dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x548215
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.00546183
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054615b
jmp 0x548221
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x549acd
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 0x549b0f
call fcn.00551177
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x549b0f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x549b06
xor eax, eax
jmp 0x549b17
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00549b1d
pop edi
pop esi
pop ebx
ret 4

Function at 0x5516a7
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 0x5516d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5516f3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0055160d
jmp 0x5516f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5516f3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0055160d
test edi, edi
mov eax, edi
jne 0x5516dd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5832de
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x5832fb
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5832ec
add dl, dl
jne 0x583306
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x583352
xor eax, eax
add dl, dl
jne 0x583313
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5833ef
add dl, dl
jne 0x583322
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x58332d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x583338
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x583343
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x58334d
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x5832f2
mov eax, 1
add dl, dl
jne 0x583360
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x58336b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x583357
sub eax, 2
jne 0x58339a
mov ecx, 1
add dl, dl
jne 0x583380
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x58338b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x583377
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5832f2
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5833b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5833bc
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5833a8
cmp eax, 0x7d00
jae 0x5833df
cmp eax, 0x500
jb 0x5833da
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5832f2
cmp eax, 0x7f
ja 0x5833e2
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5832f2
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x58340b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5832f2
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0xc1cd20], 1
mov dword [0xc1cd1c], 1
mov dword [0xc1cd18], 1
mov dword [0xc1cd10], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x60d014], eax
mov eax, dword [0xc1cd2c]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0xc1cd40]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0xc1cd28]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x5cc944], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060