joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7c30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, 1
test edx, edx
mov rbx, rcx
cmovg esi, edx
cmp edx, 0x3ffffff
jg 0x5c7ca8
movsxd rdx, dword [rcx]
movsxd r8, esi
shl r8, 3
test edx, edx
je 0x5c7c88
mov rax, qword [0x0064af00]
shl rdx, 3
mov rcx, qword [rcx + 8]
call qword [rax]
mov edx, dword [rbx + 4]
mov ecx, dword [rbx + 4]
sar edx, 0x1f
xor ecx, edx
sub ecx, edx
cmp ecx, esi
jg 0x5c7cd8
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [0x0064aec0]
mov rcx, r8
call qword [rax]
mov qword [rbx + 8], rax
mov dword [rbx], esi
add rsp, 0x28
pop rbx
pop rsi
ret
mov ecx, 2
call qword [fcn.005eaf50]
lea rcx, str.gmp:_overflow_in_mpz_type_n
mov r9, rax
mov r8d, 0x1a
mov edx, 1
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop word [rax + rax]
mov dword [rbx + 4], 0
jmp 0x5c7c7b

Function at 0x5e32d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.005eaf50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.005eaf50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x5e3340
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0065e5b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x5e34e8
mov rax, qword [0x0065e5b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x5e338c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x5e3417
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x5e3370
mov rcx, r12
call fcn.005e40a0
mov rbp, rax
test rax, rax
je 0x5e3522
mov rax, qword [0x0065e5b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.005e41d0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0065e5b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x5e3531
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x5e3410
sub eax, 4
and eax, 0xfffffffb
jne 0x5e34a0
add dword [0x0065e5b4], 1
cmp ebx, 8
jae 0x5e3448
test bl, 4
jne 0x5e34f0
test ebx, ebx
je 0x5e3439
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x5e3510
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x5e3439
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x5e347a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0065e5b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5e3410
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.005e32d0
nop dword [rax]
xor edi, edi
jmp 0x5e3397
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x5e3439
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x5e3439
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.005e32d0
mov rax, qword [0x0065e5b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.005e32d0
nop
nop dword [rax]
Function at 0x5e3d10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0065e8a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0065e880]
test rbx, rbx
je 0x5e3d64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x5e3d5b
test r12, r12
je 0x5e3d5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x5e3d40
lea rcx, [0x0065e8a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x5e40a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0064af30]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x5e4119
mov rcx, r10
call fcn.005e3f70
test eax, eax
je 0x5e4119
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x5e4116
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x5e410d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x5e4119
add r8, 0x28
cmp r8, r9
jne 0x5e40f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140035eb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14005f738], rbx
je 0x140035efc
cmp rax, rbx
jne 0x140035eef
mov ebx, 1
mov esi, ebx
jmp 0x140035f01
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140035ed4
mov ebx, 1
mov eax, dword [0x14005f740]
cmp eax, ebx
jne 0x140035f17
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140035f7c
mov eax, dword [0x14005f740]
test eax, eax
jne 0x140035f76
mov dword [0x14005f740], ebx
lea r15, [0x140043888]
lea rdi, [0x140043870]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140035f68
test eax, eax
jne 0x140035f6c
cmp qword [rdi], 0
je 0x140035f5d
mov rax, qword [rdi]
mov rcx, qword [0x140043810]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140035f3e
test eax, eax
je 0x140035f7c
mov eax, 0xff
jmp 0x140036058
mov dword [0x14005eac4], ebx
mov eax, dword [0x14005f740]
cmp eax, ebx
jne 0x140035fa3
lea rdx, [0x140043868]
lea rcx, [0x140043818]
call sub.msvcrt.dll__initterm
mov dword [0x14005f740], 2
test esi, esi
jne 0x140035fb0
xor eax, eax
xchg qword [0x14005f738], rax
cmp qword [0x14005f748], 0
je 0x140035fe4
lea rcx, [0x14005f748]
call fcn.1400362b0
test eax, eax
je 0x140035fe4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14005f748]
mov r9, qword [0x140043810]
call r9
mov r8, qword [0x14005ead8]
mov rdx, qword [0x14005ead0]
mov ecx, dword [0x14005eac8]
call fcn.1400013f8
mov dword [0x14005eac0], eax
cmp dword [0x14005eae0], 0
jne 0x140036014
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14005eac4], 0
jne 0x140036029
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14005eac0]
jmp 0x140036058
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140180000
add rsp, 0x28
jmp 0x140035eb0

Function at 0x14003619c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400361e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400361e0
cmp dword [rcx + 0x3c], edx
jl 0x1400361e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400361e0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400361e8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002d70
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x24], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140002dce
mov rdx, rax
call fcn.14001d430
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0xf
jbe 0x140002de6
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x140002dec
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x140002f08
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x20]
nop dword [rax]
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x140002e9f
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140002e7d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140002e72
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002e95
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14001d580
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rbp, 1
jne 0x140002e40
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x140002e10
cmp r13d, 0xfffffffa
jle 0x140002f08
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rax, r14d
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140002ef5
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140002eea
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002f08
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.14001d580
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140002f58
movzx ebx, byte [rsp + 0x20]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140002f3b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140002f33
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x140002f4f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14001d580
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140002f16
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003a70
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14007b080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x48], rcx
lea edi, [rcx + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140003ade
call fcn.140048094
cmp dword [rax], 4
je 0x140003ab0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140039930
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140003b10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x14007b080]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call fcn.140003a70
test rax, rax
jne 0x140003b4c
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140039930
add rsp, 0x30
pop rdi
ret
jns 0x140003b6d
call fcn.140048094
cmp dword [rax], 9
jne 0x140003b6d
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140039930
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rsp + 0x20]
nop dword [rax]
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jns 0x140003ba6
call fcn.140048094
cmp dword [rax], 4
je 0x140003b80
mov rsi, qword [rsp + 0x50]
test ebx, ebx
mov rbx, qword [rsp + 0x48]
setg al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140039930
add rsp, 0x30
pop rdi
ret
Function at 0x140004090
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x14007b080]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x1400040cc
cmp ax, 0x17
jne 0x140004174
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call fcn.14005c280
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140004174
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004126
mov rax, qword [rdi + 0x18]
cmp rbx, rax
ja 0x140004160
mov rsi, rdi
cmp rax, 0xf
jbe 0x140004144
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005bb00
mov al, 1
mov byte [rsi + rbx], 0
jmp 0x140004176
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.14001d6f0
mov al, 1
jmp 0x140004176
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140039930
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400054a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14007b080]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r8, qword [rcx + 0x28]
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea esi, [rax + 1]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x14000551c
call fcn.140048094
cmp dword [rax], 4
je 0x1400054f0
test ebx, ebx
jle 0x140005531
mov rcx, qword [rdi + 8]
call fcn.140003b10
test al, al
je 0x140005531
mov al, 1
jmp 0x140005533
xor al, al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140039930
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005560
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
mov rbx, rcx
mov eax, 0x7fffffff
mov rcx, qword [rcx + 0x48]
cmp r8, rax
mov rdi, r8
mov r14, rdx
cmova rdi, rax
mov rsi, qword [rbx + 0x50]
cmp rcx, rsi
jae 0x1400055d0
mov rdx, qword [rbx + 0x30]
sub rsi, rcx
add rdx, rcx
mov rcx, r14
cmp rdi, rsi
ja 0x1400055b7
mov r8, rdi
call fcn.14005bb00
add qword [rbx + 0x48], rdi
mov rax, rdi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rsi
call fcn.14005bb00
add qword [rbx + 0x48], rsi
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
test al, al
jne 0x1400055ee
mov rax, 0xffffffffffffffff
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
mov qword [rsp + 0x68], rbp
mov rbp, qword [rbx + 8]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
cmp rdi, 0x1000
jae 0x1400056a0
mov qword [rsp + 0x20], r15
mov r15, qword [rbx + 0x30]
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x1000
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jns 0x140005646
call fcn.140048094
cmp dword [rax], 4
je 0x140005620
mov r15, qword [rsp + 0x20]
test rsi, rsi
jle 0x140005664
mov rdx, qword [rbx + 0x30]
mov rcx, r14
cmp rsi, rdi
jg 0x140005676
mov r8, rsi
call fcn.14005bb00
mov rbp, qword [rsp + 0x68]
mov rax, rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r8, rdi
call fcn.14005bb00
mov rbp, qword [rsp + 0x68]
mov rax, rdi
mov qword [rbx + 0x48], rdi
mov qword [rbx + 0x50], rsi
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x1400056c3
call fcn.140048094
cmp dword [rax], 4
je 0x1400056a0
mov rbp, qword [rsp + 0x68]
mov rax, rbx
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400056e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x140005719
mov rax, 0xffffffffffffffff
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x140005745
call fcn.140048094
cmp dword [rax], 4
je 0x140005722
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400057e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14007b080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 8]
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140005839
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140004090
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140039930
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x14000da00
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
mov ecx, 0x52534d42
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov esi, eax
test eax, eax
je 0x14000dab9
mov rdx, qword [rbx]
mov qword [rsp + 0x48], rbp
mov rbp, qword [rbx + 8]
mov rcx, rbp
mov qword [rsp + 0x50], rdi
sub rcx, rdx
mov byte [rsp + 0x20], 0
mov edi, esi
cmp rsi, rcx
jae 0x14000da53
lea rax, [rdx + rsi]
jmp 0x14000da87
jbe 0x14000da8b
mov rax, qword [rbx + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x14000da73
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.140024a50
jmp 0x14000da8b
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.14005c280
lea rax, [rdi + rbp]
mov qword [rbx + 8], rax
mov r8, qword [rbx]
mov r9d, esi
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp esi, eax
je 0x14000dac6
mov rax, qword [rbx]
cmp rax, qword [rbx + 8]
je 0x14000dab9
mov qword [rbx + 8], rax
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rbx, qword [rsp + 0x58]
mov al, 1
add rsp, 0x30
pop rsi
ret
Function at 0x14001f310
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001f344
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001f330
ret
Function at 0x140032d50
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140032e1c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140032e1c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140032e35
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140032e0c
cmp byte [rax], 0x5c
jne 0x140032e06
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140032e06
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140032df2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140032e03
test r8b, 0x10
jne 0x140032e06
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140032e06
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140029650
test edi, edi
jne 0x140032d70
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140029640
int3
Function at 0x14003a6bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a706
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a706
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a706
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a706
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a706
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003a708
xor al, al
add rsp, 0x28
ret

Function at 0x140049f14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140049d10

Function at 0x14004c9cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004c9e2
mov al, 1
jmp 0x14004ca42
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004c9f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004ca40
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005468c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004ca40
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004ca40
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004ca40
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004ca42
xor al, al
add rsp, 0x20
pop rbx
ret