joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413a00
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, edx
mov dword [ebp - 0x38], eax
cmp dword [eax + 0x24], 0
je 0x413a32
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x413a48
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x413a50
sub esi, ecx
cmp esi, 0x20
jle 0x413a73
pop esi
mov eax, 8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push edi
push str..mailslot_
lea eax, [ebp - 0x34]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
push ebx
lea eax, [ebp - 0x34]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strcat_s]
mov eax, dword [ebp + 8]
add esp, 0x18
test eax, eax
jne 0x413ac9
push eax
push eax
push 0x1a8
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov edi, eax
cmp edi, 0xffffffff
je 0x413af0
push 0
push 0
push 0
push 0
push 4
push 6
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
jmp 0x413aeb
cmp eax, 1
jne 0x413b33
push 0
push 0x80
push 3
push 0
push eax
push 0x40000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413b06
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp - 0x38]
push ebx
push 0x22
push esi
call dword [sym.imp.MSVCR120.dll_strncpy_s]
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xa
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
Function at 0x413b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x24], 0
jne 0x413b84
pop edi
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x28], 1
je 0x413b9f
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
test edi, edi
je 0x413bf2
push ecx
lea ecx, [ebp - 0x1b0]
call fcn.00413de0
lea edx, [edi + 0x12]
lea ecx, [ebp - 0x1b0]
call fcn.00413de0
lea edx, [edi + 0x34]
lea ecx, [ebp - 0x1b0]
call fcn.00413de0
lea edx, [edi + 0x56]
lea ecx, [ebp - 0x1b0]
call fcn.00413de0
mov eax, dword [ebp - 0x1b0]
add esp, 4
mov byte [eax - 1], 0
push 0
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1ac]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
and eax, 0xfffffffd
add eax, 3
pop esi
call fcn.0041d60e
mov esp, ebp
pop ebp
ret

Function at 0x413cf0
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x28], 0
je 0x413d24
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x24]
test eax, eax
je 0x413d3f
push 0
lea ecx, [ebp - 0x1b8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
cmp dword [ebp - 0x1b8], 0
ja 0x413d5d
pop edi
mov eax, 9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x1b4]
push eax
push 0x1a8
lea eax, [ebp - 0x1b0]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413d94
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1b4]
cmp eax, 0x1aa
jae 0x413dd0
lea edx, [ebp - 0x1b0]
mov byte [ebp + eax - 0x1b0], 0
mov ecx, edi
call fcn.00413ed0
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
and eax, 0xfffffff5
add eax, 0xb
pop esi
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
call fcn.0041d9fa
int3
Function at 0x4143a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x420118
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x42a038]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x42a038]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x80], 0
mov eax, dword [edi + 4]
sub eax, dword [edi]
jne 0x41440e
mov eax, 0x2002
jmp 0x414569
mov eax, dword [0x42eeec]
test al, 1
jne 0x414431
or eax, 1
mov dword [0x42eeec], eax
call fcn.00411060
push 0x4209a0
call fcn.0041d702
add esp, 4
push 0xffffffffffffffff
push dword [0x42ee90]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [0x42eecc], 0
mov eax, 1
push dword [0x42ee90]
movzx ebx, bl
cmovne ebx, eax
mov eax, dword [0x42eed0]
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x41454e
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x41454e
mov edx, dword [edi]
lea esi, [esp + 0x30]
mov ecx, dword [edi + 4]
mov eax, dword [ebx]
sub ecx, edx
push esi
push ecx
push edx
mov ecx, ebx
call dword [eax + 0x44]
mov esi, eax
test esi, esi
jne 0x414553
lea eax, [esp + 0x34]
push str.BA8D164350B649CC861D2C01BED14BE8
push eax
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4144bc
mov esi, 0x2004
jmp 0x414553
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
call fcn.00401940
push eax
lea ecx, [esp + 0x1c]
call fcn.0040bd90
lea ecx, [esp + 0x58]
call fcn.004019a0
mov eax, dword [esp + 0x30]
dec eax
cmp eax, 7
ja case.default.0x4144e7
jmp dword [eax*4 + 0x414588]
mov esi, 0x2006
jmp 0x414553
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push edi
call fcn.00414140
add esp, 4
mov ecx, eax
call fcn.00402300
mov esi, eax
jmp 0x414553
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
cmovae ecx, dword [esp + 0x18]
push edi
call fcn.00418690
add esp, 4
mov ecx, eax
call fcn.00402300
mov esi, eax
jmp 0x414553
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x14]
call dword [eax + 0x3c]
mov esi, eax
jmp 0x414553
mov esi, 0x2002
jmp 0x414553
mov esi, 0x2005
cmp dword [esp + 0x2c], 0x10
jb 0x414567
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
Function at 0x418fa0
Capabilities:
Delete service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x418fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x418fd6
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419033
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x419057
cmp eax, 0x424
jne 0x41906d
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x419086
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41906d
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop edi
pop esi
ret
call esi
push eax
push str.Uninstall_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
ret
push str.JHI_Service_removed_successfully_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x4190b0
Capabilities:
Start service

Disassembly:
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4190f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4190e3
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop esi
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop esi
ret
push edi
push 0x10
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x419156
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x41917e
cmp eax, 0x424
jne 0x41913d
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
ret
call esi
push eax
push str.Open_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4191ca
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x419194
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop edi
pop esi
ret
cmp eax, 0x420
jne 0x4191b1
push str.Error:_JHI_service_already_running._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 5
pop edi
pop esi
ret
call esi
push eax
push str.Start_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
ret
push str.JHI_Service_started_successfully_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
ret
Function at 0x4191f0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x419261
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41923e
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push edi
push 0x20000000
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4192b9
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
je 0x4192e7
cmp eax, 0x424
jne 0x419334
push str.Error:_the_service_does_not_exist._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [edi + 4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41935a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x41930a
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
cmp eax, 0x426
jne 0x419334
push str.Error:_JHI_service_has_not_been_started._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
mov eax, 6
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
call esi
push eax
push str.Stop_Service_failed:___d__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push str.JHI_Service_terminated_successfully_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
Function at 0x41aee0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x41af0c
lea eax, [ecx - 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0
jne 0x41af5f
xor eax, eax
push 0x18e
push eax
mov word [ebp - 0x198], ax
lea eax, [ebp - 0x196]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41af58
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], 1
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0041d60e
mov esp, ebp
pop ebp
ret

Function at 0x41b430
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4c
mov eax, dword [0x42a038]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov esi, edx
mov dword [esp + 0xc], 0
test esi, esi
je 0x41b55a
lea eax, [ecx - 0x400]
mov dword [esi], 0xffffffff
cmp eax, 0xfbff
ja 0x41b55a
push ecx
push 0x4246c0
xorps xmm0, xmm0
lea eax, [esp + 0x40]
movdqa xmmword [esp + 0x18], xmm0
push 0x14
push eax
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.MSVCR120.dll_sprintf_s]
add esp, 0x10
cmp eax, 0xffffffff
je 0x41b55a
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x40]
push eax
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x41b55f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b51e
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x41b514
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
push dword [eax + 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41b533
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, 0x54f
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov ecx, 0x54f
cmp dword [esi], 0xffffffff
cmove eax, ecx
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
Function at 0x41c6d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push ebx
push esi
push edi
lea edi, [ebp - 0x4d8]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x414], eax
mov esi, esp
mov eax, dword [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x400
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.MSVCR120.dll_vsprintf_s]
add esp, 0x10
cmp esi, esp
call fcn.0041ddba
mov dword [ebp - 0x414], 0
mov esi, esp
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, esp
call fcn.0041ddba
push edx
mov ecx, ebp
push eax
lea edx, [0x41c77c]
call fcn.0041dd62
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
add esp, 0x4d8
cmp ebp, esp
call fcn.0041ddba
mov esp, ebp
pop ebp
ret
Function at 0x405729
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.00403090
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4057c4
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 [0x4693c0]
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 0x4057c4
cmp eax, 1
je 0x4057e5
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 0x4057c4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405791
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4057c0
xor eax, eax
inc eax
jmp 0x405804
cmp edi, eax
jae 0x4057c8
xor eax, eax
jmp 0x405804
cmp eax, esi
jae 0x4057cf
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 [0x4693c0]
jmp 0x4057e8
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
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5dde5704
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x91d79ed
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404f07
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
and dword [ebp - 0xc], 0
lea edx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
push ecx
mov ecx, eax
call fcn.004102f1
mov esi, eax
test esi, esi
js 0x404fb7
mov ecx, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 4]
call fcn.004102f1
mov esi, eax
test esi, esi
jne 0x404fb0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, dword [ebp - 4]
push 0x2f
pop ecx
movzx eax, word [edi]
cmp cx, ax
je 0x404f6e
push 0x2d
pop ecx
cmp cx, ax
jne 0x404fd8
lea esi, [edi + 2]
push esi
push str.standalone
call ebx
test eax, eax
jne 0x404f82
mov eax, dword [ebp + 8]
jmp 0x404f91
push esi
push str.standalone:temp
call ebx
test eax, eax
jne 0x404fd0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
mov dword [eax], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004102f1
mov esi, eax
test esi, esi
je 0x404f58
xor eax, eax
test esi, esi
cmovns esi, eax
mov edi, dword [ebp - 4]
test edi, edi
je 0x404fc5
mov ecx, edi
call fcn.004111cc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push str.standalone:delete
call ebx
mov esi, 0x80070057
jmp 0x404fba