joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4819a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4819c4
cmp dword [edi + 0x54], 0
jne 0x4819c4
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00482397
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00481961
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x487b71
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x487bb8
call fcn.00482397
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x487bb8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x487bd4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004876e9
mov esi, eax
test edi, edi
je 0x487bd2
test ebx, ebx
je 0x487bd2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48dce1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4cfc64]
jne 0x48dceb
repz ret
jmp fcn.00494b2d
Function at 0x49e285
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00494491
and dword [ebp - 4], 0
cmp dword [0x4d4210], 0
mov ebx, eax
jne 0x49e336
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49e3e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b0908
push edi
call esi
test eax, eax
je 0x49e3e7
push eax
call fcn.0049441f
mov dword [esp], 0x4b08f8
push edi
mov dword [0x4d4210], eax
call esi
push eax
call fcn.0049441f
mov dword [esp], 0x4b08e4
push edi
mov dword [0x4d4214], eax
call esi
push eax
call fcn.0049441f
mov dword [esp], 0x4b08c8
push edi
mov dword [0x4d4218], eax
call esi
push eax
call fcn.0049441f
pop ecx
mov dword [0x4d4220], eax
test eax, eax
je 0x49e336
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049441f
pop ecx
mov dword [0x4d421c], eax
mov eax, dword [0x4d421c]
cmp eax, ebx
je 0x49e38e
cmp dword [0x4d4220], ebx
je 0x49e38e
push eax
call fcn.0049449a
push dword [0x4d4220]
mov esi, eax
call fcn.0049449a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49e38e
test edi, edi
je 0x49e38e
call esi
test eax, eax
je 0x49e385
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49e385
test byte [ebp - 0xc], 1
jne 0x49e38e
or dword [ebp + 0x10], 0x200000
jmp 0x49e3c7
mov eax, dword [0x4d4214]
cmp eax, ebx
je 0x49e3c7
push eax
call fcn.0049449a
pop ecx
test eax, eax
je 0x49e3c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49e3c7
mov eax, dword [0x4d4218]
cmp eax, ebx
je 0x49e3c7
push eax
call fcn.0049449a
pop ecx
test eax, eax
je 0x49e3c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d4210]
call fcn.0049449a
pop ecx
test eax, eax
je 0x49e3e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49e3e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018e0
Capabilities:
Execute command

Disassembly:
push esi
sub esp, 0x34
mov eax, dword [0x43c548]
mov ecx, dword [0x43c5a8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40198e
mov dword [esp + 0x14], str.echo__:__n
mov dword [esp + 0x18], 0xd
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], eax
lea esi, [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 0xc], 0x43c544
call fcn.004019d0
cmp dword [esp + 0x30], 0x10
jb 0x401948
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [esp + 0x30]
cmp eax, 0x10
jb 0x401989
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x40197d
mov esi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, esi
cmp ecx, 0x20
jae 0x4019c3
add eax, 0x24
mov edx, eax
mov ecx, esi
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.00414ee7
add esp, 0x34
pop esi
ret
mov dword [esp], 0x43c548
call fcn.00414f26
cmp dword [0x43c548], 0xffffffff
jne 0x401905
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x43c544], eax
mov dword [esp], 0x43c548
call fcn.00414f75
jmp 0x401905
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x415906
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415945
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x415945
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415945
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x415945
cmp dword [ecx + 0x74], 0xe
jbe 0x415945
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40e140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0040dca0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e165
mov eax, 0xfffffff5
jmp 0x40e299
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x320]
and edx, 1
jne 0x40e17d
mov eax, 0xfffffff4
jmp 0x40e299
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
shr ecx, 2
and ecx, 1
je 0x40e1ab
mov edx, dword [ebp - 4]
push edx
call fcn.0040e3f0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e1ab
mov eax, dword [ebp - 8]
jmp 0x40e299
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + 4]
cmp ecx, 1
je 0x40e21a
push 0
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040dec0
add esp, 4
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 0x2ab]
test eax, eax
je 0x40e21a
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x2aa]
test edx, edx
jne 0x40e21a
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0x316]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2d0
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x2c4], 0
je 0x40e256
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c4]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c4], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x2cc], 0
je 0x40e282
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2cc]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx + 0x2cc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x320]
and ecx, 0xfffffffe
mov edx, dword [ebp - 4]
mov dword [edx + 0x320], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x410550
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 0x410592
push str.crash
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x410592
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
mov dword [ecx], 1
mov esp, ebp
pop ebp
ret

Function at 0x411ee0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x442d94
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x411f05
call fcn.00412640
jmp 0x411fea
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 0x411f23
mov eax, dword [ebp - 4]
jmp 0x411fea
cmp dword [0x1526e28], 0
jne 0x411f31
call fcn.00411ff0
push 0x442d98
mov edx, dword [0x1526e28]
push edx
call fcn.00413ff0
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x411f58
xor eax, eax
jmp 0x411fea
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [0x1526e28]
push eax
call fcn.004146b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411fe7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x411f89
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 0x411f95
jmp 0x411f80
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x411fa9
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x411fc8
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x411fc8
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x411fc8
jmp 0x411fa0
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 0x411fe7
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 0x412b60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x442d9c
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x412ba2
push str.WNCTMPDIR
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x412ba0
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 0x412be0
jmp 0x412bc9
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x412bc9
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 0x412be0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x1526e28]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00413f60
add esp, 0xc
pop ebp
ret

Function at 0x412c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x449fc0]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x412c80
xor eax, eax
jmp 0x412db8
mov eax, dword [ebp + 8]
push eax
push 0x442de8
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 0x412cba
mov eax, dword [ebp - 4]
jmp 0x412db8
cmp dword [0x1526e28], 0
jne 0x412cc8
call fcn.00411ff0
push str.path
mov eax, dword [0x1526e28]
push eax
call fcn.00413ff0
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x412cee
xor eax, eax
jmp 0x412db8
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [0x1526e28]
push ecx
call fcn.004146b0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412db5
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x412d2d
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 0x412d3c
jmp 0x412d1e
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x412d5c
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x412d84
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x412d84
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x412d84
jmp 0x412d4d
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 0x412db5
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.0042954b
mov esp, ebp
pop ebp
ret
Function at 0x412dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x449fc0]
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 0x412e21
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 0x412e37
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x1526e28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00413f60
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042954b
mov esp, ebp
pop ebp
ret

Function at 0x418280
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x449fc0]
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.00410a70
push 0x2c
lea edx, [ebp - 0x208]
push edx
call fcn.0040fcd0
add esp, 8
test eax, eax
je 0x418321
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.0040f990
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
je 0x418321
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0xffffffd5
jne 0x41831f
push 0x2c
lea eax, [ebp - 0x208]
push eax
call fcn.0040fcd0
add esp, 8
test eax, eax
jne 0x41831f
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x418321
jmp 0x418382
lea edx, [ebp - 9]
mov dword [ebp - 4], edx
jmp 0x418332
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 0x418356
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x418356
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
jl 0x418356
jmp 0x418329
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 0x418382
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffeb
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042954b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418d50
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 0x418d6b
xor eax, eax
jmp 0x418d77
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x418e60
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 0x418e84
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xd
je 0x418e84
or eax, 0xffffffff
jmp 0x418e86
xor eax, eax
pop ebp
ret
Function at 0x4190f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x449fc0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x443658
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x419122
mov eax, dword [ebp - 4]
jmp 0x4192a9
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 0x41926d
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 0x419161
xor eax, eax
jmp 0x4192a9
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
jmp 0x41917e
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 0x4191a4
mov edx, dword [ebp - 0x21c]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x4191a2
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 0x2f
jmp 0x41916f
push 0x2f
lea edx, [ebp - 0x218]
push edx
call fcn.004192c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4191c5
xor eax, eax
jmp 0x4192a9
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.004192c0
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4191f5
xor eax, eax
jmp 0x4192a9
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.004192c0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x419225
xor eax, eax
jmp 0x4192a9
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
push 0x44366c
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
jne 0x419260
push 0x443670
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
add esp, 8
test eax, eax
je 0x419264
xor eax, eax
jmp 0x4192a9
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], ecx
movzx edx, byte [ebp + 8]
test edx, edx
je 0x4192a6
push str.WNCHOME
push 0x1526e58
call sub.MSVCR90.dll_strcpy
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x1526e58
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x1526e58
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.0042954b
mov esp, ebp
pop ebp
ret

Function at 0x419420
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 0x419459
push 0x443698
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
je 0x419459
mov eax, 1
jmp 0x41945b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42954b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449fc0]
jne 0x429555
repz ret
jmp fcn.004299ee
Function at 0x42a070
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x449fc0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0042f0f0
test eax, eax
je 0x42a0a3
call fcn.0042f050
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x42a0ec
push 0x4451c4
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x42a0d6
push 0x4451cc
lea ecx, [ebp - 0x210]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x42a0ec
mov edx, dword [ebp - 0x214]
push edx
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0x4451d0
push 0x4451d8
push 0x5c
lea ecx, [ebp - 0x210]
push ecx
push 0x4451e0
push 0x1527a40
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
mov byte [0x1527c40], 0
push 0x4451ec
push 0x1527a40
call dword [sym.imp.MSVCR90.dll_strcspn]
add esp, 8
mov byte [eax + 0x1527a40], 0
push 0x201
push 0x1527a40
call fcn.00429f00
add esp, 8
push 0x4451f0
push str.zone
push 0x5c
lea edx, [ebp - 0x210]
push edx
push str._s_c_s_s
push 0x1527c48
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x18
mov byte [0x1527e48], 0
push 0x44520c
push 0x1527c48
call dword [sym.imp.MSVCR90.dll_strcspn]
add esp, 8
mov byte [eax + 0x1527c48], 0
push 0x201
push 0x1527c48
call fcn.00429f00
add esp, 8
cmp dword [0x1527e50], 0
jne 0x42a1be
push 0x42a020
call fcn.00429617
add esp, 4
mov dword [0x1527e50], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042954b
mov esp, ebp
pop ebp
ret

Function at 0x42eae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x449fc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x152d2e4], 0
je 0x42eb46
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str._s___d__:__d_n
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
mov ecx, dword [0x152d2e0]
push ecx
lea edx, [ebp - 0x408]
push edx
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
push 1
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042954b
mov esp, ebp
pop ebp
ret

Function at 0x42f050
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x445440
cmp dword [0x1528e1c], 0
je 0x42f06f
mov eax, 0x1528e20
jmp 0x42f090
push 0x445444
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42f08d
mov eax, dword [ebp - 8]
jmp 0x42f090
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42f100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1528e1c], 0
je 0x42f121
push 0x1528e20
push 0x152d0a8
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x42f15d
push str.WNCZONE
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42f14c
push 0x445460
push 0x152d0a8
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x42f15d
mov eax, dword [ebp - 4]
push eax
push 0x152d0a8
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0x445464
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043db10
add esp, 8
push eax
push 0x5c
push 0x152d0a8
push str._s_c_s
push 0x152cea0
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x14
push 0x201
push 0x152cea0
call fcn.004109a0
add esp, 8
cmp dword [0x152d2b4], 0
jne 0x42f1bb
push 0x42eff0
call fcn.00429617
add esp, 4
mov dword [0x152d2b4], 1
mov esp, ebp
pop ebp
ret

Function at 0x439550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
pop ebp
ret