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

Disassembly:
mov eax, 0x1054
call fcn.00402c20
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov ecx, 0x3ff
mov dword [esp + 0x10], eax
lea edi, [esp + 0x5d]
mov dword [esp + 0x14], eax
mov byte [esp + 0x5c], al
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x1060]
lea ecx, [esp + 0x5c]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1064]
mov dword [esp + 0x18], 0x44
push edi
push esi
push str.__s___s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5c]
push edx
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402bd9
push edi
push esi
push 0x4048b8
call fcn.00401000
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x1054
ret
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push edi
push esi
jne 0x402c07
push 0x4048a0
call fcn.00401000
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x1054
ret
push 0x404888
call fcn.00401000
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x1054
ret
Function at 0x4011a0
Capabilities:
Set current directory
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x409050]
push ebx
push esi
mov dword [esp + 0x118], eax
push 0x100
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4011d0
sub eax, edx
dec eax
cmp eax, ebx
jl 0x4011ee
mov edi, edi
cmp byte [esp + eax + 0x18], 0x5c
je 0x4011ee
dec eax
mov byte [esp + eax + 0x19], bl
jns 0x4011e0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [esp + 0x128]
push 2
push 0x40714c
push esi
call fcn.004018f0
add esp, 0xc
test eax, eax
jne 0x401237
call fcn.00401510
call fcn.00401770
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040195a
add esp, 0x114
ret 0x10
push 2
push 0x407150
push esi
call fcn.004018f0
add esp, 0xc
test eax, eax
jne 0x40126e
call fcn.004017e0
call fcn.00401650
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040195a
add esp, 0x114
ret 0x10
push 6
push str._start
push esi
call fcn.004018f0
add esp, 0xc
test eax, eax
je 0x401219
push 5
push str._stop
push esi
call fcn.004018f0
add esp, 0xc
test eax, eax
jne 0x4012b4
call fcn.004017e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040195a
add esp, 0x114
ret 0x10
push 2
push 0x407164
push esi
call fcn.004018f0
add esp, 0xc
test eax, eax
jne 0x4012e6
call fcn.00401870
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040195a
add esp, 0x114
ret 0x10
call fcn.00401500
test eax, eax
je 0x40132b
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], str.NeturoNTService
mov dword [esp + 0x10], 0x4010d0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x110]
call fcn.0040195a
add esp, 0x114
ret 0x10
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x401357
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0040195a
add esp, 0x114
ret 0x10
push str.RegisterServiceProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x40133d
push 1
push ebx
call esi
push str._service
push str.AutoPatcher.exe
call fcn.00401400
push ebx
push ebx
call esi
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x409050]
mov dword [esp + 0x14c], eax
push esi
push edi
xor eax, eax
xor esi, esi
mov ecx, 0x3f
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
cmp eax, esi
mov dword [esp + 8], 0x44
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 1
mov word [esp + 0x38], 1
mov word [esp + 0x3a], si
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x4014a0
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x58]
push str._s__s
push ecx
call fcn.00401968
add esp, 0x10
jmp 0x4014b6
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x54]
push 0x4071b8
push eax
call fcn.00401968
add esp, 0xc
push 0x4096ec
lea ecx, [esp + 0xc]
push ecx
push esi
push esi
push 0x20
push 1
push esi
push esi
lea edx, [esp + 0x70]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x154]
neg eax
sbb eax, eax
neg eax
call fcn.0040195a
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401510
Capabilities:
Create service
Persist via run registry key
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x409050]
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40154b
mov ecx, dword [esp + 0x108]
call fcn.0040195a
add esp, 0x10c
ret
mov eax, dword [0x4096e8]
dec eax
push esi
push edi
je 0x4015b7
dec eax
jne 0x40162c
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40160a
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push str.NeturoNTService
push str.NeturoNTService
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
test edi, edi
je 0x40160a
push edi
call esi
jmp 0x40162c
lea edx, [esp + 8]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40160a
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015d7
mov ecx, dword [esp + 8]
sub eax, edx
inc eax
push eax
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.NeturoNTService
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401621
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
call fcn.0040195a
add esp, 0x10c
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
pop edi
mov eax, 1
pop esi
call fcn.0040195a
add esp, 0x10c
ret
Function at 0x401650
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Query service status
Stop service

Disassembly:
mov eax, dword [0x4096e8]
sub esp, 0x20
dec eax
push esi
push edi
je 0x401708
dec eax
jne 0x401757
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40169b
push 0xf01ff
push str.NeturoNTService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4016a3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4016eb
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ecx
push esi
call edi
test eax, eax
je 0x4016eb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
cmp dword [esp + 0x14], 3
jne 0x4016ea
push 0x3e8
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x4016d0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push esi
je 0x401695
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret
lea eax, [esp + 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40169b
mov ecx, dword [esp + 8]
push str.NeturoNTService
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40174c
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x20
ret

Function at 0x4017e0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4017fe
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push str.NeturoNTService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401825
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40184b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
Function at 0x401aa1
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407210
call fcn.00401e2c
mov edi, 0x94
mov eax, edi
call fcn.004036f0
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 [0x40971c], ecx
mov eax, dword [esi + 4]
mov dword [0x409728], eax
mov edx, dword [esi + 8]
mov dword [0x40972c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x409720], esi
cmp ecx, 2
je 0x401b01
or esi, 0x8000
mov dword [0x409720], esi
shl eax, 8
add eax, edx
mov dword [0x409724], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401b3c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b3c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401b54
cmp eax, 0x20b
je 0x401b41
mov dword [ebp - 0x1c], esi
jmp 0x401b68
cmp dword [ecx + 0x84], 0xe
jbe 0x401b3c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401b62
cmp dword [ecx + 0x74], 0xe
jbe 0x401b3c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040369a
pop ecx
test eax, eax
jne 0x401b94
cmp dword [0x409708], 1
jne 0x401b81
call fcn.00402e4f
push 0x1c
call fcn.00402cd8
push 0xff
call fcn.00402a81
pop ecx
pop ecx
call fcn.004035f8
mov dword [ebp - 4], esi
call fcn.0040344d
test eax, eax
jge 0x401bad
push 0x1b
call fcn.00401a7c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ac94], eax
call fcn.0040332b
mov dword [0x409700], eax
call fcn.00403289
test eax, eax
jge 0x401bd3
push 8
call fcn.00401a7c
pop ecx
call fcn.00403056
test eax, eax
jge 0x401be4
push 9
call fcn.00401a7c
pop ecx
push 1
call fcn.00402ab1
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401bfa
push eax
call fcn.00401a7c
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402ff9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401c1b
movzx eax, word [ebp - 0x40]
jmp 0x401c1e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004011a0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401c3c
push edi
call fcn.00402bdc
call fcn.00402bfe
jmp 0x401c6e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401e67
ret
Function at 0x402b1b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40975c], esi
push edi
jne 0x402b3b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x409758], esi
mov byte [0x409754], al
jne 0x402ba1
mov ecx, dword [0x40ac88]
test ecx, ecx
je 0x402b82
mov eax, dword [0x40ac84]
sub eax, 4
cmp eax, ecx
jmp 0x402b7b
mov eax, dword [eax]
test eax, eax
je 0x402b6d
call eax
mov eax, dword [0x40ac84]
sub eax, 4
cmp eax, dword [0x40ac88]
mov dword [0x40ac84], eax
jae 0x402b65
mov eax, 0x409024
mov esi, 0x40902c
cmp eax, esi
mov edi, eax
jae 0x402ba1
mov eax, dword [edi]
test eax, eax
je 0x402b9a
call eax
add edi, 4
cmp edi, esi
jb 0x402b92
mov eax, 0x409030
mov esi, 0x409034
cmp eax, esi
mov edi, eax
jae 0x402bc0
mov eax, dword [edi]
test eax, eax
je 0x402bb9
call eax
add edi, 4
cmp edi, esi
jb 0x402bb1
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402bda
push dword [ebp + 8]
mov dword [0x40975c], 1
call fcn.00402a81
pop ebp
ret

Function at 0x402cd8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409050]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409068]
je 0x402d0d
inc eax
cmp eax, 0x13
jb 0x402cfe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409068]
jne 0x402e33
mov eax, dword [0x409708]
cmp eax, 1
je 0x402e0b
cmp eax, edx
jne 0x402d3d
cmp dword [0x409058], 1
je 0x402e0b
cmp ecx, 0xfc
je 0x402e33
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d73
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403830
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403a60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402da7
mov eax, edi
push eax
call fcn.00403a60
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407254
push edi
call fcn.00403930
add esp, 0x10
push edi
call fcn.00403a60
push dword [esi + 0x40906c]
mov ebx, eax
call fcn.00403a60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004036f0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403830
push edi
push ebx
call fcn.00403840
push 0x407250
push ebx
call fcn.00403840
push dword [esi + 0x40906c]
push ebx
call fcn.00403840
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040372d
add esp, 0x2c
jmp 0x402e33
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40906c]
push dword [esi]
call fcn.00403a60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040195a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40372d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409874], ebx
push esi
push edi
jne 0x4037ad
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4037e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x409874], eax
je 0x4037e8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409878], eax
call esi
cmp dword [0x40971c], 2
mov dword [0x40987c], eax
jne 0x4037ad
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409884], eax
je 0x4037ad
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409880], eax
mov eax, dword [0x409880]
test eax, eax
je 0x4037f2
call eax
test eax, eax
je 0x4037d9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409884]
test eax, eax
je 0x4037d9
test byte [ebp - 8], 1
jne 0x4037f2
cmp dword [0x409728], 4
jb 0x4037ec
or byte [ebp + 0x12], 0x20
jmp 0x403811
xor eax, eax
jmp 0x403821
or byte [ebp + 0x12], 4
jmp 0x403811
mov eax, dword [0x409878]
test eax, eax
je 0x403811
call eax
mov ebx, eax
test ebx, ebx
je 0x403811
mov eax, dword [0x40987c]
test eax, eax
je 0x403811
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409874]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bda
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x403c08
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x403c0f
cmp ebx, dword [eax + 4]
jae 0x403c0f
xor eax, eax
jmp 0x403dff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x403c20
xor eax, eax
inc eax
jmp 0x403dfe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x403c36
cmp ecx, edx
jae 0x403d7b
cmp dword [eax + 4], 0
je 0x403c3f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x403c27
cmp dword [ebp + 8], 0
je 0x403c61
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x403d7b
cmp eax, esi
jae 0x403d7b
mov eax, dword [0x409888]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x403c86
cmp dword [esi*4 + 0x409890], edi
je 0x403d7f
inc esi
cmp esi, eax
jl 0x403c74
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403dfb
cmp dword [ebp - 8], 0x1000000
jne 0x403dfb
test byte [ebp - 0xc], 0xcc
je 0x403d04
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x403dfb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403dfb
cmp word [eax + 0x18], 0x10b
jne 0x403dfb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x403dfb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x403d04
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x403d04
test byte [ecx + 0x27], 0x80
jne 0x403d7b
push 1
push 0x4098d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x403c18
mov ecx, dword [0x409888]
test ecx, ecx
mov edx, ecx
jle 0x403d38
lea eax, [ecx*4 + 0x40988c]
cmp dword [eax], edi
je 0x403d38
dec edx
sub eax, 4
test edx, edx
jg 0x403d2c
test edx, edx
jne 0x403d69
push 0xf
pop ebx
cmp ecx, ebx
jg 0x403d45
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x403d5d
lea eax, [edx*4 + 0x409890]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x403d4b
cmp ecx, 0x10
jge 0x403d69
inc ecx
mov dword [0x409888], ecx
push 0
push 0x4098d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x403c18
xor eax, eax
jmp 0x403dfe
test esi, esi
jle 0x403c18
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4098d0
call ebx
test eax, eax
jne 0x403c18
cmp dword [esi*4 + 0x409890], edi
je 0x403dd5
mov eax, dword [0x409888]
lea esi, [eax - 1]
test esi, esi
jl 0x403dc3
cmp dword [esi*4 + 0x409890], edi
je 0x403dbf
dec esi
jns 0x403db3
test esi, esi
jge 0x403dd3
cmp eax, 0x10
jge 0x403dce
inc eax
mov dword [0x409888], eax
lea esi, [eax - 1]
jmp 0x403dd5
je 0x403ded
xor ecx, ecx
test esi, esi
jl 0x403ded
lea eax, [ecx*4 + 0x409890]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x403ddb
push 0
push 0x4098d0
call ebx
jmp 0x403c18
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e8f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40ab6c]
mov eax, dword [0x409050]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x404055
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ab80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x404055
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x403ef9
xor eax, eax
jmp 0x404069
test al, 0x20
je 0x403f0a
push 2
push edi
push edi
push ecx
call fcn.004056ae
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x403fdf
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x404026
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x403f6c
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x403f5d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x403f3f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403fac
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x403fb8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x403f33
jmp 0x403fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x404050
cmp dword [ebp + 0x3a4], edi
je 0x404026
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x404018
mov dword [0x409714], eax
jmp 0x40405c
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40400a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x403fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x403fba
push dword [ebp + 0x3a4]
call fcn.00405599
pop ecx
jmp 0x404066
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40403e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x403ef2
mov dword [0x409710], 0x1c
mov dword [0x409714], edi
jmp 0x404066
sub eax, dword [ebp - 0x7c]
jmp 0x404069
and dword [0x409714], 0
mov dword [0x409710], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040195a
add ebp, 0x39c
leave
ret
Function at 0x406519
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.004036f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4065b4
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 [0x40971c]
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 0x4065b4
cmp eax, 1
je 0x4065d5
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 0x4065b4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406581
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4065b0
xor eax, eax
inc eax
jmp 0x4065f4
cmp edi, eax
jae 0x4065b8
xor eax, eax
jmp 0x4065f4
cmp eax, esi
jae 0x4065bf
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 [0x40971c]
jmp 0x4065d8
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