joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a260
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40a2d3
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffe
pop esi
add esp, 8
ret
or eax, 0xffffffff
add esp, 8
ret

Function at 0x40a2e0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
je 0x40a341
cmp byte [esi], 0
je 0x40a341
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push 0x20006
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a33a
mov eax, dword [esp + 0x18]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40a3c3
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0x20006
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x40a37f
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40a3c3
push str.shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a3ba
push str.SHDeleteKeyA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a3ba
push edi
push ebx
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40a3c3
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x40a3d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
or edx, 0x20019
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0
push eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a4a9
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
push ebx
mov ebx, ecx
shr ecx, 2
push edi
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40a485
lea ecx, [esp + 0x10]
push ecx
push edx
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x30]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40a46c
pop edi
pop ebx
mov eax, 0xfffffffe
pop esi
add esp, 8
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [edx], eax
pop ebx
mov dword [esi], ecx
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], 0x1020001
pop ebx
mov dword [esi], 0
xor eax, eax
pop esi
add esp, 8
ret
or eax, 0xffffffff
pop esi
add esp, 8
ret

Function at 0x40ab10
Capabilities:
Terminate thread

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 4], 0
jg 0x40ab43
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
add esp, 0x14
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
push esi
mov dword [esp + 0x10], edx
lea edx, [esp + 8]
push edx
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0x40aae0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x3c]
push 0
push 0
mov dword [esp + 0x30], ecx
call fcn.004102aa
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40abe1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
imul edi, edi, 0x3e8
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x40abbf
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
pop esi
pop edi
add esp, 0x14
ret
push 0xffffffffffffff9c
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
mov dword [esp + 0x34], 0xffffff9c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
pop esi
pop edi
add esp, 0x14
ret
pop esi
or eax, 0xffffffff
pop edi
add esp, 0x14
ret
Function at 0x40abf0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
xor ebx, ebx
mov dword [esp + 0x34], 0x9c
call esi
test eax, eax
jne 0x40ac41
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call esi
test eax, eax
jne 0x40ac41
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x34]
cmp eax, 6
jae 0x40ac56
cmp eax, 5
jne 0x40ac90
cmp dword [esp + 0x38], 2
jne 0x40ac90
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac83
lea ecx, [esp + 0xc]
push ecx
call eax
cmp word [esp + 0xc], 9
jne 0x40ac90
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40aca0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebp
push edi
mov edi, dword [esp + 0x14]
or ebp, 0xffffffff
test edi, edi
mov dword [esp + 8], 0
jne 0x40acc3
pop edi
mov eax, 0x57
pop ebp
add esp, 8
ret
push ebx
push esi
lea eax, [esp + 0x10]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jbe 0x40ad7e
push esi
call fcn.00410c85
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ad86
mov ecx, dword [esp + 0x10]
push ebx
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40ad63
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0x41d788
xor esi, esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ad63
cmp dword [esp + 0x1c], 0x34
jne 0x40ad6b
mov ecx, dword [esp + 0x14]
cmp dword [ecx], 0xfeef04bd
jne 0x40ad6b
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x40ad41
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x40ad4e
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
push ebx
xor ebp, ebp
call fcn.00410b6d
add esp, 4
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push ebx
call fcn.00410b6d
add esp, 4
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
pop esi
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x40bc40
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc4
push ebx
push esi
push edi
xor ebx, ebx
mov esi, eax
xor eax, eax
cmp esi, ebx
mov ecx, 0x104
lea edi, [esp + 0x429]
mov byte [esp + 0x428], bl
rep stosd dword es:[edi], eax
mov ecx, 0x104
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
je 0x40bd90
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x40bd90
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40bd90
cmp byte [edi], bl
je 0x40bd90
cmp byte [eax], bl
je 0x40bd90
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40bcb0
sub eax, edx
dec eax
cmp eax, ebx
jl 0x40bcca
cmp byte [eax + esi], 0x5c
jne 0x40bcca
mov byte [esp + 0xc], bl
jmp 0x40bcd3
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], bl
mov eax, dword [ebp + 0xc]
push edi
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x438]
push str._s_s_s_s
push edx
call fcn.00410464
push edi
lea eax, [esp + 0x28]
push eax
push esi
lea ecx, [esp + 0x34]
push str._s_s_s
push ecx
call fcn.00410464
add esp, 0x2c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bd2d
test al, 1
je 0x40bd2d
push 0x80
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40bd50
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
cmp edi, ebx
mov esi, 0xfffffffe
je 0x40bd87
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x844]
push str.Failed_to_rename_K_VNC_file__s._r_n
push ecx
call fcn.00410464
lea edx, [esp + 0x84c]
push edx
push edi
call fcn.0040aa30
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
push ebx
push esi
mov esi, dword [esp + 0x11c]
xor ebx, ebx
cmp esi, ebx
je 0x40cfa1
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x40cfa1
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ceb8
sub eax, edx
mov cl, byte [esp + eax + 0x13]
push edi
lea edi, [esp + 0x18]
dec edi
cmp cl, 0x5c
jne 0x40cef5
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40ced0
mov ecx, dword [str.mstsc.exe]
mov edx, dword [0x41df78]
mov ax, word [0x41df7c]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov word [edi + 8], ax
jmp 0x40cf21
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40cef5
mov ecx, dword [0x41df68]
mov edx, dword [0x41df6c]
mov ax, word [0x41df70]
mov dword [edi], ecx
mov cl, byte [0x41df72]
mov dword [edi + 4], edx
mov word [edi + 8], ax
mov byte [edi + 0xa], cl
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aca0
add esp, 0xc
test eax, eax
pop edi
jne 0x40cfa1
mov ecx, dword [esp + 0xc]
mov eax, ecx
movzx edx, cx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
shr ecx, 0x10
cmp eax, 6
jg 0x40cf65
jne 0x40cfa1
cmp edx, ebx
jg 0x40cf65
jne 0x40cfa1
cmp ecx, 0x1771
jl 0x40cfa1
push str.connect_to_console:i:
push esi
call fcn.0040ad90
add esp, 8
cmp eax, ebx
je 0x40cfa1
lea edx, [esp + 8]
push edx
add eax, 0x15
push str._d_r
push eax
mov dword [esp + 0x14], ebx
call fcn.00411057
add esp, 0xc
cmp eax, 1
jne 0x40cfa1
cmp dword [esp + 8], ebx
jle 0x40cfa1
mov ebx, 1
pop esi
mov eax, ebx
pop ebx
add esp, 0x110
ret
Function at 0x40ffc0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x110
push ebp
push edi
mov edi, dword [esp + 0x11c]
xor ebp, ebp
test edi, edi
je 0x410148
cmp byte [edi], 0
je 0x410148
push ebp
push ebp
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x41013d
push ebp
push ebp
push ebp
push 3
push ebp
push ebp
push ebp
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x410137
lea eax, [esp + 0x10]
push eax
push 0x4211fc
push 1
push ebp
push 0x4212cc
mov dword [esp + 0x24], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x410137
push str.ROOTCIMV2
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebp
call fcn.0040fd40
mov eax, dword [eax]
test eax, eax
je 0x41004b
mov ecx, dword [eax]
jmp 0x41004d
xor ecx, ecx
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
lea esi, [esp + 0x10]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [edx + 0xc]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0040fe30
test esi, esi
pop esi
jl 0x41012d
mov eax, dword [esp + 0xc]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x410123
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edi
push edx
mov dword [esp + 0x14], 0
call fcn.0040fe50
mov ebp, eax
add esp, 0xc
cmp ebp, 1
je 0x410112
push 0x2e
push edi
call fcn.00410ca0
add esp, 8
test eax, eax
je 0x4100e4
push 4
push str..exe
push eax
call fcn.004119a6
add esp, 0xc
test eax, eax
je 0x41010d
push edi
lea eax, [esp + 0x18]
push str._s.exe
push eax
call fcn.00410464
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call fcn.0040fe50
add esp, 0x18
mov ebp, eax
cmp ebp, 1
jne 0x410123
mov eax, dword [esp + 0x120]
test eax, eax
je 0x410123
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
mov eax, ebp
pop ebp
add esp, 0x110
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x110
ret

