joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f7304
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
mov eax, dword [ebp - 8]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x4f73fd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [0x526dfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.004a8064
lea eax, [ebp - 0x14]
mov edx, 0x4f7410
call fcn.004050c8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.004049e4
push 0x4f7428
push dword [ebp - 4]
push 0x4f7434
push dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404adc
mov edx, 0x64
mov eax, ebx
call fcn.004f67e0
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x526dfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.004a8064
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404c1c
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c1c
push eax
push 0x4f7448
push 0
call sub.shell32.dll_ShellExecuteA
mov edx, 0x64
mov eax, ebx
call fcn.004f67e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7404
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404e80
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404770
ret

Function at 0x4f7450
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404c0c
mov eax, dword [ebp - 8]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x4f7549
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [0x526dfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.004a8064
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x4f755c
call fcn.00405128
push 0x4f7580
push dword [ebp - 4]
push 0x4f7598
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00404adc
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
call fcn.00405030
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x526dfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.004a8064
mov eax, dword [ebp - 0x1c]
call fcn.004050ac
push eax
mov eax, dword [ebp - 0x10]
call fcn.004050ac
push eax
mov eax, dword [ebp - 0xc]
call fcn.004050ac
push eax
push 0x4f75a8
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7550
lea eax, [ebp - 0x1c]
call fcn.00404e68
lea eax, [ebp - 0x18]
call fcn.0040474c
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404e80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404770
ret
Function at 0x4f77a8
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x4f7905
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x4f7914
push 0x4f7944
mov eax, dword [0x526c88]
push dword [eax]
push 0x4f7958
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405190
mov eax, dword [ebp - 0x10]
call fcn.004050ac
push eax
push 0x4f7978
push 0x4f79b0
push 0
call sub.shell32.dll_ShellExecuteW
mov edx, 0x12c
mov eax, ebx
call fcn.004f67e0
lea edx, [ebp - 0x14]
mov eax, dword [0x526dfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x33c]
call fcn.004a8064
lea eax, [ebp - 0x14]
mov edx, 0x4f79c0
call fcn.004050c8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004049e4
push 0x4f79d8
push dword [ebp - 4]
push 0x4f79e4
push dword [0x528494]
push 0x4f7a08
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404adc
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c1c
push eax
mov eax, dword [ebp - 8]
call fcn.00404c1c
push eax
push 0x4f7a14
push 0
call sub.shell32.dll_ShellExecuteA
mov edx, 0x3e8
mov eax, ebx
call fcn.004f67e0
mov edx, dword [0x526c88]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
mov ecx, 0x4f7a20
call fcn.00405128
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.004049e4
mov eax, dword [ebp - 0x18]
call fcn.0040a198
test al, al
je 0x4f78cb
mov bl, 1
jmp 0x4f78cd
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f790c
lea eax, [ebp - 0x1c]
call fcn.00404e68
lea eax, [ebp - 0x18]
call fcn.0040474c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404e80
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404770
ret

Function at 0x5004b8
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
mov eax, dword [ebp - 8]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x500546
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50051f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404c1c
push eax
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50052b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50054d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404770
ret
Function at 0x500558
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040546c
lea eax, [ebp - 8]
call fcn.0040546c
xor eax, eax
push ebp
push 0x5005e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5005bf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004050ac
push eax
mov eax, dword [ebp - 4]
call fcn.004050ac
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5005cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5005ed
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e80
ret

Function at 0x500944
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0x5008f8
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret

Function at 0x500b58
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040546c
xor eax, eax
push ebp
push 0x500c23
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43cdf4]
call fcn.0043cf30
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x500bee
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0043d00c
xor ecx, ecx
mov edx, 0x500c38
mov eax, dword [ebp - 0xc]
call fcn.0043d070
test al, al
je 0x500bd8
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004049e4
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0043d33c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500bf5
mov eax, dword [ebp - 0xc]
call fcn.004038c0
ret

Function at 0x500c7c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x500d34
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x43cdf4]
call fcn.0043cf30
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x500d04
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 0xc]
call fcn.0043d00c
xor ecx, ecx
mov edx, 0x500d48
mov eax, dword [ebp - 0xc]
call fcn.0043d070
test al, al
je 0x500cee
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0043d33c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500d0b
mov eax, dword [ebp - 0xc]
call fcn.004038c0
ret
Function at 0x501108
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
mov eax, dword [0x526bfc]
mov eax, dword [eax]
call fcn.00485290
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, esi
cdq
cmp edx, dword [esp + 4]
jne 0x501149
cmp eax, dword [esp]
pop edx
pop eax
ja 0x501113
pop esi
pop ebx
ret
pop edx
pop eax
jg 0x501113
pop esi
pop ebx
ret
Function at 0x5014b8
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c0c
xor eax, eax
push ebp
push 0x501687
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x501661
mov eax, 0x7d1
call fcn.0040922c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004031e4
mov dword [ebp - 0x64], 0x44
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], 0x101
mov word [ebp - 0x34], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe0]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c1c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x501635
xor eax, eax
mov dword [0x5284bc], eax
push 0x64
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov esi, eax
mov eax, dword [0x526bfc]
mov eax, dword [eax]
call fcn.00485290
cmp dword [0x5284bc], 5
jg 0x501661
cmp esi, 0x102
je 0x50158e
xor eax, eax
mov dword [0x5284bc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x7d0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_OemToCharA
lea edx, [ebp - 0x78]
mov eax, ebx
call fcn.00464f1c
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x10]
call fcn.00404954
mov edx, dword [ebp - 0x7c]
pop eax
call fcn.00404a24
mov edx, dword [ebp - 0x78]
mov eax, ebx
call fcn.00464f4c
cmp dword [0x5284bc], 5
jg 0x501661
cmp dword [ebp - 0x14], 0x7d0
jae 0x5015c3
mov eax, dword [ebp - 0x10]
call fcn.00402b18
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50168e
lea eax, [ebp - 0x7c]
call fcn.0040474c
lea eax, [ebp - 0x78]
call fcn.0040474c
lea eax, [ebp - 4]
call fcn.0040474c
ret
Function at 0x502d2c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040546c
xor eax, eax
push ebp
push 0x502f47
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x11c]
mov edx, dword [ebp - 4]
call fcn.004049e4
mov eax, dword [ebp - 0x11c]
call fcn.0040a198
test al, al
jne 0x502daa
mov eax, dword [ebp - 8]
call fcn.00404e68
jmp 0x502f21
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 4]
call fcn.004049e4
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x118]
call fcn.0040a574
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test bx, bx
jne 0x502ded
mov eax, dword [ebp - 8]
call fcn.00404e68
jmp 0x502f21
xor eax, eax
push ebp
push 0x502f0a
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bx
call fcn.00402ae8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x502ef9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
movzx eax, bx
push eax
push 0
lea eax, [ebp - 0x118]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x502f58
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x502ee3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
call fcn.00407e6c
movzx eax, ax
lea edx, [ebp - 0x128]
call fcn.00409bac
push dword [ebp - 0x128]
push 0x502f64
lea edx, [ebp - 0x12c]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 8]
call fcn.00409bac
push dword [ebp - 0x12c]
push 0x502f64
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
call fcn.00407e6c
movzx eax, ax
lea edx, [ebp - 0x130]
call fcn.00409bac
push dword [ebp - 0x130]
push 0x502f64
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0xc]
call fcn.00409bac
push dword [ebp - 0x134]
lea eax, [ebp - 0x124]
mov edx, 7
call fcn.00404adc
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 8]
call fcn.00405030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502f00
mov eax, dword [ebp - 0x10]
call fcn.00402b18
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x502f4e
lea eax, [ebp - 0x134]
mov edx, 7
call fcn.00404770
lea eax, [ebp - 4]
call fcn.00404e68
ret
Function at 0x403090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ec6a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
or edx, 0xffffffff
or esi, edx
or edi, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x30], 0
call fcn.00402ed0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x409970
Capabilities:
Query environment variable

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

Function at 0x40a3c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x5fade4
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x40a3e5
call fcn.0040ab20
jmp 0x40a4ca
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 0x40a403
mov eax, dword [ebp - 4]
jmp 0x40a4ca
cmp dword [0x618184], 0
jne 0x40a411
call fcn.0040a4d0
push 0x5fade8
mov edx, dword [0x618184]
push edx
call fcn.0040c4f0
add esp, 8
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
test eax, eax
jge 0x40a438
xor eax, eax
jmp 0x40a4ca
mov ecx, dword [ebp + 8]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [0x618184]
push eax
call fcn.0040cbb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a4c7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
jmp 0x40a469
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 0x40a475
jmp 0x40a460
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40a489
mov eax, dword [ebp - 0xc]
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jb 0x40a4a8
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x20
jg 0x40a4a8
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jl 0x40a4a8
jmp 0x40a480
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 0x40a4c7
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 0x40b040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x5fadec
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x40b082
push str.WNCTMPDIR
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x40b080
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 0x40b0c0
jmp 0x40b0a9
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x40b0a9
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 0x40b0c0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x618184]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040c460
add esp, 0xc
pop ebp
ret

Function at 0x40b140
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x615cbc]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x40b160
xor eax, eax
jmp 0x40b298
mov eax, dword [ebp + 8]
push eax
push 0x5fae38
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 0x40b19a
mov eax, dword [ebp - 4]
jmp 0x40b298
cmp dword [0x618184], 0
jne 0x40b1a8
call fcn.0040a4d0
push str.path
mov eax, dword [0x618184]
push eax
call fcn.0040c4f0
add esp, 8
mov word [ebp - 8], ax
movsx ecx, word [ebp - 8]
test ecx, ecx
jge 0x40b1ce
xor eax, eax
jmp 0x40b298
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 8]
push eax
mov ecx, dword [0x618184]
push ecx
call fcn.0040cbb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b295
mov edx, dword [ebp - 4]
mov dword [ebp - 0x194], edx
jmp 0x40b20d
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 0x40b21c
jmp 0x40b1fe
mov eax, dword [ebp - 0x194]
sub eax, 1
mov dword [ebp - 0x194], eax
jmp 0x40b23c
mov ecx, dword [ebp - 0x194]
sub ecx, 1
mov dword [ebp - 0x194], ecx
mov edx, dword [ebp - 0x194]
cmp edx, dword [ebp - 4]
jb 0x40b264
mov eax, dword [ebp - 0x194]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x40b264
mov edx, dword [ebp - 0x194]
movsx eax, byte [edx]
test eax, eax
jl 0x40b264
jmp 0x40b22d
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 0x40b295
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.00423eca
mov esp, ebp
pop ebp
ret
Function at 0x40b2b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x615cbc]
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 0x40b301
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 0x40b317
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [0x618184]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c460
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423eca
mov esp, ebp
pop ebp
ret

Function at 0x410330
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 0x410369
push 0x5fb68c
mov eax, dword [ebp - 4]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
je 0x410369
mov eax, 1
jmp 0x41036b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x410e30
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 0x410e4b
xor eax, eax
jmp 0x410e57
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x410f40
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 0x410f64
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 0xd
je 0x410f64
or eax, 0xffffffff
jmp 0x410f66
xor eax, eax
pop ebp
ret