joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43dc7b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043b65d
push 4
mov dword [esp + 0x24], 0
call fcn.00414ff1
mov edi, eax
add esp, 4
test edi, edi
je 0x40d222
call fcn.0043b1e8
mov dword [edi], eax
call fcn.0043b016
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0043af3a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40d217
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0043af62
jmp 0x40d224
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x40ed30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43e6d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00408c70
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ed86
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.0040d300
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00408c70
cmp dword [esp + 0x24], 8
jb 0x40edce
mov edx, dword [esp + 0x10]
push edx
call fcn.0041502b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x4124e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ebf0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov eax, dword [0x453a20]
mov ecx, dword [eax + 4]
mov dword [ecx + 0x453a20], 0x445fc8
mov edx, dword [0x453a20]
mov esi, dword [edx + 4]
add esi, 0x453a20
mov ecx, esi
mov dword [esp + 0x10], 0x453a20
call fcn.00401ad0
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
call fcn.00406470
mov byte [esi + 0x30], al
cmp dword [esi + 0x28], edi
jne 0x412563
mov eax, dword [esi + 8]
or eax, 4
push edi
push eax
mov ecx, esi
call fcn.00401960
mov eax, 0x453a20
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4

Function at 0x4138d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43e66b
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x44ede0]
xor eax, esp
mov dword [esp + 0x820], eax
push esi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x82c]
mov dword fs:[0], eax
push 0x800
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.004269c0
add esp, 0xc
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [0x440214]
xor edx, edx
lea eax, [esp + 0x28]
mov word [esp + 0xc], dx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413954
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x2c]
lea esi, [esp + 0xc]
call fcn.004086f0
mov eax, esi
mov ecx, edi
mov dword [esp + 0x834], 0
call fcn.00413820
cmp dword [esp + 0x20], 8
jb 0x413999
mov eax, dword [esp + 0xc]
push eax
call fcn.0041502b
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x82c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.00422f6b
add esp, 0x830
ret
Function at 0x413c60
Capabilities:
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x43dc23
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x44ede0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
mov dword [ebp + 4], 0
mov dword [esp + 0x18], 0
mov dword [ebp], vtable.CSktHttpCommunication.0
call fcn.00415458
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413cb7
push 0x80004005
call fcn.004075f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x10], eax
push 0
push 0
push 1
push 0
lea ecx, [ebp + 0x418]
mov byte [esp + 0x28], 1
call fcn.0041f4f2
lea edx, [ebp + 0x15]
mov edi, edx
mov dword [ebp + 0xc], 0xffffffff
mov byte [ebp + 0x14], 0
mov byte [edx], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413cf2
mov ecx, 0x14
mov esi, str.GET__api.cgi_pathstatisticsmethodget_conn_clients_infotimeout20_HTTP_1.1_r_n
mov eax, edx
rep movsd dword es:[edi], dword [esi]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413d10
mov ecx, dword [str.Host:_jazz.wifi_r_n]
mov dword [eax], ecx
mov ecx, dword [0x4465bc]
mov dword [eax + 4], ecx
mov ecx, dword [0x4465c0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4465c4]
mov dword [eax + 0xc], ecx
mov cx, word [0x4465c8]
mov edi, edx
mov word [eax + 0x10], cx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413d50
mov ecx, 0x19
mov esi, str.User_Agent:_Mozilla_5.0__Windows__U__Windows_NT_5.1__zh_CN__rv:1.9.2.3__Gecko_20100401_Firefox_3.6.3_r_n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, edx
movsb byte es:[edi], byte [esi]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413d70
mov ecx, dword [str.Connection:_close_r_n]
mov dword [eax], ecx
mov ecx, dword [0x44663c]
mov dword [eax + 4], ecx
mov ecx, dword [0x446640]
mov dword [eax + 8], ecx
mov ecx, dword [0x446644]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x446648]
mov dword [eax + 0x10], ecx
mov eax, edx
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413da7
mov ecx, dword [str.Accept:___r_n]
mov dword [eax], ecx
mov ecx, dword [0x446650]
mov dword [eax + 4], ecx
mov ecx, dword [0x446654]
mov dword [eax + 8], ecx
mov cx, word [0x446658]
mov word [eax + 0xc], cx
dec edx
mov al, byte [edx + 1]
inc edx
test al, al
jne 0x413dd5
mov ax, word [0x44665c]
mov word [edx], ax
mov cl, byte [0x44665e]
mov byte [edx + 2], cl
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x4036d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403700
add esp, 0xc
push 1
call dword [sym.imp.MSVCR100.dll_exit]
pop ebp
ret
Function at 0x40f8f0
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 0x40f92f
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.MSVCR100.dll_printf]
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4131b0
Capabilities:
Query environment variable

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

Function at 0x414b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x448ea0
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x414b65
call fcn.004152a0
jmp 0x414c4a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414b83
mov eax, dword [ebp - 4]
jmp 0x414c4a
cmp dword [0x44f9c0], 0
jne 0x414b91
call fcn.00414c50
push 0x448ea4
mov edx, dword [0x44f9c0]
push edx
call fcn.004114f0
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x414bb8
xor eax, eax
jmp 0x414c4a
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [0x44f9c0]
push eax
call fcn.00411bb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414c47
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x414be9
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 0x414bf5
jmp 0x414be0
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x414c09
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x414c28
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x414c28
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x414c28
jmp 0x414c00
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 0x414c47
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 0x4157c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x448ea8
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x415802
push str.WNCTMPDIR
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x415800
push str.from_environment_variable_WNCTMPDIR
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x415840
jmp 0x415829
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x415829
push str.from_environment
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 8
xor eax, eax
jmp 0x415840
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x44f9c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411460
add esp, 0xc
pop ebp
ret

