joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d1b20
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400d1cc8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400d1b85
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400d1b85
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400d1b85
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400d1bbc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400d1c12
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400d1c12
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400d1c12
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400d1c12
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400d1c12
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400d15d0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400d1c74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400add50
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400d19a0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400d1cc0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400add50
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400d3430
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140151080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400d34c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400d3526
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400add50
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400e6550
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400d35e1
sub ecx, 1
je 0x1400d3654
sub ecx, 1
je 0x1400d3590
cmp ecx, 1
je 0x1400d3573
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400f4ee0]
call fcn.1400add50
jmp 0x1400d3654
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400d3160
test eax, eax
je 0x1400d3654
jmp 0x1400d34fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400d3654
sub rax, rsi
cmp rax, rbp
jae 0x1400d3654
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400aded0
jmp 0x1400d3654
cmp r8d, 4
jle 0x1400d3654
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400d3654
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400adc70
mov esi, eax
test eax, eax
je 0x1400d3633
mov edx, 5
mov rcx, rbx
call fcn.1400d4120
mov eax, esi
jmp 0x1400d34fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400bc550
mov rcx, r14
call fcn.1400bc830
test eax, eax
je 0x1400d34f8
mov edx, 5
mov rcx, rbx
call fcn.1400d4120
mov eax, Ordinal_46
jmp 0x1400d34fa
Function at 0x1400e63f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400e6432
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400e6479
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400e64d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400e6490
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400e6513
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400fa60b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400fa60c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400e64e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400e74a0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1400fa770]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400e788a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400e788f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e78d8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e78d8
dec r8
sub rdx, 1
jne 0x1400e78be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140011348
Capabilities:
Terminate process

Disassembly:
jmp 0x140016740
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 0x140011410
Capabilities:
Execute command

Disassembly:
jmp 0x140014e80
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x140028068]
call fcn.1400115be
lea rax, str.E:CoisaieoaProjectsRossete_rebeca1.cmd
mov qword [rbp + 8], rax
lea rdx, str.cmd__c
lea rcx, [rbp + 0x28]
call fcn.140011294
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140014f35
lea rdx, str.Erro_ao_executar_o_arquivo_de_configurac
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110b4
mov edx, dword [rbp + 0x64]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [rbp + 0x64]
mov dword [rbp + 0x144], eax
lea rcx, [rbp + 0x28]
call fcn.140011127
mov eax, dword [rbp + 0x144]
jmp 0x140014f81
lea rdx, str.Coito_iniciado_com_sucessifor
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110b4
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rbp + 0x164], 0
lea rcx, [rbp + 0x28]
call fcn.140011127
mov eax, dword [rbp + 0x164]
jmp 0x140014f81
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001de00]
call fcn.1400114e7
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011424
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017a90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017ab0
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017ac3
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017aed
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017b01
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017b13
xor al, al
jmp 0x140017b31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017b2f
xor al, al
jmp 0x140017b31
mov al, 1
add rsp, 0x38
ret
Function at 0x140001e4c
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140053940
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140053968
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1400539b2
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 0x14005395d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x140002ccf
Capabilities:
Get geographical location

Disassembly:
jmp 0x140081990
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.140002e5f
mov dword [rsp + 0x28], eax
call fcn.140003fb7
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov edx, 0x22
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x30
je 0x140081a0f
cmp dword [rsp + 0x24], 0x31
je 0x140081a16
cmp dword [rsp + 0x24], 0x32
je 0x140081a1d
jmp 0x140081a24
mov eax, 2
jmp 0x140081a26
mov eax, 1
jmp 0x140081a26
mov eax, 3
jmp 0x140081a26
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1400034b8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400ac0e0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400ac0fd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400ac158
test al, 7
jne 0x1400ac0f0
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 0x1400ac111
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400ac182
test dh, dh
je 0x1400ac17c
shr rdx, 0x10
test dl, dl
je 0x1400ac176
test dh, dh
je 0x1400ac170
shr rdx, 0x10
test dl, dl
je 0x1400ac16a
test dh, dh
je 0x1400ac164
shr edx, 0x10
test dl, dl
je 0x1400ac15e
test dh, dh
jne 0x1400ac111
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 0x1400034f9
Capabilities:
Query environment variable

Disassembly:
jmp 0x14015a270
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140159df0
lea rcx, [rsp + 0x20]
call fcn.140159e40
movzx eax, al
test eax, eax
jne 0x14015a2b5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140159e20
mov rax, qword [rsp + 0x40]
jmp 0x14015a3af
lea rcx, [rsp + 0x20]
call fcn.140159f40
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140159ee0
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.140003864
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002e6e
lea rcx, [rsp + 0x28]
call fcn.140003d3c
movzx eax, al
test eax, eax
jne 0x14015a34f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400051be
lea rcx, [rsp + 0x20]
call fcn.140159e20
mov rax, qword [rsp + 0x50]
jmp 0x14015a3af
lea rcx, [rsp + 0x20]
call fcn.140159f40
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.140006159
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.1400037a6
lea rcx, [rsp + 0x28]
call fcn.140006aa5
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400051be
lea rcx, [rsp + 0x20]
call fcn.140159e20
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400035da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140016ac0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140016b2e
lea rdx, str.Resource
lea rcx, [0x1401d8aa0]
call fcn.1400018d4
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.1400018d4
lea rdx, str._not_found_n
mov rcx, rax
call fcn.1400018d4
xor al, al
jmp 0x140016b9b
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_UpdateResourceA]
test eax, eax
je 0x140016b91
mov byte [rsp + 0x48], 1
jmp 0x140016b96
mov byte [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
add rsp, 0x50
pop rdi
ret
Function at 0x14000393b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140016510
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [0x1401d6040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0
jmp 0x140016564
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 4]
cmp dword [rsp + 0x20], eax
jge 0x1400165d3
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xe
lea rcx, [rsp + 0x38]
mov rdx, qword [rsp + 0xb0]
mov rdi, rcx
lea rsi, [rdx + rax + 6]
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [rsp + 0x38]
mov dword [rsp + 0x60], eax
movzx eax, byte [rsp + 0x39]
mov dword [rsp + 0x64], eax
movzx eax, word [rsp + 0x3e]
mov dword [rsp + 0x68], eax
movzx eax, word [rsp + 0x44]
mov dword [rsp + 0x6c], eax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa8]
call fcn.140001e15
jmp 0x14001655a
mov rcx, rsp
lea rdx, [0x14018bdd0]
call fcn.1400053fd
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003783
add rsp, 0x88
pop rdi
pop rsi
ret

Function at 0x1400039ea
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a8290
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a7c10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a82cf
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 [0x1401f0020]
jmp 0x1400a82d9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140003c5b
Capabilities:
Query environment variable

Disassembly:
jmp 0x140159fc0
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140159df0
lea rcx, [rsp + 0x40]
call fcn.140159f70
movzx eax, al
test eax, eax
jne 0x14015a008
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140159e20
mov rax, qword [rsp + 0x70]
jmp 0x14015a1d9
lea rcx, [rsp + 0x40]
call fcn.140159f40
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140159ee0
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.140159f40
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.140004e03
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14015a0ae
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140159e20
mov rax, qword [rsp + 0x80]
jmp 0x14015a1d9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140003864
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140003657
lea rcx, [rsp + 0x48]
call fcn.14000308f
movzx eax, al
test eax, eax
jne 0x14015a115
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140001cbc
lea rcx, [rsp + 0x40]
call fcn.140159e20
mov rax, qword [rsp + 0x88]
jmp 0x14015a1d9
lea rcx, [rsp + 0x48]
call fcn.14000414c
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140159f40
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.140004e03
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14015a1ab
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140001cbc
lea rcx, [rsp + 0x40]
call fcn.140159e20
mov rax, qword [rsp + 0xa0]
jmp 0x14015a1d9
lea rcx, [rsp + 0x48]
call fcn.140003611
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140001cbc
lea rcx, [rsp + 0x40]
call fcn.140159e20
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x140003c74
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a81c0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400a7b90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a8201
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 [0x1401f0020]
jmp 0x1400a8207
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x140003d46
Capabilities:
Get geographical location

Disassembly:
jmp 0x140141820
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.140140750
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140141887
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 [0x1401f0030]
jmp 0x1401418a9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140003008
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 0x140003d5a
Capabilities:
Terminate process

Disassembly:
jmp 0x140084d90
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