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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea eax, [rcx - 0xe0]
xor ebx, ebx
mov r8d, ecx
cmp eax, 7
ja 0x140041cdd
add r8d, 0xffffff20
cmp r8d, 7
ja case.default.0x140041c7e
lea rdx, [0x140000000]
movsxd rax, r8d
mov eax, dword [rdx + rax*4 + 0x41e90]
add rax, rdx
jmp rax
or byte [0x1400622e0], 1
jmp case.default.0x140041c7e
or byte [0x1400622e0], 2
jmp case.default.0x140041c7e
or byte [0x1400622e0], 4
jmp case.default.0x140041c7e
or byte [0x1400622e0], 8
jmp case.default.0x140041c7e
or byte [0x1400622e0], 0x10
jmp case.default.0x140041c7e
or byte [0x1400622e0], 0x20
jmp case.default.0x140041c7e
or byte [0x1400622e0], 0x40
jmp case.default.0x140041c7e
or byte [0x1400622e0], 0x80
jmp case.default.0x140041c7e
mov rcx, rbx
lea rdx, [0x140000000]
nop word [rax + rax]
movsx eax, byte [rcx + rdx + 0x622e2]
cmp eax, r8d
je case.default.0x140041c7e
inc rcx
cmp rcx, 0xa
jl 0x140041cf0
mov ecx, ebx
mov rax, rbx
nop dword [rax + rax]
cmp byte [rax + rdx + 0x622e2], bl
je 0x140041d4b
inc ecx
inc rax
cmp rax, 0xa
jl 0x140041d10
movzx eax, word [0x1400622eb]
movsd xmm0, qword [0x1400622e3]
mov word [0x1400622ea], ax
mov byte [0x1400622eb], r8b
movsd qword [0x1400622e2], xmm0
jmp case.default.0x140041c7e
movsxd rax, ecx
mov byte [rax + rdx + 0x622e2], r8b
cmp qword [0x140061ec8], rbx
ja 0x140041d77
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret
inc dword [0x140061ed8]
mov dword [0x140061edc], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x1400622e1]
lea rdx, [0x140061ed0]
mov rcx, qword [0x140061ec8]
xor r9d, r9d
mov dword [0x140061ed4], eax
movzx eax, byte [0x1400622e0]
mov byte [0x140061ee0], al
movzx eax, word [0x1400622e9]
lea r8d, [r9 + 0x1c]
mov word [0x140061ee9], ax
movzx eax, byte [0x1400622eb]
mov byte [0x140061eeb], al
lea rax, [0x140062710]
mov dword [rsp + 0x28], sendto
mov qword [rsp + 0x20], rax
movsd qword [0x140061ee1], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140061ec8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400622f0]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140041e4f
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x140061edc]
cmp dword [0x1400622fc], eax
je 0x140041e64
mov ebx, 0xffffdcdc
jmp 0x140041e78
mov ecx, dword [0x140061ed8]
mov eax, 0xffffdcdd
cmp dword [0x1400622f8], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret
Function at 0x140041eb0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov r8d, ecx
cmp ecx, 0xe0
jl 0x140041f4a
add r8d, 0xffffff20
cmp r8d, 7
ja case.default.0x140041ef7
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x420d8]
add rcx, rdx
jmp rcx
and byte [0x1400622e0], 0xfe
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0xfd
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0xfb
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0xf7
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0xef
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0xdf
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0xbf
jmp case.default.0x140041ef7
and byte [0x1400622e0], 0x7f
jmp case.default.0x140041ef7
mov r9d, ebx
lea r10, [0x1400622e2]
mov rcx, rbx
nop word [rax + rax]
movsx eax, byte [rcx + r10]
lea edx, [r9 + 1]
cmp eax, r8d
je 0x140041f7c
inc rcx
mov r9d, edx
cmp rcx, 0xa
jl 0x140041f60
jmp case.default.0x140041ef7
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 [0x1400622eb], bl
cmp qword [0x140061ec8], rbx
ja 0x140041fbf
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret
inc dword [0x140061ed8]
mov dword [0x140061edc], 0x123c2c2f
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsd xmm0, qword [0x1400622e1]
lea rdx, [0x140061ed0]
mov rcx, qword [0x140061ec8]
xor r9d, r9d
mov dword [0x140061ed4], eax
movzx eax, byte [0x1400622e0]
mov byte [0x140061ee0], al
movzx eax, word [0x1400622e9]
lea r8d, [r9 + 0x1c]
mov word [0x140061ee9], ax
movzx eax, byte [0x1400622eb]
mov byte [0x140061eeb], al
lea rax, [0x140062710]
mov dword [rsp + 0x28], sendto
mov qword [rsp + 0x20], rax
movsd qword [0x140061ee1], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140061ec8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400622f0]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x140042097
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret
mov eax, dword [0x140061edc]
cmp dword [0x1400622fc], eax
je 0x1400420ac
mov ebx, 0xffffdcdc
jmp 0x1400420c0
mov ecx, dword [0x140061ed8]
mov eax, 0xffffdcdd
cmp dword [0x1400622f8], ecx
cmovne ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret
Function at 0x140042100
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, ecx
mov rcx, qword [0x140061ec8]
test rcx, rcx
jne 0x140042138
mov eax, 0xffffdcd8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x58
ret
inc dword [0x140061ed8]
test eax, eax
mov dword [0x140061edc], 0x23234343
mov eax, dword [0x1400627f8]
je 0x140042157
or eax, 1
jmp 0x14004215a
and eax, 0xfffffffe
xor r9d, r9d
mov dword [0x140061ed4], eax
mov dword [0x1400627f8], eax
lea rdx, [0x140061ed0]
lea rax, [0x140062710]
mov dword [rsp + 0x28], sendto
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140061ec8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400622f0]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jns 0x1400421e2
mov eax, 0xffffdcdb
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x58
ret
mov eax, dword [0x140061edc]
cmp dword [0x1400622fc], eax
je 0x140042207
mov eax, 0xffffdcdc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x58
ret
mov ecx, dword [0x140061ed8]
xor eax, eax
cmp dword [0x1400622f8], ecx
mov edx, 0xffffdcdd
cmovne eax, edx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x58
ret
Function at 0x140043be0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140043c08
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 0x140043c96
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x140043e30]
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 0x140043cab
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.14004b3b0
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x50
pop rbx
ret

