joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401e6290
Capabilities:
Execute syscall

Disassembly:
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], rbx
mov rbx, rax
pop qword [rax]
mov eax, dword [rax + 0x10]
mov r10, rcx
syscall
mov rcx, rbx
push qword [rcx]
mov rbx, qword [rcx + 8]
ret

Function at 0x1401e6530
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1401e656a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1401e656f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401e65b8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14025acf0]
cmp byte [rcx + rax], 0
je 0x1401e65b8
dec r8
sub rdx, 1
jne 0x1401e659e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401e6c7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1401e6694
mov ebx, eax
test eax, eax
jne 0x1401e6cac
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1401e6d08
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401e6cff
test al, 0x10
je 0x1401e6cff
bt eax, 0xa
jae 0x1401e6cf8
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1401e6d20
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1401e6cf4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1401e6d18
test edi, edi
jne 0x1401e6cff
and dword [rsp + 0x3c], 0
jmp 0x1401e6d04
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1401f6db8
int3

Function at 0x1401e7d9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e7de6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e7de6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e7de6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e7de6
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e7de6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401e7de8
xor al, al
add rsp, 0x28
ret

Function at 0x1401f7348
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401f7144
Function at 0x1401fb7d8
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.1401e7630
sub rsp, rax
mov rax, qword [0x140278140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401f9800
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401fb827
mov rax, rbp
jmp 0x1401fb92f
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 + 0x279e30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401fb480
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x279e30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401fb92b
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 0x1401fb92b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401fb480
test rax, rax
js 0x1401fb92b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401fb92b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401fb91d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401fb91d
cmp byte [rcx], 0xd
jne 0x1401fb903
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401fb912
cmp byte [rcx + 1], 0xa
jne 0x1401fb912
inc rcx
jmp 0x1401fb912
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x278aa0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401fb8e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401fb92f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401e79b0
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 0x1401fd6e8
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 0x1401fd76f
mov rsi, rbx
cmp word [rax], bp
je 0x1401fd72e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401fd718
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401fd714
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401f8458
mov rdi, rax
test rax, rax
je 0x1401fd75c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402046b0
mov rbp, rdi
xor ecx, ecx
call fcn.1401f841c
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 0x1401ff954
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401ff96a
mov al, 1
jmp 0x1401ff9ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401ff97b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401ff9c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401fe124
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401ff9c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401ff9c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401ff9c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401ff9ca
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1402014ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140279e30]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140201543
cmp word [rdx], r13w
jne 0x140201543
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140201548
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14020166d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14020168e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140201581
mov rdx, r9
mov word [rbx], cx
jmp 0x1402015a8
cmp r9, r8
jae 0x1402015b8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140201562
jmp 0x14020166d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140201662
cmp dword [rsp + 0x80], esi
je 0x140201662
lea r8, [0x140279e30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14020163a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14020160a
mov word [rbx], r13w
jmp 0x14020166a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140201617
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14020166a
cmp word [rsp + 0x70], r13w
jne 0x140201647
cmp rbx, r14
je 0x140201604
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401fb488
cmp word [rsp + 0x70], r13w
je 0x14020166d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140279e30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140201667
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14020166d
Function at 0x140203fa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140203fc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140203fc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002eb0
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.140004010
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.140004010
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 0x140002f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003050
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ff5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f50
mov rcx, rbx
call fcn.140003970
mov rdi, rax
test rax, rax
je 0x140003072
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003ab0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003057
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002fee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003000
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002eb0
nop dword [rax]
xor esi, esi
jmp 0x140002f78
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002eb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002eb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000363c
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 eax, eax
jne 0x140003633
test rsi, rsi
je 0x140003633
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003618
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 0x140003970
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400039f0
Capabilities:
Parse pe header

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

Function at 0x140003ab0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003acf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003ad8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140003140
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.140004d20
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.140004d20
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 0x1400031b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x1400032e0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400031fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003285
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400031e0
mov rcx, rbx
call fcn.140003c00
mov rdi, rax
test rax, rax
je 0x140003302
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003d40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400032e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000327e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003290
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000327e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003140
nop dword [rax]
xor esi, esi
jmp 0x140003208
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003140
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003140
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003870
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400038cc
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 eax, eax
jne 0x1400038c3
test rsi, rsi
je 0x1400038c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400038a8
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 0x140003c00
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003c80
Capabilities:
Parse pe header

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

Function at 0x140003d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003d5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003d68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x10000c360
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x1000646d0], ecx
xor eax, eax
add eax, 1
lea rdx, [0x1000646d0]
movsxd rcx, eax
mov r8d, dword [rdx + rcx*4 - 4]
mov ecx, r8d
shr ecx, 0x1e
xor ecx, r8d
imul ecx, ecx, 0x6c078965
mov r8d, eax
add r8d, ecx
mov ecx, eax
mov dword [rdx + rcx*4], r8d
cmp eax, 0x26f
jl 0x10000c368
mov dword [0x100043ba0], 0x270
ret

Function at 0x10000c3b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0xffffffff
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x1000646d0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x1000646d0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x1000646d0]
xor edx, dword [r8 + rcx*4 + 0x634]
mov ecx, eax
lea r8, [0x1000646d0]
mov dword [r8 + rcx*4], edx
cmp eax, 0xe2
jl 0x10000c3b8
mov eax, 0xe2
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x1000646d0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x1000646d0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x1000646d0]
xor edx, dword [r8 + rcx*4 - 0x38c]
mov ecx, eax
lea r8, [0x1000646d0]
mov dword [r8 + rcx*4], edx
cmp eax, 0x26e
jl 0x10000c428
mov edx, dword [0x1000646d0]
mov ecx, dword [0x10006508c]
mov eax, edx
and eax, 1
neg rax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x100064d00]
mov dword [0x10006508c], eax
mov dword [0x100043ba0], 0
ret

Function at 0x10000c4e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
lea rsp, [rsp - 0x20]
mov ebx, dword [0x100043ba0]
add dword [0x100043ba0], 1
mov eax, dword [0x100063050]
cmp eax, dword [0x1000435f0]
jne 0x10000c509
cmp ebx, 0x271
jb 0x10000c52c
mov ecx, dword [0x100063050]
call fcn.10000c360
not dword [0x100063050]
mov eax, dword [0x100063050]
mov dword [0x1000435f0], eax
mov ebx, 0x270
nop
cmp ebx, 0x270
jne 0x10000c548
call fcn.10000c3b0
xor ebx, ebx
mov dword [0x100043ba0], 1
nop dword [rax]
and ebx, ebx
lea rax, [0x1000646d0]
mov edx, dword [rax + rbx*4]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
nop
lea rsp, [rsp + 0x20]
pop rbx
ret
Function at 0x10000e5b0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x100043380]
cmp ax, 0xcb
je 0x10000e6ec
cmp ax, 0xcc
je 0x10000e6ec
nop
mov rax, qword [0x1000653d0]
test rax, rax
je 0x10000e5ed
mov ecx, dword [0x1000651c0]
call rax
mov rbx, rax
jmp 0x10000e5f4
lea rbx, [0x1000651c8]
cmp word [0x1000651b0], 0
jle 0x10000e61c
lea rcx, [0x100065180]
call fcn.10000e8d0
mov rcx, rbx
call fcn.10000e070
mov rcx, rbx
call fcn.10000e100
nop
mov rsi, qword [rbx]
jmp 0x10000e649
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x10000e642
mov rdx, rsi
mov rcx, rbx
call fcn.10000d2f0
jmp 0x10000e646
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x10000e628
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x1000651b0], 0
jle 0x10000e6ec
lea rdx, [0x100065090]
mov rcx, rbx
call fcn.10000d470
mov rsi, rax
test rax, rax
je 0x10000e6b8
mov rax, qword [0x100065130]
mov qword [rsi + 0x18], rax
cmp qword [0x100065130], 0
je 0x10000e6a8
mov rax, qword [0x100065130]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x100065130], rax
nop
sub word [0x1000651b0], 1
cmp word [0x1000651b0], 0
sete bl
lea rcx, [0x100065180]
call fcn.10000e910
test bl, bl
je 0x10000e6ec
lea rcx, [0x100065180]
call fcn.10000e8b0
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100010ef0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x128]
xor esi, esi
mov qword [0x1000643e0], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rsp + rax + 0x24], 0
mov r8d, ebx
xor edx, edx
mov rcx, rsp
call fcn.1000110d0
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x1000643e0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.100001fd0
call sub.kernel32.dll_GetCommandLineA
mov qword [0x1000433f0], rax
mov r14, rax
jmp 0x100011077
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x100010f78
cmp byte [r14], 0
je 0x100011081
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x100010fe0
mov al, byte [r14]
cmp al, 1
jb 0x100010fd8
sub al, 0x20
jbe 0x100010fb4
sub al, 2
je 0x100010fc0
jmp 0x100010fd8
test dil, dil
je 0x100010fe6
add ebx, 1
jmp 0x100010fdc
cmp byte [r14 + 1], 0x22
je 0x100010fd0
test dil, dil
sete dil
jmp 0x100010fdc
add r14, 1
jmp 0x100010fdc
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100010fa0
test esi, esi
je 0x100011074
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.1000110d0
xor dil, dil
mov r14, r12
mov rdx, qword [0x1000643e0]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x100011068
mov al, byte [r14]
cmp al, 1
jb 0x100011058
sub al, 0x20
jbe 0x10001102c
sub al, 2
je 0x100011040
jmp 0x100011058
test dil, dil
je 0x10001106e
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x100011064
cmp byte [r14 + 1], 0x22
je 0x100011050
test dil, dil
sete dil
jmp 0x100011064
add r14, 1
jmp 0x100011064
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100011018
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x100010f7c
mov dword [0x1000643d0], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x1000643e0]
call fcn.10000e390
mov rax, qword [0x1000643e0]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x128]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret