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

Disassembly:
push 0xffffffffffffffff
push 0x46c668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004658f9
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043b300
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00465827
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00462116
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00462116
push 1
push 0
push 0
mov ecx, esi
call fcn.004620be
push 1
push 0
push 1
mov ecx, esi
call fcn.004620be
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046596b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43bae0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004658f9
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043b300
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00465827
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43bba4
cmp dword [esp + 0x40], 1
jne 0x43bba2
cmp ecx, eax
jge 0x43bba4
mov eax, ecx
cmp eax, 0xc8
jge 0x43bbb0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043b960
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046596b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43c320
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c6f3
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.0046054d
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.00465ba1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004670bd
test eax, eax
je 0x43c43c
mov ecx, dword [esp + 0x3c]
call fcn.00465bce
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 0x43c400
push edi
mov ecx, esi
call fcn.0046322c
mov ecx, esi
call fcn.0043c5a0
cmp dword [esp + 0x38], 1
jne 0x43c435
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.00463367
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 0x43ee50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ee83
push esi
call fcn.00441f60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ee7c
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 0x43ef09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43eef2
mov eax, dword [esi + 8]
test eax, eax
je 0x43eea7
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 0x43eeee
cmp eax, 2
je 0x43eef2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ee9a
cmp eax, 3
je 0x43eecd
cmp eax, 1
jne 0x43ee9a
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 0x43ee9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ee9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ef30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ef18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ef30
add esp, 4
pop esi
ret
Function at 0x44a8b0
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 0x44a8f9
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 0x44ad70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46cba0
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.0044a920
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a9a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a9a0
lea ecx, [esi + 0xc]
call fcn.0045ef2a
lea ecx, [esi + 0x10]
call fcn.0045ef2a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044bf30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044bf30
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044bf30
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045ef9f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045ef9f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x44c120
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 0x44c186
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 0x44c186
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44c167
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x461329
Capabilities:
Get graphical window text

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

Function at 0x462a1a
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 0x462a5c
call fcn.00468461
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x462a5c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462a53
xor eax, eax
jmp 0x462a64
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462a6a
pop edi
pop esi
pop ebx
ret 4

Function at 0x468991
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 0x4689bf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4689dd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004688f7
jmp 0x4689dd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4689dd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004688f7
test edi, edi
mov eax, edi
jne 0x4689c7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, str.Domino
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x34]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x40bb64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004016f0
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401063
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
mov esi, dword [esp + 0x2c]
push esi
call fcn.00401190
mov ecx, dword [esp + 0x38]
push ecx
push esi
call fcn.004011f0
test eax, eax
jne 0x401085
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x14]
push 0
push edx
mov esi, eax
call edi
test eax, eax
je 0x4010e9
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push esi
push ecx
call ebx
test eax, eax
jne 0x4010d7
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
jne 0x4010b4
pop ebp
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x402590
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4071f8
push 0x4046d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40c570], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40c56c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40c568], ecx
shr eax, 0x10
mov dword [0x40c564], eax
call fcn.00404690
test eax, eax
jne 0x4025fa
push 0x1c
call fcn.00402760
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404490
call fcn.00404480
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40da94], eax
call fcn.00403e40
mov dword [0x40c534], eax
test eax, eax
je 0x40262d
mov eax, dword [0x40da94]
test eax, eax
jne 0x402637
push 0xffffffffffffffff
call fcn.004037a0
add esp, 4
call fcn.00403b90
call fcn.00403aa0
call fcn.00403770
mov esi, dword [0x40da94]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x402716
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40267e
test al, al
je 0x40267e
and eax, 0xff
push eax
call fcn.00403a40
add esp, 4
test eax, eax
je 0x402658
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402658
cmp byte [esi], 0x22
jne 0x402687
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x402697
cmp al, 0x20
ja 0x402697
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402687
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4026b8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4026bd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004037a0
jmp 0x4026fb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x402687
inc esi
mov dword [ebp - 0x64], esi
jmp 0x402716

Function at 0x402760
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40c53c], 1
jne 0x40276e
call fcn.004047b0
mov eax, dword [esp + 4]
push eax
call fcn.004047f0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4037e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40c5a0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4037ff
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40c59c], 1
mov byte [0x40c598], bl
jne 0x403859
mov ecx, dword [0x40da8c]
test ecx, ecx
je 0x403847
mov esi, dword [0x40da88]
sub esi, 4
cmp esi, ecx
jb 0x403847
mov eax, dword [esi]
test eax, eax
je 0x403840
call eax
mov ecx, dword [0x40da8c]
sub esi, 4
cmp esi, ecx
jae 0x403832
push 0x408020
push 0x408018
call fcn.00403890
add esp, 8
push 0x40802c
push 0x408024
call fcn.00403890
add esp, 8
test ebx, ebx
jne 0x403880
push ebp
mov dword [0x40c5a0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x403e40
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40c6b0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403e82
call edi
mov esi, eax
test esi, esi
je 0x403e6c
mov eax, 1
jmp 0x403e7d
call ebp
mov ebx, eax
test ebx, ebx
je 0x403f8f
mov eax, 2
mov dword [0x40c6b0], eax
cmp eax, 1
jne 0x403f22
test esi, esi
jne 0x403e9b
call edi
mov esi, eax
test esi, esi
je 0x403f8f
cmp word [esi], 0
mov eax, esi
je 0x403eb5
add eax, 2
cmp word [eax], 0
jne 0x403ea3
add eax, 2
cmp word [eax], 0
jne 0x403ea3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403f14
push edi
call fcn.004027e0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403f14
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403f06
push ebx
call fcn.00402790
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403f8f
test ebx, ebx
jne 0x403f33
call ebp
mov ebx, eax
test ebx, ebx
je 0x403f8f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403f4b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f3b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403f3b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004027e0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403f6d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x408408
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404814
add eax, 8
inc ebp
cmp eax, 0x408498
jb 0x404805
cmp ecx, dword [ebp*8 + 0x408408]
jne 0x4049bb
mov eax, dword [0x40c53c]
cmp eax, 1
je 0x40497d
test eax, eax
jne 0x404840
cmp dword [0x408140], 1
je 0x40497d
cmp ecx, 0xfc
je 0x4049bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40487b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4048c4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x407604
add ebx, ecx
push ebx
call fcn.00403670
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4075e4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40840c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405f10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40d980]
test eax, eax
je 0x40498e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404998
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40840c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x409e30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9193
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
call fcn.00402080
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
call fcn.00408f90
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x409e7a
mov ecx, dword [ebp - 0x2c]
call fcn.00408fd0
test eax, eax
jge 0x409e8e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004020c0
jmp 0x409fd6
mov ecx, dword [ebp - 0x2c]
call fcn.00409630
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
call dword [edx + 0x14]
test eax, eax
jg 0x409ebc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004020c0
jmp 0x409fd6
call fcn.0040c350
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call fcn.0040b8d0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x34]
call dword [edx + 0x14c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x409eec
cmp dword [ebp - 0x20], 2
jne 0x409eee
jmp 0x409f02
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004020c0
jmp 0x409fd6
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00409850
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x14]
call fcn.00429470
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.0040b160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00403590
movzx edx, al
test edx, edx
je 0x409f97
mov ecx, dword [ebp - 0x2c]
call fcn.00408f70
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.0040b090
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004020e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004020c0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str._s_s.rrs
lea edx, [ebp - 0x18]
push edx
call fcn.00406c90
add esp, 0x10
jmp 0x409fa3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004020e0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004098f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004020c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004020c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004020c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret