joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140346390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140346390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400023a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400023f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002400
add rdx, 0x28
cmp r9, rdx
jne 0x1400023e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140346390]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002432
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400024c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000249e
test ecx, ecx
jg 0x1400024b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
test al, 0x17
in eax, dx
jg 0x140020a05
mov bh, 0x1e
ror dh, 0xf2
xchg esi, eax
push 0x42693c2c
invalid
fsubrp st(2)
mov ebp, 0xaa2b8a42
mov edi, 0x82f54d7
invalid
Function at 0x1400011c0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor esi, esi
mov r8d, 0x104
lea rdx, [rbp - 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400013f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x140001230
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.140001cd0
nop
mov rdi, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
sub rax, rdi
cmp rax, 9
jb 0x140001296
lea rax, [rdi + 9]
mov qword [rbp - 0x80], rax
lea rbx, [rsp + 0x70]
cmp rcx, 7
cmova rbx, qword [rsp + 0x70]
lea rcx, [rbx + rdi*2]
mov r8d, 0x12
lea rdx, str.__service
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2 + 0x12], si
lea rax, [rsp + 0x70]
jmp 0x1400012ae
mov qword [rsp + 0x20], 9
mov edx, 9
lea rcx, [rsp + 0x70]
call fcn.140001e10
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14000131f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000131a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000131a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000212c
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400013ad
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova rcx, qword [rbp - 0x68]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, str.haunter_srvs
lea rdx, str.haunter
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x1400013a4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400013f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400013eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000212c
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140002000
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002a50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002a9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002a9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002a9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002a9a
cmp dword [rcx + 0x84], 0xe
jbe 0x140002a9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002a9c
xor al, al
add rsp, 0x28
ret
Function at 0x15f9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015f91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x15f9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15f906f
add dl, dl
jne 0x15f9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15f90f6
xor eax, eax
add dl, dl
jne 0x15f90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15f91ad
add dl, dl
jne 0x15f90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x15f90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x15f907e
mov eax, 1
add dl, dl
jne 0x15f9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15f9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15f90fb
sub eax, ebx
mov ebx, 1
jne 0x15f914c
mov ecx, 1
add dl, dl
jne 0x15f912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15f913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15f9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x15f907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x15f9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15f9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15f915d
cmp eax, 0x7d00
jae 0x15f919b
cmp eax, 0x500
jb 0x15f9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x15f907e
cmp eax, 0x7f
ja 0x15f919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x15f907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x15f91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x15f907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140025450
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
movzx ebx, cx
mov eax, ebx
cmp ebx, 0x11c
ja 0x14002552e
je 0x140025526
sub eax, 0x1d
cmp eax, 0x36
ja case.0x140025553.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x25624]
mov ecx, dword [rdx + rax*4 + 0x255d8]
add rcx, rdx
jmp rcx
mov al, 0xa0
add rsp, 0x20
pop rbx
ret
mov al, 0xa2
add rsp, 0x20
pop rbx
ret
mov al, 0xa4
add rsp, 0x20
pop rbx
ret
mov al, 0x6a
add rsp, 0x20
pop rbx
ret
mov al, 0x6d
add rsp, 0x20
pop rbx
ret
mov al, 0x6b
add rsp, 0x20
pop rbx
ret
mov al, 0x2e
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_ioctlsocket
add rsp, 0x20
pop rbx
ret
mov al, 0x2d
add rsp, 0x20
pop rbx
ret
mov al, 0x26
add rsp, 0x20
pop rbx
ret
mov al, 0x28
add rsp, 0x20
pop rbx
ret
mov al, 0x25
add rsp, 0x20
pop rbx
ret
mov al, 0x27
add rsp, 0x20
pop rbx
ret
mov al, 0x24
add rsp, 0x20
pop rbx
ret
mov al, reloc.OLEAUT32.dll_SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, 0x21
add rsp, 0x20
pop rbx
ret
mov al, SafeArrayAllocDescriptor
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_send
add rsp, 0x20
pop rbx
ret
mov al, 0xd
add rsp, 0x20
pop rbx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x140025553.286
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x25684]
mov ecx, dword [rdx + rax*4 + 0x2565c]
add rcx, rdx
jmp rcx
mov al, 0xa1
add rsp, 0x20
pop rbx
ret
mov al, 0xa3
add rsp, 0x20
pop rbx
ret
mov al, 0xa5
add rsp, 0x20
pop rbx
ret
mov al, 0x5b
add rsp, 0x20
pop rbx
ret
mov al, 0x5c
add rsp, 0x20
pop rbx
ret
mov al, 0x90
add rsp, 0x20
pop rbx
ret
mov al, reloc.WSOCK32.dll_WSAGetLastError
add rsp, 0x20
pop rbx
ret
mov al, 0x5d
add rsp, 0x20
pop rbx
ret
mov al, 0x2c
add rsp, 0x20
pop rbx
ret
bt bx, 8
jae 0x1400255bc
movzx ecx, bl
mov edx, 1
or ecx, 0xe000
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x1400255d0
movzx ecx, bl
mov edx, 1
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x20
pop rbx
ret
ret 0xe60c
sub eax, 0x85e64350
sub dword [rdx - 0x21], esp
cmp dl, byte [rdi - 0x3c]
test eax, 0xe9b6cfb9
mov dh, 0xe9
invalid
invalid
pop rdx
ret 0xe48b
ja 0x140211585
xchg ebp, eax
pop rdi
invalid
sbb eax, 0xd493cd49
sub cl, ch
invalid
int 0x7d
cmpsb byte [rsi], byte [rdi]
leave
xor dword [rcx], ebp
cwde
movsd dword [rdi], dword [rsi]
push rbx
xor byte [rdx - 0xf5ab956], bl
lock add byte [rcx + 0x31bd7ad3], cl
lock add byte [rcx + 0x31bd7ad3], cl
push rsp
sbb edx, dword [rdx]
invalid
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.140001f60
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.IDEA.log
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.IDEA.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.140002160
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.140009770
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140001244
mov ecx, 0x80004005
call fcn.140002160
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.1400342c0
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.140001f60
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.EPSONRYOGA
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.EPSONRYOGA
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 0x1400026a0
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 0x1400026ee
xor edx, edx
mov r8d, 0x82
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400026ee
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.1400342c0
test rbx, rbx
je 0x14000276b
mov edx, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test eax, eax
jne 0x14000272d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140002720
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 0x14000276b
inc eax
movsxd rcx, eax
add rcx, rcx
call fcn.140003c00
mov rbx, rax
test rax, rax
je 0x14000276e
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000276b
mov rcx, rbx
call fcn.140003c80
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 0x1400031f0
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 0x140003212
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 0x140003205
lea rdx, str.EBRelease
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x140003205
lea rdx, str.EBGetDeviceID
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x90], rax
test rax, rax
je 0x140003205
lea rdx, str.EBGetAvailableChannel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x98], rax
test rax, rax
je 0x140003205
lea rdx, str.EBOpenChannel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xa0], rax
test rax, rax
je 0x140003205
lea rdx, str.EBCloseChannel
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xa8], rax
test rax, rax
je 0x140003205
lea rdx, str.EBSend
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xb0], rax
test rax, rax
je 0x140003205
lea rdx, str.EBReceive
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xb8], rax
test rax, rax
je 0x140003205
lea rdx, str.EBGetStatus
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0xc0], rax
test rax, rax
je 0x140003205
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 0x1400077d0
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.140009770
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14000782a
mov ecx, 0x80004005
call fcn.140002160
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 0x140007896
cmp dword [rdx + 0x10], 0
jge 0x14000786e
cmp dword [rbx - 0xc], 0
jge 0x140007864
mov ecx, 0x80070057
call fcn.140002160
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140007896
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140007884
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 0x140007963
xor eax, eax
mov rcx, rsi
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140007963
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400078e7
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140001f00
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x104
mov r9, rbx
lea r8, [0x140058098]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140031dc4
test eax, eax
js 0x140007958
cmp eax, dword [rbx - 0xc]
jg 0x140007958
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 0x140007953
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
jmp 0x140007990
mov ecx, 0x80070057
call fcn.140002160
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 0x14000798d
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