joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67a200
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cd0b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.006795e0
test al, al
jne 0x67a245
mov eax, 1
jmp 0x67a263
push esi
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x67a261
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
je 0x67a280
jmp 0x67a263
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
ret 8
push 1
push 3
lea ecx, [ebp - 0xf0]
mov esi, eax
call fcn.00452f50
lea ecx, [edi + 0xb0]
mov dword [ebp - 4], 0
push ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0047d770
add esp, 8
push str.__Cannot_get_service_status.
push eax
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 1
push 0x68fd20
push eax
call fcn.00456150
add esp, 8
push eax
call fcn.00456620
add esp, 8
push eax
call fcn.00456150
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0044da70
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00452f30
push esi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x20]
push eax
call fcn.004a18e8
int3
Function at 0x67a320
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cdab
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x740184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
call fcn.006795e0
test al, al
jne 0x67a362
mov eax, 1
jmp 0x67a3c8
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.0067a480
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push esi
lea eax, [ebp - 0x2c]
movq qword [ebp - 0x1c], xmm0
push eax
mov ecx, edi
movups xmmword [ebp - 0x2c], xmm0
call fcn.0067a200
cmp dword [ebp - 0x28], 1
je 0x67a3c6
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x67a3bc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x426
je 0x67a3bc
cmp byte [ebp + 8], 0
je 0x67a3e5
jmp 0x67a3c8
push dword [ebp + 8]
mov ecx, edi
call fcn.0067a870
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048b49a
mov esp, ebp
pop ebp
ret 4
call esi
push 1
push 3
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.00452f50
lea ecx, [edi + 0xb0]
mov dword [ebp - 4], 0
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.0047d770
add esp, 8
push str.__Cannot_stop_service.
push eax
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 1
push 0x68fd20
push eax
call fcn.00456150
add esp, 8
push eax
call fcn.00456620
add esp, 8
push eax
call fcn.00456150
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0044da70
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00452f30
push esi
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00450300
push 0x73d438
lea eax, [ebp - 0x3c]
push eax
call fcn.004a18e8
int3
Function at 0x68236a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006821e0

Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x191
mov eax, dword [ebp - 4]
sub eax, 1
cmp eax, 0x190
je 0x403fcf
push 0x190
mov ecx, dword [ebp - 4]
sub ecx, 1
push ecx
push str._RCSfile:_outilparutils.cxx_v__
push str.file__s_:_internal_error__size_mismatch:_._noutilpar.inc_size_d__dtbmax.inc_size_d_nAborting._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x404b70
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404bae
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str._Cannot_open_file__s_in_mode__s._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.MSVCR90.dll_exit]
mov dword [ebp - 4], pe_nt_image_headers32
push 0x483aec
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x404be1
mov edx, dword [ebp - 8]
push edx
push 1
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
jmp 0x404c2a
push 0x483af0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x404c2a
mov edx, dword [ebp - 8]
push edx
push 1
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp dword [ebp - 4], 0x100
jne 0x404c20
mov dword [0x49392c], 0
jmp 0x404c2a
mov dword [0x49392c], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x406240
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push str.WNC_BUFFER_TOO_SMALL_OPTION
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406282
push str.crash
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x406282
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx], 1
mov esp, ebp
pop ebp
ret

Function at 0x408f00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x4840e4
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x408f25
call fcn.00409660
jmp 0x40900a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408f43
mov eax, dword [ebp - 4]
jmp 0x40900a
cmp dword [0x493930], 0
jne 0x408f51
call fcn.00409010
push 0x4840e8
mov edx, dword [0x493930]
push edx
call fcn.004069f0
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x408f78
xor eax, eax
jmp 0x40900a
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [0x493930]
push eax
call fcn.004070b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409007
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x408fa9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x408fb5
jmp 0x408fa0
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x408fc9
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x408fe8
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x408fe8
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x408fe8
jmp 0x408fc0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x409007
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409b80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x4840ec
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x409bc2
push str.WNCTMPDIR
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x409bc0
push str.from_environment_variable_WNCTMPDIR
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x409c00
jmp 0x409be9
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x409be9
push str.from_environment
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x409c00
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x493930]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406960
add esp, 0xc
pop ebp
ret

