joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49db04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d9980]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49db4a
cmp word [ebx], dx
jne 0x49db4a
or byte [eax + edi + 0x28], 4
jmp 0x49db4f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x49dcb2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x49dc92
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x49db90
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49dbc6
cmp eax, edx
jae 0x49dbd4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49db6b
jmp 0x49dcb2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49dc8d
cmp dword [ebp - 0x18], 0
je 0x49dc8d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d9980]
test byte [eax + edi + 0x28], 0x48
je 0x49dc63
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x49dc27
mov word [esi], cx
jmp 0x49dc5e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d9980]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d9980]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d9980]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x49dcb2
pop eax
cmp word [ebp - 4], ax
jne 0x49dc73
cmp esi, ebx
jne 0x49dc73
mov word [esi], ax
jmp 0x49dcaf
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49dcb2
push 0xd
pop eax
jmp 0x49dc6e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d9980]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49dcac
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x49dcb2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a175d
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a17a8
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a1bd2
test al, al
jne 0x4a17a2
sub edx, 2
cmp edx, edi
jne 0x4a1788
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a17ca
lea eax, [edi + 2]
cmp edx, eax
je 0x4a17ca
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a1356
add esp, 0x10
jmp 0x4a18c4
push esi
lea ecx, [ebp - 0x255]
call fcn.004a1bd2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a180d
push dword [ebp - 0x25c]
jmp 0x4a17ba
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a184a
cmp word [ebp - 0x226], 0
je 0x4a186b
cmp word [ebp - 0x226], ax
jne 0x4a184a
cmp word [ebp - 0x224], 0
je 0x4a186b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a1356
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a18b7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a1824
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a189f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a18c4
push 0x4a0d3e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004056aa
add esp, 0x10
jmp 0x4a1894
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403139
leave
ret

Function at 0x4a71bf
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404412
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a722e
cmp esi, dword [ebp - 4]
je 0x4a7229
cmp dword [ebp + 0xc], 0
je 0x4a7229
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a7206
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a6be7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a7230
xor eax, eax
inc eax
jmp 0x4a7230
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x405a7c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x405ac4
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call fcn.00404e00
test eax, eax
jne 0x405aba
cmp word [edi], 0x5a4d
jne 0x405aba
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x405aba
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405ad0
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40936c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
jmp 0x409399
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x409418
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00406fa0
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4093e6
mov cx, word [esp]
sub cx, si
jmp 0x4093e8
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4093cf
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x40940e
mov cx, word [esp]
sub cx, si
jmp 0x409410
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4093f7
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x409475
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0040904c
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x409460
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x409475
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x409376
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x412f0c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call fcn.00404d20
push eax
call fcn.00404d70
mov ebx, eax
test ebx, ebx
jns 0x412f2a
call fcn.00402954
call fcn.00404d30
push eax
call fcn.00404d98
mov esi, eax
push pe_nt_image_headers32
call fcn.00404d20
push eax
call fcn.00404e90
push 0xf
call fcn.00404d30
push eax
call fcn.00404e98
push 0xa
call fcn.00404ea0
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call fcn.00404ea0
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call fcn.00404d30
push eax
call fcn.00404e98
test ebx, ebx
jns 0x412f90
call fcn.00402954
push ebx
call fcn.00404d20
push eax
call fcn.00404e90
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x412fc8]
call fcn.00402660
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401229
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40123d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40125e
cmp esi, eax
jae 0x401237
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401250
cmp esi, eax
jae 0x401237
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ea78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401de0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401c40
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402022
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404040
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x43e370]
push ebx
push esi
push edi
push 0
mov dword [esp + 0x118], eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebx, eax
test ebx, ebx
je 0x4040d1
lea esp, [esp]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 5
mov edi, str.HLSW
lea esi, [esp + 0x10]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4040c2
mov ecx, 3
mov edi, str.HLSW_A
lea esi, [esp + 0x10]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
je 0x4040c2
push eax
push eax
push 0x12
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x404070
mov ecx, dword [esp + 0x114]
call fcn.00411557
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404180
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4041e1
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4041c3
cmp eax, 2
jne 0x4041d3
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4041dd
mov cl, byte [eax + esi - 1]
test cl, cl
je 0x4041dd
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x404a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ed80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.00424324
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esp + 0x28]
push 8
push 0
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x30], 1
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
test eax, eax
jge 0x404ac6
push eax
call fcn.004011f0
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.004047c0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x404b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ed98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, dword [esp + 0x30]
test edi, edi
je 0x404b63
mov eax, dword [edi]
jmp 0x404b65
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0xc]
push edx
push eax
push esi
call dword [ecx + 0xb0]
test eax, eax
jge 0x404b84
push 0x430d78
push esi
push eax
call fcn.0041eeb0
test edi, edi
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov word [esp + 0xc], 0
je 0x404bb7
mov ecx, edi
call fcn.00404750
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4075f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov al, byte [esp + 0x24]
mov byte [esp + 0x24], al
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
push 1
lea edx, [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x28], edi
call fcn.00401de0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401c40
mov edi, dword [esp + 0x34]
add eax, 0x10
add esp, 0x18
mov dword [edi], eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407686
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x408e4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x408ea0
call fcn.0042b14e
mov edi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x408ea0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x408e96
xor eax, eax
jmp 0x408fb9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x408ed0
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x408ed0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x408fb6
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x408efd
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004099d7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x408fb6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408f46
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x408f46
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x408f40
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004099d7
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x408fa6
and dword [ebp + 0xc], 0
jmp 0x408fa6
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x408fa6
push 0xc
call fcn.004234ba
mov esi, eax
test esi, esi
pop ecx
je 0x408f88
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x408f8a
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x408fa1
push dword [ebp - 8]
call fcn.0041fb6c
jmp 0x408fa6
call fcn.0041fb43
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x408f0b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41237f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x434538
call fcn.00413574
push 8
call fcn.00417c94
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x441494], esi
jne 0x4123b3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x441490], esi
mov al, byte [ebp + 0x10]
mov byte [0x44148c], al
cmp dword [ebp + 0xc], edi
jne 0x4123fd
cmp dword [0x442d4c], edi
je 0x4123ed
mov eax, dword [0x442d48]
sub eax, 4
mov dword [0x442d48], eax
cmp eax, dword [0x442d4c]
jb 0x4123ed
mov eax, dword [eax]
cmp eax, edi
je 0x4123ce
call eax
jmp 0x4123ce
push 0x43d0b4
mov eax, 0x43d0ac
call fcn.004122fd
pop ecx
push 0x43d0c0
mov eax, 0x43d0b8
call fcn.004122fd
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41242e
cmp dword [ebp + 0x10], edi
jne 0x41243c
mov dword [0x441494], esi
push dword [ebp + 8]
call fcn.004122bb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41243b
push 8
call fcn.00417bdf
pop ecx
ret
call fcn.004135af
ret

Function at 0x4125e6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004127e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412681
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x441454]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x412681
cmp eax, 1
je 0x4126a2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x412681
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41264e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41267d
xor eax, eax
inc eax
jmp 0x4126c1
cmp edi, eax
jae 0x412685
xor eax, eax
jmp 0x4126c1
cmp eax, esi
jae 0x41268c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x441454]
jmp 0x4126a5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412882
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x434588
call fcn.00413574
mov edi, 0x94
mov eax, edi
call fcn.004127e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x441454], ecx
mov eax, dword [esi + 4]
mov dword [0x441460], eax
mov edx, dword [esi + 8]
mov dword [0x441464], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x441458], esi
cmp ecx, 2
je 0x4128e2
or esi, 0x8000
mov dword [0x441458], esi
shl eax, 8
add eax, edx
mov dword [0x44145c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41291d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41291d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412935
cmp eax, 0x20b
je 0x412922
mov dword [ebp - 0x1c], esi
jmp 0x412949
cmp dword [ecx + 0x84], 0xe
jbe 0x41291d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x412943
cmp dword [ecx + 0x74], 0xe
jbe 0x41291d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004181b0
pop ecx
test eax, eax
jne 0x41295d
push 0x1c
call fcn.0041285e
pop ecx
call fcn.00415b91
test eax, eax
jne 0x41296e
push 0x10
call fcn.0041285e
pop ecx
call fcn.004180a0
mov dword [ebp - 4], esi
call fcn.004196d0
test eax, eax
jge 0x412987
push 0x1b
call fcn.00412839
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x442d40], eax
call fcn.004195ae
mov dword [0x441498], eax
call fcn.0041950c
test eax, eax
jge 0x4129ad
push 8
call fcn.00412839
pop ecx
call fcn.004192d9
test eax, eax
jge 0x4129be
push 9
call fcn.00412839
pop ecx
push 1
call fcn.00412315
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4129d4
push eax
call fcn.00412839
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041927c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4129f5
movzx eax, word [ebp - 0x40]
jmp 0x4129f8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041f366
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x412a16
push edi
call fcn.00412442
call fcn.00412464
jmp 0x412a48
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004135af
ret