joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4407d8
cmp dword [edi], 0
jne 0x433d6c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4407d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43f828
mov ecx, 2
call fcn.004027e4
mov edx, 0x433cc8
lea eax, [esi + 5]
call fcn.00433ce8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00433ce8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x433d41
mov dword [0x4407d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x433e90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x433ee0]
test si, 4
je 0x433ea4
or bl, 1
test si, 8
je 0x433eae
or bl, 4
test si, 1
je 0x433eb8
or bl, 8
test si, 2
je 0x433ec2
or bl, 0x10
test si, 0x10
je 0x433ecc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x433edb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x433ee4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x433f1c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x433efd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x433f0c
or bl, 4
test esi, 0x20000000
je 0x433f17
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43a464
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 0x43a609
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b8d8]
call fcn.00402d58
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403908
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43a5df
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.0042a7e4
test al, al
je 0x43a5d2
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x43a618
lea eax, [ebp - 0x254]
call fcn.004080d4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43a5d2
xor eax, eax
push ebp
push 0x43a5cb
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 0x43a650
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43a5b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b34
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43a5b4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a5d2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43a4d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e768
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a610
lea eax, [ebp - 0x260]
call fcn.00403908
ret

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

Disassembly:
push ecx
mov eax, dword [0x4407a8]
cmp byte [eax + 0x8d], 0
jne 0x43ae15
cmp dword [0x4407e4], 0
jne 0x43add6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43ad60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4407e4], eax
cmp dword [0x4407e0], 0
jne 0x43adf1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4407e0], eax
cmp dword [0x4407e8], 0
jne 0x43ae15
push esp
push 0
push 0
push 0x43ad04
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4407e8], eax
pop edx
ret
Function at 0x43af0c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43af23
add esp, 0xfffffff0
call fcn.00403054
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411544
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b5d8]
call fcn.00402d58
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40b5d8]
call fcn.00402d58
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x413074]
call fcn.004188a0
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x43b094
mov eax, dword [0x43faa0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00418c44
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x43c978
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x43faa0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.004092ec
test eax, eax
je 0x43b013
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407a38
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409314
test eax, eax
je 0x43b027
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b34
mov eax, dword [0x43f9c4]
cmp byte [eax], 0
jne 0x43b058
mov eax, ebx
call fcn.0043b180
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43b08a
call fcn.004030ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b3dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4407a8]
cmp dword [eax + 0x24], 0
je 0x43b46c
cmp dword [ebx + 0x7c], 0
jne 0x43b469
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43b370
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x43b469
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 0x43b438
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43b469
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040cbfc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43b444
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43bdbc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x43bdf1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039ec
jmp 0x43bdfb
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.004039a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43cca8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x43cce0
mov eax, esi
call fcn.0042666c
test al, al
je 0x43cce0
mov eax, dword [ebx + 0x6c]
call fcn.0042628c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43cce0
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042628c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x43d3c0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, eax
lea eax, [esp + 4]
mov edx, 0x43d4f8
call fcn.00407ac0
push esp
lea eax, [esp + 8]
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x43d3f6
mov esi, 0x80004005
jmp 0x43d4e4
lea eax, [esp + 4]
mov edx, ebx
call fcn.00407a38
mov eax, 0x104
call sub.borlndmm.dll__Borlndmm_SysGetMem_qqri
mov ebx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00407a38
lea eax, [esp + 4]
call fcn.004079d0
push eax
push ebx
push 1
push 0
push 0x43d520
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x43d454
mov eax, ebx
call sub.borlndmm.dll__Borlndmm_SysFreeMem_qqrpv
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esi, 0x80004005
jmp 0x43d4e4
lea eax, [esp + 4]
mov edx, 0x43d530
call fcn.00407ac0
push esp
lea eax, [esp + 8]
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
je 0x43d48d
mov eax, ebx
call sub.borlndmm.dll__Borlndmm_SysFreeMem_qqrpv
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esi, 0x80004005
jmp 0x43d4e4
mov edx, 0x43d564
mov eax, ebx
call fcn.00407ac0
lea eax, [esp + 4]
call fcn.004079d0
push eax
push ebx
push 1
push 0
push 0x43d58c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x43d4d2
mov eax, ebx
call sub.borlndmm.dll__Borlndmm_SysFreeMem_qqrpv
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esi, 0x80004005
jmp 0x43d4e4
xor esi, esi
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
call sub.borlndmm.dll__Borlndmm_SysFreeMem_qqrpv
mov eax, esi
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x43d598
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebx
add esp, 0xfffffef4
lea eax, [esp + 4]
mov edx, 0x43d62c
call fcn.00407ac0
push esp
lea eax, [esp + 8]
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x43d5c8
mov ebx, 0x80004005
jmp 0x43d619
push 0x43d654
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
je 0x43d5eb
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, 0x80004005
jmp 0x43d619
push 0x43d654
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
je 0x43d60e
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, 0x80004005
jmp 0x43d619
xor ebx, ebx
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret
Function at 0x4018e0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x40bdc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call fcn.0040b3be
lea edi, [esi + 0x60]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x40d86c
lea edi, [esi + 0xa0]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.0040b400
lea ebx, [esi + 0xa4]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call fcn.0040b400
lea ebp, [esi + 0xa8]
mov byte [esp + 0x1c], 3
mov ecx, ebp
call fcn.0040b400
lea ecx, [esi + 0xac]
mov byte [esp + 0x1c], 4
call fcn.0040b400
lea ecx, [esi + 0xb0]
mov byte [esp + 0x1c], 5
call fcn.0040b400
lea ecx, [esi + 0xb4]
mov byte [esp + 0x1c], 6
call fcn.0040b400
lea ecx, [esi + 0xb8]
mov byte [esp + 0x1c], 7
call fcn.0040b400
lea ecx, [esi + 0xbc]
mov byte [esp + 0x1c], 8
call fcn.0040b400
push 0x416510
mov ecx, edi
mov byte [esp + 0x20], 9
mov dword [esi], 0x40d790
call sub.MFC42.DLL_CString::operator
push 0x416510
mov ecx, ebx
call sub.MFC42.DLL_CString::operator
push 0x416510
mov ecx, ebp
call sub.MFC42.DLL_CString::operator
push 0x416510
lea ecx, [esi + 0xac]
call sub.MFC42.DLL_CString::operator
push 0x416510
lea ecx, [esi + 0xb0]
call sub.MFC42.DLL_CString::operator
push 0x416510
lea ecx, [esi + 0xb4]
call sub.MFC42.DLL_CString::operator
push 0x416510
lea ecx, [esi + 0xb8]
call sub.MFC42.DLL_CString::operator
push 0x416510
lea ecx, [esi + 0xbc]
call sub.MFC42.DLL_CString::operator
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0xc0], eax
mov ecx, dword [0x4162a4]
push 0x410100
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x4162a0]
test eax, eax
je 0x401a77
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea eax, [esp + 0x24]
push eax
push 0x4100f0
push 7
push 0
push 0x4100e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401ac0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ole32.dll_OleRun]
test eax, eax
jl 0x401ab6
mov eax, dword [esp + 0x24]
push 0x4162a0
push 0x4100d0
push eax
mov edx, dword [eax]
call dword [edx]
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x402690
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40bff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
mov dword [esp + 0xc], 0
lea ecx, [esp + 4]
mov dword [esp + 0x118], 2
call fcn.0040b400
mov eax, dword [esp + 0x124]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x120], 3
call fcn.004027b0
add esp, 8
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x12c]
push edx
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push 0x100
push eax
push 0x416510
push ecx
push edx
mov byte [esp + 0x130], 4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push 0x41026c
push ecx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x12c]
add esp, 0xc
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x118], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x118], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x128]
mov byte [esp + 0x118], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x12c]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret

Function at 0x407c80
Capabilities:
Acquire debug privileges

Disassembly:
push esi
push 1
mov esi, ecx
push 0x415308
call fcn.00407cb0
mov eax, esi
pop esi
ret

Function at 0x407db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 8]
pop edi
cmp edx, 6
sbb eax, eax
inc eax
add esp, 0x94
ret
Function at 0x407df0
Capabilities:
Create thread

Disassembly:
push ecx
mov dword [esp], 0
call fcn.00407db0
test eax, eax
je 0x407e6b
push str.NtCreateThreadEx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x407e21
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push 0
lea edx, [esp + 0x24]
push 0x1fffff
push edx
call eax
mov eax, dword [esp]
test eax, eax
jne 0x407eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_NtCreateThreadEx__
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
xor eax, eax
pop ecx
ret 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
mov dword [esp], eax
jne 0x407eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_CreateRemoteThread__
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
xor eax, eax
pop ecx
ret 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x407ed4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MyCreateRemoteThread___:_WaitForSingleObject__
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
xor eax, eax
pop ecx
ret 0xc
mov eax, 1
pop ecx
ret 0xc

Function at 0x4085e0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x288
lea eax, [esp]
push ebx
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4086c1
mov edx, dword [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4086b7
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x408686
mov edx, dword [0x417518]
mov eax, ebx
mov ecx, dword [eax + 0x190]
lea esi, [ecx + edx]
cmp esi, 0x1000
jae 0x40868f
mov ebp, ecx
lea esi, [eax + 0x194]
lea edi, [edx + 0x416518]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [eax + 0x190]
mov dword [0x417518], edx
mov eax, dword [eax]
test eax, eax
jne 0x408647
jmp 0x40868f
add eax, 0xf0000000
mov dword [esp + 0x14], eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x14]
xor ecx, ecx
test eax, eax
pop edi
pop esi
sete cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x288
ret
xor eax, eax
pop ebx
add esp, 0x288
ret
add eax, 0xe0000000
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
pop ebx
add esp, 0x288
ret
Function at 0x408840
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
mov ecx, 0xb
mov esi, str.devicephysicalmemory
lea edi, [esp + 0x50]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x7e], eax
xor ebx, ebx
mov dword [esp + 0x82], eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x86], eax
lea edx, [esp + 0x28]
push str.ntdll.dll
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 0xf0000
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], 0xffff
mov word [esp + 0x8e], ax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], ecx
mov word [esp + 0x2c], 0x2c
mov word [esp + 0x2e], 0x2e
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.ZwOpenSection
push esi
call edi
push str.ZwMapViewOfSection
push esi
mov ebp, eax
call edi
push str.ZwUnmapViewOfSection
push esi
mov dword [esp + 0x18], eax
call edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
call ebp
test eax, eax
jne 0x4089db
push 2
push ebx
lea edx, [esp + 0x24]
push 1
lea eax, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x30]
push eax
push 0xffff
lea ecx, [esp + 0x2c]
push ebx
push ecx
push 0xffffffffffffffff
push edx
call dword [esp + 0x38]
test eax, eax
jne 0x4089db
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
call fcn.00408390
add esp, 4
cmp eax, ebx
jne 0x408980
lea edx, [esp + 0x10]
push edx
call fcn.00408430
add esp, 4
cmp eax, ebx
jne 0x408980
lea eax, [esp + 0x10]
push eax
call fcn.004084d0
add esp, 4
cmp eax, ebx
je 0x4089c2
mov edx, dword [0x417518]
mov esi, dword [esp + 0x10]
mov ecx, eax
mov ebx, ecx
lea edi, [edx + 0x416518]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [0x417518], edx
push ecx
push 0xffffffffffffffff
mov esi, 1
call dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push ecx
push 0xffffffffffffffff
call dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret
Function at 0x408a70
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
lea eax, [esp + 0xc]
push esi
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x408a99
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x408ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0x14
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x408b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
push edi
lea ecx, [esp + 0x10]
push 0
lea edx, [esp + 0x20]
push ecx
push edx
push 4
push eax
mov dword [esp + 0x24], 4
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
push 0
push eax
push edi
push 2
push ecx
call esi
mov ebx, dword [esp + 0x30]
push 0x416510
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jbe 0x408bad
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [esi + edi]
push edx
push str._02X
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jb 0x408b82
pop ebp
push edi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x14
ret