joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a1728
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.1401883a0
sub rsp, rax
mov rax, qword [0x1402477f8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401a13e8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401a1777
mov rax, rbp
jmp 0x1401a187f
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 + 0x254380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401ac06c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x254380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401a187b
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 0x1401a187b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401ac06c
test rax, rax
js 0x1401a187b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401a187b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401a186d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401a186d
cmp byte [rcx], 0xd
jne 0x1401a1853
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401a1862
cmp byte [rcx + 1], 0xa
jne 0x1401a1862
inc rcx
jmp 0x1401a1862
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x247c60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401a1835
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401a187f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140187c00
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 0x1401a605c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401a6072
mov al, 1
jmp 0x1401a60d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401a6083
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401a60d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401a1e54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401a60d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401a60d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401a60d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401a60d2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401ab40c
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, [0x140254380]
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 0x1401ab463
cmp word [rdx], r13w
jne 0x1401ab463
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401ab468
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401ab58d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401ab5ae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401ab4a1
mov rdx, r9
mov word [rbx], cx
jmp 0x1401ab4c8
cmp r9, r8
jae 0x1401ab4d8
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 0x1401ab482
jmp 0x1401ab58d
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 0x1401ab582
cmp dword [rsp + 0x80], esi
je 0x1401ab582
lea r8, [0x140254380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401ab55a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401ab52a
mov word [rbx], r13w
jmp 0x1401ab58a
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 0x1401ab537
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401ab58a
cmp word [rsp + 0x70], r13w
jne 0x1401ab567
cmp rbx, r14
je 0x1401ab524
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401ac074
cmp word [rsp + 0x70], r13w
je 0x1401ab58d
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, [0x140254380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401ab587
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401ab58d
Function at 0x1401af5c4
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 0x1401af64b
mov rsi, rbx
cmp word [rax], bp
je 0x1401af60a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401af5f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401af5f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401a6ba4
mov rdi, rax
test rax, rax
je 0x1401af638
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14018a9e0
mov rbp, rdi
xor ecx, ecx
call fcn.1401a6b68
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 0x1401b20b4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401a651c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401b2155
cmp ebx, dword [rsp + 0x30]
je 0x1401b214e
test esi, esi
je 0x1401b214e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b2129
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b2136
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b2113
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b213a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b2157
mov eax, 1
jmp 0x1401b2157
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b4ce0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402477f8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401b4d2a
call fcn.1401953d8
mov dword [rax], 0xf
call fcn.1401953f8
mov dword [rax], 0xd
call fcn.140193d74
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140187c00
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401b4d35
lea eax, [rbx + 1]
jmp 0x1401b4d17
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401b4d15
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401b4d17
Function at 0x1401b6c1c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401ac074
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401ac074
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401b6d6c
cmp rax, 0xffffffffffffffff
je 0x1401b6d6c
xor edi, edi
test rbp, rbp
jle 0x1401b6d17
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401a6af0
mov rbx, rax
test rax, rax
jne 0x1401b6ca4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401b6d0d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401a3014
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401a937c
cmp eax, 0xffffffff
je 0x1401b6ced
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401b6cb4
mov edx, r15d
mov ecx, r14d
call fcn.1401a3014
jmp 0x1401b6d0d
cmp byte [rsi + 0x38], dil
je 0x1401b6d04
cmp dword [rsi + 0x34], 5
jne 0x1401b6d04
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401b6d0d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401a6b68
jmp 0x1401b6d80
jns 0x1401b6d80
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401ac074
cmp rax, 0xffffffffffffffff
jne 0x1401b6d38
cmp byte [rsi + 0x30], dil
je 0x1401b6d80
mov edi, dword [rsi + 0x2c]
jmp 0x1401b6d80
mov ecx, r14d
call fcn.1401a1e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401b6d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401b6d80
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401b6d79
mov eax, dword [rsi + 0x2c]
jmp 0x1401b6d7e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401ac074
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 0x1401b7220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b7248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b7248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1801aa091
Capabilities:
Get hostname

Disassembly:
jmp 0x1803de8a0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x1803de8f1
mov eax, dword [rsp + 0x20]
jmp 0x1803de917
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.1801aa429
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1803de915
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1801aafcd
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1803d4dc0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x1803d4df5
mov dword [rsp + 0x34], 1
jmp 0x1803d4dfd
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1801ae55b
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1801ab4dc
Capabilities:
Delete file

Disassembly:
jmp 0x1804eb820
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1804eb84c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1801ab905
mov eax, 0xffffffff
jmp 0x1804eb84e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1801aba77
Capabilities:
Move file

Disassembly:
jmp 0x180377600
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, reloc.WLDAP32.dll_Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1805c0c48]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.1801aec36
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call fcn.1801af27b
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1801af27b
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1803776e7
cmp qword [rsp + 0x58], 0
je 0x1803776bb
mov rcx, qword [rsp + 0x58]
call fcn.1801abe8c
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1803776a0
cmp qword [rsp + 0x60], 0
je 0x1803776dc
mov rcx, qword [rsp + 0x60]
call fcn.1801abe8c
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1803776c1
jmp 0x1803777aa
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.1801aec36
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.1801afa1e
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x180377751
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x18037779a
cmp qword [rsp + 0x58], 0
je 0x18037776c
mov rcx, qword [rsp + 0x58]
call fcn.1801abe8c
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x180377751
cmp qword [rsp + 0x60], 0
je 0x18037778d
mov rcx, qword [rsp + 0x60]
call fcn.1801abe8c
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x180377772
mov eax, 1
jmp 0x1803777ac
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180377686
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1801ae55b
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1801ac93b
add rsp, 0xd8
pop rdi
pop rsi
ret

Function at 0x1801ac666
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180413e70
mov rax, rcx
neg rcx
test rax, 7
je 0x180413e8d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x180413ee8
test al, 7
jne 0x180413e80
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 0x180413ea1
mov rdx, qword [rax - 8]
test dl, dl
je 0x180413f12
test dh, dh
je 0x180413f0c
shr rdx, 0x10
test dl, dl
je 0x180413f06
test dh, dh
je 0x180413f00
shr rdx, 0x10
test dl, dl
je 0x180413efa
test dh, dh
je 0x180413ef4
shr edx, 0x10
test dl, dl
je 0x180413eee
test dh, dh
jne 0x180413ea1
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 0x1801ac6a7
Capabilities:
Query environment variable

Disassembly:
jmp 0x1804e7610
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1804e7190
lea rcx, [rsp + 0x20]
call fcn.1804e71e0
movzx eax, al
test eax, eax
jne 0x1804e7655
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1804e71c0
mov rax, qword [rsp + 0x40]
jmp 0x1804e774f
lea rcx, [rsp + 0x20]
call fcn.1804e72e0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1804e7280
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.1801aca21
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1801ac003
lea rcx, [rsp + 0x28]
call fcn.1801ace6d
movzx eax, al
test eax, eax
jne 0x1804e76ef
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1801ae312
lea rcx, [rsp + 0x20]
call fcn.1804e71c0
mov rax, qword [rsp + 0x50]
jmp 0x1804e774f
lea rcx, [rsp + 0x20]
call fcn.1804e72e0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1801af38e
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.1801ac959
lea rcx, [rsp + 0x28]
call fcn.1801afcee
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1801ae312
lea rcx, [rsp + 0x20]
call fcn.1804e71c0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1801acbac
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180410260
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.18040fbe0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18041029f
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 [0x1805e5020]
jmp 0x1804102a9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1801acdbe
Capabilities:
Query environment variable

Disassembly:
jmp 0x1804e7360
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1804e7190
lea rcx, [rsp + 0x40]
call fcn.1804e7310
movzx eax, al
test eax, eax
jne 0x1804e73a8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1804e71c0
mov rax, qword [rsp + 0x70]
jmp 0x1804e7579
lea rcx, [rsp + 0x40]
call fcn.1804e72e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1804e7280
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.1804e72e0
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.1801adf93
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1804e744e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1804e71c0
mov rax, qword [rsp + 0x80]
jmp 0x1804e7579
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1801aca21
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1801ac823
lea rcx, [rsp + 0x48]
call fcn.1801ac24c
movzx eax, al
test eax, eax
jne 0x1804e74b5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1801aacc6
lea rcx, [rsp + 0x40]
call fcn.1804e71c0
mov rax, qword [rsp + 0x88]
jmp 0x1804e7579
lea rcx, [rsp + 0x48]
call fcn.1801ad2c8
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1804e72e0
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.1801adf93
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1804e754b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1801aacc6
lea rcx, [rsp + 0x40]
call fcn.1804e71c0
mov rax, qword [rsp + 0xa0]
jmp 0x1804e7579
lea rcx, [rsp + 0x48]
call fcn.1801ac7e7
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1801aacc6
lea rcx, [rsp + 0x40]
call fcn.1804e71c0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1801acdd7
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x180410190
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.18040fb60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1804101d1
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 [0x1805e5020]
jmp 0x1804101d7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1801ace77
Capabilities:
Get geographical location

Disassembly:
jmp 0x1804c6f50
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.1804c5e80
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1804c6fb7
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 [0x1805e5030]
jmp 0x1804c6fd9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1801ac1bb
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 0x1801ace9a
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1804fa620
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1805c0c48]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1804fa646
jmp 0x1804fa6c3
mov rcx, qword [rbp + 0x30]
call fcn.1801ac666
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1804fa65f
jmp 0x1804fa6c3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1804fa67c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1801aae9c
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.1801ab581
test eax, eax
jne 0x1804fa6c3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1801ac93b
lea rsp, [rbp + 0x20]
pop rbp
ret