joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100557e0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ebx, edx
push 0
push 0x14
mov dword [esp + 0x1c], ebx
mov dword [ebp], 0
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10055813
lea eax, [esi + 7]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [0x10165afc], 0
je 0x1005585f
mov eax, dword [0x10165bf8]
test eax, eax
je 0x10055833
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x1005585f
mov eax, dword [esp + 0x1c]
lea edi, [esi + 8]
mov dword [edi], ebx
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x10021cf0
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.1012cd9f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10055872
jmp 0x10055865
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x1005588d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [esp + 0x1c]
mov dword [ebx], eax
call dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebp], esi
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x100789b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov eax, edx
mov ebx, ecx
mov ecx, dword [esp + 0x18]
push ebp
push esi
cmp byte [eax + 0x2b], 1
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
je 0x10078ad5
mov ebp, dword [eax + 8]
test ebp, ebp
je 0x10078ad5
nop dword [eax]
test ecx, ecx
je 0x10078a2b
movzx eax, word [ebp + 0x34]
xor edi, edi
test eax, eax
je 0x10078ac2
mov ebx, dword [ebp + 4]
cmp word [ebx], 0
jl 0x10078ab2
mov eax, dword [ebp + 0x20]
mov esi, ecx
mov eax, dword [eax + edi*4]
sub esi, eax
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x10078a92
test edx, edx
jne 0x10078aa4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
test ecx, ecx
je 0x10078a4d
mov eax, dword [ebx]
xor esi, esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x10078a4d
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x10078a45
mov eax, dword [ebx + 0x78]
mov edi, ebx
test eax, eax
mov ecx, esi
cmovne edi, eax
mov eax, 1
shl eax, cl
mov edx, dword [edi + 0x58]
test edx, eax
jne 0x10078a79
bts edx, esi
mov dword [edi + 0x58], edx
cmp esi, 1
jne 0x10078a79
mov ecx, edi
call fcn.10078420
mov eax, dword [edi + 0x54]
mov edx, ebp
bts eax, esi
mov ecx, ebx
push 0xffffffffffffffff
mov dword [edi + 0x54], eax
call fcn.10075260
add esp, 4
jmp 0x10078ac2
movzx ecx, byte [ecx + 0x10151a70]
movzx edx, byte [edx + 0x10151a70]
sub edx, ecx
jne 0x10078aaa
inc eax
jmp 0x10078a10
movzx eax, word [ebp + 0x34]
mov ecx, dword [esp + 0x24]
inc edi
add ebx, 2
cmp edi, eax
jl 0x100789f5
mov ebx, dword [esp + 0x14]
mov ebp, dword [ebp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test ebp, ebp
jne 0x100789e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x100ddeb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
lea esi, [edi*8]
call fcn.100cb480
test eax, eax
jne 0x100de031
push eax
push esi
call fcn.1001e4e0
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x100de031
push esi
push 0
push ebx
call fcn.1012ab60
mov esi, dword [ebp + 0x10]
add esp, 0xc
test esi, esi
je 0x100ddf58
cmp dword [0x10165af8], 0
je 0x100ddf4e
mov eax, dword [0x10168b48]
test eax, eax
je 0x100ddf1c
push eax
call dword [0x10165b48]
add esp, 4
push esi
call dword [0x10165b24]
sub dword [0x101689d0], eax
add esp, 4
dec dword [0x101689f4]
push esi
call dword [0x10165b1c]
mov eax, dword [0x10168b48]
add esp, 4
test eax, eax
je 0x100ddf58
push eax
call dword [0x10165b50]
jmp 0x100ddf55
push esi
call dword [0x10165b1c]
add esp, 4
cmp byte [ebp], 1
mov eax, 0x100ddd90
mov ecx, 0x100dde10
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 8]
cmovne eax, ecx
mov dword [ebp + 0xc], edi
mov dword [esp + 0x1c], eax
mov dword [ebp + 8], 0
test ebx, ebx
je 0x100de027
lea ecx, [edi - 1]
mov dword [esp + 0x14], ecx
nop dword [eax]
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp eax, 0x100dde10
jne 0x100ddfc0
xor eax, eax
test esi, esi
jle 0x100ddfb9
movsx ecx, byte [edi]
lea edx, [eax*8]
xor edx, ecx
lea edi, [edi + 1]
dec esi
xor eax, edx
test esi, esi
jg 0x100ddfa3
and eax, 0x7fffffff
jmp 0x100ddfc7
push esi
push edi
call eax
add esp, 8
mov ecx, dword [esp + 0x14]
mov esi, dword [ebx]
and ecx, eax
mov eax, dword [esp + 0x18]
lea edx, [eax + ecx*8]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x100ddffb
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x100ddff3
mov dword [eax], ebx
mov dword [ecx + 4], ebx
jmp 0x100de014
mov dword [ebp + 8], ebx
mov dword [ecx + 4], ebx
jmp 0x100de014
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x100de00a
mov dword [eax + 4], ebx
mov dword [ebx + 4], 0
mov dword [ebp + 8], ebx
inc dword [edx]
mov eax, dword [esp + 0x1c]
mov dword [edx + 4], ebx
mov ebx, esi
test esi, esi
jne 0x100ddf90
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10103c70
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, edx
mov dword [esp + 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [esp + 0x14], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
push edi
mov edi, dword [esi + ebx*4 + 0x18]
test edi, edi
jne 0x10103cac
push dword [esi + 8]
push dword [esi + 4]
push dword [esp + ebx*4 + 0x1c]
push esi
call fcn.10103900
mov edi, eax
add esp, 0x10
mov dword [esi + ebx*4 + 0x18], edi
cmp dword [esi + 0x28], 0
jne 0x10103d6c
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x24]
push 1
push edi
call fcn.1004b480
push edi
call fcn.10049ed0
add esp, 0x14
cmp eax, 0x65
jne 0x10103d03
mov ecx, str.__parent
test ebx, ebx
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebp
push ecx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.101039d0
add esp, 0x1c
jmp 0x10103d5a
cmp eax, 0x64
jne 0x10103d5a
push 0
push edi
call fcn.1004aa90
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jne 0x10103d25
cmp edx, ecx
je 0x10103d5a
push ecx
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
test ebx, ebx
push ebp
push ecx
mov eax, str.__rowid
mov dword [esp + 0x20], str.__parent
cmove eax, dword [esp + 0x20]
push eax
push edx
push dword [esp + 0x2c]
push ebp
push ecx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.101039d0
add esp, 0x2c
push edi
call fcn.10048ea0
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x10103d6c
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10108630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [ecx], eax
test edi, edi
je 0x10108793
mov ebx, dword [ebp + 0xc]
lea esi, [eax + 0xd]
lea edx, [ebx - 1]
test edx, edx
js 0x10108687
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x10108670
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x18], eax
test edi, edi
je 0x1010870e
cmp dword [edi + 8], ecx
jne 0x10108707
cmp dword [edi + 4], ebx
jne 0x10108707
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 8]
sub ecx, 4
jb 0x101086d1
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x101086d6
add edx, 4
add esi, 4
sub ecx, 4
jae 0x101086c0
cmp ecx, 0xfffffffc
je 0x1010871e
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10108703
cmp ecx, 0xfffffffd
je 0x1010871e
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10108703
cmp ecx, 0xfffffffe
je 0x1010871e
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10108703
cmp ecx, 0xffffffff
je 0x1010871e
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x1010871e
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x101086a8
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.100cb480
test eax, eax
je 0x10108730
jmp 0x10108740
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.1001e4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1010875c
test edi, edi
je 0x1010874b
mov eax, 7
jmp 0x1010874d
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
jne 0x10108768
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.1012ab60
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call fcn.1012bff0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101273d0
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x101273ef
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x1012749a
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x1014f260]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x10127410
movzx edx, word [ebp*4 + 0x1014f260]
movzx eax, byte [ebp*4 + 0x1014f263]
add eax, edx
cmp ecx, eax
jge 0x1012747e
movzx eax, byte [ebp*4 + 0x1014f262]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x1012747e
shr eax, 1
movzx eax, word [eax*2 + 0x10150700]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x101274a8
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.100f6080
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x101274aa
mov eax, ecx
add esp, 8
ret

Function at 0x1012dffc
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1012e03b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1012e03b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1012e03b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1012e03b
cmp dword [ecx + 0x74], 0xe
jbe 0x1012e03b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101308bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10140e3c
push 0x10140e34
push str.FlsAlloc
push 0x1f
call fcn.1013073c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101308f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1013f1e8]
call esi
jmp 0x101308f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1013093b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10140e4c
push 0x10140e44
push str.FlsGetValue
push 0x21
call fcn.1013073c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10130972
push dword [ebp + 8]
mov ecx, esi
call dword [0x1013f1e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1013097a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10140e54
push 0x10140e4c
push str.FlsSetValue
push 0x22
call fcn.1013073c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101309b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1013f1e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10135af5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10135b92
push ebx
push esi
call fcn.10135abe
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10135a52
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10135b3f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10135b91
push edi
push eax
call fcn.1012fc19
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10135b5f
call fcn.1012fbdf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10135b90
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10135a52
add esp, 0x20
test eax, eax
jne 0x10135b7e
push edi
call fcn.1012fbdf
jmp 0x10135b86
push ebx
call fcn.1012fbdf
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10135b95
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10135ba6
pop esi
ret
push ebx
push edi
push esi
call fcn.10135abe
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1012fc19
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10135bce
push ebx
push esi
push edi
call fcn.1012bff0
add esp, 0xc
push 0
call fcn.1012fbdf
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10135f9e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10135be3
Function at 0x1013bf80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1013bfad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1013bfad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x11030
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push section..text
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
lea ecx, [ebp - 0xf8]
push ecx
call fcn.000173b0
lea edx, [ebp - 0xf8]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x22
lea edx, [ebp - 0x108]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
je 0x11093
xor al, al
jmp 0x110e7
push 0x11014
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
lea edx, [ebp - 0x80]
push edx
call fcn.000173b0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
je 0x110e5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
xor al, al
jmp 0x110e7
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x11400
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
mov ecx, 0x34
xor eax, eax
mov edi, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
pop edi
pop ebp
ret 4
Function at 0x14940
Capabilities:
Map section object
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov byte [ebp - 0x21], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.000148e0
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x14a4b
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.000148e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0x8000000
push 2
push 0
lea eax, [ebp - 0x20]
push eax
push 0xf0005
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x14a3f
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 2
push 0
push 1
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x14a33
cmp dword [ebp - 0x30], 0
je 0x14a33
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14a27
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx], 0x4550
jne 0x14a27
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov al, 1
jmp 0x14a4e
mov ecx, dword [ebp - 0x30]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x21]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x14cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.000148e0
push 0
push 0
push 0x20
push 0
push 1
push 0x80
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
push 0x100002
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x14d2d
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x14dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 5
ja 0x14df3
cmp dword [ebp - 8], 5
jne 0x14dea
cmp dword [ebp - 4], 0
ja 0x14df3
mov dword [ebp - 0xc], 0
jmp 0x14dfa
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x14e10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 8], 6
ja 0x14e43
cmp dword [ebp - 8], 6
jne 0x14e3a
cmp dword [ebp - 4], 1
ja 0x14e43
mov dword [ebp - 0xc], 0
jmp 0x14e4a
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x14e60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [ebp - 4], 0
je 0x14f3c
mov edx, dword [ebp - 4]
shl edx, 1
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x14f3c
push 0
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0xb
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jne 0x14f32
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
jmp 0x14ede
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx]
jae 0x14f32
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x11c
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + ecx + 0x1a]
lea edx, [eax + ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe__stricmp]
add esp, 8
test eax, eax
jne 0x14f30
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x11c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx + 8]
mov dword [ebp - 0xc], eax
jmp 0x14f32
jmp 0x14ed5
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x153e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x15417
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x15417
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x15417
mov eax, dword [ebp - 4]
add eax, 0x28
jmp 0x15419
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x15710
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [ebp - 4], 0
jne 0x157a0
mov dword [ebp - 4], 0x10000
mov ecx, dword [ebp - 4]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x15768
jmp 0x1579e
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x1578f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x1579e
cmp dword [ebp - 4], 0x400000
jb 0x15748
jmp 0x157e0
mov eax, dword [ebp - 4]
shl eax, 1
push eax
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x157e0
push 0
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
mov edx, dword [ebp - 8]
push edx
push 5
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jge 0x157e0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x1582a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x15820
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x15809
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x15813
jmp 0x15820
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x157ec
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4