joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e90
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405058]
test esi, esi
jle 0x401fdd
mov edi, dword [0x40505c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401f24
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401fd6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401f10
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40201a
lea ebx, [esi + esi*2]
mov esi, dword [0x40505c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x40505c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ffa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401fcf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401fcf
mov eax, dword [esp + 0x20]
add ebx, dword [0x40505c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401fe4
add dword [0x405058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401f2e
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
mov eax, dword [0x40505c]
mov eax, dword [eax + ebx + 4]
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]
Function at 0x4024e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402535
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 0x40252e
test esi, esi
je 0x40252e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402510
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402750
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x402788
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x40277e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40278a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402770
xor eax, eax
pop ebx
pop esi
ret
Function at 0x407dcd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428df0
cmp edx, dword [eax]
je 0x407def
add eax, 8
inc ecx
cmp eax, 0x428e80
jl 0x407de0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428df0]
jne 0x407f1d
mov eax, dword [0x42bf60]
cmp eax, 1
je 0x407ef7
test eax, eax
jne 0x407e20
cmp dword [0x4287d4], 1
je 0x407ef7
cmp edx, 0xfc
je 0x407f1d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407e57
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402d70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402e60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407e9a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402e60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x422e8c
push edi
call fcn.00403180
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402d70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402d80
lea eax, [ebp - 0xa0]
push 0x422e6c
push eax
call fcn.00402d80
push dword [esi + 0x428df4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402d80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b33d
add esp, 0x2c
pop edi
jmp 0x407f1d
lea eax, [ebp + 8]
lea esi, [esi + 0x428df4]
push 0
push eax
push dword [esi]
call fcn.00402e60
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 0x40f4d5
Capabilities:
Get graphical window text

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

Function at 0x4112d7
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 0x411319
call fcn.0041d914
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x411319
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x411310
xor eax, eax
jmp 0x411321
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411327
pop edi
pop esi
pop ebx
ret 4
Function at 0x407ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
ror byte [ebx + 0x4a2bbfa], 0x30
das
out dx, eax
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
not byte [ebp - 0x4e]
push eax
mov esp, dword [esi]
adc byte [edx + 1], ch
push ecx
mov ecx, dword [ebp - 3]
push edx
mov edi, dword [ebx]
or byte [eax - 0x62], dl
push edx
call 0xcf7ef0
add esp, 0xffffffae
pop ebp
js 0x407e78
nop
nop
xchg esp, eax
nop
nop
nop
nop
lds edx, [eax]
mov ebp, esp
sub esp, 0x14
sbb byte [ebp + 0x10], bh
inc ebp
insd dword es:[edi], dx
pop es
mov dword [ebp + 0x10], 0xfb99004e
fld qword [ebp + 5]
pop ebx
sbb eax, 0x7b402430
mov ecx, dword [ebp + 0x18]
push ebx
mov edx, dword [ecx + 0x20]
push esi
sub esi, esi
push edi
fucompi st(4)
xor byte [eax + eax*2], ah
jnp 0x407e98
dec ebp
sbb byte [ebx - 0x75], dl
push ecx
and byte [esi + 0x29], dl
not byte [edi - 0x21]
in al, dx
mov dword [edx], eax
cld
mov dword [ecx], esi
idiv byte [ebp + eax - 0x75]
sti
jp 0x407f75
fst qword [ecx - 3]
fchs
fstp qword [ebp + 8]
mov dword [ecx], 0x220a0001
mov esi, dword [ebp + 0xc]
adc dword [ebp + 8], 0xffffff8d
inc ebp
pop edx
push eax
push ecx
loopne 0x407f08
pop ebp
or bh, al
add dword [ecx], eax
add byte [edx], cl
and cl, byte [ebx + 0x55830c75]
or byte [ebp + 0x51505a45], cl
push edx
call dword [0x403d3e]
push eax
pop ebp
or ch, bl
inc ebp
in al, dx
nop
sbb eax, 0x40c230
sub dword [eax + 0xc], 0xffffffdf
loopne 0x407f6f
les ecx, [ebx + edi*2 + 0x50738d72]
cmp esi, ebx
jbe 0x407fba
fld qword [ebp - 0x14]
in al, dx
fcomp qword [0x40fb3d]
dec edi
loopne 0x407f64
les eax, [ebx + edi*2 - 0x49]
inc esp
jnp 0x407f29
fld qword [ebp - 0x14]
fmul qword [0x7e40c310]
lea ebp, [edi - 0x14]
push eax
xor esp, ebp
or ch, bl
push eax
and al, 0xff
adc eax, 0x40c136
pop ebx
pop ebp
hlt
lea eax, [ebx + 0xa]
add ah, byte [edi + 0x73]
pop esp
mov dl, byte [esi]
mov byte [edi], dl
inc edi
inc esi
cmp esi, eax
jb 0x407fc1
jmp 0x40801d
mov ch, 0x45
adc byte [ebp + 0x458b1834], cl
sbb al, 0x85
sal byte [ebp + 3], 3
imul edi, dword [ebx - 0x75], 0x4d
adc al, 0x3b
add dword [ebx - 0x79], esi
mov ebp, dword [ebp - 0x2708a0e2]
mov dword [ecx], eax
into
les eax, [eax]
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
mov dword [0x38558be6], eax
stc
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1c08547e
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xbdf3f95
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x415042
Capabilities:
Parse pe header

Disassembly:
push 0x14
push 0x431af8
call fcn.00419c30
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x414f43
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x414f43
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x414f43
cmp dword [eax + 0x400074], 0xe
jbe 0x414f43
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x414f47
and dword [ebp - 0x1c], 0
push 1
call fcn.0041be16
pop ecx
test eax, eax
jne 0x414f5b
push 0x1c
call fcn.00414ec8
pop ecx
call fcn.004196c6
test eax, eax
jne 0x414f6c
push 0x10
call fcn.00414ec8
pop ecx
call fcn.0041eff7
and dword [ebp - 4], 0
call fcn.0041ae57
test eax, eax
jge 0x414f86
push 0x1b
call fcn.00419926
pop ecx
call fcn.0041efee
mov dword [0x439adc], eax
call fcn.0041ef97
mov dword [0x437cdc], eax
call fcn.0041eee9
test eax, eax
jge 0x414fab
push 8
call fcn.00419926
pop ecx
call fcn.0041ecba
test eax, eax
jge 0x414fbc
push 9
call fcn.00419926
pop ecx
push 1
call fcn.004199e5
pop ecx
test eax, eax
je 0x414fcf
push eax
call fcn.00419926
pop ecx
mov eax, dword [0x438044]
mov dword [0x438048], eax
push eax
push dword [0x438038]
push dword [0x438030]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x414ffd
push eax
call fcn.00419b96
call fcn.00419bc2
jmp 0x415032
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00419c75
ret
call 0x4ce000
jmp 0x414ef1
Function at 0x401650
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x84
mov eax, dword [0x42452c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
call fcn.0040a310
push 0
mov esi, eax
push 0x80
lea eax, [esp + 0x10]
push eax
mov dword [esi + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageA]
movzx ecx, ax
push ecx
push edi
push 0
push 0x10ff
call ebx
test eax, eax
jne 0x4016cb
push eax
push 0x80
lea edx, [esp + 0x10]
push edx
push eax
push edi
push eax
push 0x10ff
call ebx
test eax, eax
jne 0x4016cb
push edi
lea eax, [esp + 0xc]
push str.unknown_Windows_NT_error__ld
push eax
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x41ea54
push 1
push eax
mov eax, dword [ecx + 0x18]
call eax
add esp, 0x10
mov dword [esi + 0x28], 1
call fcn.00404420
mov ecx, dword [esp + 0x88]
pop esi
pop ebx
xor ecx, esp
call fcn.0041b1f8
add esp, 0x84
ret

Function at 0x401be0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc4
push ebx
push ebp
push edi
mov edi, eax
call fcn.0040a310
mov ebx, eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
call edx
xor ebp, ebp
test al, al
je 0x401c0a
mov dword [ebx + 0x28], ebp
call fcn.00404420
cmp dword [ebx + 0x18], edi
je 0x401d13
push esi
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x18], edi
cmp edi, dword [esi + 8]
jle 0x401c2d
nop
mov eax, dword [esi]
cmp eax, ebp
je 0x401c2d
mov esi, eax
cmp edi, dword [esi + 8]
jg 0x401c20
movzx eax, word [esi + 0xc]
sub eax, dword [esi + 4]
movsx ecx, word [ebx + 0x14]
add eax, edi
mul ecx
mov dword [esp + 0x18], edx
push ebp
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x401c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
je 0x401c89
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0xd0], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push 0x1e
push 0x15
call edx
call fcn.00401650
movsx ecx, word [ebx + 0x14]
mov edx, dword [ebx + 0x24]
push ebp
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401cd1
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0xd0], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push 0x1e
push 0x15
call edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00401650
movsx eax, word [ebx + 0x14]
cmp dword [esp + 0x10], eax
je 0x401d12
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0xd0], ebp
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push 4
push 0x15
call edx
push 4
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ebp
mov dword [esp + 0xd0], ebp
call fcn.00401980
add esp, 4
pop esi
mov eax, dword [ebx + 0x24]
pop edi
pop ebp
pop ebx
add esp, 0xc4
ret
Function at 0x407a60
Capabilities:
Get hostname