Function at 0x409c80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x48f400]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x409ca0
xor eax, eax
jmp 0x409dd8
mov eax, dword [ebp + 8]
push eax
push 0x484138
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409cda
mov eax, dword [ebp - 4]
jmp 0x409dd8
cmp dword [0x493930], 0
jne 0x409ce8
call fcn.00409010
push str.path
mov eax, dword [0x493930]
push eax
call fcn.004069f0
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x409d0e
xor eax, eax
jmp 0x409dd8
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [0x493930]
push ecx
call fcn.004070b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409dd5
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x409d4d
mov eax, dword [ebp - 0x194]
add eax, 1
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
movsx edx, byte [ecx]
test edx, edx
je 0x409d5c
jmp 0x409d3e
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x409d7c
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x409da4
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x409da4
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x409da4
jmp 0x409d6d
mov ecx, dword [ebp - 0x194]
add ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
je 0x409dd5
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 0x198]
mov byte [edx], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0042809b
mov esp, ebp
pop ebp
ret
Function at 0x409df0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x48f400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
push str._sPATH
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x409e41
lea eax, [ebp - 0x58]
push eax
push str.from_environment__s
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x409e57
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x493930]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406960
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042809b
mov esp, ebp
pop ebp
ret

Function at 0x40c340
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x48f400]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0x10]
push ecx
push 0x1ff
lea edx, [ebp - 0x208]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406760
push 0x2c
lea edx, [ebp - 0x208]
push edx
call fcn.00407e50
add esp, 8
test eax, eax
je 0x40c3e1
mov eax, dword [ebp + 0x10]
push eax
push 0x1ff
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040b920
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x40c3e1
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffd5
jne 0x40c3df
push 0x2c
lea eax, [ebp - 0x208]
push eax
call fcn.00407e50
add esp, 8
test eax, eax
jne 0x40c3df
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x40c3e1
jmp 0x40c442
lea edx, [ebp - 9]
mov dword [ebp - 4], edx
jmp 0x40c3f2
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x208]
cmp ecx, edx
jb 0x40c416
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x40c416
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jl 0x40c416
jmp 0x40c3e9
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx], 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 4
test eax, eax
je 0x40c442
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffeb
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042809b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c5a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.WNC_WNCFILES_VERBOSE
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c5d9
push 0x484444
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
je 0x40c5d9
mov eax, 1
jmp 0x40c5db
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40d2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d30b
xor eax, eax
jmp 0x40d317
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x40d400
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR90.dll__mkdir]
add esp, 4
test eax, eax
je 0x40d424
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xd
je 0x40d424
or eax, 0xffffffff
jmp 0x40d426
xor eax, eax
pop ebp
ret
Function at 0x40d690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x48f400]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x484544
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d6c2
mov eax, dword [ebp - 4]
jmp 0x40d849
push str.WNCHOME_LS
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40d80d
push 0x200
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d701
xor eax, eax
jmp 0x40d849
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
jmp 0x40d71e
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x21c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40d744
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x40d742
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 0x2f
jmp 0x40d70f
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.0040d860
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d765
xor eax, eax
jmp 0x40d849
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.0040d860
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d795
xor eax, eax
jmp 0x40d849
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.0040d860
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40d7c5
xor eax, eax
jmp 0x40d849
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x484558
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40d800
push 0x48455c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x40d804
xor eax, eax
jmp 0x40d849
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ecx
movzx edx, byte [ebp + 8]
test edx, edx
je 0x40d846
push str.WNCHOME
push 0x493b68
call sub.MSVCR90.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x493b68
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x493b68
call dword [sym.imp.MSVCR90.dll__putenv]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042809b
mov esp, ebp
pop ebp
ret