Function at 0x140043cc0
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 0x140043d5d
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 0x140043d26
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 0x140043d70
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140043ae0
Function at 0x140043d90
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x140043e29
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 0x140043dec
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 0x140043fb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13e8
call fcn.14004c3a0
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
movaps xmmword [rsp + 0x13c0], xmm7
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
comiss xmm0, xmm1
movaps xmm6, xmm1
movaps xmm7, xmm0
jbe 0x140043ff0
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 0x140044010
mov dword [rsp + 0x20], r9d
lea r8, [rsp + 0x28]
xorps xmm1, xmm1
nop dword [rax + rax]
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 0x140044040
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, xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x140056540]
addss xmm0, xmm1
mulss xmm0, xmm6
addss xmm0, xmm7
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14004b3b0
movaps xmm6, xmmword [rsp + 0x13d0]
movaps xmm7, xmmword [rsp + 0x13c0]
add rsp, 0x13e8
ret
Function at 0x140044790
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 [0x140061040]
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 0x1400447d2
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x1400448e1
mov r8, rsi
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400448e1
cmp qword [0x140061ec8], 0
jbe 0x1400449c2
inc dword [0x140061ed8]
mov dword [0x140061edc], 0xaede7345
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movups xmm1, xmmword [0x140061ea0]
mov rcx, qword [0x140061ec8]
lea r8d, [rsi + 0x45]
mov dword [0x140061ed4], eax
lea rdx, [0x140061ed0]
movsx eax, r14w
xor r9d, r9d
mov dword [0x140061e94], eax
movsx eax, r15w
mov dword [0x140061e98], eax
lea rax, [0x140062710]
movups xmm0, xmmword [0x140061e90]
mov dword [rsp + 0x28], sendto
movaps xmmword [0x140061ef0], xmm1
movsd xmm1, qword [0x140061ec0]
movaps xmmword [0x140061ee0], xmm0
movups xmm0, xmmword [0x140061eb0]
mov qword [rsp + 0x20], rax
movsd qword [0x140061f10], xmm1
movaps xmmword [0x140061f00], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [0x140061ec8]
lea rdx, [0x1400622f0]
xor eax, eax
mov dword [rsp + 0x30], sendto
mov qword [0x140061e94], 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 0x1400449c2
cmp qword [rbx + 0x18], 0xf
jbe 0x1400448eb
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x1400449c2
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400449c2
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.1400494e0
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140044944
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x1400449c2
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x14004498c
cmp dword [rsp + 0x30], 0
jbe 0x14004498c
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 0x1400449c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14004b3b0
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400449f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140061040]
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 0x140044a2f
mov rcx, qword [rbx]
cmp rsi, 3
jne 0x140044a7b
mov r8, rsi
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044a7b
lea ecx, [rsi - 2]
call fcn.140041ab0
movd xmm0, dword [rdi + 0x28]
movss xmm1, dword [0x14005666c]
cvtdq2ps xmm0, xmm0
call fcn.140043fb0
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140041ab0
jmp 0x140044b60
cmp qword [rbx + 0x18], 0xf
jbe 0x140044a85
mov rbx, qword [rbx]
cmp rsi, 4
jne 0x140044b60
mov r8, rsi
lea rdx, str.BPro
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044b60
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.1400494e0
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140044ae0
mov rax, qword [rdi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140044b60
mov rcx, qword [rdi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140044b28
cmp dword [rsp + 0x30], 0
jbe 0x140044b28
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 0x140044b60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14004b3b0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140044b90
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x450
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, qword [0x140062798]
movabs rcx, 0x7ffffffdfffd
mov rbx, qword [rsi + 0x40]
mov rax, qword [rbx]
add rax, 0xfffffffffffeffff
cmp rax, rcx
ja 0x140044d83
cmp byte [rbx + 8], 0
jne 0x140044d83
cmp byte [rbx + 0xa], 0
jne 0x140044d83
cmp byte [rbx + 0x49], 0
jne 0x140044d83
cmp byte [rbx + 0x48], 0
jne 0x140044d83
cmp dword [rbx + 0x4c], 1
jne 0x140044d83
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 0x140044c2a
mov rcx, qword [rdi]
cmp rbp, 3
jne 0x140044c96
mov r8, rbp
lea rdx, [0x140055eb0]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044c96
cmp byte [rbx + 9], al
je 0x140044c57
lea ecx, [rbp - 2]
call fcn.140042100
xor ecx, ecx
call fcn.140041ab0
mov ecx, socket
call fcn.140041c30
movd xmm0, dword [rsi + 0x28]
movss xmm1, dword [0x14005666c]
cvtdq2ps xmm0, xmm0
call fcn.140043fb0
cvttss2si ecx, xmm0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, socket
call fcn.140041eb0
xor ecx, ecx
call fcn.140042100
jmp 0x140044d73
cmp qword [rdi + 0x18], 0xf
jbe 0x140044ca0
mov rdi, qword [rdi]
cmp rbp, 4
jne 0x140044d73
mov r8, rbp
lea rdx, str.BPro
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140044d73
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.1400494e0
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140044cf3
mov rax, qword [rsi + 0xf8]
cmp rax, 0xffffffffffffffff
je 0x140044d73
mov rcx, qword [rsi + 0xf8]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ClearCommError]
test eax, eax
je 0x140044d3b
cmp dword [rsp + 0x30], 0
jbe 0x140044d3b
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 0x140044d73
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.14004b3b0
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rsi
ret
Function at 0x14004aaf8
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 0x14004ab32
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14004ab37
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 0x14004ab80
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004eba0]
cmp byte [rcx + rax], 0
je 0x14004ab80
dec r8
sub rdx, 1
jne 0x14004ab66
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004b170
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.14004ab98
mov ebx, eax
test eax, eax
jne 0x14004b1a0
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14004b203
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004b1fa
test al, 0x10
je 0x14004b1fa
bt eax, 0xa
jae 0x14004b1f3
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14004b214
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14004b1ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004b1ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14004b1fa
and dword [rsp + 0x3c], 0
jmp 0x14004b1ff
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 0x14004c008
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c052
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004c052
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004c052
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c052
cmp dword [rcx + 0x84], 0xe
jbe 0x14004c052
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004c054
xor al, al
add rsp, 0x28
ret
Function at 0x140001b30
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
lea rcx, [rcx + 0x70]
lea rdx, [0x14001b179]
call fcn.1400047c0
mov rbp, rax
test rax, rax
je 0x140001c60
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbx]
mov rcx, rax
call fcn.140010440
test eax, eax
js 0x140001c40
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140001c76
cmp byte [r12 + 0x10], 1
je 0x140001c20
mov rdi, rax
test rsi, rsi
jne 0x140001bb8
jmp 0x140001c00
add rdi, rbx
sub rsi, rbx
je 0x140001c00
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001bb0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140003010
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001710
test eax, eax
je 0x140001c00
jmp 0x140001bf5
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140003010
jmp 0x140001bfd
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002e90
jmp 0x140001c08
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140003010
jmp 0x140001bfd