joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056a8d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1006dd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10044f60
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
push 0x40
push 0x8000
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.1002dd2a
add esp, 0x14
test eax, eax
jne 0x10047d38
push 0x1005eb54
mov eax, dword [ebp - 0x20]
push eax
call fcn.1002dd4a
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10047d2c
mov ecx, dword [ebp - 0x1c]
add ecx, 4
push ecx
call fcn.100198f0
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10047d1e
mov ecx, dword [ebp - 0x1c]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.1002c440
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.1002e17e
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.10047790
add esp, 0x18
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1002ca2a
add esp, 4
jmp 0x10047d38
mov edx, dword [ebp - 0x20]
push edx
call fcn.1002e237
add esp, 4
jmp 0x10047d47
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100198fb
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004ca40
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x1004ca76
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 4], edx
jge 0x1004cb8b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x80000000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x1004caf2
push 0x4000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1004ca64
mov eax, dword [ebp - 0x14]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
lea edx, [eax + ecx*8 + 0x1006f570]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x4000000
je 0x1004cb24
mov ecx, dword [ebp - 0x18]
or ecx, 0x200
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1004cb64
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0x40
je 0x1004cb4b
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
jmp 0x1004cb64
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x1004cb64
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
jbe 0x1004cb86
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1004ca64
mov esp, ebp
pop ebp
ret
Function at 0x1004cb90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
jmp 0x1004cbcf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x1004cc80
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x10], 0
jne 0x1004cc34
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jle 0x1004cc32
push 4
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.1002c440
add esp, 0xc
jmp 0x1004cbbd
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.1002fb50
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
jmp 0x1004cbbd
mov esp, ebp
pop ebp
ret
Function at 0x10054c80
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100568db
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1006dd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
movzx eax, word [0x10075928]
test eax, eax
jne 0x10054ccd
mov dword [ebp - 0x14], 0x104
lea ecx, [ebp - 0x14]
push ecx
push 0x10075928
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push str.NETWORK_SERVICE
push 0x10075928
call fcn.1002f147
add esp, 8
test eax, eax
jne 0x10054d31
lea edx, [ebp - 0x18]
push edx
call fcn.10047300
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x100600ac
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100051c0
add esp, 0xc
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
mov eax, dword [ebp + 8]
jmp 0x10054da6
lea ecx, [ebp - 0x1c]
push ecx
call fcn.10054a90
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 1
push str.Settings_
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.100051c0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.1000fd80
lea ecx, [ebp - 0x10]
call fcn.1000d230
push eax
call fcn.10046de0
add esp, 4
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000f400
mov eax, dword [ebp - 0x20]
or eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000fd80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10004040
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
pop ebp
ret

Function at 0x100052b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x100934c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.10058400
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x1000530d
xor eax, eax
jmp 0x10005397
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10005388
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10053e4d
add esp, 8
test eax, eax
jne 0x10005370
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp + 0xc]
jne 0x10005370
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x10005397
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000532f
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053489
mov esp, ebp
pop ebp
ret
Function at 0x10005f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x1c], 0
je 0x10005f5e
mov eax, dword [ebp - 4]
or eax, 0x100
mov dword [ebp - 4], eax
jmp 0x10005f6a
mov ecx, dword [ebp - 4]
or ecx, 0x200
mov dword [ebp - 4], ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10005f8d
jmp 0x10005ff8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10005fb0
jmp 0x10005ff8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jbe 0x10005fcb
mov dword [ebp - 0xc], 0x7a
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x10005ff8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
xor ecx, ecx
jne 0x10005f6a
cmp dword [ebp - 8], 0
je 0x10006008
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10008460
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007757b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100934c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10008200
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [eax], vtable.CryptoPP::BaseN_Decoder.0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], vtable.CryptoPP::BaseN_Decoder.1.0
push 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x30
call fcn.10009910
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x1c]
call fcn.10036dc0
push 1
lea eax, [ebp + 8]
push eax
call fcn.10007470
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.1000c510
add esp, 0x10
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push eax
call fcn.10007460
push eax
mov ecx, dword [ebp - 0x24]
call fcn.1000c4e0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1003bbc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.100080d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000d850
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10075b08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100934c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x24], 0
jne 0x1000d8a3
push 1
mov ecx, dword [ebp - 0x1c]
call fcn.1000d660
push 0x10081750
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.1000d680
add esp, 8
xor eax, eax
jmp 0x1000d9d8
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
add edx, 0x28
push edx
push 0x1007c7ec
push 1
push 0
push 0x1007c8bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1000d8f4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1000d660
mov ecx, dword [ebp - 0x14]
push ecx
push str.Failed_to_create_IWbemLocator_object._Error_code__0x_x
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1000d680
add esp, 0xc
jmp 0x1000d9d5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d250
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0x2c
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x24]
call fcn.1000d310
push eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000d2f0
cmp dword [ebp - 0x14], 0
jge 0x1000d97f
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1000d660
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.Could_not_connect_to_server___s_._Error_code__0x_x
mov eax, dword [ebp - 0x1c]
push eax
call fcn.1000d680
add esp, 0x10
jmp 0x1000d9d5
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x1000d9c6
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.1000d660
mov ecx, dword [ebp - 0x14]
push ecx
push str.Could_not_set_proxy_blanket._Error_code__0x_x
mov edx, dword [ebp - 0x1c]
push edx
call fcn.1000d680
add esp, 0xc
jmp 0x1000d9d5
mov dword [ebp - 0x10], 1
xor eax, eax
jne 0x1000d8aa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x1000e919
xor ecx, ecx
jne 0x1000e919
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1000e960
mov eax, dword [ebp - 0xc]
jmp 0x1000e9bd
cmp dword [ebp - 4], 1
je 0x1000e973
cmp dword [ebp - 4], 2
je 0x1000e973
mov eax, 0xd
jmp 0x1000e9bd
cmp dword [ebp + 0xc], 0
je 0x1000e9b1
cmp dword [ebp - 8], 0
je 0x1000e9a9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x1000e9a0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x1000e9a7
mov eax, 0xd
jmp 0x1000e9bd
jmp 0x1000e9b1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000ecd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.C:_ndsclientGameMenu64.exe
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1000ed0d
mov eax, dword [ebp - 4]
mov dword [eax + 4], 4
push str.00000000
push 0x800
mov ecx, dword [ebp - 4]
add ecx, 0x10
push ecx
call fcn.10054e28
add esp, 0xc
mov al, 1
jmp 0x1000ed0f
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1001b160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100759fb
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x100934c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0x22c
push 0x228
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.10058400
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xffffffff
jne 0x1001b1d7
xor eax, eax
jmp 0x1001b32f
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001b31c
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10053e4d
add esp, 8
test eax, eax
jne 0x1001b300
mov edx, dword [ebp - 0x23c]
push edx
call fcn.1001b060
add esp, 4
test eax, eax
je 0x1001b300
push str.DNF.EXE
mov eax, dword [ebp + 8]
push eax
call fcn.10053e4d
add esp, 8
test eax, eax
jne 0x1001b2d3
mov ecx, dword [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x268]
push edx
call fcn.1001b4a0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
call fcn.1000de10
push eax
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str._TXReport__game:__s__pid:_d__parent:_s_r_n
call fcn.100060a0
add esp, 0x10
push str.GameLoader.exe
lea ecx, [ebp - 0x268]
call fcn.1000de10
push eax
call fcn.10053e4d
add esp, 8
test eax, eax
je 0x1001b2c1
lea edx, [ebp - 0x23c]
push edx
mov ecx, 0x1009e214
call fcn.1001b9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.1000ddd0
jmp 0x1001b300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.1000ddd0
lea eax, [ebp - 0x23c]
push eax
mov ecx, 0x1009e214
call fcn.1001b9a0
mov ecx, 0x8b
lea esi, [ebp - 0x244]
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24c], 1
jmp 0x1001b31c
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1001b1f3
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24c]
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.10053489
mov esp, ebp
pop ebp
ret
Function at 0x1001b350
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100769ff
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100934c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], 0
lea ecx, [ebp - 0x48]
call fcn.1000d4c0
mov dword [ebp - 4], 1
push 0x10080354
lea ecx, [ebp - 0x64]
call fcn.1000dd50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.1000d790
test eax, eax
jne 0x1001b3b6
jmp 0x1001b442
push str.ROOTCIMV2
lea ecx, [ebp - 0x48]
call fcn.1000d850
test eax, eax
jne 0x1001b3c9
jmp 0x1001b442
xor eax, eax
mov word [ebp - 0x26c], ax
push 0x206
push 0
lea ecx, [ebp - 0x26a]
push ecx
call fcn.10058400
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push str.SELECT__FROM_Win32_Process_WHERE_ProcessId__lu_
lea eax, [ebp - 0x26c]
push eax
call fcn.1001bff0
add esp, 0xc
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1000d9f0
test eax, eax
jne 0x1001b415
jmp 0x1001b442
lea ecx, [ebp - 0x48]
call fcn.1000db80
test eax, eax
jne 0x1001b423
jmp 0x1001b442
lea edx, [ebp - 0x64]
push edx
push str.commandline
lea ecx, [ebp - 0x48]
call fcn.1000dc20
test eax, eax
jne 0x1001b43a
jmp 0x1001b442
xor eax, eax
jne 0x1001b3a5
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1001b880
mov edx, dword [ebp - 0x270]
or edx, 1
mov dword [ebp - 0x270], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.1000ddd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.1000d560
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053489
mov esp, ebp
pop ebp
ret

Function at 0x1001b670
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x3c], 0x3c
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.10058400
add esp, 0xc
mov dword [ebp - 0x38], 0x400
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x1001b6a5
mov edx, dword [ebp - 0x38]
or edx, 0x40
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp + 8]
call fcn.1000de10
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0xc]
call fcn.1000de10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1001b6f2
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x1001b6f2
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x40], 1
sete al
mov esp, ebp
pop ebp
ret