Function at 0x40dec0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call fcn.0040de60
add esp, 0xc
push 1
call dword [sym.imp.MSVCR90.dll_exit]
int3
Function at 0x40e9d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47b499
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x48f400]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov esi, dword [sym.imp.MSVCR90.dll__wassert]
mov dword [esp + 0xc], ebx
test ebx, ebx
jg 0x40ea22
push 0x3b7
push 0x484aac
push str.nb2___0
call esi
add esp, 0xc
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x40ea3e
push 0x3b9
push 0x484adc
push 0x484afc
call esi
add esp, 0xc
cmp dword [edi], 0
jne 0x40eaa1
push 0x10
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x40ea70
push 0x2710
push 0xc350
mov ecx, eax
call fcn.00411200
jmp 0x40ea72
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [edi], eax
test eax, eax
jne 0x40eaa1
push 0xffffffffffffffff
push 0x484b10
call fcn.00412930
add esp, 8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
xor esi, esi
mov dword [eax], 0
test ebx, ebx
jle 0x40eb4c
xor ebx, ebx
jmp 0x40eac0
fld qword [0x485390]
test ebx, ebx
jl 0x40eb97
mov eax, dword [ebp + 0x10]
cmp esi, dword [eax]
jge 0x40eb97
mov edx, dword [eax + 0xc]
fld qword [edx + ebx + 8]
lea ecx, [edx + ebx]
fld qword [ecx]
fabs
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x40eb2e
fabs
fcompp
fnstsw ax
test ah, 5
jp 0x40eb32
fld qword [ecx + 8]
mov dword [esp + 0x14], 0xffffffff
fld qword [ecx]
fstp qword [esp + 0x1c]
fstp qword [esp + 0x24]
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x3c], 1
call fcn.004115e0
mov dword [esp + 0x38], 0xffffffff
jmp 0x40eb3e
fstp st(0)
fstp st(0)
mov ecx, dword [edi]
push 0x48eba0
call fcn.004115e0
inc esi
add ebx, 0x10
cmp esi, dword [esp + 0xc]
jl 0x40eac0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [edi]
push ecx
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.0041e9d0
add esp, 0x18
mov byte [0x493e6c], al
test al, al
jne 0x40ebaa
push 0xffffffffffffffff
push str.Path_clipping_failed
call fcn.00412930
add esp, 8
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Array_Index
fstp st(0)
push 0x40
push 0x4853c8
call fcn.0040dec0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4115e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47b43b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48f400]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp ecx, ebx
je 0x411636
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jge 0x411636
lea edx, [eax + eax*2]
inc eax
mov dword [esi], eax
mov eax, dword [esp + 0x40]
lea ecx, [ecx + edx*8]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040df50
jmp 0x41170e
mov eax, dword [esi + 8]
add dword [esi + 4], eax
mov edi, dword [esi + 4]
xor ecx, ecx
mov eax, edi
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x38], ebx
cmp eax, ebx
je 0x41168c
push 0x40df40
push 0x40df20
push edi
lea ebp, [eax + 4]
push 0x18
push ebp
mov dword [eax], edi
call fcn.004284d0
jmp 0x41168e
xor ebp, ebp
mov dword [esp + 0x38], 0xffffffff
cmp ebp, ebx
jne 0x4116ab
push 0x485400
push 0x6e
push 0x4853c8
call fcn.0040dec0
cmp dword [esi], ebx
jle 0x4116cc
xor edi, edi
mov ecx, dword [esi + 0xc]
add ecx, edi
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + ebp]
call fcn.0040df50
inc ebx
add edi, 0x18
cmp ebx, dword [esi]
jl 0x4116b1
mov eax, dword [esi]
mov edx, dword [esp + 0x40]
lea ecx, [eax + eax*2]
inc eax
mov dword [esi], eax
push edx
lea eax, [esp + 0x1c]
lea ecx, [ebp + ecx*8]
push eax
call fcn.0040df50
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41170b
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x40df40
push ecx
push 0x18
push eax
call fcn.00428593
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0xc], ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4