joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400635ba
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.140043af0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400635df
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400465e0
lea eax, [rbx + 0x1f]
jmp 0x140063658
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400466f0
mov byte [rdi + 0x64a], 0
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.14006b6a0
mov byte [rdi + 0x65d], 1
cmp qword [rsi + 0x710], 0
je 0x140063656
mov dl, 1
mov rcx, rsi
call fcn.140030610
mov rcx, qword [rsi + 0x718]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x710]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140030610
test ebx, ebx
je 0x140063656
mov rcx, rdi
call fcn.140063b20
mov eax, Ordinal_46
jmp 0x140063658
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400646a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x842], 0
lea r9, [rcx + 0x790]
mov rbx, rcx
jne 0x140064758
xor r10d, r10d
mov dword [r9 + 0xd0], r10d
mov rax, qword [rcx]
mov ecx, r10d
cmp dword [rax + 0xbc4], 2
sete cl
mov dword [r9 + 0xd4], ecx
cmp byte [rbx + 0x642], r10b
je 0x140064714
mov r8, qword [r9 + 0x90]
test r8, r8
je 0x140064714
cmp dword [r9 + 0xa0], r10d
je 0x14006470b
mov rax, qword [r9 + 0x98]
mov rdx, qword [rax]
cmp byte [rdx], 0x2f
je 0x140064714
mov dword [r9 + 0xb4], r10d
jmp 0x140064732
cmp dword [r9 + 0xa0], r10d
je 0x140064755
mov r8, qword [r9 + 0x98]
mov dword [r9 + 0xb4], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
mov rcx, r9
call fcn.14006cfd0
test eax, eax
jne 0x140064762
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063b10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140064b10
add rsp, 0x20
pop rbx
ret

Function at 0x140064b10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x790
cmp byte [rax + 0xf59], 0
jne 0x140064b35
cmp dword [rax + 0x9e0], 0
je 0x140064b61
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x140064b61
lea rdx, str.MDTM__s
call fcn.14006cfd0
test eax, eax
jne 0x140064b6e
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063b10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140065bf0
add rsp, 0x20
pop rbx
ret
Function at 0x1400652c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x140065341
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x85c]
test ebx, ebx
jne 0x1400652ff
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1400466f0
mov byte [rdi + 0x650], bl
inc ebx
cmp ebx, 2
jne 0x140065328
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.1400465e0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140065fc0
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1400466f0
xor edx, edx
mov rcx, rdi
call fcn.140063b10
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140063cb0
Function at 0x140065650
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 0
je 0x14006569d
cmp qword [rcx + 0xa8], 0
je 0x14006569d
xor r8d, r8d
lea rdx, str.REST__d
call fcn.14006cfd0
test eax, eax
jne 0x1400656aa
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063b10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140065370
add rsp, 0x20
pop rbx
ret

Function at 0x140065940
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 1
jne 0x14006598c
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x14006598c
lea rdx, str.SIZE__s
call fcn.14006cfd0
test eax, eax
jne 0x140065999
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140063b10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140065650
add rsp, 0x20
pop rbx
ret

Function at 0x140065bf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0xf6c], 0
je 0x140065c47
cmp qword [rcx + 0x838], 0
je 0x140065c47
movzx edx, byte [r10 + 0xf5b]
call fcn.140063f00
test eax, eax
je 0x140065c47
mov rax, qword [r10 + 0x1a8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x10], 1
movzx edx, byte [r10 + 0xf5b]
add rsp, 0x28
jmp fcn.140063e70
mov rcx, r9
add rsp, 0x28
jmp fcn.140065940

Function at 0x140069f70
Capabilities:
Query environment variable

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, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [str.LI_a_]
mov rdi, rax
test rax, rax
je 0x140069fed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14006a018
cmp ebx, esi
je 0x14006a018
cmp ebx, 0x8000
ja 0x14006a018
cmp ebx, esi
jb 0x14006a013
mov edx, ebx
mov rcx, rdi
call qword [str.LI_a_]
mov rdi, rax
test rax, rax
jne 0x140069fb0
mov rcx, rbp
call qword [str._I_a_]
xor eax, eax
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
mov rax, rdi
jmp 0x140069ff8
mov rcx, rdi
jmp 0x140069ff0
jmp 0x140069f70
Function at 0x14006a020
Capabilities:
Query environment variable

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, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [str.LI_a_]
mov rdi, rax
test rax, rax
je 0x140069fed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14006a018
cmp ebx, esi
je 0x14006a018
cmp ebx, 0x8000
ja 0x14006a018
cmp ebx, esi
jb 0x14006a013
mov edx, ebx
mov rcx, rdi
call qword [str.LI_a_]
mov rdi, rax
test rax, rax
jne 0x140069fb0
mov rcx, rbp
call qword [str._I_a_]
xor eax, eax
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
mov rax, rdi
jmp 0x140069ff8
mov rcx, rdi
jmp 0x140069ff0
jmp 0x140069f70

Function at 0x14006bc40
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140035b90
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14006b830
mov rcx, rdi
mov rsi, rax
call fcn.14006b830
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14006bcf0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140035b90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140035c20
cmp rax, 0x3e8
ja 0x14006bd23
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14006bca0
test rsi, rsi
je 0x14006bcfe
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14006bd0c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14006bd31
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14006bd3f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14006bd0e
Function at 0x14006c8b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14006c97c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.14006c9f0
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.14006f0e0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14006c980
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14006c9ca
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140073640
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006ef20
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x14006ef62
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 0x14006efa9
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 0x14006f002
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 0x14006efc0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006f043
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008229e]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008229f]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006f010
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 0x140004000
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rdi, rcx
lea rcx, [rsp + 0x50]
call fcn.140003ca0
mov rbx, rax
cmp qword [rax + 0x18], 7
jbe 0x140004024
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140003ca0
cmp qword [rax + 0x18], 7
jbe 0x14000403b
mov rax, qword [rax]
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004093
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000408e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004101
call fcn.140012270
movdqa xmm0, xmmword [0x14003ee70]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400040e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400040fb
call fcn.140012270
shr ebx, 0x1f
xor bl, 1
movzx eax, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call fcn.14001a984
nop
call fcn.14001a984
nop
int3
Function at 0x140005420
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8d, 0x18
lea rdx, str.ConsoleSerializationFont
lea rcx, [rbp - 0x19]
call fcn.14000a0e0
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x2f]
call fcn.140003ca0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x1400054b2
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055f3
call fcn.140012270
movdqa xmm0, xmmword [0x14003ee80]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140003ca0
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005545
mov eax, dword [rbp + 0x1f]
lea eax, [rax*2 + 2]
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 7
cmova rcx, qword [rbp + 0xf]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rdx, qword [rbp + 0x2f]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140005581
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000557c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055f9
call fcn.140012270
movdqa xmm0, xmmword [0x14003ee70]
movdqu xmmword [rbp + 0x1f], xmm0
xor eax, eax
mov word [rbp + 0xf], ax
mov rdx, qword [rbp + 0x47]
cmp rdx, 7
jbe 0x1400055d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055ed
call fcn.140012270
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140012250
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rbp
ret
call fcn.14001a984
nop
call fcn.14001a984
nop
call fcn.14001a984
int3
Function at 0x140006e10
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006e34
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140006ec2
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006e90
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140006e90
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14002f100
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140006ead
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006eb5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006e51
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140006fa0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140006ed9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006edb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006f0d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14002f100
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006f9d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006f48
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140006f7e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14001a174
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140006f9d
cmp rsi, rax
ja 0x140006f51
test rsi, rsi
je 0x140006f9d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001a174
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140010908
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 0x140010942
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140010947
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 0x140010990
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140034a40]
cmp byte [rcx + rax], 0
je 0x140010990
dec r8
sub rdx, 1
jne 0x140010976
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140013100
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001314a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001314a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001314a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001314a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001314a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001314c
xor al, al
add rsp, 0x28
ret
Function at 0x14001ae18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140012e10
sub rsp, rax
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001f2cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001ae67
mov rax, rbp
jmp 0x14001af6f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x47430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023c20
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x47430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001af6b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001af6b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023c20
test rax, rax
js 0x14001af6b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001af6b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001af5d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001af5d
cmp byte [rcx], 0xd
jne 0x14001af43
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001af52
cmp byte [rcx + 1], 0xa
jne 0x14001af52
inc rcx
jmp 0x14001af52
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x454d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001af25
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001af6f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140012250
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001cec0
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 0x14001cf2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001cf2f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001cf2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001cf2f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001cf2f
cmp dword [rcx + 0x84], 0xe
jbe 0x14001cf2f
cmp dword [rcx + 0xf8], 0
je 0x14001cf2f
mov ecx, ebx
call fcn.14001cfe0
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.14001cdbc
nop
cmp dword [rbp + 0x20], 0
je 0x14001cf7d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001cf88
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001cec0
Function at 0x14001d0c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001cec0

Function at 0x14001f3ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f402
mov al, 1
jmp 0x14001f462
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f413
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f460
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400280bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f460
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f460
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f460
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f462
xor al, al
add rsp, 0x20
pop rbx
ret