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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov r8d, ecx
cmp ecx, 0xe0
jl 0x1400410ea
add r8d, 0xffffff20
cmp r8d, 7
ja case.default.0x140041097
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x41278]
add rcx, rdx
jmp rcx
and byte [0x140061310], 0xfe
jmp case.default.0x140041097
and byte [0x140061310], 0xfd
jmp case.default.0x140041097
and byte [0x140061310], 0xfb
jmp case.default.0x140041097
and byte [0x140061310], 0xf7
jmp case.default.0x140041097
and byte [0x140061310], 0xef
jmp case.default.0x140041097
and byte [0x140061310], 0xdf
jmp case.default.0x140041097
and byte [0x140061310], 0xbf
jmp case.default.0x140041097
and byte [0x140061310], 0x7f
jmp case.default.0x140041097
mov r9d, ebx
lea r10, [0x140061312]
mov rcx, rbx
nop word [rax + rax]
movsx eax, byte [rcx + r10]
lea edx, [r9 + 1]
cmp eax, r8d
je 0x14004111c
inc rcx
mov r9d, edx
cmp rcx, 0xa
jl 0x140041100
jmp case.default.0x140041097
mov eax, 0xa
movsxd rdx, edx
sub eax, r9d
movsxd rcx, r9d
movsxd r8, eax
add rdx, r10
add rcx, r10
call sub.VCRUNTIME140.dll_memcpy
mov byte [0x14006131b], bl
cmp qword [0x140060ef8], rbx
ja 0x14004115f
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x50
pop rbx
ret
inc dword [0x140060f08]
mov dword [0x140060f0c], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x140061311]
lea rdx, [0x140060f00]
mov rcx, qword [0x140060ef8]
xor r9d, r9d
mov dword [0x140060f04], eax
mov r8d, 0x1c
movzx eax, byte [0x140061310]
mov byte [0x140060f10], al
movzx eax, word [0x140061319]
mov word [0x140060f19], ax
movzx eax, byte [0x14006131b]
mov byte [0x140060f1b], al
lea rax, [0x140061740]
mov dword [rsp + 0x28], recvfrom
mov qword [rsp + 0x20], rax
movsd qword [0x140060f11], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140061320]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140041239
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x140060f0c]
cmp dword [0x14006132c], eax
je 0x14004124e
mov ebx, 0xffffdcdc
jmp 0x140041262
mov ecx, dword [0x140060f08]
mov eax, 0xffffdcdd
cmp dword [0x140061328], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x50
pop rbx
ret
Function at 0x1400412a0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, ecx
mov rcx, qword [0x140060ef8]
test rcx, rcx
jne 0x1400412d8
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x58
ret
inc dword [0x140060f08]
test eax, eax
mov dword [0x140060f0c], 0x23234343
mov eax, dword [0x140061828]
je 0x1400412f7
or eax, 1
jmp 0x1400412fa
and eax, 0xfffffffe
mov dword [0x140060f04], eax
lea rdx, [0x140060f00]
mov dword [0x140061828], eax
xor r9d, r9d
lea rax, [0x140061740]
mov dword [rsp + 0x28], recvfrom
mov r8d, recvfrom
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x140061320]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], recvfrom
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140041384
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x58
ret
mov eax, dword [0x140060f0c]
cmp dword [0x14006132c], eax
je 0x1400413a9
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x58
ret
mov ecx, dword [0x140060f08]
xor eax, eax
cmp dword [0x140061328], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x58
ret
Function at 0x140042dc0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140042de8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140042e76
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x140043010]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x140042e8b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x50
pop rbx
ret

Function at 0x140042ea0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rax, vtable._thread_com.0
mov rbx, rcx
mov qword [rcx], rax
mov rax, qword [rcx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x140042f3d
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140042f06
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0xd8]
cmp rcx, 0xffffffffffffffff
je 0x140042f50
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140042cc0
Function at 0x140042f70
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140043009
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140042fcc
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret

Function at 0x140043190
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.14004b6e0
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
comiss xmm0, xmm1
movaps xmm6, xmm1
movaps xmm7, xmm0
jbe 0x1400431d0
movaps xmm6, xmm0
movaps xmm7, xmm1
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x1400431f0
movss xmm1, dword [0x1400556c4]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x20], r9d
xorps xmm2, xmm2
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140043220
mov eax, dword [rsp + 0x20]
subss xmm6, xmm7
xorps xmm0, xmm0
mov ecx, dword [rsp + rax*4 + 0x24]
mov eax, ecx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm0, rax
subss xmm0, xmm2
mulss xmm0, xmm1
mulss xmm1, dword [0x1400557cc]
addss xmm0, xmm2
divss xmm0, xmm1
addss xmm0, xmm2
mulss xmm0, xmm6
addss xmm0, xmm7
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14004a5c0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x140043980
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rbx, [rcx + 0x80]
mov rdi, rcx
cmp qword [rbx + 0x18], 0xf
mov r15d, r8d
mov rsi, qword [rbx + 0x10]
mov r14d, edx
mov rcx, rbx
jbe 0x1400439c2
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x140043ad3
mov r8, rsi
lea rdx, [0x140054eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043ad3
cmp qword [0x140060ef8], 0
jbe 0x140043bb4
inc dword [0x140060f08]
mov dword [0x140060f0c], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x140060ed0]
mov rcx, qword [0x140060ef8]
lea rdx, [0x140060f00]
mov dword [0x140060f04], eax
xor r9d, r9d
movsx eax, r14w
mov r8d, 0x48
mov dword [0x140060ec4], eax
movsx eax, r15w
mov dword [0x140060ec8], eax
lea rax, [0x140061740]
movups xmm0, xmmword [0x140060ec0]
mov dword [rsp + 0x28], recvfrom
movaps xmmword [0x140060f20], xmm1
movsd xmm1, qword [0x140060ef0]
movaps xmmword [0x140060f10], xmm0
movups xmm0, xmmword [0x140060ee0]
mov qword [rsp + 0x20], rax
movsd qword [0x140060f40], xmm1
movaps xmmword [0x140060f30], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140060ef8]
lea rdx, [0x140061320]
xor eax, eax
mov dword [rsp + 0x30], recvfrom
mov qword [0x140060ec4], rax
xor r9d, r9d
lea rax, [rsp + 0x30]
mov r8d, 0x400
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x140043bb4
cmp qword [rbx + 0x18], 0xf
jbe 0x140043add
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x140043bb4
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043bb4
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
mov r9d, r15d
lea rdx, str.km.move__d___d__10__r_n
mov r8d, r14d
lea rcx, [rsp + 0x50]
call fcn.140048630
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140043b36
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140043bb4
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140043b7e
cmp dword [rsp + 0x30], 0
jbe 0x140043b7e
mov rcx, qword [rdi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rdi + 0xf8]
lea r9, [rsp + 0x34]
xor eax, eax
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x34], eax
mov r8d, ebx
lea rax, [rdi + 0x168]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043bb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14004a5c0
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140043be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rbx, [rcx + 0x80]
mov rdi, rcx
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
mov rsi, qword [rbx + 0x10]
jbe 0x140043c1f
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x140043c6d
mov r8, rsi
lea rdx, [0x140054eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043c6d
mov ecx, 1
call fcn.140040c50
movd xmm0, dword [rdi + 0x28]
movss xmm1, dword [0x140055750]
cvtdq2ps xmm0, xmm0
call fcn.140043190
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140040c50
jmp 0x140043d50
cmp qword [rbx + 0x18], 0xf
jbe 0x140043c77
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x140043d50
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043d50
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, str.km.click_0__r_n
lea rcx, [rsp + 0x40]
call fcn.140048630
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140043cd0
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140043d50
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140043d18
cmp dword [rsp + 0x30], 0
jbe 0x140043d18
mov rcx, qword [rdi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rdi + 0xf8]
lea rax, [rdi + 0x168]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004a5c0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140043d80
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x450
mov rax, qword [0x140060040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, qword [0x1400617c8]
movabs rcx, 0x7ffffffdfffd
mov rbx, qword [rsi + 0x40]
mov rax, qword [rbx]
add rax, 0xfffffffffffeffff
cmp rax, rcx
ja 0x140043f75
cmp byte [rbx + 8], 0
jne 0x140043f75
cmp byte [rbx + 0xa], 0
jne 0x140043f75
cmp byte [rbx + 0x49], 0
jne 0x140043f75
cmp byte [rbx + 0x48], 0
jne 0x140043f75
cmp dword [rbx + 0x4c], 1
jne 0x140043f75
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rdi
lea rdi, [rsi + 0x80]
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
mov rbp, qword [rdi + 0x10]
jbe 0x140043e1a
mov rcx, qword [rdi]
cmp rbp, 3
jne 0x140043e88
mov r8, rbp
lea rdx, [0x140054eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043e88
cmp byte [rbx + 9], al
je 0x140043e49
mov ecx, 1
call fcn.1400412a0
xor ecx, ecx
call fcn.140040c50
mov ecx, socket
call fcn.140040dd0
movd xmm0, dword [rsi + 0x28]
movss xmm1, dword [0x140055750]
cvtdq2ps xmm0, xmm0
call fcn.140043190
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, socket
call fcn.140041050
xor ecx, ecx
call fcn.1400412a0
jmp 0x140043f65
cmp qword [rdi + 0x18], 0xf
jbe 0x140043e92
mov rdi, qword [rdi]
cmp rbp, 4
jne 0x140043f65
mov r8, rbp
lea rdx, str.BPro
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140043f65
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, str.km.press_r__r_n
lea rcx, [rsp + 0x40]
call fcn.140048630
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140043ee5
mov rax, qword [rsi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140043f65
mov rcx, qword [rsi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140043f2d
cmp dword [rsp + 0x30], 0
jbe 0x140043f2d
mov rcx, qword [rsi + 0xf8]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_PurgeComm]
mov rcx, qword [rsi + 0xf8]
lea rax, [rsi + 0x168]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r8d, ebx
mov dword [rsp + 0x34], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140043f65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x460]
mov rdi, qword [rsp + 0x468]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004a5c0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rsi
ret
Function at 0x140049d04
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140049d3e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140049d43
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140049d8c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004dba0]
cmp byte [rcx + rax], 0
je 0x140049d8c
dec r8
sub rdx, 1
jne 0x140049d72
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004a37c
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.140049da4
mov ebx, eax
test eax, eax
jne 0x14004a3ac
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14004a40f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004a406
test al, 0x10
je 0x14004a406
bt eax, 0xa
jae 0x14004a3ff
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14004a420
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14004a3fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004a3fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14004a406
and dword [rsp + 0x3c], 0
jmp 0x14004a40b
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 0x14004b338
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b382
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004b382
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004b382
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004b382
cmp dword [rcx + 0x84], 0xe
jbe 0x14004b382
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004b384
xor al, al
add rsp, 0x28
ret
Function at 0x140001290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov r14, rdx
mov r11, rcx
mov r9d, r10d
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rbp, rcx
mov ebx, dword [r8 + 0x18]
add rsi, rcx
test rbx, rbx
je 0x14000131b
nop
mov eax, dword [rbp + r9*4]
mov r8, r14
add rax, r11
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001303
inc rax
test ecx, ecx
jne 0x1400012f0
test edx, edx
jne 0x140001313
movzx eax, word [rsi + r9*2]
mov r10d, dword [rdi + rax*4]
add r10, r11
inc r9
cmp r9, rbx
jb 0x1400012e0
mov rbx, qword [rsp + 0x10]
mov rax, r10
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140007530
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, qword [0x140494f60]
xor r15d, r15d
mov r14d, ecx
mov ebp, r15d
mov rsi, qword [rdi + 0x4038]
test cl, 0x10
jne 0x1400076c6
mov ebx, dword [rdi + 0x49a8]
test ebx, ebx
je 0x1400075a8
cmp dword [rdi + 0x409c], ebx
jne 0x1400076bf
mov eax, dword [rdi + 0x40c4]
cmp eax, 0xffffffff
cmove eax, r15d
movsxd r15, eax
cmp byte [r15 + rdi + 0xe50], bpl
je 0x1400076bf
cmp byte [rsi + 0xc3], bpl
jmp 0x140007668
cmp byte [rdi + 0xe50], bpl
je 0x1400076bf
cmp byte [rsi + 0xc3], bpl
jne 0x1400076bf
test byte [rdi + 0x49b0], 1
jne 0x1400075e4
cmp dword [rdi + 0x409c], ebp
je 0x1400076bf
cmp qword [rdi + 0x40b8], rsi
jne 0x1400076bf
test r14b, 8
je 0x1400076bf
lea rdx, [rdi + 0x49b4]
mov rcx, rsi
call fcn.14000c5b0
mov ebx, eax
mov dword [rdi + 0x49a8], eax
mov rax, qword [0x140494f60]
cmp dword [rax + 0x409c], ebx
jne 0x14000761a
mov dword [rax + 0x40a0], ebx
cmp dword [rax + 0x40c8], ebx
jne 0x140007629
mov byte [rax + 0x40cc], 1
mov r8d, dword [rdi + 0x49ac]
lea rcx, [rdi + 0x49b4]
mov edx, ebx
call fcn.14000f690
movzx ebp, al
test al, al
je 0x140007662
cmp byte [rdi + 0x3868], r15b
je 0x140007662
mov rdx, rsi
mov ecx, ebx
call fcn.140019500
xor edx, edx
mov rcx, rsi
call fcn.14000bbd0
cmp dword [rdi + 0x409c], ebx
jne 0x1400076bf
mov byte [rdi + 0x40a9], bpl
movsxd rcx, dword [rsi + 0x100]
mov rax, qword [rsi + 0x108]
mov ebp, dword [rax + rcx*4 - 4]
mov rax, qword [0x140494f60]
movsxd rcx, r15d
cmp byte [rcx + rax + 0xe50], 0
jne 0x14000769c
xor sil, sil
jmp 0x1400076b5
movss xmm1, dword [rax + 0x6c]
movss xmm0, dword [rax + rcx*4 + 0x38c0]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae sil
call fcn.140019660
test sil, sil
jne 0x140007712
xor al, al
jmp 0x1400077cf
mov r9d, 0xffffffff
lea rdx, [0x1400d5261]
mov ebx, r9d
lea r10, [0x1400d3b10]
mov r8b, 0x23
cmp r8b, 0x23
jne 0x1400076f3
cmp byte [rdx], r8b
jne 0x1400076f3
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x1400076e0
not ebx
cmp byte [rdi + 0x4d20], 0
jne 0x140007750
call fcn.140008bc0
mov dword [rdi + 0x4d3c], ebx
mov dword [rdi + 0x4d40], ebp
mov byte [rdi + 0x4d20], 1
mov dword [rdi + 0x4d24], r14d
mov dword [rdi + 0x4d2c], r15d
cmp ebx, dword [rdi + 0x409c]
jne 0x140007750
mov byte [rdi + 0x40aa], 1
mov eax, dword [rdi + 0x3f90]
mov dword [rdi + 0x4d28], eax
mov byte [rdi + 0x4d21], 1
test r14b, 1
jne 0x1400077c0
cmp dword [rdi + 0x4d90], 0
je 0x1400077b7
test dword [rdi + 0x4d84], 0x1000
je 0x1400077b7
mov rbx, qword [0x140494f60]
lea rcx, str.Tooltip_Hidden
xor edx, edx
mov r8d, 0x2030347
call fcn.140004a30
mov rax, qword [rbx + 0x4038]
mov byte [rax + 0xc3], 1
mov byte [rax + 0xc5], 1
mov byte [rax + 0xe4], 1
jmp 0x1400077c0
xor edx, edx
xor ecx, ecx
call fcn.140007b90
test r14b, 0x12
jne 0x1400077cd
and dword [rdi + 0x49b0], 0xfffffffe
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret