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

Disassembly:
push 0xffffffffffffffff
push 0x4c1973
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.004b4bc2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004ba25b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004bb777
test eax, eax
je 0x463a1c
mov ecx, dword [esp + 0x3c]
call fcn.004ba288
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 0x4639e0
push edi
mov ecx, esi
call fcn.004b78f0
mov ecx, esi
call fcn.00463bc0
cmp dword [esp + 0x38], 1
jne 0x463a15
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.004b7a2b
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 0x465c00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x465c33
push esi
call fcn.00473f00
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x465c2c
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 0x465cb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x465ca2
mov eax, dword [esi + 8]
test eax, eax
je 0x465c57
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 0x465c9e
cmp eax, 2
je 0x465ca2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x465c4a
cmp eax, 3
je 0x465c7d
cmp eax, 1
jne 0x465c4a
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 0x465c4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x465c4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00465ce0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x465cc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00465ce0
add esp, 4
pop esi
ret

Function at 0x466550
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x466571
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x466571
mov eax, dword [eax + 0x44]
test eax, eax
je 0x466571
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 0x480a20
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 0x480ac3
test eax, eax
jbe 0x480ac3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x480ac3
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 0x480a6e
xor esi, esi
jmp 0x480a74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x480a9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00482ab0
add esi, eax
push esi
mov ebx, esi
call fcn.00482ab0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x480a80
pop ebp
test edi, edi
pop edi
jne 0x480ac3
test ebx, ebx
je 0x480ac3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004a3990
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x480be5
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 0x480cfd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x480cfd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b5014
mov esi, eax
test esi, esi
je 0x480cfd
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 0x480cfd
mov ecx, esi
call fcn.00480b70
cmp edi, eax
jge 0x480cfd
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 0x480c83
mov dword [esp + 0x34], 1
jmp 0x480cde
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x480cfd
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.00480170
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 0x485490
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 + 0x1569944]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4854a3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4854e4
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 + 0x15699ec]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x485516
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48551a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x48550b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x485538
mov bl, byte [esp + ecx + 0x4c]
jmp 0x48553c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x48552d
xor ecx, ecx
mov eax, 0x1569954
xor ebx, ebx
mov bl, byte [ecx + 0x15699fc]
cmp byte [esp + ebx + 0x14], 0
je 0x485567
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x1569a14]
cmp byte [esp + ebx + 0x14], 0
je 0x48557e
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 0x48554e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4854d7
lea edx, [esp + 0x84]
push edx
call fcn.004855c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x48d8a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x15a3850]
xor edx, edx
cmp eax, edx
jne 0x48d8c6
xor eax, eax
mov byte [eax + 0x15a3750], al
inc eax
cmp eax, 0x100
jl 0x48d8ae
mov dword [0x15a3850], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x15a3750
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x48d957
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 0x48d92a
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 0x48d8f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48d960
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 0x48d9b3
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 0x48d99a
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 0x494330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c209e
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.00494c50
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x154de1c
call fcn.004b3355
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4943c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b3355
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4943bc
push 0
mov ecx, eax
call fcn.0048b4d0
mov dword [esi + 0xc], eax
jmp 0x4943c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4943c5
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 0x4b59b8
Capabilities:
Get graphical window text

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

Function at 0x4b70ad
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 0x4b70ef
call fcn.004bcb62
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b70ef
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b70e6
xor eax, eax
jmp 0x4b70f7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b70fd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bd092
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 0x4bd0c0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bd0de
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004bcff8
jmp 0x4bd0de
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bd0de
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004bcff8
test edi, edi
mov eax, edi
jne 0x4bd0c8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401534
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [eax]
mov eax, dword [esp + 0xc]
push 2
pop ecx
mov edx, dword [eax]
xor eax, eax
cmp byte [edi + 0x24], al
cmovne eax, ecx
push eax
push 0
push edi
push 0x4015a0
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x401581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x40157d
push 0
push esi
push ecx
mov ecx, edi
call fcn.00401bf3
mov eax, esi
jmp 0x40159b
cmp byte [edi + 0x1c], 0
je 0x401599
cmp byte [edi + 0x1d], 0
je 0x401599
push 0
push dword [edi + 0x20]
mov ecx, edi
call fcn.00401bd3
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40165e
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x45594f
call fcn.0043cc79
mov ebx, ecx
xor edi, edi
cmp byte [ebx + 0x46], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jne 0x401680
cmp word [ebx + 0x36], di
jbe 0x4016ce
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
call fcn.00404cfc
mov esi, eax
test esi, esi
je 0x4016a3
push edi
push esi
push ecx
lea ecx, [ebx + 0x28]
call fcn.00401bf3
mov eax, esi
jmp 0x401776
lea esi, [ebx + 0x48]
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x4016bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401691
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4016b5
lea eax, [ebx + 0x36]
cmp word [eax], di
jbe 0x401704
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4016b5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x401704
mov eax, 0xe0000013
jmp 0x401776
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00401b37
add eax, 0x10
mov dword [ebp - 0x10], eax
push str..part
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00401881
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040595f
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
jne 0x40175c
cmp byte [ebx + 0x34], 0
je 0x40177e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40177e
lea eax, [ebp - 0x10]
push eax
call fcn.004017db
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40177e
push edi
push eax
push ecx
lea ecx, [ebx + 0x28]
call fcn.00401bf3
mov eax, dword [ebp - 0x14]
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov eax, edi
call fcn.0043cc42
ret 8
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00401534
test eax, eax
jne 0x40176a
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4017ce
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4017c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x40175c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 1
lea ecx, [ebx + 0x28]
call fcn.00401bd3
jmp 0x40176c
Function at 0x402c28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402c81
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c72
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402c6e
cmp esi, ecx
jae 0x402c72
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x402c5c
cmp esi, ecx
jb 0x402c76
xor eax, eax
jmp 0x402c80
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403741
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403773
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0x467a50
call fcn.00404635
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4038aa
Capabilities:
Get geographical location

Disassembly:
push 8
mov eax, 0x455beb
call fcn.0043cc79
xor ebx, ebx
movzx eax, cx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4038d6
xor al, al
jmp 0x403942
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043c1e2
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
push edi
push esi
push 0x1004
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
je 0x403939
call fcn.00402af7
push eax
lea eax, [edi - 1]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004028b4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00402825
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov bl, 1
push esi
call fcn.0043c1dd
pop ecx
mov al, bl
call fcn.0043cc42
ret
Function at 0x403f85
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x455ce5
call fcn.0043cc79
mov dword [ebp - 0x14], edx
mov edi, ecx
push 0x3c
pop esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0043dd90
mov eax, 0x400
mov dword [ebp - 0x54], esi
mov esi, dword [edi]
add esp, 0xc
cmp dword [ebp + 8], ebx
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.0040576f
test al, al
je 0x403fd0
add esi, 8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], 1
mov ecx, dword [ecx]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], ebx
cmovne eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jne 0x404011
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004053aa
mov dword [ebp - 4], ebx
xor ebx, ebx
mov edi, dword [ebp + 0x18]
inc ebx
jmp 0x40402c
add ecx, 0xfffffff0
call fcn.00401b37
lea edi, [eax + 0x10]
mov dword [ebp + 0x18], edi
push 2
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 1
pop ebx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x10], ebx
call fcn.00401b37
lea esi, [eax + 0x10]
mov dword [ebp + 0x18], esi
mov dword [ebp - 4], 2
test bl, 2
je 0x404056
lea ecx, [edi - 0x10]
and ebx, 0xfffffffd
call fcn.00401b8a
mov byte [ebp - 4], 4
test bl, 1
je 0x40406a
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
lea ecx, [ebp + 0x18]
mov edi, esi
call fcn.0040576f
test al, al
je 0x40407b
lea edi, [esi + 8]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404090
xor ebx, ebx
jmp 0x4040b6
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4040a5
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4040b4
call fcn.004040c6
mov dword [ebx], eax
cmp dword [ebp - 0x1c], 0
je 0x4040b4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov al, bl
call fcn.0043cc42
ret
Function at 0x405261
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x47806c]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov eax, edx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push ecx
mov dword [esp + 0x38], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x405359
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x405359
test edi, edi
je 0x405359
push 0x10000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.0040411b
mov esi, dword [esp + 0x18]
test esi, esi
je 0x405352
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
mov ebp, ebx
mov byte [esp + 0x13], bl
call fcn.0040628d
push ebx
lea eax, [esp + 0x18]
push eax
push 0x10000
push esi
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40533a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40533a
lea eax, [ecx + ebp]
cmp eax, edi
jbe 0x405325
mov ecx, edi
mov byte [esp + 0x13], 1
sub ecx, ebp
mov dword [esp + 0x14], ecx
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.0040611b
add ebp, dword [esp + 0x14]
cmp byte [esp + 0x13], bl
je 0x4052ef
lea ecx, [esp + 0x28]
call fcn.004061ba
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call fcn.0040623a
mov bl, al
push esi
call fcn.0043c1dd
pop ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x467a50
call fcn.00404635
mov ecx, dword [esp + 0x9c]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043c1a9
add esp, 0x94
ret

Function at 0x405446
Capabilities:
Delete directory

Disassembly:
push 4
mov eax, 0x455c90
call fcn.0043cc79
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x4054a6
call fcn.0040576f
test al, al
jne 0x4054a6
push str.__
lea ecx, [ebp - 0x10]
call fcn.00402eb5
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.004019fa
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401b8a
jmp 0x4054b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x4054c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
call fcn.0043cc42
ret