Disassembly:
movzx eax, word [esp + 8]
push esi
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x407a8a
mov edx, dword [esp + 0xc]
mov byte [edx + esi], 0
mov eax, esi
pop esi
ret
mov eax, dword [str.local]
mov dword [esi], eax
mov cx, word [0x41f508]
mov word [esi + 4], cx
mov eax, esi
pop esi
ret
Function at 0x4097e0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x41c5d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42452c]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7c]
cmp word [edi + 0x28], 0
je 0x409907
mov eax, dword [0x41fca8]
mov ebp, dword [esp + 0x80]
push eax
push 0
mov ecx, ebp
call fcn.0040feb0
mov eax, dword [edi + 0x24]
push 0x3a
push eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x409846
sub eax, dword [edi + 0x24]
mov esi, eax
jmp 0x40984c
mov esi, dword [0x41fca8]
cmp esi, dword [0x427b30]
je 0x409907
test esi, esi
je 0x409907
movzx ecx, word [edi + 0x28]
sub ecx, 1
cmp esi, ecx
je 0x409907
push esi
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.004088d0
push eax
mov ecx, ebp
mov dword [esp + 0x78], 0
call fcn.00401d20
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x74], 0xffffffff
je 0x4098af
test eax, eax
je 0x4098af
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
cmp esi, 1
jne 0x40991d
push 0x41f5ac
lea edx, [esp + 0x44]
push edx
mov ecx, ebp
call fcn.004097a0
mov eax, dword [eax + 0x24]
push eax
mov dword [esp + 0x78], esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [esp + 0x40]
mov ebx, eax
mov dword [esp + 0x74], 0xffffffff
call fcn.004011b0
cmp ebx, esi
jbe 0x40991d
cmp ebx, 4
jne 0x4098f8
call fcn.004162a0
test al, al
je 0x40991d
mov eax, dword [0x41fca8]
push eax
push 0
mov ecx, ebp
call fcn.00408380
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
add esi, 1
push esi
push 0
mov ecx, edi
call fcn.0040feb0
mov al, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x40a7f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
add esp, 0x24
ret

Function at 0x40f900
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41c988
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x42452c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.004169d0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x2c], 0
call fcn.0040f640
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
add esp, 0x20
ret

Function at 0x411bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cb48
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42452c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x50]
lea ecx, [esi + 0x30]
cmp eax, ecx
mov dword [esp + 0x14], 0
je 0x411c17
test eax, eax
je 0x411c17
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
mov eax, dword [esi + 0x24]
add esi, 4
cmp eax, esi
mov dword [esp + 0x14], 0xffffffff
je 0x411c36
test eax, eax
je 0x411c36
mov ecx, dword [eax - 4]
push eax
call fcn.0040daa0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x412450
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41cc98
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42452c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], eax
xor eax, eax
lea ecx, [esi + 8]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 8
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 0xffffffff
push eax
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esi], 0x41fe58
call fcn.004188f0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x412b40
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push esi
push edi
push 0
push 0
push ebx
call ebp
mov edi, dword [esp + 0x18]
mov esi, eax
test esi, esi
je 0x412b96
lea eax, [esi - 1]
push eax
mov ecx, edi
call fcn.004106f0
mov eax, dword [edi + 0x24]
push esi
push eax
push ebx
call ebp
cmp eax, esi
jae 0x412b96
test eax, eax
je 0x412b96
mov eax, dword [edi + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412b80
sub eax, edx
mov word [edi + 0x28], ax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
mov ecx, dword [edi + 0x24]
mov byte [ecx], 0
mov eax, dword [edi + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412ba2
sub eax, edx
mov word [edi + 0x28], ax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret