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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x438298]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41886d
cmp word [ebx], dx
jne 0x41886d
or byte [eax + edi + 0x28], 4
jmp 0x418872
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4189d5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4189b5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4188b3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4188e9
cmp eax, edx
jae 0x4188f7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41888e
jmp 0x4189d5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4189b0
cmp dword [ebp - 0x18], 0
je 0x4189b0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x438298]
test byte [eax + edi + 0x28], 0x48
je 0x418986
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41894a
mov word [esi], cx
jmp 0x418981
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x438298]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x438298]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x438298]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4189d5
pop eax
cmp word [ebp - 4], ax
jne 0x418996
cmp esi, ebx
jne 0x418996
mov word [esi], ax
jmp 0x4189d2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004193fa
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4189d5
push 0xd
pop eax
jmp 0x418991
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x438298]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4189cf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4189d5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b9b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f850
push 0x42f848
push str.FlsAlloc
push 0x1f
call fcn.0041b875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b9ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281a0]
call esi
jmp 0x41b9f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ba34
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f860
push 0x42f858
push str.FlsGetValue
push 0x21
call fcn.0041b875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ba6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ba73
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f868
push 0x42f860
push str.FlsSetValue
push 0x22
call fcn.0041b875
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41baad
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41c6eb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41c72e
call fcn.00414d2e
mov dword [eax], 0xf
call fcn.00414d41
mov dword [eax], 0xd
call fcn.00417c79
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a7a7
leave
ret
test eax, eax
jne 0x41c735
inc eax
jmp 0x41c722
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41c720
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41c722

Function at 0x41d8dc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d3f7
Function at 0x41e254
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e29f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e3ef
test al, al
jne 0x41e299
sub edx, 2
cmp edx, edi
jne 0x41e27f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e2c1
lea eax, [edi + 2]
cmp edx, eax
je 0x41e2c1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e1a0
add esp, 0x10
jmp 0x41e3bb
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e3ef
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e304
push dword [ebp - 0x25c]
jmp 0x41e2b1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e341
cmp word [ebp - 0x226], 0
je 0x41e362
cmp word [ebp - 0x226], ax
jne 0x41e341
cmp word [ebp - 0x224], 0
je 0x41e362
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e1a0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e3ae
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e31b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e396
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e3bb
push 0x41dfd0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423970
add esp, 0x10
jmp 0x41e38b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7a7
leave
ret
Function at 0x41ecc7
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 0x41ed64
push ebx
push esi
call fcn.0041ec90
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.0041c816
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ed11
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ed63
push edi
push eax
call fcn.0041a4d1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ed31
call fcn.00417cbd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ed62
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c816
add esp, 0x20
test eax, eax
jne 0x41ed50
push edi
call fcn.00417cbd
jmp 0x41ed58
push ebx
call fcn.00417cbd
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 0x41ed67
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ed78
pop esi
ret
push ebx
push edi
push esi
call fcn.0041ec90
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a4d1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41eda0
push ebx
push esi
push edi
call fcn.0040b420
add esp, 0xc
push 0
call fcn.00417cbd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x424cd5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424c51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x424e44
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x424e44
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424df9
jg 0x424d31
test eax, eax
je 0x424def
push 1
push 0x1000
call fcn.0041b6e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424d54
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424de6
push 0x8000
push ebx
call fcn.004171a5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424d7d
jg 0x424d78
cmp ecx, 0x1000
jb 0x424d7d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419f36
add esp, 0x10
cmp eax, 0xffffffff
je 0x424dc2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424d78
jl 0x424da9
test ecx, ecx
jne 0x424d6a
push dword [ebp - 0xc]
push ebx
call fcn.004171a5
push esi
call fcn.00417cbd
add esp, 0xc
xor ebx, ebx
jmp 0x424e52
cmp byte [edi + 0x24], 0
je 0x424dd9
cmp dword [edi + 0x20], 5
jne 0x424dd9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424de4
mov ebx, dword [edi + 0x18]
jmp 0x424de6
xor ebx, ebx
push esi
call fcn.00417cbd
pop ecx
jmp 0x424e52
test ecx, ecx
jg 0x424dbb
jl 0x424df9
test eax, eax
jae 0x424dbb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004193fa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x424e19
cmp byte [edi + 0x1c], 0
je 0x424dbb
jmp 0x424e4a
push ebx
call fcn.004157e7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424e52
cmp byte [edi + 0x1c], 0
je 0x424e4f
mov ebx, dword [edi + 0x18]
jmp 0x424e52
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004193fa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426ac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426aed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426aed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10a60
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x10a30
lea eax, [ebp - 0xf8]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
lea ecx, [ebp - 0xf8]
push ecx
call fcn.000165e0
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 0x10ac3
xor al, al
jmp 0x10b17
push 0x10a44
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
lea edx, [ebp - 0x80]
push edx
call fcn.000165e0
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 0x10b15
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
xor al, al
jmp 0x10b17
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10e30
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 0x14370
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.00014310
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 0x1447b
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00014310
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 0x1446f
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 0x14463
cmp dword [ebp - 0x30], 0
je 0x14463
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14457
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 0x14457
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov al, 1
jmp 0x1447e
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 0x146f0
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.00014310
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 0x1475d
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 0x147f0
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 0x14823
cmp dword [ebp - 8], 6
jne 0x1481a
cmp dword [ebp - 4], 1
ja 0x14823
mov dword [ebp - 0xc], 0
jmp 0x1482a
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x14840
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 0x1491c
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 0x1491c
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 0x14912
mov edx, dword [ebp - 8]
add edx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0
jmp 0x148be
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 0x14912
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 0x14910
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 0x14912
jmp 0x148b5
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 0x14dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x14df7
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x14df7
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 0x14df7
mov eax, dword [ebp - 4]
add eax, 0x28
jmp 0x14df9
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x150f0
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 0x15180
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 0x15148
jmp 0x1517e
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 0x1516f
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 0x1517e
cmp dword [ebp - 4], 0x400000
jb 0x15128
jmp 0x151c0
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 0x151c0
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 0x151c0
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 0x1520a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, 1
test edx, edx
je 0x15200
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
cmp ecx, dword [ebp + 8]
jne 0x151e9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x151f3
jmp 0x15200
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x151cc
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
Function at 0x158b0
Capabilities:
Get file attributes
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov byte [ebp - 0x235], 0
push 0x158a0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntoskrnl.exe_wcscat]
add esp, 8
xor eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00014310
push 0
push 0
push 0
push 1
push 1
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x234]
push eax
push 1
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x15a87
mov dword [ebp - 0x244], 0
push 0
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.00014310
mov eax, dword [ebp - 0x21c]
push eax
push 0x8000000
push 2
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0xf0005
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
test eax, eax
jl 0x15a67
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
push 2
push 0
push 1
lea eax, [ebp - 0x248]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jl 0x15a5a
cmp dword [ebp - 0x24c], 0
je 0x15a5a
push 5
push 0x18
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jl 0x15a4b
cmp dword [ebp + 0x14], 0
je 0x15a16
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x260]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x15a27
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x260]
jbe 0x15a30
mov eax, dword [ebp - 0x260]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00013a00
mov byte [ebp - 0x235], 1
mov ecx, dword [ebp - 0x24c]
push ecx
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x18], 0
je 0x15a7a
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x21c]
mov dword [eax], ecx
jmp 0x15a87
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, byte [ebp - 0x235]
mov esp, ebp
pop ebp
ret 0x14