joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001190
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x85b3b69
mov rdi, rcx
jne 0x14000123e
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x14000123e
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000123e
call fcn.140001254
mov rcx, qword [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.140001510
test rax, rax
je 0x14000123e
mov ecx, eax
lea r9, [rsp + 0x38]
and ecx, 0xfff
mov edx, 0x1000
sub edx, ecx
mov rcx, rax
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x38], 0
cmp byte [rdi + 0x20], 0
mov rdx, qword [rdi + 0x10]
movsxd r8, esi
je 0x140001235
call fcn.1400016c4
jmp 0x14000123a
call fcn.140001484
xor eax, eax
jmp 0x140001243
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140001484
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400014b0
mov eax, 0xc0000001
jmp 0x1400014f8
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x1400014c8
lea rcx, [0x140001d30]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400014a9
mov r9d, 1
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
mov ebx, eax
test eax, eax
jns 0x1400014f6
mov edx, eax
lea rcx, [0x140001d60]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400016c4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400016ff
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x140001719
lea rcx, [0x140001d30]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapIoSpaceEx]
mov rdi, rax
test rax, rax
je 0x1400016ff
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.140001880
mov rdx, rbx
mov qword [rsi], rbx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmUnmapIoSpace]
xor eax, eax
jmp 0x140001704
Function at 0x140008010
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140008052
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x14000805a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000806b
jmp 0x140008082
xor r10d, r10d
jmp 0x14000810d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140008082
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140008099
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400080b9
add r11, r8
jmp 0x1400081e9
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140008182
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140008130
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14000819f
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x1400081b0
jmp 0x1400081cb
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x1400081cb
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
invalid
add byte [rax], al
add byte [rax], al
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x1400081e5
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005d600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x141dd2400]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14005d620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14005d628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14005d620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14005d67d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14005d674
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14005d620
add rax, 0x28
cmp rax, r9
jne 0x14005d660
xor eax, eax
ret

Function at 0x14005d680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141dd2400]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14005d69f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14005d6a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14005d69f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14005d740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141dd2400]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14005d75f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14005d768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x141585058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1415851df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141585089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14158506f
add dl, dl
jne 0x141585096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415850f6
xor eax, eax
add dl, dl
jne 0x1415850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415851ad
add dl, dl
jne 0x1415850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14158507e
mov eax, 1
add dl, dl
jne 0x141585106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141585113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415850fb
sub eax, ebx
mov ebx, 1
jne 0x14158514c
mov ecx, 1
add dl, dl
jne 0x14158512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14158513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141585123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14158507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141585168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141585175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14158515d
cmp eax, 0x7d00
jae 0x14158519b
cmp eax, 0x500
jb 0x141585196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14158507e
cmp eax, 0x7f
ja 0x14158519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14158507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415851d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14158507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400279dc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x36ee80
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001556
Capabilities:
Hash data using djb2

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 8], 0
mov dword [rbp - 0xc], 0x1505
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x18], rax
jmp 0x140001590
mov eax, dword [rbp - 0xc]
shl eax, 5
add dword [rbp - 0xc], eax
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x18]
jne 0x140001582
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.1400014f0
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0xc]
imul eax, dword [rbp - 0x1c]
mov ebx, eax
mov rax, qword [rbp + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_lstrlenA]
call rax
add eax, ebx
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x140001f4f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov rax, qword [0x1400ea030]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
jne 0x140001f9a
lea rax, str.Failed_to_get_ntdll.dll_n
mov rdx, rax
mov rax, qword [0x1400c43d0]
mov rcx, rax
call fcn.1400b4110
mov eax, 0
jmp 0x140002210
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001fdb
lea rax, str.____Invalid_DOS_Signature___n
mov rdx, rax
mov rax, qword [0x1400c43d0]
mov rcx, rax
call fcn.1400b4110
mov eax, 0
jmp 0x140002210
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0xc8]
add rax, rdx
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000202c
lea rax, str.____Invalid_NT_Signature___n
mov rdx, rax
mov rax, qword [0x1400c43d0]
mov rcx, rax
call fcn.1400b4110
mov eax, 0
jmp 0x140002210
mov rax, qword [rbp + 0xb8]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0xb8]
add rax, rdx
add rax, 0x18
mov qword [rbp + 0xb0], rax
lea rax, [rbp - 0x60]
mov edx, 0xf0
mov rcx, rax
call fcn.140019590
mov dword [rbp + 0xdc], 0
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xd8], 0
jmp 0x1400021d8
mov eax, dword [rbp + 0xd8]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0xb0]
add rax, rdx
mov eax, dword [rax + 0x24]
and eax, 0x20
test eax, eax
je 0x1400021d1
mov eax, dword [rbp + 0xd8]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0xb0]
add rax, rdx
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x1400021d1
mov eax, dword [rbp + 0xd8]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0xb0]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0xa8]
add rax, rdx
mov qword [rbp + 0xa0], rax
mov eax, dword [rbp + 0xd8]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0xb0]
add rax, rdx
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0xa0]
add rax, rdx
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xd0], rax
jmp 0x1400021ba
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call fcn.140001f0d
test eax, eax
sete al
test al, al
jne 0x1400021b1
mov rdx, qword [rbp + 0xd0]
mov eax, dword [rbp + 0xdc]
lea ecx, [rax + 1]
mov dword [rbp + 0xdc], ecx
mov eax, eax
mov qword [rbp + rax*8 - 0x60], rdx
cmp dword [rbp + 0xdc], 0x1e
je 0x1400021d0
jmp 0x1400021b2
nop
add qword [rbp + 0xd0], 1
mov rax, qword [rbp + 0x98]
sub rax, 1
cmp qword [rbp + 0xd0], rax
jb 0x140002171
jmp 0x1400021d1
nop
add dword [rbp + 0xd8], 1
mov rax, qword [rbp + 0xb8]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp + 0xd8], eax
jl 0x140002087
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0xdc]
lea ecx, [rdx + 1]
mov edx, 0
div ecx
mov eax, edx
mov eax, eax
mov rax, qword [rbp + rax*8 - 0x60]
add rsp, 0x160
pop rbp
ret
Function at 0x140002683
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov ecx, 0x2e495f03
call fcn.1400015cb
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400026d6
lea rax, str.IMAGE_DOS_SIGNATURE_MISMATCH_n
mov rdx, rax
mov rax, qword [0x1400c43d0]
mov rcx, rax
call fcn.1400b4110
mov eax, 0
jmp 0x14000271f
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002718
lea rax, str.IMAGE_NT_SIGNATURE_MISMATCH_n
mov rdx, rax
mov rax, qword [0x1400c43d0]
mov rcx, rax
call fcn.1400b4110
mov eax, 0
jmp 0x14000271f
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14000e460
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140018e20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140018e20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000e4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ea234]
mov rbx, rcx
test esi, esi
jle 0x14000e600
mov rax, qword [0x1400ea238]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e51b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e5a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e500
mov rcx, rbx
call fcn.14000ef40
mov rdi, rax
test rax, rax
je 0x14000e622
mov rax, qword [0x1400ea238]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000f080
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ea238]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e607
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e59e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e5b0
add dword [0x1400ea234], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400ea238]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e460
nop dword [rax]
xor esi, esi
jmp 0x14000e528
mov rax, qword [0x1400ea238]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e460
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e460
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ebb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ea2a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea280]
test rbx, rbx
je 0x14000ec0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000ec03
test eax, eax
jne 0x14000ec03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ebe8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000ef40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c4980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ef60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ef68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ef60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000efbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000efb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ef60
add rax, 0x28
cmp rax, r9
jne 0x14000efa0
xor eax, eax
ret

Function at 0x14000efc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c4980]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000efdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000efe8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000efdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000f080
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c4980]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000f09f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000f0a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14007c160
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007c1a8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c17a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b6be0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400bd1c0]
jmp 0x14000fda0

Function at 0x1400b6bf0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400bd1c0]
jmp 0x14000fda0
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141e0
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141f3
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001421d
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014231
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014243
xor al, al
jmp 0x140014261
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001425f
xor al, al
jmp 0x140014261
mov al, 1
add rsp, 0x38
ret