joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001748
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rsi, qword [0x18000cea0]
mov r9d, r8d
mov rbx, rcx
jne 0x1800018eb
cmp r9d, 0x40
jb 0x1800018eb
mov eax, 0x5a4d
mov qword [rcx + 0x18], rsi
cmp word [rsi], ax
jne 0x1800018eb
movsxd rdx, dword [rsi + 0x3c]
lea rcx, [rdx + 0x108]
cmp r9, rcx
jb 0x1800018eb
add rdx, rsi
mov qword [rbx + 0x20], rdx
cmp dword [rdx], 0x4550
jne 0x1800018eb
mov eax, 0x2000
test word [rdx + 0x16], ax
je 0x1800018eb
test byte [rdx + 0x16], 2
je 0x1800018eb
mov eax, pe_nt_image_headers64
cmp word [rdx + 0x14], ax
jne 0x1800018eb
lea r10, [rdx + 0x108]
xor r11d, r11d
mov qword [rbx + 0x28], r10
movzx edi, word [rdx + 6]
test edi, edi
jle 0x180001819
lea r8, [r10 + 0x10]
mov eax, dword [r8 + 4]
add eax, dword [r8]
cmp eax, r9d
ja 0x1800018eb
movzx ecx, word [rdx + 6]
inc r11d
add r8, 0x28
cmp r11d, ecx
jl 0x1800017f9
test rdx, rdx
je 0x1800018eb
mov r8d, dword [rdx + 0x38]
mov eax, dword [rdx + 0x54]
lea eax, [rax + r8 - 1]
cdq
idiv r8d
mov ecx, eax
imul ecx, r8d
test edi, edi
jle 0x180001874
mov rax, qword [rbx + 0x20]
add r10, 0x10
movzx r9d, word [rax + 6]
mov eax, dword [r10 - 8]
cmp dword [r10], eax
cmovg eax, dword [r10]
add eax, dword [r10 - 4]
lea eax, [rax + r8 - 1]
cdq
idiv r8d
imul eax, r8d
cmp ecx, eax
cmovl ecx, eax
add r10, 0x28
sub r9, 1
jne 0x180001849
test ecx, ecx
je 0x1800018eb
movsxd rbp, ecx
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800018eb
mov r8, rsi
mov rdx, rax
mov rcx, rbx
call fcn.180001cb0
mov r11, qword [rbx + 0x20]
cmp dword [r11 + 0xb0], 0
jbe 0x1800018cb
cmp dword [r11 + 0xb4], 0
jbe 0x1800018cb
mov rdx, rdi
mov rcx, rbx
call fcn.180001a70
mov rdx, rdi
mov rcx, rbx
call fcn.180001b50
mov rcx, rdi
test eax, eax
jne 0x180001902
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r11, qword [rbx + 0x20]
xor r8d, r8d
mov qword [r11 + 0x30], rdi
mov rax, qword [rbx + 0x20]
lea edx, [r8 + 1]
mov eax, dword [rax + 0x28]
mov rcx, rdi
add rax, rdi
mov qword [rbx + 8], rax
call rax
test eax, eax
jne 0x18000195f
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rbx + 8]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
and qword [rbx + 8], 0
jmp 0x1800018eb
mov dword [rbx + 4], 1
mov qword [rbx + 0x10], rdi
mov eax, 1
jmp 0x1800018ed
Function at 0x18000259f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x180001daa
rol rcx, 0x10
test cx, 0xffff
jne 0x180001da6
repz ret
ror rcx, 0x10
jmp 0x1800024f8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000c100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18000c1f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18000257d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000c100]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000259f
mov rax, qword [rsp + 0x88]
mov qword [0x18000c1f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000c198], rax
mov rax, qword [0x18000c1f8]
mov qword [0x18000c070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000c180], rax
mov dword [0x18000c060], 0xc0000409
mov dword [0x18000c064], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000b008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000c0f8], eax
mov ecx, 1
call fcn.180003de0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800082c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000c0f8], 0
jne 0x180002626
mov ecx, 1
call fcn.180003de0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180002eec
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180002d60
Function at 0x180006b30
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18000264c
xor ebx, ebx
mov rdi, rax
cmp qword [0x18000cd50], rbx
jne 0x180006c36
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180006d0b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006d0b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18000cd50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18000cd58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18000cd60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18000cd70], rax
test rax, rax
je 0x180006c2d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18000cd68], rax
jmp 0x180006c3d
mov rax, qword [0x18000cd68]
jmp 0x180006c44
mov rax, qword [0x18000cd68]
mov r11, qword [0x18000cd70]
cmp rax, rdi
je 0x180006cac
cmp r11, rdi
je 0x180006cac
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18000cd70]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180006cac
test rax, rax
je 0x180006cac
call rsi
test rax, rax
je 0x180006ca6
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006ca6
test byte [rsp + 0x38], 1
jne 0x180006cac
bts ebp, 0x15
jmp 0x180006cea
mov rcx, qword [0x18000cd58]
cmp rcx, rdi
je 0x180006cea
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180006cea
call rax
mov rbx, rax
test rax, rax
je 0x180006cea
mov rcx, qword [0x18000cd60]
cmp rcx, rdi
je 0x180006cea
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180006cea
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000cd50]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180006d0b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180006d0d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140fad058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140fad1df
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 0x140fad089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fad06f
add dl, dl
jne 0x140fad096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fad0f6
xor eax, eax
add dl, dl
jne 0x140fad0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fad1ad
add dl, dl
jne 0x140fad0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fad0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fad0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fad0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fad0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fad07e
mov eax, 1
add dl, dl
jne 0x140fad106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fad113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fad0fb
sub eax, ebx
mov ebx, 1
jne 0x140fad14c
mov ecx, 1
add dl, dl
jne 0x140fad12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fad13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fad123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fad07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fad168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fad175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fad15d
cmp eax, 0x7d00
jae 0x140fad19b
cmp eax, 0x500
jb 0x140fad196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fad07e
cmp eax, 0x7f
ja 0x140fad19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fad07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fad1d2
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 0x140fad07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001361
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14000d440
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp - 0x18], rcx
mov rax, rcx
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x68], r8
mov qword [rbp + 0x60], rdx
mov byte [rbp + 0x5f], 0
call fcn.1400051be
mov rcx, qword [rbp + 0x60]
call fcn.140001145
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x60]
call fcn.140001145
mov rcx, qword [rbp + 0x50]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
add rax, 0x18
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x14]
add rax, rcx
mov qword [rbp + 0x40], rax
mov dword [rbp + 0x3c], 0
mov eax, dword [rbp + 0x3c]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x14000d63b
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x40]
movsxd rdx, dword [rbp + 0x3c]
lea rdx, [rdx + rdx*4]
mov ecx, dword [rcx + rdx*8 + 0xc]
add rax, rcx
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x40]
movsxd rdx, dword [rbp + 0x3c]
lea rdx, [rdx + rdx*4]
mov ecx, dword [rcx + rdx*8 + 8]
add rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rbp + 0x3c]
lea rcx, [rcx + rcx*4]
lea rdx, [rax + rcx*8]
lea rcx, [rbp + 8]
call fcn.1400037fb
jmp 0x14000d522
lea rcx, [0x14014bc90]
lea rdx, [0x14011e328]
call fcn.14000198d
mov qword [rbp - 0x20], rax
jmp 0x14000d53e
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 8]
call fcn.140005e48
mov qword [rbp - 0x28], rax
jmp 0x14000d554
mov rcx, qword [rbp - 0x28]
lea rdx, str.__0x
call fcn.14000198d
mov qword [rbp - 0x30], rax
jmp 0x14000d56d
mov rcx, qword [rbp - 0x30]
lea rdx, [0x1400060cd]
call fcn.1400031c5
mov qword [rbp - 0x38], rax
jmp 0x14000d586
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp + 0x30]
call fcn.140003959
mov qword [rbp - 0x40], rax
jmp 0x14000d59c
mov rcx, qword [rbp - 0x40]
lea rdx, str.___0x
call fcn.14000198d
mov qword [rbp - 0x48], rax
jmp 0x14000d5b5
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp + 0x28]
call fcn.140003959
mov qword [rbp - 0x50], rax
jmp 0x14000d5cb
mov rcx, qword [rbp - 0x50]
lea rdx, [0x14011e343]
call fcn.14000198d
mov qword [rbp - 0x58], rax
jmp 0x14000d5e4
mov rcx, qword [rbp - 0x58]
lea rdx, [0x14000134d]
call fcn.140003cc9
jmp 0x14000d5f9
lea rcx, [rbp - 8]
mov qword [rbp - 0x60], rcx
lea rdx, [rbp + 0x30]
lea r8, [rbp + 0x28]
call fcn.140004ab6
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x60]
lea r8, [rbp + 8]
call fcn.140005975
jmp 0x14000d624
lea rcx, [rbp + 8]
call fcn.14000208b
mov eax, dword [rbp + 0x3c]
add eax, 1
mov dword [rbp + 0x3c], eax
jmp 0x14000d4bb
mov byte [rbp + 0x5f], 1
test byte [rbp + 0x5f], 1
jne 0x14000d652
mov rcx, qword [rbp - 0x18]
call fcn.1400062d0
mov rax, qword [rbp - 0x10]
add rsp, 0x100
pop rbp
ret

Function at 0x140001681
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400cf31c
xor r8d, r8d
xor edx, edx
jmp 0x1400cf000
Function at 0x140001d7a
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400f4e50
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
test eax, eax
je 0x1400f4e98
test rdi, rdi
je 0x1400f4e87
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.140001feb
cmp eax, 1
je 0x1400f4e98
mov eax, 4
jmp 0x1400f4edd
call fcn.1400061ea
cmp eax, 2
jne 0x1400f4ed4
call fcn.140002086
test al, al
je 0x1400f4ed4
call fcn.14000452f
test al, al
jne 0x1400f4eca
bts esi, 0x15
xor ecx, ecx
mov rdx, rdi
mov r8, rbp
mov r9d, esi
call fcn.140006249
jmp 0x1400f4edd
call fcn.140005fab
mov rcx, rax
jmp 0x1400f4eba
neg ebx
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f9b
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400278e0
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp], 0
mov rax, qword [rsp]
cmp rax, qword [rsp + 0x18]
jae 0x140027947
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp + 8]
mov qword [rsp + 8], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp + 8]
mov qword [rsp + 8], rax
mov rax, qword [rsp]
add rax, 1
mov qword [rsp], rax
jmp 0x1400278fb
mov rax, qword [rsp + 8]
add rsp, 0x20
ret
Function at 0x140002efa
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400872f4
sub rsp, 0x28
call fcn.140004368
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140087346
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x140087346
sub ecx, 1
je 0x14008733f
cmp ecx, 1
je 0x140087338
xor eax, eax
jmp 0x14008734b
mov eax, 3
jmp 0x14008734b
mov eax, 1
jmp 0x14008734b
mov eax, 2
add rsp, 0x28
ret

Function at 0x140003170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400f2834
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140149880]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x14014ddd0]
xor r12d, r12d
lea rdi, [0x14011fc73]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x1400f28a2
mov rax, 0xfffffffffffffffe
jmp 0x1400f29d5
cmp word [rbx + 6], r12w
jne 0x1400f28f8
mov rcx, rdi
call fcn.140006073
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x1400f28e8
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x1400f29ca
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x1400f2921
test r14, r14
je 0x1400f28f0
mov dword [r14], eax
mov rax, r8
jmp 0x1400f29d5
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400f29ca
cmp r9b, 1
jb 0x1400f29ca
cmp r9b, r8b
jae 0x1400f29ca
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x1400f294f
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400f29ca
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x1400f2931
cmp r10, r11
jae 0x1400f2979
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x1400f2896
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400f29ca
cmp edx, 0x110000
jae 0x1400f29ca
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 0x1400f29ca
test r14, r14
je 0x1400f29b8
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.140006244
jmp 0x1400f29d5
mov rdx, rsi
mov rcx, rbx
call fcn.140006ef1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003a7b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400031f2
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14003046c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400304f9
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400304f9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400304f9
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400304e0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400304da
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400304e2
add rdx, 0x28
jmp 0x1400304bf
xor edx, edx
test rdx, rdx
jne 0x1400304eb
xor al, al
jmp 0x1400304ff
cmp dword [rdx + 0x24], 0
jge 0x1400304f5
xor al, al
jmp 0x1400304ff
mov al, 1
jmp 0x1400304ff
xor al, al
jmp 0x1400304ff
add rsp, 0x18
ret

Function at 0x140003765
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140116570
mov rax, rcx
neg rcx
test rax, 7
je 0x14011658d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401165e8
test al, 7
jne 0x140116580
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401165a1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140116612
test dh, dh
je 0x14011660c
shr rdx, 0x10
test dl, dl
je 0x140116606
test dh, dh
je 0x140116600
shr rdx, 0x10
test dl, dl
je 0x1401165fa
test dh, dh
je 0x1401165f4
shr edx, 0x10
test dl, dl
je 0x1401165ee
test dh, dh
jne 0x1401165a1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400037ab
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f8a80
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 0x1400f8b07
mov rsi, rbx
cmp word [rax], bp
je 0x1400f8ac6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f8ab0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f8aac
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140001069
mov rdi, rax
test rax, rax
je 0x1400f8af4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003aa3
mov rbp, rdi
xor ecx, ecx
call fcn.140001299
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 0x140003d00
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14009ab34
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401252d8]
mov ecx, 2
lea r8, [0x1401252d0]
lea rdx, str.FlsGetValue
call fcn.14009a604
mov ecx, ebx
test rax, rax
je 0x14009ab6e
add rsp, 0x20
pop rbx
jmp qword [0x14015e020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140003fcb
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400f892c
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 0x1400f895c
xor eax, eax
jmp 0x1400f8a1f
mov rbp, rbx
cmp word [rax], si
je 0x1400f8981
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f8968
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f8964
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.1400052e5
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400f89c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f8955
call fcn.140001069
mov rdi, rax
test rax, rax
jne 0x1400f89d8
xor ecx, ecx
call fcn.140001299
jmp 0x1400f89b7
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.1400052e5
test eax, eax
jne 0x1400f8a09
mov rcx, rdi
call fcn.140001299
jmp 0x1400f8a13
xor ecx, ecx
call fcn.140001299
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 0x140003fdf
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14009aa84
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140125298]
xor ecx, ecx
lea r8, [0x140125290]
lea rdx, str.FlsAlloc
call fcn.14009a604
test rax, rax
je 0x14009aabd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x14015e020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400040c0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400e9afc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14015f050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400e9b61
test rax, rax
jne 0x1400e9b4f
lea r9, [0x140128fd8]
lea r8, [0x140128fd0]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1400e8f8c
test rax, rax
je 0x1400e9b61
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.140007180
jmp 0x1400e9b7b
xor edx, edx
mov rcx, rbp
call fcn.14000326f
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret