joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403400
Capabilities:
Terminate process

Disassembly:
sub esp, 0x30
mov eax, dword [0x4416f4]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push ebx
push esi
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
xor bl, bl
push str.netshell.dll
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov byte [esp + 0x13], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor edi, edi
cmp esi, edi
mov dword [esp + 0x20], esi
je 0x403600
push ebp
push str.NcFreeNetconProperties
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, edi
je 0x4035f8
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x20]
push ecx
push 0x433fd4
push 0x17
push edi
push 0x438c74
mov dword [esp + 0x34], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4035f2
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push edi
push eax
call edx
test eax, eax
jl 0x4035e6
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x4035d6
test bl, bl
jne 0x4035d6
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
test eax, eax
jl 0x4035aa
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00403330
add esp, 8
cmp eax, 1
jne 0x4035a3
cmp byte [esp + 0x54], bl
mov esi, 3
je 0x403560
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
cmp eax, edi
sete cl
test cl, cl
mov byte [esp + 0x13], cl
jne 0x40359d
sub esi, 1
je 0x40359d
mov ecx, eax
sar ecx, 0x10
and ecx, 0x1fff
cmp ecx, 8
je 0x403554
cmp ecx, 7
jne 0x403557
movzx eax, ax
cmp eax, 0x4d5
je 0x403521
jmp 0x40359d
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
cmp eax, edi
sete cl
test cl, cl
mov byte [esp + 0x13], cl
jne 0x40359d
sub esi, 1
je 0x40359d
mov ecx, eax
sar ecx, 0x10
and ecx, 0x1fff
cmp ecx, 8
je 0x403593
cmp ecx, 7
jne 0x403596
movzx eax, ax
cmp eax, 0x4d5
je 0x403560
mov esi, dword [esp + 0x24]
mov bl, 1
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x4034d6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
add esp, 0x30
jmp fcn.0041f6fd
Function at 0x403e30
Capabilities:
Get file version info
Terminate process

Disassembly:
sub esp, 0x210
mov eax, dword [0x4416f4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x10]
push eax
mov esi, ecx
push 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
push edi
call fcn.004200eb
add esp, 4
test edi, edi
mov dword [esi], eax
je 0x403eae
push eax
mov eax, dword [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x403eae
mov edx, dword [esi]
push edx
call fcn.0041fff9
add esp, 4
mov dword [esi], 0
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
add esp, 0x210
jmp fcn.0041f6fd

Function at 0x4046b2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4416f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x404740
push 0x4345c8
push 4
push eax
call fcn.00404677
add esp, 0xc
push ebx
push edi
call fcn.0042058b
mov edi, dword [eax]
call fcn.0042058b
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00420531
add esp, 0x14
mov ebx, eax
call fcn.0042058b
cmp dword [eax], 0
je 0x40475b
call fcn.0042058b
mov eax, dword [eax]
cmp eax, 0xc
je 0x404754
cmp eax, 0x16
je 0x404736
cmp eax, 0x22
jne 0x404762
push 0x80070057
call fcn.00401250
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4046e4
jmp 0x40477e
push 0x8007000e
jmp 0x40473b
call fcn.0042058b
mov dword [eax], edi
cmp ebx, 0xffffffff
je 0x40477a
cmp ebx, esi
jae 0x40477a
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40477c
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041f6fd
leave
ret
Function at 0x405b67
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x4321a3
call fcn.004201b0
sub esp, 0x228
mov eax, dword [0x4416f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x405c75
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x405c49
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00402e30
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00405b67
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401380
test bl, bl
jne 0x405c49
or dword [ebp - 4], 0xffffffff
jmp 0x405bb4
cmp esi, 0x103
je 0x405c59
cmp esi, 0x3f2
jne 0x405c69
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f6fd
leave
ret 8
Function at 0x406af7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x432204
call fcn.004201b0
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
call fcn.00408ba6
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x406b49
call fcn.00408ba6
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x406b5a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x406b67
or eax, 0xffffffff
jmp 0x406cbb
mov ecx, esi
call fcn.0040661b
mov dword [ebp - 0x14], eax
call fcn.0040b52b
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x406be5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x406be5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x406be5
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040469f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x406be5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x406be5
mov ecx, ebx
call fcn.0040e28e
test eax, eax
je 0x406be5
push 0
mov ecx, ebx
call fcn.0040e2a9
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0040cf19
push dword [ebp - 0x14]
call fcn.0040b483
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004068f3
xor edi, edi
cmp eax, edi
je 0x406c42
test byte [esi + 0x3c], 0x10
je 0x406c2c
push 4
pop edi
mov ecx, esi
call fcn.0040e19f
test ax, 0x100
je 0x406c22
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040b01b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x406c42
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040e47e
or dword [ebp - 4], 0xffffffff
jmp 0x406c65
cmp dword [ebp - 0x28], edi
je 0x406c73
push 1
mov ecx, ebx
call fcn.0040e2a9
cmp dword [ebp - 0x2c], edi
je 0x406c83
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x406c9c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x406c9c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00406655
cmp dword [esi + 0x58], edi
je 0x406cb8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4075c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40760a
call fcn.00408ba6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40760a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40764d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x407636
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407636
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40764a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40c4f5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40c52e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00406f15
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00405acc
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40e083
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e0c6
call fcn.00408ba6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e0c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e0e1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040dc3d
test ebx, ebx
mov esi, eax
je 0x40e0df
test edi, edi
je 0x40e0df
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40e798
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x432296
call fcn.004201b0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40e7b2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40e802
call fcn.0040ebac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408003
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401380
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40fedc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x4323fb
call fcn.004201b0
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
mov dword [ebp - 0x10], esp
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x40fffd
cmp eax, dword [edi + 0xc]
jge 0x40fffd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x40ff51
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x40ffe6
cmp dword [ebp + 0xc], ebx
je 0x40ffe6
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x40ff96
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x40ffa6
push 0x10
mov dword [ebp - 4], ebx
call fcn.0040fb83
cmp eax, ebx
je 0x40ff69
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x40ff6b
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0040fdbb
jmp 0x40ff3a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x40ffb8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004081e9
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00420660
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40fff8
cmp ecx, dword [esi + 8]
jge 0x40fff8
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 0x14]
jmp 0x40fffe
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x4100c1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4100ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41010d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041002b
jmp 0x41010d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41010d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041002b
test edi, edi
mov eax, edi
jne 0x4100f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x444798]
test ecx, ecx
je 0x4101d3
jmp 0x4100c0
ret 8

Function at 0x410fc8
Capabilities:
Get disk information

Disassembly:
mov eax, 0x432482
call fcn.004201b0
sub esp, 0x268
mov eax, dword [0x4416f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 0x26c], eax
jne 0x410ffd
call fcn.0040821d
test ebx, ebx
je 0x410ff8
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x41103a
push 0xffffffffffffffff
push ebx
push esi
push edi
call fcn.00408003
add esp, 0x10
push ebx
push dword [ebp - 0x26c]
call fcn.00410f9d
xor eax, eax
jmp 0x411144
cmp eax, esi
jae 0x411033
call fcn.0040ebac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.00410ded
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x411133
push eax
push eax
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x274]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4110ba
push ebx
push dword [ebp - 0x26c]
call fcn.00410f9d
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00401380
jmp 0x411033
test byte [ebp - 0x270], 2
jne 0x4110ca
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x270], 4
jne 0x411133
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x411133
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x4110a7
cmp dword [ebp - 0x268], edi
jbe 0x4110a7
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add eax, ecx
cmp eax, esi
jge 0x4110a7
lea eax, [ebp - 0x234]
push eax
sub esi, ecx
push esi
push dword [ebp - 0x268]
call fcn.00404677
add esp, 0xc
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00401380
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f6fd
leave
ret 0xc
Function at 0x41eff5
Capabilities:
Terminate process

Disassembly:
push 0x60
push 0x43d938
call fcn.00420730
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edi, 0x94
push edi
push 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x41f03a
push 0x12
call fcn.0041ef90
pop ecx
mov eax, 0xff
jmp 0x41f1b7
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x41f054
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41f030
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov edi, dword [esi + 0xc]
and edi, 0x7fff
xor esi, esi
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x20]
cmp ebx, 2
je 0x41f089
or edi, 0x8000
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shl eax, 8
mov edx, dword [ebp - 0x28]
add eax, edx
mov dword [0x444aa4], ebx
mov dword [0x444aac], eax
mov dword [0x444ab0], ecx
mov dword [0x444ab4], edx
mov dword [0x444aa8], edi
call fcn.0041efb4
mov dword [ebp - 0x20], eax
call fcn.0042044d
push 1
call fcn.00422b3b
pop ecx
test eax, eax
jne 0x41f0d4
push 0x1c
call fcn.0041ef90
pop ecx
call fcn.004229d3
test eax, eax
jne 0x41f0e5
push 0x10
call fcn.0041ef90
pop ecx
call fcn.00420235
call fcn.00422746
mov dword [ebp - 4], esi
call fcn.0042250e
test eax, eax
jge 0x41f103
push 0x1b
call fcn.004201cf
pop ecx
call fcn.0042246f
mov dword [0x446654], eax
call fcn.00422303
mov dword [0x444a98], eax
call fcn.00422258
test eax, eax
jge 0x41f128
push 8
call fcn.004201cf
pop ecx
call fcn.0042202f
test eax, eax
jge 0x41f139
push 9
call fcn.004201cf
pop ecx
push 1
call fcn.004202ed
pop ecx
cmp eax, esi
je 0x41f14c
push eax
call fcn.004201cf
pop ecx
call fcn.00421fe9
test byte [ebp - 0x44], 1
je 0x41f15d
movzx ecx, word [ebp - 0x40]
jmp 0x41f160
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call fcn.00431cea
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
jne 0x41f17b
push eax
call fcn.0042040d
call fcn.0042042f
jmp 0x41f1b0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.0042076b
ret

Function at 0x41f6fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4416f4]
jne 0x41f70e
test ecx, 0xffff0000
jne 0x41f70e
ret
jmp fcn.00423c10
Function at 0x421c5d
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
cmp esi, dword [edi*8 + 0x441890]
je 0x421c75
inc edi
cmp edi, 0x16
jl 0x421c66
cmp edi, 0x16
jae 0x421df4
push ebx
push 3
call fcn.0042a680
cmp eax, 1
pop ecx
je 0x421dc5
push 3
call fcn.0042a680
test eax, eax
pop ecx
jne 0x421ca9
cmp dword [0x4416c8], 1
je 0x421dc5
cmp esi, 0xfc
je 0x421df3
push ebp
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x444af8
push ebp
call fcn.0042a61b
add esp, 0xc
test eax, eax
je 0x421ce2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423957
add esp, 0x14
push 0x104
mov esi, 0x444b12
push esi
push 0
mov byte [0x444c16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421d26
push str._program_name_unknown_
push 0x2fa
push esi
call fcn.0042a61b
add esp, 0xc
test eax, eax
je 0x421d26
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423957
add esp, 0x14
push esi
call fcn.0042a590
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x421d6b
push esi
call fcn.0042a590
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x444e0c
push 0x4378ac
sub ecx, eax
push ecx
push eax
call fcn.0042a4dc
add esp, 0x14
test eax, eax
je 0x421d6b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00423957
add esp, 0x14
jmp 0x421d6d
xor esi, esi
push 0x4378a8
push ebx
push ebp
call fcn.0042a46b
add esp, 0xc
test eax, eax
je 0x421d8d
push esi
push esi
push esi
push esi
push esi
call fcn.00423957
add esp, 0x14
push dword [edi*8 + 0x441894]
push ebx
push ebp
call fcn.0042a46b
add esp, 0xc
test eax, eax
je 0x421daf
push esi
push esi
push esi
push esi
push esi
call fcn.00423957
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042a322
add esp, 0xc
pop ebp
jmp 0x421df3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
test ebx, ebx
je 0x421df3
push 0
lea eax, [esp + 0x10]
push eax
lea esi, [edi*8 + 0x441894]
push dword [esi]
call fcn.0042a590
pop ecx
push eax
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop edi
pop esi
pop ecx
ret