Function at 0x4158c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x4158e0
xor eax, eax
jmp 0x415a18
mov eax, dword [ebp + 8]
push eax
push 0x448ef4
lea ecx, [ebp - 0x190]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41591a
mov eax, dword [ebp - 4]
jmp 0x415a18
cmp dword [0x44f9c0], 0
jne 0x415928
call fcn.00414c50
push str.path
mov eax, dword [0x44f9c0]
push eax
call fcn.004114f0
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x41594e
xor eax, eax
jmp 0x415a18
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [0x44f9c0]
push ecx
call fcn.00411bb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x415a15
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x41598d
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 0x41599c
jmp 0x41597e
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x4159bc
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x4159e4
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x4159e4
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x4159e4
jmp 0x4159ad
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 0x415a15
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.004297b0
mov esp, ebp
pop ebp
ret
Function at 0x415a30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x44dd60]
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.MSVCR100.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
test eax, eax
je 0x415a81
lea eax, [ebp - 0x58]
push eax
push str.from_environment__s
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
xor eax, eax
jmp 0x415a97
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x44f9c0]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411460
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004297b0
mov esp, ebp
pop ebp
ret

Function at 0x419f70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x44dd60]
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.004136d0
push 0x2c
lea edx, [ebp - 0x208]
push edx
call fcn.00411300
add esp, 8
test eax, eax
je 0x41a011
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.00410fc0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x41a011
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffd5
jne 0x41a00f
push 0x2c
lea eax, [ebp - 0x208]
push eax
call fcn.00411300
add esp, 8
test eax, eax
jne 0x41a00f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x41a011
jmp 0x41a072
lea edx, [ebp - 9]
mov dword [ebp - 4], edx
jmp 0x41a022
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 0x41a046
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x41a046
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jl 0x41a046
jmp 0x41a019
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.MSVCR100.dll_remove]
add esp, 4
test eax, eax
je 0x41a072
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffeb
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004297b0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41aa60
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 0x41aa7b
xor eax, eax
jmp 0x41aa87
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x41ab70
Capabilities:
Create directory

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x44dd60]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x449660
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41ae52
mov eax, dword [ebp - 4]
jmp 0x41afd9
push str.WNCHOME_LS
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41af9d
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 0x41ae91
xor eax, eax
jmp 0x41afd9
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
jmp 0x41aeae
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 0x41aed4
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x41aed2
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 0x2f
jmp 0x41ae9f
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.0041b000
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41aef5
xor eax, eax
jmp 0x41afd9
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.0041b000
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41af25
xor eax, eax
jmp 0x41afd9
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.0041b000
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41af55
xor eax, eax
jmp 0x41afd9
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x449674
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x41af90
push 0x449678
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x41af94
xor eax, eax
jmp 0x41afd9
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ecx
movzx edx, byte [ebp + 8]
test edx, edx
je 0x41afd6
push str.WNCHOME
push 0x451a30
call sub.MSVCR100.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x451a30
call sub.MSVCR100.dll_strcat
add esp, 8
push 0x451a30
call dword [sym.imp.MSVCR100.dll__putenv]
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004297b0
mov esp, ebp
pop ebp
ret

Function at 0x41b160
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.WNC_WNCFILES_VERBOSE
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41b199
push 0x4496a0
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
je 0x41b199
mov eax, 1
jmp 0x41b19b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x421030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x28]
push edi
xor edi, edi
mov dword [esi + 0x24], edi
cmp ebx, edi
je 0x421054
mov ecx, ebx
call fcn.0041d7e0
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x28], edi
cmp dword [esi + 0x2c], edi
je 0x4210bb
xor edx, edx
cmp dword [esi + 0x14], edi
jle 0x4210a7
push ebp
mov eax, dword [esi + 0x2c]
cmp dword [eax + edx*4], edi
lea ecx, [eax + edx*4]
je 0x4210a0
mov eax, dword [ecx]
mov ebx, dword fs:[0x2c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov eax, dword [0x451c60]
mov eax, dword [ebx + eax*4]
mov ebx, dword [ecx]
mov ebp, dword [eax + 0x10]
mov dword [ebx + 0x10], ebp
mov ebx, dword [ecx]
mov dword [eax + 0x10], ebx
mov dword [ecx], edi
inc edx
cmp edx, dword [esi + 0x14]
jl 0x421061
pop ebp
mov ecx, dword [esi + 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
mov ecx, esi
call fcn.00420720
lea ecx, [esi + 0x30]
call fcn.0041c250
pop edi
lea ecx, [esi + 0xc8]
pop esi
pop ebx
jmp fcn.0041c250

Function at 0x4210e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441659
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esp + 0x14], 1
call fcn.00421030
call fcn.00420190
call fcn.004201f0
call fcn.0041ef50
lea ecx, [esi + 0xc8]
mov byte [esp + 0x14], 0
call fcn.0041c250
push 0x4033a0
push 4
push 0x18
add ecx, 0x18
push ecx
call fcn.004298f0
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], 0xffffffff
call fcn.0041c250
push 0x4033a0
push 4
push 0x18
add ecx, 0x18
push ecx
call fcn.004298f0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x422e33
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x422e4d
inc dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, ebp
jne 0x422e43
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push edi
push 1
lea eax, [esi + 8]
push 4
push eax
call ebx
add esp, 0x10
cmp eax, 1
je 0x422e77
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
push edi
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x422e6a
mov esi, dword [esi]
cmp esi, ebp
je 0x422eb9
push edi
push 2
lea edx, [esi + 8]
push 0xc
push edx
call ebx
add esp, 0x10
cmp eax, 2
jne 0x422eb4
mov esi, dword [esi]
test esi, esi
jne 0x422e91
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 4
mov ebp, 1
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 4