joyce8/EMBER2024-capa huggingface dataset:
Function at 0x17d60
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0x1000
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push 0x4c694c43
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x17dc1
xor eax, eax
jmp 0x17e8d
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xc0000004
jne 0x17df2
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x24], 0xc0000004
je 0x17da0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
jmp 0x17e13
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx]
jae 0x17e7e
mov eax, dword [ebp - 4]
imul eax, eax, 0x11c
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x20]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x11c
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax + 0x1e]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push 1
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareString]
test eax, eax
jne 0x17e7c
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0x20], eax
jmp 0x17e0a
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 4
Function at 0x18a90
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1dc84]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0
mov al, byte [0x1c230]
mov byte [ebp - 0x230], al
push 0xff
push 0
lea ecx, [ebp - 0x22f]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x128], 0
push 0x118
push 0
lea edx, [ebp - 0x124]
push edx
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x18b00
mov eax, 0xc0000001
jmp 0x18c8c
lea eax, [ebp - 0x128]
push eax
call fcn.000183b0
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jge 0x18b3a
mov ecx, dword [ebp - 0x234]
push ecx
push 0x1c210
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x234]
jmp 0x18c8c
lea edx, [ebp - 0x230]
push edx
call fcn.000187f0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.000171b0
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jge 0x18b8e
mov eax, dword [ebp - 0x234]
push eax
push 0x1c1e0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, dword [ebp - 0x234]
jmp 0x18c8c
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call fcn.000177f0
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jge 0x18bd3
cmp dword [ebp - 0x238], 0
je 0x18bc8
push 0
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x234]
jmp 0x18c8c
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00017ea0
movzx edx, al
test edx, edx
jne 0x18c12
push 0x1c1a0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [ebp - 0x238], 0
je 0x18c0b
push 0
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x18c8c
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x120]
push eax
call fcn.00017910
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jge 0x18c5b
cmp dword [ebp - 0x238], 0
je 0x18c53
push 0
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x234]
jmp 0x18c8c
mov edx, dword [ebp - 0x238]
push edx
call fcn.000189e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x12c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x238]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x120]
mov dword [ecx], edx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0001b3e8
mov esp, ebp
pop ebp
ret 4
Function at 0x1aa90
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0xc0000225
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0x1c3b0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1aace
mov eax, 0xc0000225
jmp 0x1ab0f
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1aa60
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x10]
movzx edx, al
test edx, edx
je 0x1ab0c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0x1c390
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
xchg dword [ecx], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8

Function at 0x1ab20
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x1ab4b
mov eax, dword [ebp - 0x10]
jmp 0x1abb9
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, dword [ebp - 4]
add edx, dword [0x1dc7c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc4]
add eax, 0x1c
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x1abd0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1caa8
push 0x1b470
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [0x1dc84]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0x1f4
mov dword [ebp - 0x20], 0x1f4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xc0000004
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0xc0000004
jne 0x1aca3
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 0x28], eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [0x1df14]
push edx
push sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0x1c420
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
mov eax, dword [ebp - 0x20]
add eax, 0xc8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x2c], eax
jmp 0x1ac37
cmp dword [ebp - 0x2c], 0
je 0x1ad60
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1ad3c
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 1
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x38
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
movzx edx, al
test edx, edx
je 0x1ad16
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x44]
push edx
push 0x1c400
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x1ad8d
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0
jne 0x1ad2d
push 0x1c3f0
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
jmp 0x1ad3a
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x1accf
jmp 0x1ad4d
mov edx, dword [ebp - 0x20]
push edx
push 0x1c3e0
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1ad79
cmp dword [ebp - 0x2c], 0
je 0x1ad8b
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1adb0
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x1e420
call fcn.0001a9e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1ade1
mov eax, dword [ebp - 0x14]
jmp 0x1ae6c
push 0x1c450
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0001abd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1ae0d
mov eax, 0xc0000001
jmp 0x1ae6c
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1ae29
mov eax, dword [ebp - 0x14]
jmp 0x1ae6c
mov ecx, dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov edx, dword [ebp + 8]
push edx
call fcn.0001ab20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x1e420]
push ecx
call fcn.0001aa90
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
add eax, dword [0x1dc80]
mov ecx, dword [eax]
push ecx
call fcn.0001aa90
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4

Function at 0x1aed0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 4]
je 0x1af5f
mov edx, dword [ebp - 8]
cmp dword [edx + 0x28], 0
je 0x1af55
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0
mov edx, dword [ebp - 8]
add edx, 0x2c
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x1af55
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, 1
jmp 0x1af61
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
jmp 0x1aee7
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x1f03e
Capabilities:
Check os version
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0001f005
pop ebp
jmp fcn.00018cb0
Function at 0x100033c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de165
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10111000]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.10003260
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10003453
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0xccccccc
je 0x100035af
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.100b354d
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100e9740]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100e9740]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x10003551
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.100c4840
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.100b3900
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10003533
cmp ebx, 0x200
jae 0x10003531
shl ebx, 3
cmp ebx, ecx
jae 0x10003533
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.100063d0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10003260
mov edx, dword [eax]
jmp 0x10003554
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x1000357f
mov dword [ecx + eax*8], esi
jmp 0x1000358e
cmp edi, edx
jne 0x10003588
mov dword [ecx + eax*8], esi
jmp 0x10003592
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10003592
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.1009bf61
int3
Function at 0x100042e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10111000]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1f4
xorps xmm0, xmm0
mov dword [ebp - 0x204], 0
lea eax, [ebp - 0x1f8]
mov dword [ebp - 0x200], 0xf
push 0
movups xmmword [ebp - 0x214], xmm0
push eax
mov byte [ebp - 0x214], 0
mov dword [ebp - 0x1fc], 0
call fcn.100b4d60
push 0x1f3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.100bfce6
mov ecx, dword [ebp - 0x200]
add esp, 0x1c
cmp ecx, 0xf
jbe 0x1000438b
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004381
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100043e3
push ecx
push edx
call fcn.100b357d
add esp, 8
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push 0x1f4
push eax
call fcn.10007760
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.100c4771
add esp, 0x1c
lea eax, [ebp - 0x1fc]
push 0
push 0x10116790
push 0x1f8
push eax
push dword [0x10110278]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b38a5
mov esp, ebp
pop ebp
ret
call fcn.100bf71f
int3

Function at 0x10004460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10111000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x10116720]
push edi
push eax
push ecx
push esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100044cc
xorps xmm0, xmm0
mov eax, ebx
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x10], 0
pop edi
mov dword [ebx + 0x14], 0xf
pop esi
mov byte [ebx], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b38a5
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10004494
push dword [ebp - 0x20]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call fcn.100b5120
add esp, 0xc
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
push dword [ebp - 0x20]
push esi
call fcn.100031d0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov eax, ebx
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebx + 0x14], 0
xor ecx, ebp
pop edi
movups xmmword [ebx], xmm0
pop esi
movq xmm0, qword [ebp - 0xc]
movq qword [ebx + 0x10], xmm0
pop ebx
call fcn.100b38a5
mov esp, ebp
pop ebp
ret
Function at 0x10004b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de325
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10111000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov eax, dword [esi + 0x5f8]
test eax, eax
je 0x10004bc3
push dword [esi]
push eax
push str._p____p
call fcn.100042e0
add esp, 0xc
mov eax, dword [0x10116730]
inc eax
mov dword [0x10116730], eax
cmp eax, 0x9c4
jl 0x10004be9
push str.too_many_hooks:_cant_insert
call fcn.100042e0
add esp, 4
xor al, al
jmp 0x10004d61
test edi, edi
je 0x10004c06
cmp byte [edi], 0
je 0x10004c06
push 0x3b
push edi
lea eax, [esi + 0x1d0]
push 0x3c
push eax
call fcn.100bfce6
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
sub esp, 0xa08
lea eax, [ebp - 0x28]
mov edi, esp
mov ecx, 0x282
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.1007c5b0
mov ecx, eax
add esp, 0xa10
cmp dword [ecx + 0x14], 7
jbe 0x10004c35
mov ecx, dword [ecx]
mov esi, dword [ebp - 0x43c]
push ecx
push 0x1f4
lea eax, [esi + 0x20c]
push eax
call fcn.100bf820
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.10003e10
imul eax, dword [0x10116730], 0xac8
sub esp, 0xa08
mov edi, esp
mov ecx, 0x282
rep movsd dword es:[edi], dword [esi]
add eax, dword [0x1011672c]
mov ecx, eax
call fcn.10007cf0
test al, al
jne 0x10004cfc
mov eax, dword [ebp - 0x43c]
lea ecx, [ebp - 0x28]
add eax, 0x20c
push eax
call fcn.10003970
push 0xfde9
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1007aac0
add esp, 0xc
cmp dword [eax + 0x14], 0xf
mov byte [ebp - 4], 1
jbe 0x10004cbe
mov eax, dword [eax]
push eax
push str.failed_to_insert_hook__s
call fcn.100042e0
add esp, 8
lea ecx, [ebp - 0x40]
call fcn.10003dc0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10003e10
imul ecx, dword [0x10116730], 0xac8
add ecx, dword [0x1011672c]
call fcn.10007aa0
xor al, al
jmp 0x10004d61
mov esi, dword [ebp - 0x43c]
lea edx, [ebp - 0x428]
mov dword [ebp - 0x438], 4
mov dword [ebp - 0x42c], 0
mov eax, dword [esi]
lea ecx, [esi + 0x20c]
mov dword [ebp - 0x430], eax
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x10004d30
push 0
push 0x10116790
push 0x3f8
lea eax, [ebp - 0x438]
push eax
push dword [0x10110278]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b38a5
mov esp, ebp
pop ebp
ret
Function at 0x10005030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
test eax, eax
je 0x1000504b
push eax
push str.removing_hook:__s
call fcn.100042e0
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x10116790
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [0x10110278]
mov dword [ebp - 0x10], 3
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret