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

Disassembly:
push 0xffffffffffffffff
push 0x100b0903
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.100a39a1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.100a9007
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100aa523
test eax, eax
je 0x1006d58c
mov ecx, dword [esp + 0x3c]
call fcn.100a9034
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 0x1006d550
push edi
mov ecx, esi
call fcn.100a66a4
mov ecx, esi
call fcn.1006d6f0
cmp dword [esp + 0x38], 1
jne 0x1006d585
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.100a67df
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 0x1006ffb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1006ffe3
push esi
call fcn.100730b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1006ffdc
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 0x10070069
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10070052
mov eax, dword [esi + 8]
test eax, eax
je 0x10070007
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 0x1007004e
cmp eax, 2
je 0x10070052
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1006fffa
cmp eax, 3
je 0x1007002d
cmp eax, 1
jne 0x1006fffa
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 0x1006fffa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1006fffa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10070090
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10070078
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10070090
add esp, 4
pop esi
ret

Function at 0x1007cb20
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 0x1007cbc3
test eax, eax
jbe 0x1007cbc3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x1007cbc3
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 0x1007cb6e
xor esi, esi
jmp 0x1007cb74
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x1007cb9f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.10032dd0
add esi, eax
push esi
mov ebx, esi
call fcn.10032dd0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x1007cb80
pop ebp
test edi, edi
pop edi
jne 0x1007cbc3
test ebx, ebx
je 0x1007cbc3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.100908f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x1007cd00
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 0x1007ce1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1007ce1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.100a3de9
mov esi, eax
test esi, esi
je 0x1007ce1d
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 0x1007ce1d
mov ecx, esi
call fcn.1007cc70
cmp edi, eax
jge 0x1007ce1d
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 0x1007cda3
mov dword [esp + 0x34], 1
jmp 0x1007cdfe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1007ce1d
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.1007b500
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 0x100812f0
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 0x10081356
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 0x10081356
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x10081337
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x100816e0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10081718
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 0x10082340
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 0x10082389
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 0x10082800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b13d0
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.100823b0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10082430
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10082430
lea ecx, [esi + 0xc]
call fcn.100a2348
lea ecx, [esi + 0x10]
call fcn.100a2348
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100839c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100839c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100839c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.100a23bd
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.100a23bd
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10088c90
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x348
push ebx
push esi
push edi
mov edi, ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea eax, [esp + 0xc]
push 7
and esi, 0xffff
push eax
push 0x1004
push esi
call ebx
lea ecx, [esp + 0xc]
push ecx
call fcn.1008fdd8
add esp, 4
lea edx, [esp + 0x14c]
mov dword [edi + 4], eax
push 0x104
push edx
push 0x1002
push esi
call ebx
lea eax, [esp + 0x14c]
lea ecx, [edi + 0xc]
push eax
call fcn.100a24fa
lea ecx, [esp + 0xc]
push 7
push ecx
push 5
push esi
call ebx
lea edx, [esp + 0xc]
push edx
call fcn.1008fdd8
add esp, 4
mov dword [edi + 0x10], eax
lea eax, [esp + 0x3c]
push 0x64
push eax
push 0x1003
push esi
call ebx
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [edi + 0x14]
call fcn.100a24fa
lea edx, [esp + 0x3c]
push 0x64
push edx
push 0x20
push esi
call ebx
lea eax, [esp + 0x3c]
lea ecx, [edi + 8]
push eax
call fcn.100a24fa
lea ecx, [esp + 0x14]
push 7
push ecx
push 0x14
push esi
call ebx
lea edx, [esp + 0x14]
lea ecx, [edi + 0x18]
push edx
call fcn.100a24fa
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x250]
push 0x104
and eax, 0xffff
push ecx
push eax
call sub.VERSION.dll_VerLanguageNameA
cmp eax, 0x104
ja 0x10088d94
lea edx, [esp + 0x250]
lea ecx, [edi + 0x1c]
push edx
call fcn.100a24fa
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x10088dcf
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x1c]
push ecx
push 0x10111940
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [edi + 0x20]
push eax
call fcn.100a24fa
pop edi
pop esi
pop ebx
add esp, 0x348
ret
Function at 0x100940ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10114788
cmp edx, dword [eax]
je 0x100940f0
add eax, 8
inc ecx
cmp eax, 0x10114818
jl 0x100940e1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10114788]
jne 0x1009421e
mov eax, dword [0x10152824]
cmp eax, 1
je 0x100941f8
test eax, eax
jne 0x10094121
cmp dword [0x10152828], 1
je 0x100941f8
cmp edx, 0xfc
je 0x1009421e
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10094158
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10096b50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10096820
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1009419b
lea eax, [ebp - 0x1a4]
push eax
call fcn.10096820
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1010fb44
push edi
call fcn.100908f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10096b50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10096b60
lea eax, [ebp - 0xa0]
push 0x100fa6d8
push eax
call fcn.10096b60
push dword [esi + 0x1011478c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10096b60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1009b1e3
add esp, 0x2c
pop edi
jmp 0x1009421e
lea eax, [ebp + 8]
lea esi, [esi + 0x1011478c]
push 0
push eax
push dword [esi]
call fcn.10096820
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x100a4770
Capabilities:
Get graphical window text

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

Function at 0x100a5e61
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 0x100a5ea3
call fcn.100abbc9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100a5ea3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100a5e9a
xor eax, eax
jmp 0x100a5eab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100a5eb1
pop edi
pop esi
pop ebx
ret 4
Function at 0x1ccdc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor edi, edi
cmp byte [0x24db4], 0
mov dword [ebp - 8], edi
jne 0x1cdee
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], 0x274c8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp dword [ebp - 8], edi
je 0x1cdee
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebx, ebx
push 0x1f562
lea eax, [ebp - 0x10]
inc ebx
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1ee1a
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1f558
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1f54c
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
mov ecx, 0x1f524
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1cdc3
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push ebx
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x1cf74
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0001cc7c
mov eax, dword [ebp + 0xc]
mov dword [0x20d3c], eax
mov eax, dword [ebp + 0x10]
push 1
mov esi, 0x26e00
push esi
mov dword [0x20d40], eax
mov dword [0x24db8], ebx
mov byte [0x24dbc], bl
call dword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
push ebx
push 0x15f90
or ecx, 0xffffffff
push ecx
mov eax, 0xca5b1700
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
push ebx
push 0x1cb78
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov esi, 0x1f03ff
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, ebx
jl 0x1d022
push ebx
push 0x24db8
push ebx
push ebx
push esi
push dword [ebp - 4]
inc dword [eax]
sal byte [esi], 0x83
add bh, bh
jne 0x1d014
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401639
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40f2e0]
mov dword [esp + 4], eax
mov dword [esp], str.Usage:__s__OPTIONS__n
call sym._printf
mov dword [esp], 1
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x66
mov dword [esp + 4], 1
mov dword [esp], str.Check_the_accuracy_of_hyphenation_in_Braille_translation_for_both_ntranslated_and_untranslated_words._n_n
call sym._fwrite
mov dword [esp], 1
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x6c
mov dword [esp + 4], 1
mov dword [esp], str.___h____help__________display_this_help_and_exit_n___v____version_______display_version_information_and_exit_n
call sym._fwrite
mov dword [esp], 0x40c1ed
call sym._printf
mov dword [esp + 4], 0x40c1f0
mov dword [esp], str.Report_bugs_to__s._n
call sym._printf
mov dword [esp + 8], 0x40c227
mov dword [esp + 4], 0x40c23e
mov dword [esp], 0x40c247
call sym._printf
nop
leave
ret

Function at 0x402330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x402348
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2d
jne 0x402383
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 2
add dword [ebp + 0x10], 1
jmp 0x4023c9
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2b
jne 0x40239d
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
add dword [ebp + 0x10], 1
jmp 0x4023c9
cmp dword [ebp + 0x18], 0
jne 0x4023b3
mov dword [esp], str.POSIXLY_CORRECT
call sym._getenv
test eax, eax
je 0x4023bf
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
jmp 0x4023c9
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 1
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x10], 1
mov eax, dword [ebp + 0x10]
leave
ret
Function at 0x402cd4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
jne 0x402d13
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
call sym._fwrite
call sym._abort
mov dword [esp + 4], 0x2f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strrchr
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402d37
mov eax, dword [ebp - 0xc]
add eax, 1
jmp 0x402d3a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 8]
cmp eax, 6
jle 0x402d98
mov eax, dword [ebp - 0x10]
sub eax, 7
mov dword [esp + 8], 7
mov dword [esp + 4], str._.libs_
mov dword [esp], eax
call sym._strncmp
test eax, eax
jne 0x402d98
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40c6f8
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._strncmp
test eax, eax
jne 0x402d98
mov eax, dword [ebp - 0x10]
add eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [0x40f2e0], eax
nop
leave
ret

Function at 0x403710
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x403770
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40f318]
test esi, esi
jle 0x403890
mov eax, dword [0x40f31c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4037a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x403827
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x403790
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4038b7
mov eax, dword [0x40f31c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40f31c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x403897
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x403820
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x403830
add dword [0x40f318], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40f31c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x403820
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4037ae
mov eax, dword [0x40f31c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x403d70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40f334
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40f32c]
sub esp, 4
test ebx, ebx
je 0x403dc5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403dbe
test esi, esi
je 0x403dbe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403da0
mov dword [esp], 0x40f334
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4040f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x404115
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x404120
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x404115
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x404168
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40415e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40416a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x404150
xor eax, eax
pop ebx
pop esi
ret