Function at 0x4102aa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4102c7
call fcn.004115a9
mov dword [eax], 0x16
xor eax, eax
jmp 0x410331
push esi
push 0x8c
push 1
call fcn.00412980
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41031c
push esi
call fcn.0041231f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4102fa
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x410215
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x410330
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00410b6d
test ebx, ebx
pop ecx
je 0x41032e
push ebx
call fcn.004115bb
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x412124
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4200e0
call fcn.00412934
mov edi, 0x94
mov eax, edi
call fcn.00410740
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x424cb8], ecx
mov eax, dword [esi + 4]
mov dword [0x424cc4], eax
mov edx, dword [esi + 8]
mov dword [0x424cc8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x424cbc], esi
cmp ecx, 2
je 0x412184
or esi, 0x8000
mov dword [0x424cbc], esi
shl eax, 8
add eax, edx
mov dword [0x424cc0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4121bf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4121bf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4121d7
cmp eax, 0x20b
je 0x4121c4
mov dword [ebp - 0x1c], esi
jmp 0x4121eb
cmp dword [ecx + 0x84], 0xe
jbe 0x4121bf
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4121e5
cmp dword [ecx + 0x74], 0xe
jbe 0x4121bf
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004141ce
pop ecx
test eax, eax
jne 0x4121ff
push 0x1c
call fcn.00412100
pop ecx
call fcn.00412519
test eax, eax
jne 0x412210
push 0x10
call fcn.00412100
pop ecx
call fcn.004186f1
mov dword [ebp - 4], esi
call fcn.00416a95
test eax, eax
jge 0x412229
push 0x1b
call fcn.004120db
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x426534], eax
call fcn.004185cf
mov dword [0x424c98], eax
call fcn.0041852d
test eax, eax
jge 0x41224f
push 8
call fcn.004120db
pop ecx
call fcn.004182fa
test eax, eax
jge 0x412260
push 9
call fcn.004120db
pop ecx
push 1
call fcn.00412662
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x412276
push eax
call fcn.004120db
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041829d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x412297
movzx eax, word [ebp - 0x40]
jmp 0x41229a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040cfb0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4122b8
push edi
call fcn.0041278f
call fcn.004127b1
jmp 0x4122ea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041296f
ret
Function at 0x4126cc
Capabilities:
Terminate process

