joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410760
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432518
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x448034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 7
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push str.country
mov word [esi], ax
call fcn.00402fc0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
xor eax, eax
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
cmp word [edi], ax
jne 0x4107d1
xor ecx, ecx
jmp 0x4107e5
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107d6
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x18]
call fcn.00402fc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411fd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0x20
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412060
lea eax, [ebp - 0x14]
push eax
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp + 8]
neg eax
push 0
sbb eax, eax
push 0
and eax, 2
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
neg eax
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 4
Function at 0x4130c0
Capabilities:
Enumerate device drivers on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432c50
mov eax, dword fs:[0]
push eax
mov eax, 0x1864
call fcn.00430ae0
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x181c], ecx
mov esi, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
push 0x14
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x413338
lea eax, [ebp - 0x1814]
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 4], 7
mov dword [ebx], vtable.elex::ListValue.0
push 0x1000
lea eax, [ebp - 0x1810]
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call dword [sym.imp.PSAPI.DLL_EnumDeviceDrivers]
test eax, eax
je 0x4132d9
mov eax, dword [ebp - 0x1814]
cmp eax, 0x1000
jae 0x4132d9
shr eax, 2
xor edi, edi
mov dword [ebp - 0x1818], 0
mov dword [ebp - 0x1820], eax
test eax, eax
jle 0x4132d9
jmp 0x4131a0
push 0x400
lea eax, [ebp - 0x810]
push eax
push dword [ebp + edi*4 - 0x1810]
call dword [sym.imp.PSAPI.DLL_GetDeviceDriverFileNameW]
test eax, eax
je 0x4132be
lea ecx, [ebp - 0x810]
call fcn.00404520
test eax, eax
je 0x4132c6
lea ecx, [ebp - 0x810]
call fcn.00412550
test al, al
jne 0x4132c6
push 0x10
call esi
add esp, 4
mov dword [ebp - 0x183c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x413211
mov ecx, eax
mov dword [eax + 8], 0
call fcn.00420f20
mov esi, eax
jmp 0x413213
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4132c6
mov edx, esi
lea ecx, [ebp - 0x810]
call fcn.00416780
test eax, eax
jne 0x413240
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4132c6
cmp dword [esi + 0xc], 0
jne 0x413250
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4132c6
push 0x4374d8
lea ecx, [ebp - 0x1854]
call fcn.00402620
lea edx, [ebp - 0x810]
lea ecx, [ebp - 0x186c]
mov dword [ebp - 4], 1
call fcn.00405430
push eax
lea eax, [ebp - 0x1854]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004213c0
lea ecx, [ebp - 0x186c]
call fcn.00402800
lea ecx, [ebp - 0x1854]
mov dword [ebp - 4], 0xffffffff
call fcn.00402680
push esi
mov esi, dword [ebp - 0x1818]
push esi
mov ecx, ebx
call fcn.00421e00
inc esi
mov dword [ebp - 0x1818], esi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
inc edi
cmp edi, dword [ebp - 0x1820]
jl 0x4131a0
push 7
push str.modules
lea ecx, [ebp - 0x1838]
mov dword [ebp - 0x1824], 0xf
mov dword [ebp - 0x1828], 0
mov byte [ebp - 0x1838], 0
call fcn.00402da0
mov ecx, dword [ebp - 0x181c]
push ebx
lea eax, [ebp - 0x1838]
push eax
mov dword [ebp - 4], 3
call fcn.00421100
cmp dword [ebp - 0x1824], 0x10
jb 0x413338
push dword [ebp - 0x1838]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x414920
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x41495c
mov eax, dword [0x44d9a0]
test al, 1
jne 0x41494f
or eax, 1
push 0x435850
mov dword [0x44d9a0], eax
mov dword [0x44d9a4], 0
call fcn.0042f0a2
add esp, 4
mov edx, esi
mov ecx, 0x44d9a4
pop esi
jmp fcn.00412600
pop esi
ret

Function at 0x414960
Capabilities:
Enumerate device drivers on windows

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x414997
mov eax, dword [0x44d9a0]
test al, 1
jne 0x41498f
or eax, 1
push 0x435850
mov dword [0x44d9a0], eax
mov dword [0x44d9a4], 0
call fcn.0042f0a2
add esp, 4
mov ecx, esi
pop esi
jmp fcn.004130c0
pop esi
ret

Function at 0x416670
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x41676d
test eax, eax
je 0x41676d
push ebx
mov ebx, dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push esi
mov dword [eax], 0
xor esi, esi
mov dword [ebp - 8], 0
xor eax, eax
cmp esi, 3
jae 0x4166c4
lea eax, [ebp - 8]
push eax
push edi
call ebx
inc esi
test eax, eax
je 0x4166b1
jmp 0x4166cc
test eax, eax
je 0x416757
cmp eax, 0x500000
jbe 0x4166e6
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
lea esi, [eax + 1]
mov eax, dword [0x44cc7c]
cmp esi, eax
jbe 0x416721
push esi
call fcn.0042ec57
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x416757
mov eax, dword [0x44cc78]
test eax, eax
je 0x416714
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, esi
mov dword [0x44cc78], ebx
mov dword [0x44cc7c], eax
mov ebx, dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor esi, esi
lea esp, [esp]
push dword [0x44cc78]
push eax
push 0
push edi
call ebx
test eax, eax
jne 0x41674d
inc esi
cmp esi, 3
jae 0x416757
mov eax, dword [0x44cc7c]
jmp 0x416730
mov ecx, dword [ebp - 0xc]
mov eax, dword [0x44cc78]
mov dword [ecx], eax
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x418570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433828
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x14], ecx
jb 0x4185c3
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x14], 3
mov esi, eax
jl 0x418613
mov edx, dword [esi + 8]
cmp word [edx], 0
jne 0x4185e3
xor ecx, ecx
jmp 0x4185ff
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x4185f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4185f0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00402fc0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x41861c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 8
Function at 0x4186e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4337b8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
movq qword [ebp - 0x4c], xmm0
movq qword [ebp - 0x44], xmm0
movq qword [ebp - 0x3c], xmm0
movq qword [ebp - 0x34], xmm0
jb 0x41873c
mov edi, dword [edi]
push 1
push 0
push 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x41881c
push 4
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x418792
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x50]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
xor ecx, ecx
mov edx, 1
test eax, eax
cmovne ecx, edx
push edi
mov dword [ebp - 0x54], ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x54], 0
je 0x41881c
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x4c]
dec eax
cmp eax, 6
ja case.default.0x4187bf
jmp dword [eax*4 + 0x41885c]
push str.stopped
jmp 0x4187f5
push str.start_pending
jmp 0x4187f5
push str.stop_pending
jmp 0x4187f5
push str.running
jmp 0x4187f5
push str.continue_pending
jmp 0x4187f5
push str.pause_pending
jmp 0x4187f5
push str.paused
lea ecx, [ebp - 0x28]
call fcn.00406450
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00402750
cmp dword [ebp - 0x14], 8
jb 0x41883c
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x41883c
xor eax, eax
push eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push 0x436b28
mov ecx, esi
mov word [esi], ax
call fcn.00402fc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x419de0
Capabilities:
Create directory

Disassembly:
push 0x208
xor eax, eax
push 0x44cc98
push eax
mov dword [0x44d0b0], 0
mov word [0x44cc98], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0x44cc98
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x419e1d
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x44cc98
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419e25
push esi
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
sub ecx, edx
sar ecx, 1
mov esi, 0x208
mov eax, esi
sub eax, ecx
push 0x439220
push eax
lea eax, [ecx*2 + 0x44cc98]
push eax
call edi
add esp, 0xc
push 0
push 0x44cc98
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x44cc98
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419e70
sub ecx, edx
sar ecx, 1
mov eax, esi
sub eax, ecx
push 0x436b24
push eax
lea eax, [ecx*2 + 0x44cc98]
push eax
call edi
mov ecx, 0x44cc98
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419ea0
sub ecx, edx
sar ecx, 1
push str.iSafeFeedback
sub esi, ecx
lea eax, [ecx*2 + 0x44cc98]
push esi
push eax
call edi
add esp, 0xc
push 0x419be0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
pop edi
mov dword [0x44d0a8], eax
mov dword [0x44d0ac], 1
mov al, 1
pop esi
ret

Function at 0x419ef0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x419f41
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x419f66
lea eax, [edi + 2]
push eax
call fcn.0042ec57
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
jne 0x419f7f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
je 0x419faa
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419faa
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp esi, edi
jb 0x419f86
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp esi, edi
pop esi
jae 0x419fd5
push eax
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
Function at 0x41a000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x41a018
cmp word [ecx], 0
je 0x41a018
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret
xor al, al
ret

Function at 0x41ac10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x41ac42
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push esi
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x5c
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x41aca9
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x5c
mov word [esi], ax
lea eax, [ebp - 0x214]
push 0x2e
push eax
call dword [sym.imp.MSVCR110.dll_wcsrchr]
add esp, 8
test eax, eax
jne 0x41acd9
push str..zip
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
sub esp, 8
lea ecx, [ebp - 0x214]
call fcn.0042b6a0
mov ecx, dword [ebp - 8]
add esp, 8
test eax, eax
mov dword [ebx], eax
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41ad10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
test esi, esi
je 0x41ad66
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41ad24
sub edx, edi
sar edx, 1
je 0x41ad66
cmp word [esi], ax
je 0x41ad66
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ad66
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, dword [ebx]
mov edx, eax
call fcn.0042b800
add esp, 4
test eax, eax
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x41ad70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x41ae77
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ad97
sub ecx, edx
sar ecx, 1
je 0x41ae77
cmp word [esi], ax
je 0x41ae77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ae77
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push esi
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
lea ecx, [ebp - 0x214]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae02
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x216], 0x5c
je 0x41ae36
push 0x436b24
lea eax, [ebp - 0x214]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
lea edx, [ebp - 0x214]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41ae40
sub edx, esi
sar edx, 1
push edx
push str..LOG
lea eax, [ebp - 0x214]
push eax
mov ecx, edi
call fcn.0041ae90
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b510
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4339c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x448034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi + 0x10]
sub eax, 0xffffff80
mov dword [ebp + 8], eax
mov edx, 2
xor bl, bl
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042ec57
mov edi, eax
add esp, 4
test edi, edi
jne 0x41b57b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
add eax, eax
push eax
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41b596
mov eax, dword [esi]
jmp 0x41b598
mov eax, esi
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, dword [ebp + 8]
ja 0x41b5f0
test eax, eax
je 0x41b5f0
push edi
lea ecx, [ebp - 0x28]
call fcn.004026f0
mov edx, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0041b250
test al, al
sete al
cmp dword [ebp - 0x14], 8
mov byte [ebp + 0xb], al
jb 0x41b5e3
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov al, byte [ebp + 0xb]
add esp, 4
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41d3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
test edi, edi
je 0x41d476
test edx, edx
je 0x41d476
push ebx
mov ebx, dword [edi + 0x3c]
add ebx, edi
je 0x41d3fb
lea eax, [ebx + 0x78]
test eax, eax
jne 0x41d403
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
add eax, edi
push esi
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x20]
add ecx, edi
add esi, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x41d45a
lea esp, [esp]
movsx eax, word [ecx + esi*2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push edx
mov eax, dword [eax + esi*4]
add eax, edi
push eax
call dword [sym.imp.MSVCR110.dll__stricmp]
add esp, 8
test eax, eax
je 0x41d463
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc esi
cmp esi, dword [ebp - 8]
jb 0x41d430
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
pop esi
mov eax, dword [ecx + eax*4]
add eax, dword [ebx + 0x34]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41e700
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x448034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x41e94a
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x11c
call fcn.0041d5e0
test eax, eax
jne 0x41e754
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], 0x114
call fcn.0041d5e0
test eax, eax
je 0x41e94a
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e777
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x41e781
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x440a84
push 0x410
push esi
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
mov eax, dword [ebp - 0x134]
add esp, 0xc
sub eax, 2
jne 0x41e936
cmp dword [ebp - 0x140], 6
push edi
mov edi, dword [sym.imp.MSVCR110.dll_wcscat_s]
jne 0x41e83d
cmp dword [ebp - 0x13c], 3
jne 0x41e7d1
push 0x440a8c
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 2
jne 0x41e7ea
push 0x440a94
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 1
jne 0x41e810
cmp byte [ebp - 0x2a], 1
jne 0x41e800
push 0x440a98
jmp 0x41e805
push 0x440a9c
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x13c], 0
jne 0x41e836
cmp byte [ebp - 0x2a], 1
jne 0x41e826
push str.vista
jmp 0x41e82b
push str.2008
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 6
jb 0x41e865
mov ax, word [ebp - 0x28]
cmp ax, 9
jne 0x41e850
push str._x64
jmp 0x41e85a
test ax, ax
jne 0x41e865
push str._x86
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x41e935
cmp dword [ebp - 0x13c], 2
jne 0x41e8fa
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41e88e
push str.2003_r2
jmp 0x41e8b2
mov eax, 0x2000
cmp word [ebp - 0x2c], ax
je 0x41e8ad
cmp byte [ebp - 0x2a], 1
jne 0x41e8ad
cmp word [ebp - 0x28], 9
jne 0x41e8ad
push str.xp_x64
jmp 0x41e8b2
push str.2003
push 0x410
push esi
call edi
add esp, 0xc
cmp byte [ebp - 0x2a], 1
je 0x41e8f1
mov ax, word [ebp - 0x28]
cmp ax, 6
jne 0x41e8d4
push str._ia64
jmp 0x41e8e6
cmp ax, 9
jne 0x41e8e1
push str._x64
jmp 0x41e8e6
push str._x86
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x41e935
cmp dword [ebp - 0x13c], 1
jne 0x41e91c
push 0x440b14
push 0x410
push esi
call edi
add esp, 0xc
cmp dword [ebp - 0x140], 5
jne 0x41e935
cmp dword [ebp - 0x13c], 0
jne 0x41e935
push str.2000
push 0x410
push esi
call edi
add esp, 0xc
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0042ef5e
mov esp, ebp
pop ebp
ret