joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009274
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
push r13
push r15
sub rsp, 0x870
mov rbp, rcx
mov r12, r8
mov rdi, rdx
mov r15d, 0x104
lea rcx, [rsp + 0x21]
xor esi, esi
xor edx, edx
mov r8, r15
mov r13, r9
mov byte [rsp + 0x20], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x131]
mov r8, r15
xor edx, edx
mov byte [rsp + 0x130], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x241]
mov r8, r15
xor edx, edx
mov byte [rsp + 0x240], sil
call sub.msvcrt.dll_memset
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rcx, r12
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x14000931f
lea r8, [rsp + 0x20]
mov rdx, r12
mov rcx, rdi
call fcn.14000b9b8
jmp 0x140009324
mov byte [rsp + 0x20], sil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or r12d, 0xffffffff
cmp eax, r12d
jne 0x1400093c4
or qword [rsp + 0x350], 0xffffffffffffffff
lea rax, [rsp + 0x358]
lea rcx, [rsp + 0x350]
mov r8, rdi
mov rdx, r13
mov qword [rsp + 0x4a0], rax
mov byte [rsp + 0x358], sil
mov byte [rsp + 0x72c], sil
mov byte [rsp + 0x5e8], sil
call fcn.14000cfd8
lea rcx, [rsp + 0x350]
call fcn.14000d070
test eax, eax
je 0x1400093b0
test byte [rsp + 0x4a8], 0x10
jne 0x140009380
lea rdx, [rsp + 0x5e8]
lea rcx, [rsp + 0x20]
mov r8d, r15d
call fcn.14000b768
mov rcx, qword [rsp + 0x350]
cmp rcx, 0xffffffffffffffff
je 0x1400093c4
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400086b4
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x8b0]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x14000940d
mov rdx, qword [rsp + 0x8b0]
lea r8, [rsp + 0x130]
mov rcx, rdi
call fcn.14000b9b8
jmp 0x140009415
mov byte [rsp + 0x130], sil
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r13d, 1
cmp eax, r12d
je 0x140009451
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, r12d
je 0x140009451
lea rdx, [rsp + 0x130]
mov rcx, rbp
call fcn.140008c80
mov esi, r13d
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rcx, qword [rsp + 0x8b8]
mov rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax + 1]
cmp rcx, r15
jae 0x14000948d
mov rdx, qword [rsp + 0x8b8]
lea r8, [rsp + 0x240]
mov rcx, rdi
call fcn.14000b9b8
jmp 0x140009495
mov byte [rsp + 0x240], 0
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, r12d
je 0x1400094cb
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, r12d
je 0x1400094cb
lea rdx, [rsp + 0x240]
mov rcx, rbp
call fcn.140008ac0
mov esi, r13d
lea r11, [rsp + 0x870]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret
Function at 0x1400094f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0x240
cmp dword [rcx + 0x13c], 0
mov rdi, rcx
je 0x140009519
mov eax, 1
jmp 0x14000963a
mov r12d, 0x104
lea rcx, [rsp + 0x131]
xor edx, edx
mov r8, r12
mov byte [rsp + 0x130], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x130]
call fcn.14000b8c4
lea rcx, [rsp + 0x21]
mov r8, r12
xor edx, edx
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
lea rcx, str.GeoLite2_ASN_Blocks_IPv4.csv
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 0x14000959b
lea r8, [rsp + 0x20]
lea rdx, str.GeoLite2_ASN_Blocks_IPv4.csv
lea rcx, [rsp + 0x130]
call fcn.14000b9b8
jmp 0x1400095a0
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400095c7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14000905c
mov dword [rdi + 0x13c], 1
lea rcx, str.GeoLite2_ASN_Blocks_IPv6.csv
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 0x140009608
lea r8, [rsp + 0x20]
lea rdx, str.GeoLite2_ASN_Blocks_IPv6.csv
lea rcx, [rsp + 0x130]
call fcn.14000b9b8
jmp 0x14000960d
mov byte [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140009634
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140008e48
mov dword [rdi + 0x13c], 1
mov eax, dword [rdi + 0x13c]
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret

Function at 0x14000b40c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c370
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, rdx
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x24]
call sub.msvcrt.dll_memset
lea rax, str.RunAs
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSASetLastError
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x14000c55c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x420
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
cmp byte [0x140032540], 0
jne 0x14000c5a0
lea rcx, [0x140032540]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x140032648], eax
lea rdx, [0x140032540]
lea rcx, [rsp + 0x20]
call fcn.1400263b4
lea rcx, [rsp + 0x20]
call fcn.14000b44c
lea rcx, [rsp + 0x20]
mov rdx, rbx
call sub.msvcrt.dll_strcat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14000c5e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
add rsp, 0x420
pop rbx
ret

Function at 0x14000cb7c
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
call fcn.14000b3ac
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14000cc1e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx]
test rcx, rcx
mov esi, eax
je 0x14000cbc2
call sub.msvcrt.dll_free
and qword [rbx], 0
mov eax, dword [rbx + 0x14]
and dword [rbx + 0xc], 0
lea r8, [rbx + 8]
and dword [r8], 0
mov r9d, 1
mov edx, esi
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.14000b7b8
mov rdx, qword [rbx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx]
mov byte [rsi + rcx], 0
mov rcx, rdi
mov dword [rbx + 0xc], esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x14000cc20
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d070
Capabilities:
Enumerate files on windows

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, 0x20
or rsi, 0xffffffffffffffff
mov rbx, rcx
cmp qword [rcx], rsi
jne 0x14000d0e0
lea rax, [rcx + 8]
lea rdx, [rcx + 8]
mov cl, byte [rcx + 8]
jmp 0x14000d0b6
cmp cl, 0x5c
je 0x14000d0ac
cmp cl, 0x2f
jne 0x14000d0b0
lea rdx, [rax + 1]
add rax, 1
mov cl, byte [rax]
test cl, cl
jne 0x14000d0a2
mov qword [rbx + 0x150], rdx
lea rcx, [rbx + 8]
lea rdx, [rbx + 0x158]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edi, edi
cmp rax, rsi
mov qword [rbx], rax
setne dil
jmp 0x14000d107
lea rdx, [rcx + 0x158]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov edi, eax
jne 0x14000d10b
cmp qword [rbx], rsi
je 0x14000d107
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx], rsi
test edi, edi
je 0x14000d154
lea r12, [rbx + 0x3dc]
lea rsi, [rbx + 0x298]
lea rbp, [rbx + 0x184]
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, rbp
mov rbx, rax
call sub.msvcrt.dll_strlen
lea r9, [rbx + rax + 1]
cmp r9, 0x143
jae 0x14000d151
mov r8, rsi
mov rdx, rbp
mov rcx, r12
call fcn.14000b9b8
jmp 0x14000d154
mov byte [rsi], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14000d464
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 rsi, rcx
xor edx, edx
mov rcx, rax
call fcn.14000b3ac
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14000d4f2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rsi
mov ebx, eax
lea edx, [rbx + 0xa]
call fcn.14000cf94
mov rdx, qword [rsi]
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsi]
mov byte [rbx + rcx], 0
mov rax, qword [rsi]
lea ecx, [rbx + 1]
mov byte [rcx + rax], 0
mov rax, qword [rsi]
lea ecx, [rbx + 2]
mov byte [rcx + rax], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rsi + 0x10], 0
mov eax, 1
jmp 0x14000d4f4
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ec98
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.14000b3ac
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x14000ed53
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov ebp, eax
jbe 0x14000ed4a
cmp qword [rdi], rbx
je 0x14000ecec
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 0x14000ecfe
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.14000e99c
cmp qword [rdi], rbx
je 0x14000ed45
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 0x14000f43c
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [0x140031cd0]
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, [0x140027eb8]
lea rcx, [0x140031de0]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000f47c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1040
call fcn.1400267b0
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, [0x140031cd0]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea r8, [0x140027eb8]
lea rcx, [0x140031de0]
mov rdx, rbx
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [rsp + 0x30], 0
je 0x14000f4f5
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400263b4
mov eax, 1
jmp 0x14000f4f7
xor eax, eax
mov rbx, qword [rsp + 0x1050]
add rsp, 0x1040
pop rdi
ret
Function at 0x14000f508
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
mov eax, 0x1040
call fcn.1400267b0
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, [0x140031cd0]
lea r9, [rsp + 0x30]
lea r8, [0x140027eb8]
lea rcx, [0x140031de0]
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 0x14000f58a
lea rcx, [0x140031de0]
mov r9, rbp
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x14000f58c
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 0x14000f920
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 0x14000f968
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 0x14000fa25
lea rdx, [rsp + 0x20]
lea rcx, [0x140031cd0]
call fcn.1400263b4
lea rdx, str.general
lea rcx, [0x140031de0]
call fcn.1400263b4
lea r9, [0x140031cd0]
lea rdx, [0x140029704]
lea rcx, [0x140031de0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea rdx, [0x140031e30]
lea rcx, str.charset
cmp eax, 1
sete bl
mov dword [0x140031c1c], ebx
mov ebx, 0x3f
mov r8d, ebx
call fcn.14000f43c
lea rdx, [0x140031e70]
lea rcx, str.TranslatorName
mov r8d, ebx
call fcn.14000f43c
lea rdx, [0x140031eb0]
lea rcx, str.TranslatorURL
mov r8d, 0xff
call fcn.14000f43c
add rsp, 0x130
pop rbx
ret
Function at 0x140013e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rdi, rcx
mov rcx, qword [rcx + 0x658]
lea rdx, str._cfg
call fcn.14000cdb8
xor ebx, ebx
cmp eax, ebx
jl 0x140013ec5
mov rdx, qword [rdi + 0x658]
add eax, 1
cmp eax, dword [rdx + 0x48]
jge 0x140013ebc
cmp eax, ebx
jl 0x140013eb7
cmp eax, dword [rdx + 0x28]
jge 0x140013eb7
movsxd rcx, eax
mov rax, qword [rdx + 0x10]
mov r8d, dword [rax + rcx*4]
add r8, qword [rdx + 0x18]
jmp 0x140013ec8
mov r8, rbx
jmp 0x140013ec8
lea r8, [0x140027eb8]
jmp 0x140013ec8
xor r8d, r8d
mov rcx, qword [rdi + 0x580]
xor edx, edx
call fcn.140001a74
mov rax, qword [rdi + 0x580]
mov rcx, qword [rax + 0x30]
cmp rcx, rbx
je 0x140013f03
mov rax, qword [rcx]
cmp word [rax + 2], bx
jne 0x140013ef5
cmp word [rax + 6], bx
je 0x140013f03
mov rax, qword [rdi + 0x588]
mov qword [rax + 0x220], rcx
mov rax, qword [rdi + 0x580]
cmp dword [rax + 0x68], ebx
je 0x140013f4a
lea rcx, [rdi + 0x158]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140013f4a
mov rcx, qword [rdi + 0x588]
lea rdx, [rdi + 0x158]
xor r8d, r8d
add rcx, 0xb38
call fcn.14000cb7c
mov rcx, qword [rdi + 0x588]
call fcn.1400076f4
lea rcx, [0x1400320a0]
call fcn.14000e374
cmp dword [0x1400321b8], ebx
jg 0x140013ff0
cmp dword [0x1400321d0], ebx
jg 0x140013ff0
cmp dword [0x1400321e8], ebx
jg 0x140013ff0
lea rcx, [0x14002e830]
xor edx, edx
call fcn.1400094f0
lea rcx, [0x14002e830]
xor edx, edx
call fcn.140009650
lea rcx, [0x14002ea80]
call fcn.14001b5a8
cmp eax, ebx
jne 0x140013ff0
mov esi, 0x104
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8, rsi
mov byte [rsp + 0x40], bl
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
call fcn.14000b8c4
lea rdx, str.IpToCountry.csv
lea rcx, [rsp + 0x40]
mov r8d, esi
call fcn.14000c0f0
mov rcx, qword [rdi + 0x588]
lea rdx, [rsp + 0x40]
add rcx, 0xb68
call fcn.14000ec98
mov rcx, qword [rdi + 0x580]
lea rax, [0x140029100]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 0x658]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
call fcn.1400014d0
mov rcx, qword [rdi + 0x658]
lea rdx, str._CaptureTime
call fcn.14000cdb8
cmp eax, ebx
jl 0x14001407c
mov rdx, qword [rdi + 0x658]
add eax, 1
cmp eax, dword [rdx + 0x48]
jge 0x140014060
cmp eax, ebx
jl 0x140014067
cmp eax, dword [rdx + 0x28]
jge 0x140014067
movsxd rcx, eax
mov rax, qword [rdx + 0x10]
mov ebx, dword [rax + rcx*4]
add rbx, qword [rdx + 0x18]
jmp 0x140014067
lea rbx, [0x140027eb8]
mov rcx, rbx
call sub.msvcrt.dll_atoi
mov rcx, qword [rdi + 0x580]
mov dword [rcx + 0xe8], eax
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140014e5c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rdi, rdx
mov byte [rdx + 3], 0
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140014f5b
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x140014f5b
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jb 0x140014f5b
mov eax, dword [0x1400327e8]
add eax, 1
mov dword [0x1400327e8], eax
cdqe
cmp byte [rax + rdi], 0
jne 0x140014f62
mov rax, qword [rbx + 0x580]
and dword [0x1400327e8], 0
cmp dword [rax + 0xe0], 0
jne 0x140014ef3
mov dword [rax + 0xe0], 0x7d0
xor r9d, r9d
jmp 0x140014f08
and dword [rax + 0xe0], 0
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSysColor]
mov r9d, eax
mov rcx, qword [rbx + 0x588]
xor r8d, r8d
mov edx, 0x1001
mov rcx, qword [rcx + 0x1e8]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rbx + 0x588]
mov r8d, 1
mov rcx, qword [rcx + 0x1e8]
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0x588]
xor r8d, r8d
mov rcx, qword [rcx + 0x1e8]
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x140014f62
and dword [0x1400327e8], 0
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a504
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
lea rax, [0x140029c30]
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, [0x14002a618]
mov qword [rcx + 0x5b8], rax
mov qword [rcx + 0x610], rbx
lea rdx, [rsp + 0x20]
mov cx, 0x101
call sub.WS2_32.dll_WSAStartup
mov ecx, 0xa50
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 0x14001a5b7
mov rcx, rax
call fcn.140001414
jmp 0x14001a5ba
mov rax, rbx
xor edx, edx
lea rcx, [rdi + 0x618]
mov qword [rdi + 0x580], rax
lea r8d, [rdx + 0x2c]
mov dword [rdi + 0x368], ebx
mov dword [rdi + 0x364], ebx
mov qword [rdi + 0x150], rbx
call sub.msvcrt.dll_memset
lea rdx, [rdi + 0x471]
lea rcx, [0x14002e0d0]
call section..text
lea rcx, [rdi + 0x158]
call fcn.14000b8c4
lea rdx, str.cports_filter.txt
lea rcx, [rdi + 0x158]
mov r8d, 0x104
call fcn.14000c0f0
mov rcx, qword [0x14002eb58]
mov edx, reloc.WS2_32.dll_WSAAsyncSelect
call qword [sym.imp.USER32.dll_LoadIconA]
lea rcx, [rdi + 8]
lea rdx, [0x140027a08]
mov rbx, rax
call fcn.1400263b4
mov qword [rdi + 0x108], rbx
mov rbx, qword [rsp + 0x1d0]
mov rax, rdi
add rsp, 0x1c0
pop rdi
ret
Function at 0x14001b5a8
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.14000b8c4
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 0x14001b663
lea r8, [rsp + 0x20]
lea rdx, str.GeoLiteCity.dat
lea rcx, [rsp + 0x130]
call fcn.14000b9b8
jmp 0x14001b668
mov byte [rsp + 0x20], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp eax, ebp
je 0x14001b68e
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b7b0
mov edi, eax
jmp 0x14001b790
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 0x14001b6cf
lea r8, [rsp + 0x20]
lea rdx, str.GeoLiteCity.dat.gz
lea rcx, [rsp + 0x130]
call fcn.14000b9b8
jmp 0x14001b6d4
mov byte [rsp + 0x20], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x14001b790
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b504
cmp eax, edi
mov ebp, eax
jbe 0x14001b790
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x240]
mov r8d, r12d
call fcn.14000b768
lea rdx, [0x140029c64]
lea rcx, [rsp + 0x240]
or r8d, 0xffffffff
call fcn.140020ccc
cmp rax, rdi
mov rbx, rax
je 0x14001b790
lea rcx, [rsi + 8]
mov edx, ebp
call fcn.14000cf94
mov rdx, qword [rsi + 8]
mov r8d, ebp
mov rcx, rbx
call fcn.1400211f4
cmp eax, ebp
jne 0x14001b77f
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 0x14001b790
mov rcx, rbx
call fcn.140021118
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