joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009c3c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
xor edx, edx
mov rcx, rax
xor ebx, ebx
call fcn.14000853c
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x140009cf7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov ebp, eax
jbe 0x140009cee
cmp qword [rdi], rbx
je 0x140009c90
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rdi], rbx
mov rcx, qword [rdi + 8]
cmp rcx, rbx
je 0x140009ca2
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rdi + 8], rbx
lea ecx, [rbp + 1]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r9, [rsp + 0x50]
mov r8d, ebp
mov rcx, rsi
mov rdx, rax
mov dword [rsp + 0x50], ebx
mov qword [rdi], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, qword [rdi]
mov rcx, rdi
mov byte [rbp + rax], bl
call fcn.140009940
cmp qword [rdi], rbx
je 0x140009ce9
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rdi], rbx
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000a3e0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [0x140029930]
mov rbx, rdx
mov byte [rdx], 0
mov r9, rdx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov dword [rsp + 0x20], r8d
lea r8, [0x140020db0]
lea rcx, [0x140029a40]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000a420
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1040
call fcn.14001f290
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x31]
xor edx, edx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea r11, [0x140029930]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x140020db0]
lea rcx, [0x140029a40]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], 0
je 0x14000a499
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001eea4
mov eax, 1
jmp 0x14000a49b
xor eax, eax
mov rbx, qword [rsp + 0x1050]
add rsp, 0x1040
pop rdi
ret
Function at 0x14000a4ac
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
mov eax, 0x1040
call fcn.14001f290
sub rsp, rax
mov rbx, rcx
mov rdi, rdx
lea r8d, [rax - 0x40]
lea rcx, [rsp + 0x31]
xor edx, edx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea rbp, [0x140029930]
lea r9, [rsp + 0x30]
lea r8, [0x140020db0]
lea rcx, [0x140029a40]
mov rdx, rbx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], 0
jne 0x14000a52e
lea rcx, [0x140029a40]
mov r9, rbp
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x14000a530
xor eax, eax
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000a8c4
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
sub rsp, 0x130
lea rcx, [rsp + 0x21]
xor ebx, ebx
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x20], bl
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [rbx + 0x2e]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strrchr
cmp rax, rbx
je 0x14000a90c
mov byte [rax], bl
lea rdx, str._lng.ini
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000a9c9
lea rdx, [rsp + 0x20]
lea rcx, [0x140029930]
call fcn.14001eea4
lea rdx, str.general
lea rcx, [0x140029a40]
call fcn.14001eea4
lea r9, [0x140029930]
lea rdx, [0x140021334]
lea rcx, [0x140029a40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea rdx, [0x140029a90]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x14002987c], ebx
mov ebx, 0x3f
mov r8d, ebx
call fcn.14000a3e0
lea rdx, [0x140029ad0]
lea rcx, str.TranslatorName
mov r8d, ebx
call fcn.14000a3e0
lea rdx, [0x140029b10]
lea rcx, str.TranslatorURL
mov r8d, 0xff
call fcn.14000a3e0
add rsp, 0x130
pop rbx
ret
Function at 0x14000e8f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rbx, rcx
mov rcx, qword [rcx + 0x620]
lea rdx, str._cfg
call fcn.1400096ac
test eax, eax
js 0x14000e951
mov rdx, qword [rbx + 0x620]
add eax, 1
cmp eax, dword [rdx + 0x48]
jge 0x14000e948
test eax, eax
js 0x14000e951
cmp eax, dword [rdx + 0x28]
jge 0x14000e951
movsxd rcx, eax
mov rax, qword [rdx + 0x10]
mov r8d, dword [rax + rcx*4]
add r8, qword [rdx + 0x18]
jmp 0x14000e954
lea r8, [0x140020db0]
jmp 0x14000e954
xor r8d, r8d
mov rcx, qword [rbx + 0x580]
xor edx, edx
call fcn.14000199c
mov rax, qword [rbx + 0x580]
mov rcx, qword [rax + 0x30]
test rcx, rcx
je 0x14000e991
mov rax, qword [rcx]
cmp word [rax + 2], 0
jne 0x14000e983
cmp word [rax + 6], 0
je 0x14000e991
mov rax, qword [rbx + 0x588]
mov qword [rax + 0x1c8], rcx
mov rax, qword [rbx + 0x580]
cmp dword [rax + 0x68], 0
je 0x14000e9d9
lea rcx, [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000e9d9
mov rcx, qword [rbx + 0x588]
lea rdx, [rbx + 0x158]
xor r8d, r8d
add rcx, 0x278
call fcn.14000944c
mov rcx, qword [rbx + 0x588]
call fcn.140006544
lea rcx, [0x1400266f0]
call fcn.140014e2c
test eax, eax
jne 0x14000ea37
mov edi, 0x104
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8, rdi
mov byte [rsp + 0x40], al
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
call fcn.140008a24
lea rdx, str.IpToCountry.csv
lea rcx, [rsp + 0x40]
mov r8d, edi
call fcn.140008fc8
mov rcx, qword [rbx + 0x588]
lea rdx, [rsp + 0x40]
add rcx, 0x2a8
call fcn.140009c3c
mov rcx, qword [rbx + 0x580]
and dword [rsp + 0x38], 0
and dword [rsp + 0x28], 0
lea rax, [0x140021030]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rbx + 0x620]
mov qword [rsp + 0x30], rax
call fcn.140001464
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret
Function at 0x14001162c
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push rbx
sub rsp, 0x250
mov rbx, rcx
lea rdx, [rsp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x140011662
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r9, [rsp + 0x30]
lea rdx, [0x14002178c]
lea rcx, [rsp + 0x140]
xor r8d, r8d
mov byte [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov r9d, 1
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x20], r9d
call fcn.140010fc0
test eax, eax
je 0x1400116e4
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400116c1
lea rcx, [rsp + 0x30]
call fcn.1400087c8
jmp 0x1400116c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400116d9
mov rcx, qword [rbx + 0x110]
mov edx, eax
call fcn.1400085e0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
add rsp, 0x250
pop rbx
ret

Function at 0x1400117d8
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x1a0
mov rbx, rcx
call fcn.140011ff4
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x90], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x90]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
and qword [rsp + 0x40], 0
lea rax, str.RunAs
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x38], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x140011877
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.USER32.dll_DestroyWindow]
add rsp, 0x1a0
pop rbx
ret
Function at 0x140011880
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x420
mov rdi, rcx
lea rbp, [0x140020db0]
or r8d, 0xffffffff
mov rdx, rbp
add rcx, 0x5a0
call fcn.140009328
mov rdx, qword [rdi + 0x588]
mov r8d, 0x9c6c
mov rcx, rdi
call fcn.140011330
cmp dword [rdi + 0x5b0], 0
je 0x1400118da
mov eax, dword [rdi + 0x5ac]
jmp 0x1400118ef
mov rcx, qword [rdi + 0x5a0]
test rcx, rcx
je 0x1400118ed
call sub.msvcrt.dll_strlen
jmp 0x1400118ef
xor eax, eax
test eax, eax
jle 0x1400119da
lea rcx, str.NirSoft_IPNetInfo
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
mov rsi, rax
jne 0x140011976
cmp byte [rdi + 0x25d], al
je 0x1400119da
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x20], al
call sub.msvcrt.dll_memset
lea r8, [rdi + 0x25d]
lea rdx, str.__s___nodlgstart
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_sprintf
lea edx, [rsi + 5]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [rsi + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.NirSoft_IPNetInfo
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
mov rsi, rax
je 0x1400119da
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor r8d, r8d
mov edx, 0x500
mov r9d, eax
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageA]
cmp qword [rdi + 0x5a0], 0
cmovne rbp, qword [rdi + 0x5a0]
cmp dword [rdi + 0x5b0], 0
je 0x1400119b1
mov eax, dword [rdi + 0x5ac]
jmp 0x1400119c6
mov rcx, qword [rdi + 0x5a0]
test rcx, rcx
je 0x1400119c4
call sub.msvcrt.dll_strlen
jmp 0x1400119c6
xor eax, eax
movsxd r8, eax
mov r9, rbp
mov edx, 0x501
mov rcx, rsi
call qword [sym.imp.USER32.dll_SendMessageA]
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140011db0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x90
mov rdi, rcx
mov rcx, qword [rcx + 0x588]
lea rdx, [rax + 8]
call fcn.14000b318
test eax, eax
je 0x140011e64
mov rax, qword [rsp + 0xa0]
movsxd rbx, dword [rax + 0x1e4]
imul rbx, rbx, 0x514
add rbx, qword [0x140026560]
cmp byte [rbx], 0
je 0x140011e64
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
mov rax, qword [rdi + 0x110]
and qword [rsp + 0x48], 0
and qword [rsp + 0x58], 0
mov qword [rsp + 0x28], rax
lea rax, str.properties
mov qword [rsp + 0x30], rax
lea rax, [0x140020db0]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x24], InitCommonControls
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret
Function at 0x140011e78
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x588]
lea rdx, [rax + 8]
call fcn.14000b318
test eax, eax
je 0x140011f43
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xfe
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x130]
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
mov edx, 8
call qword [rax]
mov rcx, qword [rbx + 0x110]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140011f43
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strlen
mov ecx, 0x2000
add eax, 1
movsxd rdi, eax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x140011f3d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret
Function at 0x140011ff4
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x588]
mov rdx, qword [rcx + 0x580]
mov rbx, rcx
mov eax, dword [rax + 0x1d0]
mov dword [rdx + 0x2c], eax
mov rdx, qword [rbx + 0x580]
mov rcx, qword [rcx + 0x110]
mov dword [rdx], 0x2c
call qword [sym.imp.USER32.dll_GetWindowPlacement]
mov rcx, qword [rbx + 0x580]
mov rcx, qword [rcx + 0x30]
call fcn.14000ac94
mov rcx, qword [rbx + 0x620]
lea rdx, str._cfg
call fcn.1400096ac
lea rsi, [0x140020db0]
test eax, eax
js 0x140012093
mov rdx, qword [rbx + 0x620]
add eax, 1
cmp eax, dword [rdx + 0x48]
jge 0x14001208e
test eax, eax
js 0x140012093
cmp eax, dword [rdx + 0x28]
jge 0x140012093
movsxd rcx, eax
mov rax, qword [rdx + 0x10]
mov r8d, dword [rax + rcx*4]
add r8, qword [rdx + 0x18]
jmp 0x140012096
mov r8, rsi
jmp 0x140012096
xor r8d, r8d
mov rcx, qword [rbx + 0x580]
mov edx, 1
call fcn.14000199c
mov rax, qword [rbx + 0x580]
cmp dword [rax + 0x68], 0
je 0x1400121a1
mov rax, qword [rbx + 0x588]
cmp dword [rax + 0x288], 0
je 0x1400120d0
mov eax, dword [rax + 0x284]
jmp 0x1400120e5
mov rcx, qword [rax + 0x278]
test rcx, rcx
je 0x1400120e3
call sub.msvcrt.dll_strlen
jmp 0x1400120e5
xor eax, eax
test eax, eax
lea rcx, [rbx + 0x158]
jle 0x140012189
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov rdi, qword [rbx + 0x588]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400121a1
cmp dword [rdi + 0x288], 0
je 0x14001213a
mov eax, dword [rdi + 0x284]
jmp 0x14001214f
mov rcx, qword [rdi + 0x278]
test rcx, rcx
je 0x14001214d
call sub.msvcrt.dll_strlen
jmp 0x14001214f
xor eax, eax
cmp qword [rdi + 0x278], 0
lea r9, [rsp + 0x50]
mov r8d, eax
cmovne rsi, qword [rdi + 0x278]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400121a1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400121a1
lea rcx, [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140013ec8
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x210
xor ebx, ebx
lea rax, [0x1400218b8]
mov rdi, rcx
mov qword [rcx], rax
mov dword [rcx + 0x148], ebx
mov qword [rcx + 0x578], rbx
mov dword [rcx + 0x5b0], ebx
mov qword [rcx + 0x5a0], rbx
mov dword [rcx + 0x5a8], ebx
mov dword [rcx + 0x5b4], 0x100
mov dword [rcx + 0x5ac], ebx
mov qword [rcx + 0x5c0], rbx
mov dword [rcx + 0x5c8], ebx
mov dword [rcx + 0x5d0], ebx
lea rax, [0x140023198]
mov qword [rcx + 0x5b8], rax
mov qword [rcx + 0x610], rbx
lea rdx, [rsp + 0x70]
mov cx, 0x101
call sub.WS2_32.dll_WSAStartup
mov ecx, 0xa30
mov dword [rdi + 0x590], ebx
mov byte [rdi + 0x25d], bl
mov dword [rdi + 0x608], ebx
mov dword [rdi + 0x5f0], ebx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp rax, rbx
je 0x140013f7b
mov rcx, rax
call fcn.1400013b8
jmp 0x140013f7e
mov rax, rbx
mov qword [rdi + 0x580], rax
mov dword [rdi + 0x368], ebx
mov dword [rdi + 0x364], ebx
mov qword [rdi + 0x150], rbx
mov rcx, qword [rdi + 0x578]
cmp rcx, rbx
je 0x140013fb1
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rdi + 0x578], rbx
mov r9d, 1
lea rdx, str.Arial
lea rcx, [rsp + 0x30]
lea r8d, [r9 + 0xd]
mov dword [rsp + 0x20], ebx
call fcn.140008a6c
lea rcx, [rsp + 0x30]
call qword [sym.imp.GDI32.dll_CreateFontIndirectA]
lea rdx, [rdi + 0x471]
lea rcx, [0x1400217b0]
mov qword [rdi + 0x578], rax
call section..text
lea rcx, [rdi + 0x158]
call fcn.140008a24
lea rdx, str.cports_filter.txt
lea rcx, [rdi + 0x158]
mov r8d, 0x104
call fcn.140008fc8
mov rcx, qword [0x1400267c8]
mov edx, reloc.WS2_32.dll_WSAAsyncSelect
call qword [sym.imp.USER32.dll_LoadIconA]
lea rcx, [rdi + 8]
lea rdx, [0x140020958]
mov rbx, rax
call fcn.14001eea4
mov qword [rdi + 0x108], rbx
mov rbx, qword [rsp + 0x220]
mov rax, rdi
add rsp, 0x210
pop rdi
ret
Function at 0x140014e2c
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x350
mov rsi, rcx
mov r12d, 0x104
lea rcx, [rax - 0x227]
xor edi, edi
xor edx, edx
mov r8, r12
mov byte [rax - 0x228], dil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x21]
mov r8, r12
xor edx, edx
mov byte [rsp + 0x20], dil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x241]
mov r8, r12
xor edx, edx
mov byte [rsp + 0x240], dil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x130]
call fcn.140008a24
lea rcx, str.GeoLiteCity.dat
call sub.msvcrt.dll_strlen
lea rcx, [rsp + 0x130]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r12
jae 0x140014ee7
lea r8, [rsp + 0x20]
lea rdx, str.GeoLiteCity.dat
lea rcx, [rsp + 0x130]
call fcn.140008b18
jmp 0x140014eec
mov byte [rsp + 0x20], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp eax, ebp
je 0x140014f12
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140015050
mov edi, eax
jmp 0x14001502d
lea rcx, str.GeoLiteCity.dat.gz
call sub.msvcrt.dll_strlen
lea rcx, [rsp + 0x130]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r12
jae 0x140014f53
lea r8, [rsp + 0x20]
lea rdx, str.GeoLiteCity.dat.gz
lea rcx, [rsp + 0x130]
call fcn.140008b18
jmp 0x140014f58
mov byte [rsp + 0x20], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x14001502d
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140014d88
movsxd rbp, eax
cmp ebp, edi
jbe 0x14001502d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
mov r8d, r12d
call fcn.1400088c8
lea rdx, [0x140022880]
lea rcx, [rsp + 0x240]
or r8d, 0xffffffff
call fcn.1400197c0
cmp rax, rdi
mov rbx, rax
je 0x14001502d
mov rcx, qword [rsi + 8]
cmp rcx, rdi
je 0x140014fcd
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 8], rdi
mov dword [rsi + 0x10], edi
mov rcx, rbp
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r8d, ebp
mov rcx, rbx
mov rdx, rax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], ebp
call fcn.140019ce8
cmp eax, ebp
jne 0x14001501c
mov eax, dword [rsi + 0x10]
sub eax, 3
movsxd rcx, eax
add rcx, qword [rsi + 8]
movzx edx, byte [rcx + 2]
movzx eax, byte [rcx + 1]
shl eax, 8
shl edx, 0x10
add edx, eax
movzx eax, byte [rcx]
add edx, eax
mov eax, 1
mov dword [rsi], eax
mov edi, eax
mov dword [rsi + 0x1c], edx
cmp byte [rbx + 0x94], 0x77
je 0x14001502d
mov rcx, rbx
call fcn.140019c0c
lea r11, [rsp + 0x350]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140015050
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
xor edx, edx
mov rcx, rax
xor esi, esi
call fcn.14000853c
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140015110
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 8]
test rcx, rcx
movsxd rsi, eax
je 0x1400150a3
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
mov rcx, rsi
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, esi
mov rcx, rdi
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov esi, eax
je 0x140015107
mov ecx, dword [rbx + 0x10]
sub ecx, 3
movsxd rdx, ecx
add rdx, qword [rbx + 8]
movzx r8d, byte [rdx + 2]
movzx ecx, byte [rdx + 1]
movzx eax, byte [rdx]
shl r8d, 0x10
shl ecx, 8
mov dword [rbx], 1
add r8d, ecx
add r8d, eax
mov dword [rbx + 0x1c], r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140015778
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
call fcn.14001562c
test eax, eax
movsxd r9, eax
js 0x1400157ea
mov rbx, r9
lea rax, [rsp + 0x50]
lea r8, [0x1400156ac]
mov qword [rsp + 0x28], rax
shl rbx, 5
xor edx, edx
add rbx, qword [0x140029ca8]
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400157ea
mov qword [rbx], rax
mov ecx, dword [rsi + 8]
mov dword [rbx + 0x10], edi
mov dword [rbx + 8], ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x1400157ec
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400157fc
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
call fcn.14001562c
test eax, eax
js 0x14001587b
movsxd r9, eax
lea rax, [rsp + 0x50]
lea r8, [0x1400156ac]
mov rbx, r9
mov qword [rsp + 0x28], rax
xor edx, edx
shl rbx, 5
xor ecx, ecx
mov dword [rsp + 0x20], 4
add rbx, qword [0x140029ca8]
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14001587b
mov qword [rbx], rax
mov ecx, dword [rsi + 8]
mov word [rbx + 0xc], 0x17
mov dword [rbx + 8], ecx
mov rcx, rax
movdqu xmm0, xmmword [rdi]
movdqu xmmword [rbx + 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x14001587d
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret