joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f300
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x2f8]
sub rsp, 0x3e0
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r8d, 0x104
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000f513
mov dword [rbp - 0x80], 0x238
lea rdx, [rbp - 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor r15d, r15d
test eax, eax
je 0x14000f50a
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r15w
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r15w
lea rcx, [rsp + 0x20]
call fcn.14000ef40
mov rdi, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14000f3cb
mov rdi, qword [rax]
lea rax, [rbp - 0x54]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x14000f3d3
lea rbx, [rbx*4 + 1]
mov rcx, rbx
call fcn.14003a018
mov rsi, rax
mov r8, rbx
lea rdx, [rbp - 0x54]
mov rcx, rax
call fcn.14004b040
sub rdi, rsi
movzx ebx, byte [rsi]
movzx eax, byte [rsi + rdi]
sub ebx, eax
jne 0x14000f414
inc rsi
test eax, eax
jne 0x14000f402
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14000f451
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f44c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f541
call fcn.140039d60
test ebx, ebx
jne 0x14000f4e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rbp - 0x78], eax
je 0x14000f4e0
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.14000f224
lea rdx, [rsp + 0x40]
mov ecx, dword [rbp - 0x78]
call fcn.14000f224
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x50]
jne 0x14000f4e0
test rdx, rdx
je 0x14000f4c7
sub r8, rcx
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000f4e0
add rcx, 2
sub rdx, 1
jne 0x14000f4b3
lea rcx, [rsp + 0x40]
call fcn.140005394
nop
lea rcx, [rsp + 0x60]
call fcn.140005394
mov al, 1
jmp 0x14000f515
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000f3b4
lea rcx, [rsp + 0x40]
call fcn.140005394
nop
lea rcx, [rsp + 0x60]
call fcn.140005394
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140039d40
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400403c0
nop
int3
Function at 0x14000f548
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
mov edx, 0x208
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rax, [rsp + 0x50]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], bp
jne 0x14000f594
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r9d, edi
mov dword [rsp + 0x28], ebp
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
xorps xmm0, xmm0
mov r8, rsi
xor edx, edx
movups xmmword [rbx], xmm0
mov rcx, rbx
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
call fcn.14000b76c
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x14000f5f0
mov rdx, qword [rbx]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov r9d, edi
mov dword [rsp + 0x28], esi
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140039d40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000fba4
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rbp + 0x180], rax
cmp qword [rcx + 0x18], 0xf
mov rdx, rcx
jbe 0x14000fbe0
mov rdx, qword [rcx]
mov r9, qword [rcx + 0x10]
add r9, rdx
cmp qword [rcx + 0x18], 0xf
jbe 0x14000fbf1
mov rcx, qword [rcx]
xor esi, esi
xorps xmm0, xmm0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
movups xmmword [rsp + 0x20], xmm0
cmp rcx, r9
jne 0x14000fc19
lea edi, [rsi + 7]
mov word [rsp + 0x20], si
mov qword [rsp + 0x38], rdi
jmp 0x14000fc2e
sub r9, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140006974
mov rdi, qword [rsp + 0x38]
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x234
call fcn.140067a80
xor edx, edx
mov dword [rsp + 0x40], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x14000fca3
cmp rdi, 7
lea rcx, [rsp + 0x20]
lea r8, [rsp + 0x6c]
cmova rcx, qword [rsp + 0x20]
sub r8, rcx
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x14000fc91
add rcx, 2
test edx, edx
jne 0x14000fc7d
mov rcx, rbx
test eax, eax
je 0x14000fce2
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000fc66
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
call fcn.140005394
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140039d40
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.140005394
mov eax, ebx
jmp 0x14000fcba

Function at 0x14000fcfc
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x268
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x10e
call fcn.140067a80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.14004c590
xor r9d, r9d
mov r8, qword [rax]
lea edx, [r9 + 5]
lea ecx, [rdx - 1]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.140067a80
call fcn.14004c590
lea rdx, [0x1400d1524]
lea rcx, [rsp + 0x30]
mov r8, qword [rax]
call fcn.14000e120
lea r8, [rsp + 0x30]
lea rdx, str._c_timeout__T_1__del__q___s_
lea rcx, [rsp + 0x140]
call fcn.14000e120
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x140]
and qword [rsp + 0x20], 0
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400115f4
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x48], rax
xor r12d, r12d
test rax, rax
jne 0x140011659
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011594
nop
jmp 0x140011691
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400116c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011594
nop
cmp rbx, 0xffffffffffffffff
je 0x140011691
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140005394
mov eax, 2
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140039d40
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [rdi + 0x18], 7
jbe 0x1400116d8
mov r14, qword [rdi]
mov rcx, r14
jmp 0x1400116de
mov rcx, rdi
mov r14, rdi
mov rax, qword [rdi + 0x10]
lea r15, [rcx + rax*2]
mov rsi, rdi
jbe 0x1400116ee
mov rsi, qword [rdi]
cmp rsi, r15
je 0x14001170c
sub r14, rsi
movzx ecx, word [rsi]
call fcn.14004c694
mov word [r14 + rsi], ax
add rsi, 2
cmp rsi, r15
jne 0x1400116f6
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x7c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x140011727
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x28]
call fcn.140006124
nop
lea r14, [rsp + 0x28]
mov r9, qword [rsp + 0x28]
mov r10, qword [rsp + 0x40]
cmp r10, 7
cmova r14, r9
lea rax, [rsp + 0x28]
cmova rax, r9
mov rdx, qword [rsp + 0x38]
lea r15, [rax + rdx*2]
lea rsi, [rsp + 0x28]
cmova rsi, r9
cmp rsi, r15
je 0x1400117a0
sub r14, rsi
movzx ecx, word [rsi]
call fcn.14004c694
mov word [r14 + rsi], ax
add rsi, 2
cmp rsi, r15
jne 0x14001177b
mov r10, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov r9, qword [rsp + 0x28]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400117ad
mov rcx, qword [rdi]
lea r8, [rsp + 0x28]
cmp r10, 7
cmova r8, r9
cmp rdx, qword [rdi + 0x10]
jne 0x14001180a
test rdx, rdx
je 0x1400117dc
sub r8, rcx
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14001180a
add rcx, 2
sub rdx, 1
jne 0x1400117c8
mov esi, dword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140005394
nop
cmp rbx, 0xffffffffffffffff
je 0x1400117fb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140005394
mov eax, esi
jmp 0x14001169e
lea rcx, [rsp + 0x28]
call fcn.140005394
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14001170c
jmp 0x140011681
Function at 0x14001184c
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov esi, ecx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140011884
xor edi, edi
jmp 0x1400118bb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
cmp dword [rsp + 0x2c], esi
je 0x1400118b7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14001189a
lea edi, [rax + 2]
jmp 0x1400118bb
mov edi, dword [rsp + 0x28]
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400118ce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140039d40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14002fa2c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001c6d6
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001c6b9
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001c6a4

Function at 0x140039524
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.14004cd98
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140039576
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x140039576
sub ecx, 1
je 0x14003956f
cmp ecx, 1
je 0x140039568
xor eax, eax
jmp 0x14003957b
mov eax, 3
jmp 0x14003957b
mov eax, 1
jmp 0x14003957b
mov eax, 2
add rsp, 0x28
ret

Function at 0x14003abcc
Capabilities:
Parse pe header

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

Function at 0x14003fdc0
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 0x14003fe2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003fe2f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003fe2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003fe2f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003fe2f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003fe2f
cmp dword [rcx + 0xf8], 0
je 0x14003fe2f
mov ecx, ebx
call fcn.14003fed4
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.14003fcc8
nop
cmp dword [rbp + 0x20], 0
jne 0x14003fe90
call fcn.1400544c0
cmp eax, 1
jne 0x14003fe80
xor dl, dl
jmp 0x14003fe8a
call fcn.14005444c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003fe9b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003fea4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003fdc0
Function at 0x14003ffa8
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 0x14003fe2f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003fe2f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003fe2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003fe2f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003fe2f
cmp dword [rcx + 0x84], 0xe
jbe 0x14003fe2f
cmp dword [rcx + 0xf8], 0
je 0x14003fe2f
mov ecx, ebx
call fcn.14003fed4
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.14003fcc8
nop
cmp dword [rbp + 0x20], 0
jne 0x14003fe90
call fcn.1400544c0
cmp eax, 1
jne 0x14003fe80
xor dl, dl
jmp 0x14003fe8a
call fcn.14005444c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14003fe9b
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14003fea4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14003fdc0

Function at 0x140044708
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 0x14004473f
call fcn.140042b24
mov dword [rax], 0x16
call fcn.1400403a0
xor eax, eax
jmp 0x1400447d1
mov rdx, r9
mov rcx, r8
call fcn.1400446a4
mov rbx, rax
test rax, rax
je 0x1400447ce
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x28], rax
lea r8, [0x1400445d8]
mov eax, dword [rsp + 0x60]
mov rdx, rsi
mov r9, rbx
mov dword [rsp + 0x20], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400447bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140042ab4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400447a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400447b1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140054ae0
jmp 0x1400447ce
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400447cb
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 0x14004c1ec
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14004c20b
call fcn.14005b5fc
jmp 0x14004c2c0
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140046b64
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14004c256
cmp byte [rbp - 0x38], 0
je 0x14004c28b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004c28b
call fcn.14005835c
test eax, eax
jne 0x14004c277
cmp byte [rbp - 0x38], al
je 0x14004c26f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004c28b
cmp byte [rbp - 0x38], 0
je 0x14004c288
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14004c04c
test eax, eax
je 0x14004c2a4
or ebx, 0xffffffff
jmp 0x14004c2af
mov rcx, qword [rbp - 0x20]
call fcn.14005b5fc
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x14004c2be
mov rcx, qword [rbp - 0x20]
call fcn.140054ae0
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14005681c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140056832
mov al, 1
jmp 0x14005689e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140056843
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005689c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005f97c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005689c
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005689c
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005689c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005689e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140058604
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x14012a050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140058669
test rax, rax
jne 0x140058657
lea r9, [0x140071bf0]
lea r8, [0x140071be8]
lea rdx, [0x140071bf0]
lea ecx, [rax + 0xa]
call fcn.1400580f0
test rax, rax
je 0x140058669
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400673a0
jmp 0x140058683
xor edx, edx
mov rcx, rbp
call fcn.1400589ac
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 0x140059144
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.14003a470
sub rsp, rax
mov rax, qword [0x140120100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140056210
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140059193
mov rax, rbp
jmp 0x14005929f
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 + 0x123dc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005a14c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x123dc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005929b
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005929b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005a14c
test rax, rax
js 0x14005929b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005929b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005928d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005928d
cmp byte [rcx], 0xd
jne 0x140059273
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140059282
cmp byte [rcx + 1], 0xa
jne 0x140059282
inc rcx
jmp 0x140059282
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x120570]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140059255
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005929f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140039d40
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 0x140059434
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x140123dc0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14005948a
cmp word [rdx], r9w
jne 0x14005948a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14005948f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14005960e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400595d9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400594d7
cmp rcx, r8
jae 0x1400594f7
cmp word [rcx], r9w
jne 0x1400594d7
add rax, 4
mov edx, r9d
jmp 0x1400594da
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400594ac
jmp 0x14005960e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400595d2
cmp dword [rsp + 0x80], edi
je 0x1400595d2
lea r9, [0x140123dc0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400595ac
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14005955f
mov word [rbx], bp
jmp 0x14005960b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14005957a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14005960b
cmp word [rsp + 0x70], bp
jne 0x1400595b8
cmp rbx, rsi
je 0x140059557
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005a154
cmp word [rsp + 0x70], bp
je 0x14005960e
mov word [rbx], 0xd
jmp 0x14005960b
mov rcx, r15
lea r9, [0x140123dc0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140059608
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14005960e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret