joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e8c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40280f
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.004090a0
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c820
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4027e0
cmp byte [0x005b762f], 0
je 0x45e8d5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45b920
jmp 0x4027e0

Function at 0x45e8e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b7900]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005b762f], 0
je 0x45e915
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005b7c40]
aesenc xmm0, xmmword [0x005b7c50]
aesenc xmm0, xmmword [0x005b7c60]
movq rax, xmm0
ret
jmp 0x4092a0

Function at 0x45e920
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b7900]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005b762f], 0
je 0x45e956
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005b7c40]
aesenc xmm0, xmmword [0x005b7c50]
aesenc xmm0, xmmword [0x005b7c60]
movq rax, xmm0
ret
jmp 0x409300

Function at 0x460340
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005b7bc0]
mov qword [rsp + 8], rdx
lea r8d, [0x005b7648]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.0045e800
add rsp, 0x30
ret

Function at 0x460880
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x4608b0
mov rcx, 0x28
jmp 0x4608bb
shl rcx, 3
add rcx, 0x1480
mov qword [0x005b7808], rcx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001a94
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400459d0]
mov dword [rax], 1
mov rax, qword [0x1400459e0]
mov dword [rax], 1
mov rax, qword [0x1400459f0]
mov dword [rax], 1
mov rax, qword [0x140045970]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001f320
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14004d948], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x14001f3a8
lea rdx, [0x140043bea]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14001f4b0
mov rsi, qword [0x14004d940]
jmp 0x14001f365
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14001f360
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14001d700
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x14004d940], rcx
test eax, eax
je 0x14001f498
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14001f400
not eax
cmp r9d, eax
jne 0x14001f518
mov byte [0x14004d948], 1
jmp 0x14001f33d
cmp byte [0x14004d938], 0
jne 0x14001f354
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14004d990], rax
call rbx
mov qword [0x14004d988], rax
call rbx
mov qword [0x14004d980], rax
call rbx
mov qword [0x14004d9c0], rax
call rbx
mov qword [0x14004d9b8], rax
call rbx
mov qword [0x14004d9b0], rax
call rbx
mov qword [0x14004d9a0], rax
call rbx
mov byte [0x14004d938], 1
mov qword [0x14004d998], rax
jmp 0x14001f354
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14002a410
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14003b920
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003b920
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002b0c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004e088]
test eax, eax
je 0x14002b15a
lea rax, [0x14004e060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004e090]
mov qword [rbp - 8], rax
jmp 0x14002b13e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14002b132
cmp qword [rbp - 0x10], 0
je 0x14002b132
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002b0f8
lea rax, [0x14004e060]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002b15b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002b260
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002b288
mov eax, 0
jmp 0x14002b2d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14002b2b1
mov eax, 0
jmp 0x14002b2d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002b2d1
mov eax, 0
jmp 0x14002b2d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002b2dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002b35a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002b351
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14002b351
mov rax, qword [rbp - 8]
jmp 0x14002b36f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14002b324
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140618830
Capabilities:
Encode data using xor

Disassembly:
pop rbx
lea r9, [0x1406231d8]
movzx ebx, byte [rdx]
xor ebx, r10d
and ebx, 0xff
push 0x278a19be
mov ebx, dword [r9 + rbx*4]
shr r10d, 8
xor r10d, ebx
inc rdx
xor r10d, 0x6395763a
dec rcx
lea rsp, [rsp + 8]
jne 0x140618838
mov ebx, 0x7382df25
push rbx
bswap rbx
mov rbx, qword [rsp + 8]
lea rsp, [rsp + 0x10]

Function at 0x140626c3d
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14062a229
xor eax, eax
mov qword [rsp], 0xffffffff8482c888
test r8, r8
lea rsp, [rsp + 8]
je 0x14062a2b3
mov esi, 0xb61ce60a
rol si, 0xa7
sar esi, 0x96
push r9
mov r9d, 0x3b8f8fb2
sar r9b, 0xc2
lea r9, [0x14062a3a8]
mov esi, 0x1c09fc95
bswap esi
movzx esi, byte [rcx]
push 0xffffffff96a4efb7
xor esi, eax
and esi, 0xff
mov esi, dword [r9 + rsi*4]
shr eax, 8
dec byte [rsp]
shl byte [rsp + 6], 0xa1
xor eax, esi
inc rcx
xor eax, 0x9e839808
shr word [rsp + 3], 2
dec r8
lea rsp, [rsp + 8]
jne 0x14062a260
push 0x2c15d291
mov r9, qword [rsp + 8]
lea rsp, [rsp + 0x10]
push 0x23810f8f
call fcn.14062e5ed

Function at 0x14063f992
Capabilities:
Encode data using xor

Disassembly:
mov byte [rsp], 0x32
mov dword [rbx], r9d
call fcn.140618466
shld eax, edi, cl
call fcn.140646647
mov r8d, 0x13b4b48c
mov r8w, word [rbx + r8 - 0x13b4b48c]
add rbx, 2
sub r9, 1
mov ecx, 0xb22be189
lea rcx, [rcx*2 - 0x786e87f3]
movzx ecx, byte [r9]
jmp 0x14064c443
test rsi, rsi
lea rsp, [rsp + 8]
je 0x14063f9fd
mov edx, 0x6015501f
push r11
shr edx, 0xff
lea r11, [0x140636920]
mov edx, 0x22b9b4a4
dec rdx
movzx edx, byte [rdx + rbp - 0x22b9b4a3]
xor edx, r9d
and edx, 0xff
mov edx, dword [r11 + rdx*4]
shr r9d, 8
push 0x4898102
inc dword [rsp + 4]
xor r9d, edx
inc rbp
xor r9d, 0x30240710
dec rsi
push 0x2e9668b7
lea rsp, [rsp + 0x10]
jne 0x14063f9b1
pop r11
push 0xffffffff8fb838af
not r9d
jmp 0x140617127
Function at 0x1400021e4
Capabilities:
Parse pe header

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

Function at 0x140006d4c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006b48
Function at 0x140009ed8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140009f08
xor eax, eax
jmp 0x140009fcb
mov rbp, rbx
cmp word [rax], si
je 0x140009f2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009f14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009f10
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140009df8
movsxd r14, eax
test eax, eax
jne 0x140009f6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009f01
mov rcx, r14
call fcn.14000a96c
mov rdi, rax
test rax, rax
jne 0x140009f84
xor ecx, ecx
call fcn.1400084cc
jmp 0x140009f60
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140009df8
test eax, eax
jne 0x140009fb5
mov rcx, rdi
call fcn.1400084cc
jmp 0x140009fbf
xor ecx, ecx
call fcn.1400084cc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000f660
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f688
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f688
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001893
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180052520
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x18007a500]
mov ecx, 3
lea r8, [0x18007a4f8]
lea rdx, str.FlsAlloc
call fcn.180051bcc
test rax, rax
je 0x18005255c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x180bbc020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x180001e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1800685f0
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x180baedf8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r10d, r10d
lea r11, [0x180bb2188]
test r9, r9
lea rdi, [0x18007733c]
mov rax, rdx
mov r15, rdx
cmovne r11, r9
test rdx, rdx
lea ebp, [r10 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x180068659
mov rax, 0xfffffffffffffffe
jmp 0x1800687a7
cmp word [r11 + 6], r10w
jne 0x1800686c8
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x180068683
test rsi, rsi
je 0x180068674
mov dword [rsi], r9d
test r9b, r9b
setne r10b
mov rax, r10
jmp 0x1800687a7
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180068691
mov r8b, 2
jmp 0x1800686af
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x18006869f
mov r8b, 3
jmp 0x1800686af
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180068795
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1800686f1
mov r8b, byte [r11 + 4]
mov edx, dword [r11]
mov bl, byte [r11 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180068795
cmp bl, bpl
jb 0x180068795
cmp bl, r8b
jae 0x180068795
movzx ebp, bl
cmp rbp, r14
mov r9d, ebp
cmovae r9, r14
jmp 0x18006871e
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180068795
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r9
jb 0x180068700
cmp r9, rbp
jae 0x18006874a
movzx eax, r8b
sub bl, r9b
mov word [r11 + 4], ax
movzx eax, bl
mov word [r11 + 6], ax
mov dword [r11], edx
jmp 0x18006864d
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180068795
cmp edx, 0x110000
jae 0x180068795
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180068795
test rsi, rsi
je 0x180068788
mov dword [rsi], edx
neg edx
mov qword [r11], r10
sbb rax, rax
and rax, rbp
jmp 0x1800687a7
mov qword [r11], r10
call fcn.18000211c
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18000268f
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000222f
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x18000ab64
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000abf1
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000abf1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000abf1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18000abd8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000abd2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000abda
add rdx, 0x28
jmp 0x18000abb7
xor edx, edx
test rdx, rdx
jne 0x18000abe3
xor al, al
jmp 0x18000abf7
cmp dword [rdx + 0x24], 0
jge 0x18000abed
xor al, al
jmp 0x18000abf7
mov al, 1
jmp 0x18000abf7
xor al, al
jmp 0x18000abf7
add rsp, 0x18
ret

Function at 0x180002261
Capabilities:
Clear file content

Disassembly:
jmp 0x1800682cc
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 r14d, 1
mov r8d, r14d
xor edx, edx
mov ebp, ecx
call fcn.180001767
xor edx, edx
lea r8d, [r14 + 1]
mov ecx, ebp
mov r15, rax
call fcn.180001767
mov rsi, rbx
sub rsi, rax
cmp r15, 0xffffffffffffffff
je 0x180068403
cmp rax, 0xffffffffffffffff
je 0x180068403
xor edi, edi
test rsi, rsi
jle 0x1800683bf
mov r12d, 0x1000
mov edx, r14d
mov ecx, r12d
call fcn.18000397c
mov rbx, rax
test rax, rax
jne 0x180068359
call fcn.18000211c
mov dword [rax], 0xc
jmp 0x1800683a2
mov edx, 0x8000
mov ecx, ebp
call fcn.1800030d0
mov r14d, eax
jmp 0x180068374
cdqe
sub rsi, rax
test rsi, rsi
jle 0x1800683b3
mov r8d, esi
cmp rsi, r12
mov rdx, rbx
mov ecx, ebp
cmovge r8d, r12d
call fcn.1800036ac
cmp eax, 0xffffffff
jne 0x18006836a
call fcn.180002da6
cmp dword [rax], 5
jne 0x1800683a2
call fcn.18000211c
mov dword [rax], 0xd
call fcn.18000211c
mov edi, dword [rax]
mov rcx, rbx
call fcn.18000116d
jmp 0x18006840a
mov edx, r14d
mov ecx, ebp
call fcn.1800030d0
jmp 0x1800683a9
jns 0x18006840a
xor r8d, r8d
mov rdx, rbx
mov ecx, ebp
call fcn.180001767
cmp rax, 0xffffffffffffffff
je 0x180068403
mov ecx, ebp
call fcn.180003fc1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006840a
call fcn.18000211c
mov dword [rax], 0xd
call fcn.180002da6
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
call fcn.18000211c
mov edi, dword [rax]
xor r8d, r8d
mov rdx, r15
mov ecx, ebp
call fcn.180001767
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 0x1800025a9
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18006cdd4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18006ce02
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x18006ce5b
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x18006ce5b
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x18006ce4d
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x1800027d9
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18001a760
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800784a0]
mov ecx, 2
lea r8, [0x180078498]
lea rdx, str.FlsGetValue
call fcn.18001a230
mov ecx, ebx
test rax, rax
je 0x18001a79a
add rsp, 0x20
pop rbx
jmp qword [0x180bbc020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x180002919
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005027c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x18005034e
mov rsi, rax
cmp word [rax], r14w
je 0x1800502cf
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1800502b7
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1800502b3
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.180003283
movsxd rbp, eax
test eax, eax
je 0x18005034e
mov rcx, rbp
call fcn.180001023
mov rdi, rax
test rax, rax
je 0x180050341
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.180003283
test eax, eax
je 0x180050341
mov rsi, rdi
mov rdi, r14
jmp 0x180050344
mov rsi, r14
mov rcx, rdi
call fcn.18000116d
jmp 0x180050351
mov rsi, r14
test rbx, rbx
je 0x18005035f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18000291e
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18001a6b0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x180078460]
xor ecx, ecx
lea r8, [0x180078458]
lea rdx, str.FlsAlloc
call fcn.18001a230
test rax, rax
je 0x18001a6e9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x180bbc020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]