joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c968
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000c996
xor eax, eax
jmp 0x14000ca7c
cmp qword [rcx + 0x68], 0
je 0x14000c9a7
call fcn.14000e9d0
jmp 0x14000ca7c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c9be
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c9c0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c9f2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002bc80
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000ca76
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000ca29
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000ca52
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140038ac4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000ca76
cmp rsi, rbx
ja 0x14000ca30
test rsi, rsi
je 0x14000ca76
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140038ac4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000ebd8
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x200
mov rax, qword [0x1400741e8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov bl, dl
mov rdi, rcx
mov eax, 1
lock xadd dword [0x1400780d0], eax
inc eax
cmp eax, 1
jne 0x14000ec29
lea ecx, [rax + 1]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x1400780d4], eax
test bl, bl
je 0x14000ecb6
xor ebx, ebx
lock xadd dword [0x1400780d4], ebx
test ebx, ebx
je 0x14000ecb6
and dword [rsp + 0x3c], 0
lea rsi, [0x140074e80]
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x140074e88]
cmp rcx, 1
jbe 0x14000ec73
mov rax, qword [0x140074e80]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14000ec75
mov al, 1
lea rcx, str.C:Program_Files__x86_Microsoft_Visual_Studio2022BuildToolsVCToolsMSVC14.35.32215include_boost_asio_detail_impl_winsock_init.ipp
movzx eax, al
add rax, 2
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rax
lea rcx, str.throw_on_error
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], 0x48
mov dword [rsp + 0x34], 0x1a
test al, 1
jne 0x14000ecde
mov rax, rdi
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140029d70
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x20]
lea rdx, str.winsock
lea rcx, [rsp + 0x38]
call fcn.140003890
int3
Function at 0x140017104
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rbx, qword [rcx + 0x18]
xor eax, eax
lock xadd dword [rbx + 0x30], eax
test eax, eax
jne 0x140017137
mov rcx, rbx
call fcn.140004928
jmp 0x1400171e0
and dword [rbp + 0x37], 0
lea rcx, [rbp + 0x3f]
call fcn.140027e9c
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rbp - 0x19]
call fcn.14002c460
nop
mov rax, rbx
lea rdx, [rbx + 0x28]
neg rax
sbb rcx, rcx
and rcx, rdx
mov qword [rbp - 0x49], rcx
lea rax, [rbp - 0x19]
mov qword [rbp - 0x41], rax
mov ecx, dword [0x1400780dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x1400780dc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, rbx
call fcn.140004c28
test rax, rax
jne 0x140017191
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x1400780dc]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rbx, [rbp - 0x19]
mov edi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400171cd
call fcn.14002a0f4
add rbx, 8
sub rdi, 1
jne 0x1400171c0
lea rcx, [rbp + 0x3f]
call fcn.140027f28
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14001f88c
Capabilities:
Connect socket
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400741e8]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rsi, qword [r8]
mov r14, rdx
mov rdi, qword [rbp + 0x3d0]
mov ebx, 0x2719
mov r12d, 2
cmp rsi, 0xffffffffffffffff
jne 0x14001f8e2
mov edx, ebx
mov rcx, rdi
call fcn.140012e1c
jmp 0x14001f90c
cmp word [r9], r12w
mov eax, 0x1c
mov rdx, r9
mov rcx, rsi
lea r8d, [rax - 0xc]
cmovne r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
setne dl
call fcn.140005260
mov edx, 0x2734
lea rcx, [rsp + 0x38]
call fcn.140012ea8
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140002cd0
test al, al
jne 0x14001f950
mov edx, 0x2733
lea rcx, [rsp + 0x38]
call fcn.140012ea8
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140002cd0
test al, al
je 0x14001fa5f
cmp rsi, 0xffffffffffffffff
jne 0x14001f965
mov edx, ebx
mov rcx, rdi
call fcn.140012e1c
jmp 0x14001fa5f
and qword [rsp + 0x20], 0
lea ecx, [rsi + 1]
lea r9, [rsp + 0x50]
mov qword [rbp + 0x168], rsi
lea r8, [rbp + 0x160]
mov dword [rbp + 0x160], 1
xor edx, edx
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
mov rcx, rdi
mov ebx, eax
sets dl
call fcn.140005260
test ebx, ebx
js 0x14001fa5f
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x34], 4
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.140005260
cmp ebx, 0xffffffff
je 0x14001fa5f
and dword [rsp + 0x3c], 0
lea rsi, [0x140074e80]
mov ebx, dword [rsp + 0x30]
movabs rcx, 0x4d54ee85da812030
add rcx, qword [0x140074e88]
cmp rcx, 1
jbe 0x14001fa33
mov rax, qword [0x140074e80]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14001fa38
test ebx, ebx
setne al
movzx eax, al
mov dword [rsp + 0x38], ebx
add rax, r12
mov qword [rsp + 0x40], rsi
movups xmm0, xmmword [rsp + 0x38]
mov qword [rsp + 0x48], rax
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rcx, qword [rdi + 0x10]
movsd xmm1, qword [rdi + 0x10]
movups xmm2, xmmword [rdi]
cmp rcx, r12
jb 0x14001fa88
and ecx, 1
lea rax, str.C:Program_Files__x86_Microsoft_Visual_Studio2022BuildToolsVCToolsMSVC14.35.32215include_boost_asio_detail_win_iocp_socket_service.hpp
or rcx, rax
mov qword [rsp + 0x48], rcx
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdi], xmm2
mov rax, r14
movsd qword [rdi + 0x10], xmm1
movups xmmword [r14], xmm2
movsd qword [r14 + 0x10], xmm1
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140029d70
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x480
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022154
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x1400222e1
cmp ecx, 0x7c
je 0x1400222e1
cmp ecx, 0x29
jne 0x14002219f
cmp dword [rbx + 0x1c], 0
jne 0x1400222e1
lea rdi, [rbx + 0x80]
test dword [rdi], 0x10000000
je 0x1400222f7
jmp 0x140022297
lea rdi, [rbx + 0x80]
cmp ecx, 0x2e
jne 0x1400221c6
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.140022424
mov rcx, rbx
call fcn.140022108
jmp 0x1400222cf
cmp ecx, 0x5c
jne 0x140022223
mov rcx, rbx
call fcn.140022108
test byte [rdi], 0x80
je 0x140022216
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x1400221fa
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.140022424
mov rcx, rbx
call fcn.140022108
jmp 0x1400222d7
cmp al, 0x42
jne 0x140022216
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.140022424
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x1400221ed
mov rcx, rbx
call fcn.1400235a0
jmp 0x1400222cf
cmp ecx, 0x5b
jne 0x140022247
mov rcx, rbx
call fcn.140022108
mov rcx, rbx
call fcn.140023460
cmp dword [rbx + 0x7c], 0x5d
jne 0x140022302
jmp 0x1400221b9
cmp ecx, 0x28
jne 0x14002226b
mov rcx, rbx
call fcn.140022108
mov rcx, rbx
call fcn.1400236e8
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14002230d
jmp 0x1400222c2
cmp ecx, 0x5e
jne 0x140022278
lea edx, [rcx - 0x5c]
jmp 0x1400221e4
cmp ecx, 0x24
jne 0x140022285
lea edx, [rcx - 0x21]
jmp 0x1400221e4
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400222ec
cmp ecx, 0x3f
je 0x1400222ec
cmp ecx, 0x7b
je 0x1400222ec
cmp ecx, 0x7d
jne 0x1400222a6
test dword [rdi], 0x10000000
je 0x140022318
jmp 0x1400222b3
cmp ecx, 0x5d
jne 0x1400222b3
test dword [rdi], 0x10000000
je 0x140022323
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14002392c
mov dil, 1
mov rcx, rbx
call fcn.140022108
test dil, dil
je 0x1400222d7
mov rcx, rbx
call fcn.1400237e4
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x140022166
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
call fcn.14001fc18
int3
mov edx, 5
call fcn.14001fc18
int3
mov edx, 4
call fcn.14001fc18
int3
mov edx, 5
call fcn.14001fc18
int3
mov edx, 6
call fcn.14001fc18
int3
mov edx, 4
call fcn.14001fc18
int3

Function at 0x140026d78
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140026da4
mov rax, qword [rax + 0x38]
test rax, rax
je 0x140026d9f
xor edx, edx
mov rcx, rax
call qword [rax]
nop
and qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140026dea
mov ecx, dword [0x1400780dc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140026ddd
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140026ddd
xor edx, edx
xor eax, eax
cmp qword [rcx + rax*8], 0
je 0x140026df5
inc edx
inc rax
cmp rax, 2
jl 0x140026dcb
mov rcx, rbx
call fcn.14002a0f4
and qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov al, byte [rbx + 0x48]
mov byte [rbx], al
movsxd rax, edx
mov qword [rcx + rax*8], rbx
jmp 0x140026de5
Function at 0x14002aab0
Capabilities:
Parse pe header

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

Function at 0x140034390
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400343c7
call fcn.1400360dc
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1400395c8
xor eax, eax
jmp 0x140034455
mov rdx, r9
mov rcx, r8
call fcn.14003432c
mov rbx, rax
test rax, rax
je 0x140034452
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140034258]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003443f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140036050
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140034426
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140034435
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140041fcc
jmp 0x140034452
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003444f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14003a530
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003a550
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140036050
or eax, 0xffffffff
jmp 0x14003a552
xor eax, eax
add rsp, 0x28
ret

Function at 0x14003a558
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003a578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140036050
or eax, 0xffffffff
jmp 0x14003a57a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14003d63c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003d438
Function at 0x1400401fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140040212
mov al, 1
jmp 0x140040272
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140040223
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140040270
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004b8f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040270
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140040270
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140040270
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140040272
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140042a68
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14005d408]
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x14005d400]
call fcn.14004257c
test rax, rax
je 0x140042ab2
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [0x140056418]
jmp 0x140042abd
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140046518
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.14002a430
sub rsp, rax
mov rax, qword [0x1400741e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400400dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140046567
mov rax, rbp
jmp 0x14004666f
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 + 0x779a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140047464
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x779a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004666b
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 0x14004666b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140047464
test rax, rax
js 0x14004666b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004666b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004665d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004665d
cmp byte [rcx], 0xd
jne 0x140046643
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140046652
cmp byte [rcx + 1], 0xa
jne 0x140046652
inc rcx
jmp 0x140046652
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x745e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140046625
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004666f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140029d70
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 0x140046804
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, [0x1400779a0]
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 0x14004685b
cmp word [rdx], r13w
jne 0x14004685b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140046860
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140046985
mov r11d, select
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400469a6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140046899
mov rdx, r9
mov word [rbx], cx
jmp 0x1400468c0
cmp r9, r8
jae 0x1400468d0
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 0x14004687a
jmp 0x140046985
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 0x14004697a
cmp dword [rsp + 0x80], esi
je 0x14004697a
lea r8, [0x1400779a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140046952
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140046922
mov word [rbx], r13w
jmp 0x140046982
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 0x14004692f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140046982
cmp word [rsp + 0x70], r13w
jne 0x14004695f
cmp rbx, r14
je 0x14004691c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004746c
cmp word [rsp + 0x70], r13w
je 0x140046985
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, [0x1400779a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004697f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140046985
Function at 0x140048038
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140031508
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400480c2
cmp byte [rbp - 0x21], r15b
je 0x1400480bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400480f8
call fcn.1400427e8
test eax, eax
jne 0x1400480e4
cmp byte [rbp - 0x21], r15b
je 0x1400480dc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400480f8
cmp byte [rbp - 0x21], r15b
je 0x1400480f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003a10c
test eax, eax
jne 0x140048198
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140031508
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140048137
cmp byte [rbp - 0x21], r15b
je 0x14004816c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004816c
call fcn.1400427e8
test eax, eax
jne 0x140048158
cmp byte [rbp - 0x21], r15b
je 0x140048151
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004816c
cmp byte [rbp - 0x21], r15b
je 0x140048169
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003a10c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140048198
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004819b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400481a9
mov rcx, rdi
call fcn.140041fcc
cmp byte [rbp + 0x3f], r15b
je 0x1400481b8
mov rcx, qword [rbp + 0x27]
call fcn.140041fcc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14004abe4
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 0x14004ac14
xor eax, eax
jmp 0x14004acd7
mov rbp, rbx
cmp word [rax], si
je 0x14004ac39
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004ac20
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004ac1c
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.140047f58
movsxd r14, eax
test eax, eax
jne 0x14004ac77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004ac0d
mov rcx, r14
call fcn.140045064
mov rdi, rax
test rax, rax
jne 0x14004ac90
xor ecx, ecx
call fcn.140041fcc
jmp 0x14004ac6c
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.140047f58
test eax, eax
jne 0x14004acc1
mov rcx, rdi
call fcn.140041fcc
jmp 0x14004accb
xor ecx, ecx
call fcn.140041fcc
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 0x14004de4c
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.1400406bc
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 0x14004deed
cmp ebx, dword [rsp + 0x30]
je 0x14004dee6
test esi, esi
je 0x14004dee6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004dec1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004dece
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004deab
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004ded2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004deef
mov eax, 1
jmp 0x14004deef
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret