joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406109d0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140610b78
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140610a35
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140610a35
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140610a35
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140610a6c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140610ac2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140610ac2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140610ac2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140610ac2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140610ac2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140610480
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140610b24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1405ecc00
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140610850
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140610b70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1405ecc00
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1406122e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14069d080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140612375
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1406123d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1405ecc00
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140625ec0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140612491
sub ecx, 1
je 0x140612504
sub ecx, 1
je 0x140612440
cmp ecx, 1
je 0x140612423
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14068bd7c]
call fcn.1405ecc00
jmp 0x140612504
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140612010
test eax, eax
je 0x140612504
jmp 0x1406123aa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140612504
sub rax, rsi
cmp rax, rbp
jae 0x140612504
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1405ecd80
jmp 0x140612504
cmp r8d, 4
jle 0x140612504
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140612504
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1405ecb20
mov esi, eax
test eax, eax
je 0x1406124e3
mov edx, 5
mov rcx, rbx
call fcn.140612fd0
mov eax, esi
jmp 0x1406123aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1405fb400
mov rcx, r14
call fcn.1405fb6e0
test eax, eax
je 0x1406123a8
mov edx, 5
mov rcx, rbx
call fcn.140612fd0
mov eax, Ordinal_45
jmp 0x1406123aa
Function at 0x1406252a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1406252e2
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 0x140625329
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 0x140625382
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 0x140625340
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1406253c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1406396a2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1406396a3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140625390
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 0x1406253e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140625464
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140625464
dec r8
sub rdx, 1
jne 0x14062544a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140625afc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1406254f4
mov ebx, eax
test eax, eax
jne 0x140625b2c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140625b8f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140625b86
test al, 0x10
je 0x140625b86
bt eax, 0xa
jae 0x140625b7f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140625ba0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140625b7b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140625b7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140625b86
and dword [rsp + 0x3c], 0
jmp 0x140625b8b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140626fb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140626ffe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140626ffe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140626ffe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140626ffe
cmp dword [rcx + 0x84], 0xe
jbe 0x140626ffe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140627000
xor al, al
add rsp, 0x28
ret
Function at 0x140001060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rcx, [0x14006a738]
call fcn.140001d70
lea rcx, [rsp + 0x40]
call fcn.140001200
nop
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax - 0x10]
or rbx, 0xffffffffffffffff
test r8d, r8d
je 0x1400011c5
lea rdx, [rax - 0x18]
mov rcx, qword [0x14006a738]
lea rdi, [rcx - 0x18]
cmp rdx, rdi
je 0x140001113
cmp dword [rdi + 0x10], 0
jl 0x1400010fd
mov rcx, qword [rdi]
cmp qword [rdx], rcx
jne 0x1400010fd
mov rcx, rdx
call fcn.140001b20
mov rsi, rax
mov ecx, ebx
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400010f0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsi + 0x18]
mov qword [0x14006a738], rcx
jmp 0x140001113
mov rdx, rax
lea rcx, [0x14006a738]
call fcn.140001f50
mov rcx, qword [0x14006a738]
mov edx, dword [rcx - 0x10]
lea eax, [rdx - 1]
test eax, eax
js 0x1400011ba
cmp eax, edx
jg 0x1400011ba
cdqe
cmp word [rcx + rax*2], 0x5c
je 0x14000115b
xor eax, eax
mov rcx, rbx
lea rdi, [0x140057ea0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140057ea0]
lea rcx, [0x14006a738]
call fcn.140001910
xor eax, eax
mov rcx, rbx
lea rdi, str.LIB.log
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.LIB.log
lea rcx, [0x14006a738]
call fcn.140001910
mov rcx, qword [0x14006a738]
cmp dword [rcx - 0x10], 0
je 0x1400011a7
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400011a7
test al, 0x10
jne 0x1400011a7
mov rax, qword [rsp + 0x40]
jmp 0x1400011c5
lea rcx, [0x14006a738]
call fcn.140001d70
mov rax, qword [rsp + 0x40]
jmp 0x1400011c5
mov ecx, 0x80070057
call fcn.140002150
nop
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400011dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [0x14006a738]
cmp dword [rcx - 0x10], eax
setne al
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001200
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x48], edi
call fcn.140009b20
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140001244
mov ecx, 0x80004005
call fcn.140002150
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x48], 1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rdi, rax
test rax, rax
je 0x140001336
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140001336
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapSize]
mov r8, rax
xor edx, edx
mov rcx, rsi
call fcn.140034670
mov r9d, 1
lea r8d, [r9 + 0x22]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x1400012ff
mov edx, 0x105
mov rcx, rdx
mov rax, rsi
cmp word [rax], 0
je 0x1400012da
add rax, 2
sub rcx, 1
jne 0x1400012c8
jmp 0x1400012e4
test rcx, rcx
je 0x1400012e4
cmp rdx, rcx
jne 0x1400012ff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140001336
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001336
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.140001f50
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140001336
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
je 0x140001365
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.EPSONSoftwareUpdater
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.EPSONSoftwareUpdater
mov rcx, rbx
call fcn.140001910
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001bb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001be3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001c27
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001c22
cmp rbx, r11
jae 0x140001c27
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001c10
cmp rbx, r11
jb 0x140001c2b
xor eax, eax
jmp 0x140001c37
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400026c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rdi, rax
test rax, rax
je 0x14000270e
xor edx, edx
mov r8d, 0x82
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000270e
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapSize]
xor edx, edx
mov rcx, rbx
mov r8, rax
call fcn.140034670
test rbx, rbx
je 0x14000278b
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test eax, eax
jne 0x14000274d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140002740
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0x40
jb 0x14000278b
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.140003c20
mov rbx, rax
test rax, rax
je 0x14000278e
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000278b
mov rcx, rbx
call fcn.140003ca0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003210
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140003232
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rdx, str.EBInitialize
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x80], rax
test rax, rax
je 0x140003225
lea rdx, str.EBRelease
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x140003225
lea rdx, str.EBGetDeviceID
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x90], rax
test rax, rax
je 0x140003225
lea rdx, str.EBGetAvailableChannel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x98], rax
test rax, rax
je 0x140003225
lea rdx, str.EBOpenChannel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x140003225
lea rdx, str.EBCloseChannel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xa8], rax
test rax, rax
je 0x140003225
lea rdx, str.EBSend
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xb0], rax
test rax, rax
je 0x140003225
lea rdx, str.EBReceive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xb8], rax
test rax, rax
je 0x140003225
lea rdx, str.EBGetStatus
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xc0], rax
test rax, rax
je 0x140003225
lea rdx, str.EBReceiveCancel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
xor ecx, ecx
test rax, rax
mov qword [rdi + 0xc8], rax
setne cl
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x140007810
Capabilities:
Read .ini file

Disassembly:
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rsi
mov r13, r9
mov r14, r8
mov rbp, rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call fcn.140009b20
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14000786a
mov ecx, 0x80004005
call fcn.140002150
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
or rsi, 0xffffffffffffffff
cmp dword [rdx + 8], 0
je 0x1400078d6
cmp dword [rdx + 0x10], 0
jge 0x1400078ae
cmp dword [rbx - 0xc], 0
jge 0x1400078a4
mov ecx, 0x80070057
call fcn.140002150
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x1400078d6
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400078c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov r12, qword [rsp + 0x90]
test r12, r12
je 0x1400079a3
xor eax, eax
mov rcx, rsi
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1400079a3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140007927
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140001ef0
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
mov r9, rbx
lea r8, [0x1400580b8]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140032174
test eax, eax
js 0x140007998
cmp eax, dword [rbx - 0xc]
jg 0x140007998
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
lea rcx, [rbx - 0x18]
call fcn.140001b20
add rax, 0x18
mov qword [rbp], rax
lock xadd dword [rbx - 8], esi
dec esi
test esi, esi
jg 0x140007993
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
jmp 0x1400079d0
mov ecx, 0x80070057
call fcn.140002150
int3
lea rcx, [rbx - 0x18]
call fcn.140001b20
add rax, 0x18
mov qword [rbp], rax
lock xadd dword [rbx - 8], esi
dec esi
test esi, esi
jg 0x1400079cd
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000be90
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x140068cf8]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov eax, r8d
mov rsi, rdx
mov rbx, rcx
cmp r8d, 0x800
jne 0x14000bf02
lea r8, [0x14004f758]
lea rcx, [rsp + 0xa0]
mov edx, 4
call fcn.140033d38
test eax, eax
je 0x14000bf24
cmp eax, 0xc
je 0x14000befc
cmp eax, 0x16
je 0x14000bef6
cmp eax, 0x22
je 0x14000bef6
cmp eax, 0x50
je 0x14000bf24
call fcn.14000a1f4
int3
call fcn.14000a1f4
int3
call fcn.14000a1ac
int3
mov r9d, 4
lea r8, [rsp + 0xa0]
mov ecx, eax
lea edx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14000c047
call fcn.140033ee0
mov edi, dword [rax]
call fcn.140033ee0
lea rcx, [rsp + 0xb0]
and dword [rax], 0
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov esi, 0x112
lea r8d, [rsi - 1]
mov rdx, rsi
call fcn.140033e74
mov ebx, eax
call fcn.140033ee0
cmp dword [rax], 0
je 0x14000bfac
call fcn.140033ee0
cmp dword [rax], 0
je 0x14000bfb3
cmp dword [rax], 0xc
je 0x14000bfa1
cmp dword [rax], 0x16
je 0x14000bf96
cmp dword [rax], 0x22
je 0x14000bf96
cmp dword [rax], 0x50
je 0x14000bfb3
mov ecx, 0x80004005
call fcn.140002150
int3
mov ecx, 0x80070057
call fcn.140002150
int3
mov ecx, 0x8007000e
call fcn.140002150
int3
call fcn.140033ee0
mov dword [rax], edi
cmp ebx, 0xffffffff
je 0x14000c047
cmp ebx, esi
jae 0x14000c047
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
mov rbx, rax
mov dword [rsp + 0x30], 0x70
call fcn.140034670
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c032
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c032
lea rcx, [rsp + 0x30]
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x20], rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call rax
mov rcx, rbx
test eax, eax
jne 0x14000c03a
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x14000c049
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140031950
add rsp, 0x2f0
pop rdi
pop rsi
pop rbx
ret