joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4595a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x459736
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x459718
push esi
cmp dword [edi + 4], 2
jne 0x45969c
cmp dword [edi + 0x18], ebx
je 0x45969c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x45969c
cmp eax, 0x10
jb 0x45969c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4596a9
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4596b2
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x459687
push eax
call dword [0x51f00c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4596c5
cmp dword [ebp - 4], ebx
jne 0x45968f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x459699
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4595e2
jmp 0x4596e0
mov dword [ebp - 8], 8
jmp 0x4596e0
push esi
mov dword [ebp - 8], 8
call dword [0x51f004]
add esp, 4
jmp 0x4596e0
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x51f004]
push esi
call dword [0x51f004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x4596ef
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x459713
mov eax, dword [ebp - 4]
push eax
call fcn.00459550
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x45972a
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ade0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0048518e
add esp, 0x18
test eax, eax
je 0x45ae04
cmp eax, 0xffffffff
jne 0x45ae06
xor eax, eax
pop ebp
ret
Function at 0x462cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00487c32
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x462d34
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x462d34
lea edx, [ebp - 0x108]
push edx
call dword [0x51f00c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004822c9
mov esp, ebp
pop ebp
ret

Function at 0x462d50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00462cd0

Function at 0x465f80
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x465fa2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x465f96
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x465fd2
cmp dword [esi + 8], 0
jne 0x465fc5
mov ecx, dword [eax + 8]
push 0x50e448
push ecx
call fcn.00484408
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x465fc5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00485e96
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x465ff4
mov eax, dword [esi + 8]
test eax, eax
je 0x465fee
push eax
call fcn.004848f9
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x46a4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5135f8
push 0x488848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046a6d0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x46a6b0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x46a57f
mov dword [ebp - 0x24], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.004889d5
add esp, 8
mov eax, dword [ebp - 0x24]
jmp 0x46a6b4
push 1
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0046a6d0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx edx, byte [ebp - 0x19]
test edx, edx
jne 0x46a697
push 0x8000
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x525d78]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x46a5db
mov dword [ebp - 0x28], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.004889d5
add esp, 8
mov eax, dword [ebp - 0x28]
jmp 0x46a6b4
push 1
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046a6d0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x46a697
mov ecx, dword [ebp - 0x20]
push ecx
push 0x8000
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
jne 0x46a630
mov dword [ebp - 0x2c], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.004889d5
add esp, 8
mov eax, dword [ebp - 0x2c]
jmp 0x46a6b4
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046a6d0
add esp, 0x10
mov byte [ebp - 0x19], al
movzx eax, byte [ebp - 0x19]
test eax, eax
jne 0x46a697
push 0x8000
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x46a67e
mov dword [ebp - 0x30], 0
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call fcn.004889d5
add esp, 8
mov eax, dword [ebp - 0x30]
jmp 0x46a6b4
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0046a6d0
add esp, 0x10
mov byte [ebp - 0x19], al
mov dword [ebp - 4], 0xffffffff
call fcn.0046a6a5
jmp 0x46a6b0
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46a6d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov byte [ebp - 0x211], 0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x46a6fa
cmp dword [ebp + 0x10], 0
je 0x46a6fa
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0046a780
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0046a7e0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call fcn.0048856b
add esp, 4
cmp eax, 6
jbe 0x46a771
movzx eax, word [ebp - 0x20e]
cmp eax, 0x3a
je 0x46a749
movzx ecx, word [ebp - 0x210]
cmp ecx, 0x5c
jne 0x46a771
movzx edx, word [ebp - 0x20e]
cmp edx, 0x5c
jne 0x46a771
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46a771
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00473f20
mov byte [ebp - 0x211], 1
mov al, byte [ebp - 0x211]
mov esp, ebp
pop ebp
ret
Function at 0x46aa00
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46abbe
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46aba1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp dword [ebp - 0x14], 0
je 0x46ab84
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x46ab67
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x46aab3
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x18]
cmp dword [edx], 1
jne 0x46aae7
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 1
jne 0x46aae7
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 8], 1
jne 0x46aae7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0046a9a0
add esp, 8
movzx edx, al
test edx, edx
jne 0x46ab1c
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 1
push 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x46ab13
cmp dword [ebp - 0x30], 1
je 0x46ab1c
mov dword [ebp - 0x38], 0
jmp 0x46ab23
mov dword [ebp - 0x38], 1
mov al, byte [ebp - 0x38]
mov byte [ebp - 5], al
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x46ab67
movzx edx, byte [ebp - 5]
test edx, edx
je 0x46ab5a
cmp dword [ebp - 0x30], 4
je 0x46ab51
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x46ab5a
mov dword [ebp - 0x3c], 1
jmp 0x46ab61
mov dword [ebp - 0x3c], 0
mov cl, byte [ebp - 0x3c]
mov byte [ebp - 5], cl
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x46ad60
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
call fcn.0046f110
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46adf0
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46add3
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4

Function at 0x46ae00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46ae7f
mov dword [ebp - 0x21c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x46ae75
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0046ae00
add esp, 8
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
jmp 0x46ae30
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret
Function at 0x46b350
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xd0
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004868c0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x46e5c0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov byte [ebp - 5], 0
call fcn.0046f110
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46e5f6
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46e696
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46e679
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46e634
cmp dword [ebp - 0x28], 4
je 0x46e64f
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x46e64f
mov dword [ebp - 0x30], 0
jmp 0x46e656
mov dword [ebp - 0x30], 1
mov dl, byte [ebp - 0x30]
mov byte [ebp - 5], dl
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
movzx eax, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x46f330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513618
push 0x488848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x46f408
cmp dword [ebp + 0xc], 0
jne 0x46f37d
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 0
push 0xc
call fcn.00473760
mov dword [ebp - 0x20], eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp eax, 0x1c
jne 0x46f3ec
cmp dword [ebp - 0x2c], 0x10000
jne 0x46f3ce
push 0x40
push 0x2000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
jmp 0x46f3ec
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jne 0x46f3e4
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
mov dword [ebp - 0x20], ecx
jmp 0x46f3ea
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x46f38e
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x46f434
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov esp, ebp
pop ebp
ret 8
Function at 0x46fe90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetVersion]
and eax, 0xff
cmp eax, 6
jae 0x46fed6
call fcn.0046fdb0
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46fed1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x46ffd8
push str.CheckTokenMembership
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
cmp dword [ebp - 0xc], 0
je 0x46ffd8
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x46ffd8
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [ebp - 0xc]
test eax, eax
je 0x46ff5d
cmp dword [ebp - 0x1c], 0
je 0x46ff5d
mov dword [ebp - 0x2c], 1
jmp 0x46ff64
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 4], 0
je 0x46ffd8
lea edx, [ebp - 0x20]
push edx
push 8
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46ffd8
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
push 4
lea ecx, [ebp - 0x28]
push ecx
push 0x14
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46ffc1
cmp dword [ebp - 0x28], 0
je 0x46ffc1
mov dword [ebp - 0x30], 1
jmp 0x46ffc8
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x470830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov dword [ebp - 0x10], 0
push 0xc
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.004868c0
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x47086b
lea ecx, [ebp - 0xc]
push ecx
call fcn.00470380
add esp, 4
test eax, eax
je 0x47086b
lea edx, [ebp - 0xc]
mov dword [ebp + 0xc], edx
call fcn.004704e0
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4709cb
movzx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x4709cb
push 0
push 0x4fdf78
call fcn.004734f0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4709cb
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0xc], 0
je 0x4708da
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x10], 0
je 0x470907
mov ecx, dword [ebp + 0x1c]
and ecx, 0x10000
je 0x470901
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x470907
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x25
call fcn.0046f330
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x470955
mov ecx, 9
mov esi, 0x4fe0cc
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x47], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x37], eax
push 1
push 0x4fe090
call fcn.00473480
mov dword [ebp - 0x32], eax
push 1
push 0x4fe020
call fcn.00473480
mov dword [ebp - 0x2d], eax
cmp dword [ebp - 0x24], 0
je 0x4709cb
lea ecx, [ebp - 0x50]
push ecx
push 0x25
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x4709c5
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
and edx, 4
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x4709b6
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
jmp 0x4709c3
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0046f450
jmp 0x4709cb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], 0
je 0x4709e4
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret