joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5045c0
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x504809
push rbp
mov rbp, rsp
sub rsp, 0xa8
nop word [rax + rax]
test rax, rax
je 0x5047f4
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
test rbx, rbx
jne 0x504602
xor ebx, ebx
xor ecx, ecx
nop
jmp 0x50461c
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
mov rax, rdx
call sym.net.IP.String
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x504731
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop dword [rax + rax]
call sym.internal_itoa.Itoa
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00577738]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call sym.runtime.concatstring3
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x006979f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5046fb
xor eax, eax
lea rbx, [0x005776e0]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x00545504]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call sym.runtime.concatstring4
jmp 0x504728
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x005776d8]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call sym.runtime.concatstring3
add rsp, 0xa8
pop rbp
ret
mov rax, qword [rax + 0x18]
call sym.internal_itoa.Itoa
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x006979f0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
nop
jl 0x5047be
xor eax, eax
lea rbx, [0x005776e0]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x00545504]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call sym.runtime.concatstring4
jmp 0x5047eb
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x005776d8]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call sym.runtime.concatstring3
add rsp, 0xa8
pop rbp
ret
lea rax, [0x00545843]
mov ebx, 5
add rsp, 0xa8
pop rbp
ret
mov qword [rsp + 8], rax
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
jmp sym.net._UDPAddr_.String
Function at 0x140003500
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1400227e0
sub rsp, rax
mov rax, qword [0x14005ca18]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001dbb0
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14000357d
lea rcx, [rsp + 0x70]
call fcn.140034a04
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140022840
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.140022840
add rsp, 0x10088
ret

Function at 0x140003630
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14005ca18]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x1400430b0]
call fcn.140003500
xor edi, edi
mov qword [0x14005e070], rax
lea rdx, [0x1400430b0]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.14001dbb0
lea rdx, [0x1400430b8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.140003500
mov cl, 1
mov qword [0x14005e078], rax
call fcn.14001ed60
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.14001dbb0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.14001ed60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140022840
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140003bc0
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005ca18]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.140010540
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.14001dbb0
lea rcx, [rsp + 0x20]
test r14, r14
je 0x140003c83
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x140003c71
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x140003ca3
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140003ca3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x140003ca3
mov rcx, rbp
call fcn.140003040
sub qword [rdi], 1
jne 0x140003cb3
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x140003cc3
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140022840
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001dc60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x14001dd24
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x14001dc80
not eax
ret
Function at 0x140023224
Capabilities:
Parse pe header

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

Function at 0x1400281b8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140028023
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028023
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028023
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028023
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028023
cmp dword [rcx + 0x84], 0xe
jbe 0x140028023
cmp dword [rcx + 0xf8], 0
je 0x140028023
mov ecx, ebx
call fcn.1400280d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027eb0
nop
cmp dword [rbp + 0x20], 0
je 0x140028071
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002807c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027fb4
Function at 0x140039c70
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 0x140039cf7
mov rsi, rbx
cmp word [rax], bp
je 0x140039cb6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039ca0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039c9c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034af0
mov rdi, rax
test rax, rax
je 0x140039ce4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140023550
mov rbp, rdi
xor ecx, ecx
call fcn.140035a24
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 0x14003d86c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003d882
mov al, 1
jmp 0x14003d8e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003d893
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003d8e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003a414
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003d8e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003d8e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003d8e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003d8e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.10015f000
add rsp, 0x28
jmp 0x100002454
Function at 0x14249f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14249f1df
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 0x14249f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14249f06f
add dl, dl
jne 0x14249f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14249f0f6
xor eax, eax
add dl, dl
jne 0x14249f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14249f1ad
add dl, dl
jne 0x14249f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14249f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14249f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14249f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14249f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14249f07e
mov eax, 1
add dl, dl
jne 0x14249f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14249f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14249f0fb
sub eax, ebx
mov ebx, 1
jne 0x14249f14c
mov ecx, 1
add dl, dl
jne 0x14249f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14249f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14249f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14249f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14249f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14249f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14249f15d
cmp eax, 0x7d00
jae 0x14249f19b
cmp eax, 0x500
jb 0x14249f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14249f07e
cmp eax, 0x7f
ja 0x14249f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14249f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14249f1d2
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 0x14249f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400b3e6f
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400f01f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1400f0218
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1400f0262
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1400f020d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400b54b3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401a5350
mov rax, rcx
neg rcx
test rax, 7
je 0x1401a536d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401a53c8
test al, 7
jne 0x1401a5360
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 0x1401a5381
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401a53f2
test dh, dh
je 0x1401a53ec
shr rdx, 0x10
test dl, dl
je 0x1401a53e6
test dh, dh
je 0x1401a53e0
shr rdx, 0x10
test dl, dl
je 0x1401a53da
test dh, dh
je 0x1401a53d4
shr edx, 0x10
test dl, dl
je 0x1401a53ce
test dh, dh
jne 0x1401a5381
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 0x1400b54ef
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401fedf0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401fe970
lea rcx, [rsp + 0x20]
call fcn.1401fe9c0
movzx eax, al
test eax, eax
jne 0x1401fee35
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401fe9a0
mov rax, qword [rsp + 0x40]
jmp 0x1401fef2f
lea rcx, [rsp + 0x20]
call fcn.1401feac0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401fea60
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400b5855
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400b4e7d
lea rcx, [rsp + 0x28]
call fcn.1400b5cf1
movzx eax, al
test eax, eax
jne 0x1401feecf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400b7191
lea rcx, [rsp + 0x20]
call fcn.1401fe9a0
mov rax, qword [rsp + 0x50]
jmp 0x1401fef2f
lea rcx, [rsp + 0x20]
call fcn.1401feac0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400b817c
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400b57a6
lea rcx, [rsp + 0x28]
call fcn.1400b8aff
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400b7191
lea rcx, [rsp + 0x20]
call fcn.1401fe9a0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400b59db
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14014b4c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14014ae40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14014b4ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140299020]
jmp 0x14014b509
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400b5c2e
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401feb40
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401fe970
lea rcx, [rsp + 0x40]
call fcn.1401feaf0
movzx eax, al
test eax, eax
jne 0x1401feb88
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401fe9a0
mov rax, qword [rsp + 0x70]
jmp 0x1401fed59
lea rcx, [rsp + 0x40]
call fcn.1401feac0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1401fea60
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401feac0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400b6db3
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1401fec2e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401fe9a0
mov rax, qword [rsp + 0x80]
jmp 0x1401fed59
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400b5855
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400b5652
lea rcx, [rsp + 0x48]
call fcn.1400b50a3
movzx eax, al
test eax, eax
jne 0x1401fec95
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400b3cf3
lea rcx, [rsp + 0x40]
call fcn.1401fe9a0
mov rax, qword [rsp + 0x88]
jmp 0x1401fed59
lea rcx, [rsp + 0x48]
call fcn.1400b60fc
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401feac0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400b6db3
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1401fed2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400b3cf3
lea rcx, [rsp + 0x40]
call fcn.1401fe9a0
mov rax, qword [rsp + 0xa0]
jmp 0x1401fed59
lea rcx, [rsp + 0x48]
call fcn.1400b560c
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400b3cf3
lea rcx, [rsp + 0x40]
call fcn.1401fe9a0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400b5c47
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14014b3f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14014adc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14014b431
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140299020]
jmp 0x14014b437
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400b5cfb
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401e69a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401e5910
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401e6a07
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140299030]
jmp 0x1401e6a29
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400b5021
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400b5d0f
Capabilities:
Terminate process

Disassembly:
jmp 0x1401281e0
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 0x1400b608e
Capabilities:
Print debug messages

Disassembly:
jmp 0x14020c440
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14027d058]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14020c466
jmp 0x14020c4e3
mov rcx, qword [rbp + 0x30]
call fcn.1400b54b3
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14020c47f
jmp 0x14020c4e3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14020c49c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400b3f14
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400b44f5
test eax, eax
jne 0x14020c4e3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400b578d
lea rsp, [rbp + 0x20]
pop rbp
ret