joyce8/EMBER2024-capa huggingface dataset:
Function at 0x678120
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x6782b8
cmp ebp, ebx
jle 0x6782b8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x67817e
dec eax
or eax, 0xfffffff8
inc eax
je 0x678185
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x678194
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x67819b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call 0x6baa32
add esp, 4
cmp eax, ebx
je 0x6781bc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call 0x6baa32
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x6782ae
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x678295
mov al, byte [edx]
cmp al, 0xc0
jbe 0x678281
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x678276
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x678284
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x678284
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x678220
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x678211
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x67fb70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f6f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.006806f0
lea edx, [esp + 0x18]
push eax
push edx
call dword [fcn.004fa690]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [fcn.004fa49c]
test eax, eax
je 0x67fc19
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0067f800
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [fcn.004fa4d0]
push edi
lea ecx, [esp + 0x4c]
call 0x6c17e0
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call 0x68ed90
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [fcn.004fa0c4]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [fcn.004fa44c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [fcn.004fa4dc]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call 0x6c1852
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x680150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f6fb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0067dd50
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x6801a9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0067b0a0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0067b090
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.0067f800
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [fcn.004fa44c]
push 0
lea ecx, [esp + 0x4c]
call 0x6c17e0
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call 0x68ed90
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0067d7b0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [fcn.004fa0c8]
mov ecx, ebx
call fcn.0067b010
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x680274
push edi
mov ecx, esi
call fcn.0067d8c0
push eax
push ebp
mov ecx, esi
call fcn.0067da80
cmp eax, dword [esp + 0x40]
jg 0x680270
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x68024e
mov eax, ebx
jmp 0x68027a
cmp edi, ebx
jl 0x680278
mov eax, ebx
jmp 0x68027a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x68028b
mov dword [esp + 0x30], eax
jmp 0x680296
cmp edi, ebx
jl 0x680291
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0067afd0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x6802dd
push edi
mov ecx, esi
call fcn.0067d7e0
push eax
push ebx
mov ecx, esi
call fcn.0067dbb0
cmp eax, dword [esp + 0x44]
jg 0x6802d5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x6802af
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x6802e7
cmp edi, ebp
jl 0x6802e1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x6802e7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x6802f0
mov ecx, eax
jmp 0x6802f9
cmp edi, ebp
jl 0x6802f6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.0067d7d0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call 0x6c1852
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x686230
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f7468
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x686269
inc eax
mov dword [esi + 0x10], eax
jmp 0x68637c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x68627d
mov eax, 0xffffffc7
jmp 0x68637e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x68628e
cmp dword [esi + 8], eax
jne 0x68627d
cmp dword [esi + 8], eax
jne 0x6862a7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x6862a7
mov eax, 0xffffffc7
jmp 0x68637e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x6862bb
push eax
mov ecx, ebx
call fcn.00685a60
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0065a550
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x6862ec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0065a570
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.006851d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x68631f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x585038
call fcn.0065a750
mov eax, dword [esp + 0x38]
jmp 0x68637e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00686090
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x686363
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.006860b0
mov esi, eax
test esi, esi
jne 0x686393
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00686090
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x686335
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x585038
call fcn.0065a750
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x585038
call fcn.0065a750
mov eax, esi
jmp 0x68637e
Function at 0x4181dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421b78
cmp edx, dword [eax]
je 0x4181ff
add eax, 8
inc ecx
cmp eax, 0x421c08
jl 0x4181f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421b78]
jne 0x41832d
mov eax, dword [0x434d68]
cmp eax, 1
je 0x418307
test eax, eax
jne 0x418230
cmp dword [0x421664], 1
je 0x418307
cmp edx, 0xfc
je 0x41832d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x418267
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00418e80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416950
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4182aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416950
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c960
push edi
call fcn.0041a5b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00418e80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418e90
lea eax, [ebp - 0xa0]
push 0x41c940
push eax
call fcn.00418e90
push dword [esi + 0x421b7c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418e90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a522
add esp, 0x2c
pop edi
jmp 0x41832d
lea eax, [ebp + 8]
lea esi, [esi + 0x421b7c]
push 0
push eax
push dword [esi]
call fcn.00416950
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 0x4080c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 0xc], 0
je 0x408182
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x408182
lea ecx, [ebp - 4]
push ecx
push 0x10008
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408180
cmp dword [ebp - 8], 0
jne 0x408176
mov dword [ebp - 0x10c], 0x100
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x103
jne 0x408158
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 8], eax
jmp 0x408176
cmp dword [ebp - 8], 0
jne 0x408174
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004080c0
add esp, 8
mov dword [ebp - 8], eax
jmp 0x408107
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408189
mov dword [ebp - 8], 0x3f2
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x409a40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.0040b790
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], str.CMD.EXE
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0040c120
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 0
mov byte [ebp - 0x1060], 0
push str.COMSPEC
call fcn.0040a2c0
add esp, 4
mov dword [ebp - 0x1068], eax
cmp dword [ebp - 0x1068], 0
je 0x409ac0
mov ecx, dword [ebp - 0x1068]
push ecx
lea edx, [ebp - 0x1060]
push edx
call fcn.00409de0
add esp, 8
jmp 0x409ad6
mov eax, dword [ebp - 0x1064]
push eax
lea ecx, [ebp - 0x1060]
push ecx
call fcn.00409de0
add esp, 8
push str.__c
lea edx, [ebp - 0x1060]
push edx
call fcn.00409df0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1060]
push ecx
call fcn.00409df0
add esp, 8
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x1060]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409b68
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x409b51
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x409c06
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41b87c], esi
push edi
jne 0x409c26
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41b878], esi
mov byte [0x41b874], al
jne 0x409c8c
mov ecx, dword [0x41cf28]
test ecx, ecx
je 0x409c6d
mov eax, dword [0x41cf24]
sub eax, 4
cmp eax, ecx
jmp 0x409c66
mov eax, dword [eax]
test eax, eax
je 0x409c58
call eax
mov eax, dword [0x41cf24]
sub eax, 4
cmp eax, dword [0x41cf28]
mov dword [0x41cf24], eax
jae 0x409c50
mov eax, 0x418020
mov esi, 0x418028
cmp eax, esi
mov edi, eax
jae 0x409c8c
mov eax, dword [edi]
test eax, eax
je 0x409c85
call eax
add edi, 4
cmp edi, esi
jb 0x409c7d
mov eax, 0x41802c
mov esi, 0x418030
cmp eax, esi
mov edi, eax
jae 0x409cab
mov eax, dword [edi]
test eax, eax
je 0x409ca4
call eax
add edi, 4
cmp edi, esi
jb 0x409c9c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x409cc5
push dword [ebp + 8]
mov dword [0x41b87c], 1
call fcn.00409b6c
pop ebp
ret
Function at 0x40b23e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b25e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c62e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40b27f
test byte [esp + 8], 2
je 0x40b27f
mov dword [0x41b830], 0xd
mov dword [0x41b834], 5
jmp 0x40b25a
xor eax, eax
ret

Function at 0x40b282
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x4153d0
call fcn.00410538
mov eax, dword [0x41b464]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40b38f
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x40b340
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b790
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x40b32d
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x40b38f
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x40b38f
mov al, byte [edi]
cmp al, 0x5c
je 0x40b34e
cmp al, 0x2f
jne 0x40b353
cmp al, byte [edi + 1]
je 0x40b389
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.004103db
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x40b38f
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c62e
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x40b3ab
push edi
call fcn.0040ae88
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0040cf33
call fcn.00410573
ret

Function at 0x40b3fd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b42b
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x40b430
cmp eax, 1
je 0x40b430
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b434
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41b464]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40b4aa
push ebx
call fcn.0040b3fd
test eax, eax
pop ecx
jne 0x40b479
mov dword [0x41b834], 0xf
mov dword [0x41b830], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040cf33
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40b4bc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40b46c
inc eax
cmp eax, 0x104
ja 0x40b46c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40b4f3
cmp eax, dword [ebp + 0x10]
jg 0x40b4d7
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040b094
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40b507
mov dword [0x41b830], 0xc
jmp 0x40b46c
cmp eax, dword [ebp + 0x10]
jle 0x40b507
mov dword [0x41b830], 0x22
jmp 0x40b46c
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00409de0
pop ecx
pop ecx
jmp 0x40b46e
Function at 0x40c1a5
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4158e8
call fcn.00410538
mov edi, 0x94
mov eax, edi
call fcn.0040b790
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 [0x41b83c], ecx
mov eax, dword [esi + 4]
mov dword [0x41b848], eax
mov edx, dword [esi + 8]
mov dword [0x41b84c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41b840], esi
cmp ecx, 2
je 0x40c205
or esi, 0x8000
mov dword [0x41b840], esi
shl eax, 8
add eax, edx
mov dword [0x41b844], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40c240
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c240
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40c258
cmp eax, 0x20b
je 0x40c245
mov dword [ebp - 0x1c], esi
jmp 0x40c26c
cmp dword [ecx + 0x84], 0xe
jbe 0x40c240
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40c266
cmp dword [ecx + 0x74], 0xe
jbe 0x40c240
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040eeae
pop ecx
test eax, eax
jne 0x40c298
cmp dword [0x41b8a0], 1
jne 0x40c285
call fcn.00411195
push 0x1c
call fcn.0041101e
push 0xff
call fcn.00409b6c
pop ecx
pop ecx
call fcn.0040c43d
mov dword [ebp - 4], esi
call fcn.00410b6e
test eax, eax
jge 0x40c2b1
push 0x1b
call fcn.0040c180
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41bcc8], eax
call fcn.00411671
mov dword [0x41b898], eax
call fcn.004115cf
test eax, eax
jge 0x40c2d7
push 8
call fcn.0040c180
pop ecx
call fcn.0041139c
test eax, eax
jge 0x40c2e8
push 9
call fcn.0040c180
pop ecx
push 1
call fcn.00409b9c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40c2fe
push eax
call fcn.0040c180
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041133f
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40c31f
movzx eax, word [ebp - 0x40]
jmp 0x40c322
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40c340
push edi
call fcn.00409cc7
call fcn.00409ce9
jmp 0x40c372
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410573
ret