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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140080be0
sub rsp, rax
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140092648
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400999cf
mov rax, rbp
jmp 0x140099ad7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x11e6e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a3b78
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x11e6e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140099ad3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140099ad3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a3b78
test rax, rax
js 0x140099ad3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140099ad3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140099ac5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140099ac5
cmp byte [rcx], 0xd
jne 0x140099aab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140099aba
cmp byte [rcx + 1], 0xa
jne 0x140099aba
inc rcx
jmp 0x140099aba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x10f310]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140099a8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140099ad7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140080c40
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14009c690
Capabilities:
Parse pe header

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

Function at 0x1400a6698
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400a0214
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a6739
cmp ebx, dword [rsp + 0x30]
je 0x1400a6732
test esi, esi
je 0x1400a6732
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a670d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a671a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a66f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a671e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a673b
mov eax, 1
jmp 0x1400a673b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7684
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a770b
mov rsi, rbx
cmp word [rax], bp
je 0x1400a76ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a76b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a76b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140032b70
mov rdi, rax
test rax, rax
je 0x1400a76f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400826b0
mov rbp, rdi
xor ecx, ecx
call fcn.140060710
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a9ca0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400a9cea
call fcn.140092270
mov dword [rax], 0xf
call fcn.140092250
mov dword [rax], 0xd
call fcn.1400930d8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140080c40
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400a9cf5
lea eax, [rbx + 1]
jmp 0x1400a9cd7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400a9cd5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400a9cd7

Function at 0x1400aa2c0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400aa2d6
mov al, 1
jmp 0x1400aa336
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400aa2e7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400aa334
mov ecx, dword [rcx + 0x18]
nop
call fcn.140092698
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400aa334
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400aa334
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400aa334
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400aa336
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400cd110
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401209e8], 0
je 0x1400cd156
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140080c40
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1401209c0]
test rdi, rdi
je 0x1400cd1f7
test byte [0x1401111c8], 1
je 0x1400cd139
cmp byte [rdi + 0x17], 0
jns 0x1400cd178
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401209e8], rax
inc rax
cmp rax, 1
ja 0x1400cd139
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140082d60
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400cd2be
xor esi, esi
jmp 0x1400cd139
mov ecx, 0x18
call fcn.14007f7b8
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140082d60
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400f3050]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400b18a0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400cd25d
and eax, 0x7f
mov rcx, rdi
jmp 0x1400cd264
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400cd28a
lea rdx, [0x1400f71c2]
mov r8d, 9
mov rcx, rdi
call fcn.14002a980
mov qword [0x1401209c0], rdi
jmp 0x1400cd166
add rax, rax
test rax, rax
je 0x1400cd269
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400cd28d
cmp rdx, 0xfffffffffffffffe
je 0x1400cd269
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140052af0
jmp 0x1400cd269
mov rcx, qword [0x1401209c0]
lea rdx, [rsp + 0x40]
call fcn.14002a950
mov rcx, qword [0x1401209c0]
call fcn.1400c8860
cmp word [rax], 0x5c
je 0x1400cd2fa
mov rcx, qword [0x1401209c0]
lea rdx, [0x1400f46ee]
mov r8d, 1
call fcn.14002a980
mov rcx, qword [0x1401209c0]
lea rdx, [0x1400f71c2]
mov r8d, 9
call fcn.14002a980
mov rcx, qword [0x1401209c0]
cmp byte [rcx + 0x17], 0
jns 0x1400cd323
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401209e8], rax
inc rax
cmp rax, 1
ja 0x1400cd139
mov qword [0x1401209e8], 0
jmp 0x1400cd1f0

Function at 0x1400e2d00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400e2d13
cmp dword [0x14012ccc0], ecx
jle 0x1400e2d1a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400e2d60
test edi, edi
je 0x1400e2d13
cmp byte [rsi + rdi - 1], 0xa
je 0x1400e2d13
lea rcx, [0x1400f379f]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400e2d60
Function at 0x1400e2d60
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14010f028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400e2dae
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400e2dec
cmp rdi, rsi
jae 0x1400e2dec
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400e2da7
jmp 0x1400e2da4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140080c40
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000db50]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000db60]
mov dword [rax], 1
mov rax, qword [0x14000db70]
mov dword [rax], 1
mov rax, qword [0x14000db00]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000db40]
mov dword [0x14001100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000dc30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000dc10]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000da90]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001480
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov edi, edx
mov rsi, rcx
call sym.strlen
lea ecx, [rax + 1]
mov rbx, rax
movsxd rcx, ecx
call sym.malloc
mov rdx, rax
test ebx, ebx
jle 0x1400015cf
lea eax, [rbx - 1]
cmp eax, 0xe
jbe 0x1400015e1
movd xmm1, edi
mov ecx, ebx
xor eax, eax
punpcklbw xmm1, xmm1
shr ecx, 4
punpcklwd xmm1, xmm1
shl rcx, 4
pshufd xmm1, xmm1, 0
nop word [rax + rax]
movdqu xmm0, xmmword [rsi + rax]
pxor xmm0, xmm1
movups xmmword [rdx + rax], xmm0
add rax, 0x10
cmp rcx, rax
jne 0x1400014d8
mov r8d, ebx
and r8d, 0xfffffff0
mov eax, r8d
test bl, 0xf
je 0x1400015cf
mov r9d, ebx
sub r9d, r8d
lea ecx, [r9 - 1]
cmp ecx, 6
jbe 0x140001541
movzx ecx, dil
movq xmm1, qword [rsi + r8]
mov ch, cl
movd xmm2, ecx
mov ecx, r9d
and ecx, 0xfffffff8
pshuflw xmm0, xmm2, 0
pxor xmm1, xmm0
add eax, ecx
and r9d, 7
movq qword [rdx + r8], xmm1
je 0x1400015cf
movsxd rcx, eax
movzx r8d, byte [rsi + rcx]
xor r8d, edi
mov byte [rdx + rcx], r8b
lea ecx, [rax + 1]
cmp ebx, ecx
jle 0x1400015cf
movsxd rcx, ecx
movzx r8d, byte [rsi + rcx]
xor r8d, edi
mov byte [rdx + rcx], r8b
lea ecx, [rax + 2]
cmp ebx, ecx
jle 0x1400015cf
movsxd rcx, ecx
movzx r8d, byte [rsi + rcx]
xor r8d, edi
mov byte [rdx + rcx], r8b
lea ecx, [rax + 3]
cmp ebx, ecx
jle 0x1400015cf
movsxd rcx, ecx
movzx r8d, byte [rsi + rcx]
xor r8d, edi
mov byte [rdx + rcx], r8b
lea ecx, [rax + 4]
cmp ebx, ecx
jle 0x1400015cf
movsxd rcx, ecx
movzx r8d, byte [rsi + rcx]
xor r8d, edi
mov byte [rdx + rcx], r8b
lea ecx, [rax + 5]
cmp ebx, ecx
jle 0x1400015cf
movsxd rcx, ecx
add eax, 6
movzx r8d, byte [rsi + rcx]
xor r8d, edi
mov byte [rdx + rcx], r8b
cmp ebx, eax
jle 0x1400015cf
cdqe
xor dil, byte [rsi + rax]
mov byte [rdx + rax], dil
movsxd rbx, ebx
mov rax, rdx
mov byte [rdx + rbx], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor r8d, r8d
xor eax, eax
jmp 0x140001501

Function at 0x140001970
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x1400019e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400110a4]
mov rbx, rcx
test esi, esi
jle 0x140001b10
mov rax, qword [0x1400110a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ab5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b32
mov rax, qword [0x1400110a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400110a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001aae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001ac0
add dword [0x1400110a4], 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 [0x1400110a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001aae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001a38
mov rax, qword [0x1400110a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400110e0]
test rbx, rbx
je 0x14000211c
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 0x140002113
test eax, eax
jne 0x140002113
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020f8
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 0x140002330
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002348
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002350
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002360
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023af
add rax, 0x28
cmp rax, r9
jne 0x140002390
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002440
mov rdx, qword [0x14000db00]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000242e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000242e
cmp word [rax + 0x18], 0x20b
jne 0x14000242e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002440
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002419
add rbx, 0x28
cmp rbx, rdi
je 0x140002440
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002410
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000db00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002470
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024cd
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 0x1400024c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002470
add rax, 0x28
cmp rax, r9
jne 0x1400024b0
xor eax, eax
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

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

Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000db00]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002530
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002538
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002530
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002580
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002577
test rcx, rcx
je 0x140002530
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002568
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000db00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000db00]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002644
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002650
add rdx, 0x28
cmp rdx, r9
jne 0x140002630
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000db00]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002682
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002690
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002682
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002682
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002682
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026f8
add rdx, 0x28
cmp r10, rdx
jne 0x1400026d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002707
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002717
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026ee
test ecx, ecx
jg 0x140002700
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000127b
Capabilities:
Terminate process

Disassembly:
jmp 0x1400086f0
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 0x14000132a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140009a40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140009a60
xor al, al
jmp 0x140009ae1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140009a73
xor al, al
jmp 0x140009ae1
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 0x140009a9d
xor al, al
jmp 0x140009ae1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140009ab1
xor al, al
jmp 0x140009ae1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140009ac3
xor al, al
jmp 0x140009ae1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140009adf
xor al, al
jmp 0x140009ae1
mov al, 1
add rsp, 0x38
ret