Disassembly:
push 8
push 0x420150
call fcn.00412934
push 8
call fcn.00414372
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x424cf8], esi
jne 0x412700
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x424cf4], esi
mov al, byte [ebp + 0x10]
mov byte [0x424cf0], al
cmp dword [ebp + 0xc], edi
jne 0x41274a
cmp dword [0x42652c], edi
je 0x41273a
mov eax, dword [0x426528]
sub eax, 4
mov dword [0x426528], eax
cmp eax, dword [0x42652c]
jb 0x41273a
mov eax, dword [eax]
cmp eax, edi
je 0x41271b
call eax
jmp 0x41271b
push 0x423034
mov eax, 0x42302c
call fcn.0041264a
pop ecx
push 0x423040
mov eax, 0x423038
call fcn.0041264a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41277b
cmp dword [ebp + 0x10], edi
jne 0x412789
mov dword [0x424cf8], esi
push dword [ebp + 8]
call fcn.00412608
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412788
push 8
call fcn.004142bd
pop ecx
ret
call fcn.0041296f
ret
Function at 0x413509
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4136df
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4253e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4136df
test cl, 0x48
je 0x413574
cmp byte [eax + 5], 0xa
je 0x413574
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4135c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4135ae
call fcn.004115a9
mov dword [eax], 9
call fcn.004115b2
mov dword [eax], esi
jmp 0x4135be
cmp eax, 0x6d
je 0x4136df
push eax
call fcn.004115bb
pop ecx
or eax, 0xffffffff
jmp 0x4136e1
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4136da
test eax, eax
je 0x4135ed
cmp byte [ebx], 0xa
jne 0x4135ed
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4135f6
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4136d4
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4136c4
cmp al, 0xd
je 0x413628
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4136b6
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x413642
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41363d
add dword [ebp + 0x10], 2
jmp 0x413696
mov dword [ebp + 0x10], eax
jmp 0x4136b2
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41366a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4136b2
cmp dword [ebp - 0xc], 0
je 0x4136b2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41368b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x413696
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4136b5
cmp ebx, dword [ebp + 0xc]
jne 0x41369b
cmp byte [ebp - 1], 0xa
jne 0x41369b
mov byte [ebx], 0xa
jmp 0x4136b5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418fc5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4136b6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41360c
jmp 0x4136d4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4136d4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4136e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41573e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00410740
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4157d9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x424cb8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4157d9
cmp eax, 1
je 0x4157fa
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4157d9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4157a6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4157d5
xor eax, eax
inc eax
jmp 0x415819
cmp edi, eax
jae 0x4157dd
xor eax, eax
jmp 0x415819
cmp eax, esi
jae 0x4157e4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x424cb8]
jmp 0x4157fd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret