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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x54a800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x476e4b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x476e59
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
movzx ebx, al
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x476e9e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cd571
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x476e82
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
test eax, eax
je 0x476e83
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd571
mov esp, ebp
pop ebp
ret 0xc

Function at 0x476ef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x54a800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0xc]
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x476f1b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x476f29
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
movzx ebx, al
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
push esi
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x476f6e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cd571
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x476f52
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
test eax, eax
je 0x476f53
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd571
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4782f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9f36
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x54a800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x238
lea eax, [ebp - 0x490]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x490]
call fcn.0047a3b0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0047abc0
mov edi, dword [ebp - 0x18]
mov eax, edi
mov ebx, dword [ebp - 0x1c]
sub eax, ebx
sar eax, 2
mov byte [ebp - 0x491], 0
test eax, eax
je 0x4783ff
mov esi, ebx
cmp ebx, edi
je 0x4783ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esi], eax
je 0x4783f8
push 0x238
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
lea ecx, [ebp - 0x258]
call fcn.0047a3b0
push ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
push dword [esi]
call fcn.0047a770
push 0
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x258]
mov byte [ebp - 0x491], 1
mov byte [ebp - 4], 2
call fcn.0047a5b0
add esi, 4
cmp esi, edi
jne 0x478397
test ebx, ebx
je 0x47840c
push ebx
call fcn.004cd56c
add esp, 4
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0
call fcn.0047a5b0
cmp dword [ebp + 0x1c], 8
jb 0x47842c
push dword [ebp + 8]
call fcn.004cd56c
add esp, 4
mov al, byte [ebp - 0x491]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cd571
mov esp, ebp
pop ebp
ret

Function at 0x478450
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x54a800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x234], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
xor esi, esi
cmp edi, 0xffffffff
je 0x4784ea
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.004d36e0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x4784e3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4784c0
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
cmove esi, dword [ebp - 0x218]
push edi
call ebx
cmp eax, 1
je 0x4784c0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004cd571
mov esp, ebp
pop ebp
ret

Function at 0x478500
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x478513
test al, 0x10
jne 0x478513
mov al, 1
ret
xor al, al
ret
Function at 0x478a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x54a800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
lea edx, [ebp - 8]
cmp dword [ebp + 0x1c], 8
push ebx
push 4
movzx eax, al
push edx
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 4
push 0
push eax
push dword [ecx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x478a8f
push dword [ebp + 8]
call fcn.004cd56c
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004cd571
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x478ab0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 0x20]
push ebx
push 4
push edx
push 4
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push dword [ecx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x478ae9
push dword [ebp + 8]
call fcn.004cd56c
add esp, 4
mov al, bl
pop ebx
pop ebp
ret 0x1c

Function at 0x478af0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
push ebx
cmovae eax, dword [ebp + 0x20]
mov ebx, ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x478b04
sub eax, edx
lea ecx, [ebp + 8]
sar eax, 1
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae edx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push edx
push 1
push 0
push ecx
push dword [ebx + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x478b51
push dword [ebp + 8]
call fcn.004cd56c
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x478b76
push dword [ebp + 0x20]
call fcn.004cd56c
add esp, 4
mov al, bl
pop ebx
pop ebp
ret 0x30
Function at 0x479f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fa118
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54a800]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x54a800]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x47a0e4
cmp byte [ebx + 0x45], 0
je 0x47a0e4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x479ff0
xor al, al
jmp 0x47a0e6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x47a030
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x47a071
dec eax
je 0x47a075
sub eax, 2
je 0x47a0cb
xor bl, bl
jmp 0x47a0cd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x47a0ac
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004ceea6
add esp, 0x10
cmp esi, eax
jne 0x47a06d
cmp byte [ebx + 0x45], 0
je 0x47a0cb
test esi, esi
jne 0x47a030
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00479ee0
jmp 0x47a030
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x47a0e0
push dword [esp + 0x18]
call fcn.004cd56c
add esp, 4
mov al, bl
jmp 0x47a0e6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004cd571
mov esp, ebp
pop ebp
ret
Function at 0x47a3b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa1c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00484170
push edi
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
call fcn.00489750
lea esi, [edi + 0x58]
mov byte [ebp - 4], 1
push edi
mov ecx, esi
call fcn.00481020
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [edi + 0xa8], edi
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
push esi
lea ecx, [edi + 0xb8]
mov byte [ebp - 4], 3
call fcn.00484590
push edi
lea ecx, [edi + 0xec]
mov byte [ebp - 4], 4
call fcn.00485820
push edi
lea ecx, [edi + 0x110]
mov byte [ebp - 4], 5
call fcn.00482410
push edi
lea ecx, [edi + 0x188]
call fcn.0047b4b0
push edi
lea ecx, [edi + 0x208]
mov byte [ebp - 4], 7
call fcn.0048c950
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x28]
push 0x10
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SeDebugPrivilege
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0046b720
lea eax, [ebp - 0x28]
push eax
call fcn.0047ab00
cmp dword [ebp - 0x14], 8
jb 0x47a4ad
push dword [ebp - 0x28]
call fcn.004cd56c
add esp, 4
push 0x15
xor eax, eax
mov dword [ebp - 0x14], 7
push str.SeLoadDriverPrivilege
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0046b720
lea eax, [ebp - 0x28]
push eax
call fcn.0047ab00
cmp dword [ebp - 0x14], 8
jb 0x47a4ea
push dword [ebp - 0x28]
call fcn.004cd56c
add esp, 4
mov eax, dword [0x560b98]
test al, 1
jne 0x47a515
or eax, 1
mov dword [0x560b98], eax
mov byte [ebp - 4], 9
call fcn.004873d0
push 0x4fece0
call fcn.004cdd4f
add esp, 4
mov byte [ebp - 4], 8
xor edx, edx
push 0
lea ecx, [edx + 0xa]
call fcn.00476880
add esp, 4
test al, al
je 0x47a544
mov ecx, 0x560ba0
call fcn.00488400
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 3
push 0
lea ecx, [edx + 3]
call fcn.00476880
add esp, 4
test al, al
je 0x47a576
mov ecx, 0x560ba0
call fcn.004886a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 1
push 0
lea ecx, [edx + 5]
call fcn.00476880
add esp, 4
test al, al
je 0x47a596
mov ecx, 0x560ba0
call fcn.00488940
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47abc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
push 0
push 2
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47ac76
push 0x228
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.004d36e0
add esp, 0xc
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x47ac6f
cmp dword [edi + 0x10], 0
je 0x47ac39
mov ecx, edi
call fcn.0046b2f0
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004cfb6b
add esp, 8
test eax, eax
jne 0x47ac5c
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x47ac49
push ecx
mov ecx, esi
call fcn.0047ade0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x47ac58
mov eax, dword [ebp - 0x224]
mov dword [ecx], eax
add dword [esi + 4], 4
lea eax, [ebp - 0x22c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x47ac18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480d00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x480d08
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x481870
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edi
cmp dword [edi + 8], 0
je 0x481941
mov eax, dword [edi + 0x2c]
mov byte [edi + 0x40], 0
test eax, eax
je 0x4818a3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0x2c], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4818b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0
xor esi, esi
lea ebx, [ebx]
push esi
mov ecx, edi
call fcn.004816c0
inc esi
cmp esi, 4
jl 0x4818c0
mov ecx, edi
call fcn.00481550
test eax, eax
jns 0x481941
mov eax, dword [edi + 4]
lea ebx, [edi + 4]
mov eax, dword [eax + 4]
mov esi, eax
cmp byte [eax + 0xd], 0
jne 0x481910
mov edi, eax
lea esp, [esp]
push dword [esi + 8]
mov ecx, ebx
call fcn.00481c10
mov esi, dword [esi]
push edi
call fcn.004cd56c
add esp, 4
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x4818f0
mov edi, dword [ebp - 8]
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x28], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482410
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa83c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea edx, [esi + 0x58]
push 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x14], edi
push 0
mov dword [edi + 4], eax
lea eax, [esi + 0xa8]
mov dword [edi], esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x4c]
push 0x10005b
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [edi + 0x18], eax
mov byte [edi + 0x1c], 1
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov word [edi + 0x38], 1
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov word [edi + 0x50], 1
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov word [edi + 0x68], 1
mov dword [edi + 0x6c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
push 9
xor eax, eax
mov byte [edi + 0x70], 0
push 0x533fb8
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.0046b720
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
push 0xb
push 0x533fcc
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004762c0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00485160
cmp dword [ebp - 0x18], 0x10
jb 0x482579
push dword [ebp - 0x2c]
call fcn.004cd56c
add esp, 4
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x48259c
push dword [ebp - 0x44]
call fcn.004cd56c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x483e30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x483e4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x483eb0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0xffffffff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x483eb0
push 0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x1c], 0
je 0x483ea6
mov eax, dword [esi + 0x18]
test eax, eax
je 0x483ea6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
push 0
lea ecx, [esi + 0x28]
call fcn.0048c840
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x484070
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ecx + 4], 4
mov dword [ecx + 8], 0xffff0001
mov dword [ecx + 0xc], 0xffffffff
mov dword [ecx + 0x10], 0xff
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 3
mov dword [ecx + 0x1c], 0xffffffff
mov dword [ecx + 0x20], 0xffffffff
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ecx + 0x28], 0
mov dword [ecx], 2
mov eax, dword [eax]
mov dword [ecx + 0x28], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x484370
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faac9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
mov esi, ecx
push eax
movdqu xmmword [ebp - 0x54], xmm0
movdqu xmmword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x58], 0
jne 0x484402
push 0x14
call fcn.004cd580
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4843f1
push 1
push dword [esi]
mov ecx, edi
call fcn.004942e0
mov dword [edi], vtable.blackbone::x86Native.0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
jmp 0x48447b
mov dword [ebp - 4], 0xffffffff
xor edi, edi
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
jmp 0x48447b
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x10], 1
jne 0x484445
push 0x30
call fcn.004cd580
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x48446c
push dword [esi]
mov ecx, eax
call fcn.00496770
mov ecx, eax
jmp 0x48446e
push 0x14
call fcn.004cd580
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x48446c
push 0
push dword [esi]
mov ecx, eax
call fcn.004942e0
mov ecx, eax
jmp 0x48446e
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 8]
mov dword [esi + 8], ecx
test eax, eax
je 0x48448e
push eax
mov dword [eax], vtable.blackbone::Native.0
call fcn.004cd56c
add esp, 4
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4844ad
mov byte [esi + 0xc], 1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x13
push str.GetProcessDEPPolicy
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.004762c0
mov dword [ebp - 4], 3
mov eax, dword [esi]
push 0x560ad0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0047aed0
mov eax, dword [ebp - 0x10]
push 0x560ad0
cmp eax, dword [0x560ab0]
je 0x48452e
mov edi, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x484534
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call edi
mov edi, eax
jmp 0x484536
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
cmp dword [ebp - 0x20], 0x10
jb 0x484547
push dword [ebp - 0x34]
call fcn.004cd56c
add esp, 4
test edi, edi
je 0x484553
mov al, byte [ebp - 0x14]
and al, 1
mov byte [esi + 0xc], al
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret