joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002cea0
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 0x18002cf6c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18002cf6c
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 0x18002cf85
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 0x18002cf5c
cmp byte [rax], 0x5c
jne 0x18002cf56
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18002cf56
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18002cf42
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18002cf53
test r8b, 0x10
jne 0x18002cf56
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18002cf56
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.180030430
test edi, edi
jne 0x18002cec0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.18002e6e0
int3

Function at 0x180030b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180030bb4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180030ba0
ret
Function at 0x18005bde0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x180331338]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x98], rcx
mov qword [rsp + 0x60], rdx
mov ecx, dword [0x18033de90]
mov rax, qword gs:[0x58]
mov edx, setsockopt
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x18033d480], ecx
jg 0x18005c008
lea rbx, [0x18033d430]
mov qword [rsp + 0xa0], rbx
mov rcx, rbx
call fcn.18015b3c8
test eax, eax
jne 0x18005c052
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.180014370
nop
lea rcx, [rsp + 0x50]
call fcn.18005c070
movzx r8d, byte [rsp + 0x80]
movzx ecx, byte [rax]
mov byte [rsp + 0x80], cl
mov byte [rax], r8b
lea rcx, [rax + 8]
mov rax, qword [rsp + 0x88]
mov rdx, qword [rcx]
mov qword [rsp + 0x88], rdx
mov qword [rcx], rax
movzx edx, r8b
call fcn.180018380
nop
jmp 0x18005bec7
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.180040a30
mov rdi, rax
mov rdx, rsi
lea rcx, [rsp + 0xb8]
call fcn.1800144c0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.180015470
nop
movzx edx, byte [rax]
movzx ecx, byte [rdi]
mov byte [rax], cl
mov byte [rdi], dl
lea rcx, [rdi + 8]
mov rdx, qword [rax + 8]
mov r9, qword [rcx]
mov qword [rax + 8], r9
mov qword [rcx], rdx
movzx edx, byte [rdi]
call fcn.180018380
nop
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9b, 0x20
mov r8d, 2
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x80]
call fcn.1800433d0
mov rdi, rax
lea rcx, [rsp + 0xe0]
call fcn.18007dcc0
mov rdx, rdi
mov rcx, rax
call fcn.18006e510
lea rcx, [rsp + 0xe0]
call fcn.18001f790
nop
mov rdx, qword [rsp + 0xd0]
cmp rdx, 0x10
jb 0x18005bfbf
inc rdx
mov rcx, qword [rsp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bfb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005c05a
call fcn.180150e00
nop
movzx edx, byte [rsp + 0x80]
lea rcx, [rsp + 0x88]
call fcn.180018380
nop
mov rcx, rbx
call fcn.18015b444
mov al, 1
jmp 0x18005bfe3
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180150f20
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [0x18033d480]
call fcn.1801511b8
cmp dword [0x18033d480], 0xffffffff
jne 0x18005be3e
mov edx, 2
lea rbx, [0x18033d430]
mov rcx, rbx
call fcn.18015b38c
lea rcx, [0x18022e420]
call fcn.180151714
lea rcx, [0x18033d480]
call fcn.180151158
jmp 0x18005be45
mov ecx, eax
call fcn.18015b948
nop
call fcn.18019b584
int3
Function at 0x18006bf60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x18006bf91
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18006c00b
mov rdi, r14
mov rcx, rbx
call fcn.18005d870
test rax, rax
jle 0x18006bfe3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.18018c9d0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18006bffb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18006c003
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x18006bfa5
sub r14, rdi
jmp 0x18006c0ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x18006c022
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18006c024
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18006c056
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.18018c9d0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18006c0ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18006c091
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x18006c0cd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1801c96f0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x18006c0ec
cmp rbp, rax
ja 0x18006c0a0
test rbp, rbp
je 0x18006c0ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1801c96f0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18007fcf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rdx
lea rax, [rbp + 0x30]
mov rcx, rbx
mov qword [rbp - 0x30], rax
mov rdx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x18007fd8f
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call fcn.180017dd0
movups xmm0, xmmword [str.FindResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x180236a18]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x180236a20]
mov word [rax + 0x18], cx
movzx ecx, byte [0x180236a22]
mov byte [rax + 0x1a], cl
mov byte [rax + 0x1b], dil
jmp 0x18007fefb
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x18007fe07
xorps xmm0, xmm0
mov qword [rbp - 0x10], 0
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call fcn.180017dd0
movups xmm0, xmmword [str.SizeofResource_returned_0.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1a
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x180236a38]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x180236a40]
mov word [rax + 0x18], cx
mov byte [rax + 0x1a], 0
jmp 0x18007fefb
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x18007fe83
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call fcn.180017dd0
movups xmm0, xmmword [str.LockResource_returned_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], 0x1b
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
movsd xmm1, qword [0x180236a58]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x180236a60]
mov word [rax + 0x18], cx
movzx ecx, byte [0x180236a62]
mov byte [rax + 0x1a], cl
mov byte [rax + 0x1b], 0
jmp 0x18007fefb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rcx, [rbp - 0x20]
test rax, rax
jne 0x18007feee
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
lea edx, [rax + 0x20]
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
movups xmmword [rbp - 0x20], xmm0
call fcn.180017dd0
movups xmm0, xmmword [str.Resource_data_is_null.]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov qword [rbp - 0x10], socket
xor edx, edx
mov qword [rbp - 8], 0x1f
movups xmmword [rax], xmm0
mov ecx, dword [0x180236a78]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x180236a7c]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
jmp 0x18007fefb
mov rdx, rax
call fcn.180014590
mov r8, rax
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.18007f960
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x180080600
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x180331338]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
mov qword [rbp - 0x39], rcx
xor ebx, ebx
mov dword [rbp - 0x55], ebx
lea rcx, [rbp - 0x29]
call fcn.1800808b0
nop
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.18007ec80
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x180080686
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080681
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008077b
call fcn.180150e00
movdqa xmm0, xmmword [0x1802309f0]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
mov dword [rbp - 0x59], ebx
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
lea rdx, [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x180080781
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov edx, r14d
mov rcx, rsi
call fcn.18007ff20
mov rcx, qword [rsi]
lea rbx, [rcx + r14]
mov r8d, r14d
xor edx, edx
call fcn.18018d080
mov qword [rsi + 8], rbx
mov dword [rbp - 0x55], 1
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
mov r9, qword [rsi]
mov r8d, r14d
mov edx, dword [rbp - 0x59]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1800807bf
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x18008074e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180080749
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180080775
call fcn.180150e00
mov rax, rsi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.180150f20
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.18019b584
nop
call fcn.18019b584
int3
lea rcx, [rbp + 0x17]
call fcn.180080800
nop
lea rcx, str.Failed_to_GetFileVersionInfoSize._Error:_
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], 0x2b
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.18007d430
lea rdx, [0x180307608]
lea rcx, [rbp - 0x51]
call fcn.18018b714
nop
lea rcx, [rbp + 0x17]
call fcn.180080800
nop
lea rcx, str.Failed_to_GetFileVersionInfo._Error:_
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], 0x27
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x51]
call fcn.18007d430
lea rdx, [0x180307608]
lea rcx, [rbp - 0x51]
call fcn.18018b714
int3
Function at 0x18009c180
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [rcx + 0x28]
nop
cmp rax, qword [rcx + 0x10]
jb 0x18009c1af
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.180150dc4
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18009c20b
mov ecx, 8
call fcn.180150dc4
test rax, rax
je 0x18009c1d8
mov qword [rax], rdi
mov qword [rsp + 0x48], rax
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18009b360]
xor edx, edx
xor ecx, ecx
call fcn.1801ccff8
mov qword [rbx], rax
test rax, rax
je 0x18009c22a
jmp 0x18009c20d
xor ebx, ebx
mov rdx, rbx
mov rcx, rdi
call fcn.18009bfd0
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rsi], 0
mov ecx, 6
call fcn.18015b984
int3

Function at 0x18009c410
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r15d, r15d
mov eax, dword [rcx + 0x20]
nop
test eax, eax
je 0x18009c443
lea eax, [r15 - 1]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
xchg dword [rcx + 0x20], eax
cmp rdx, qword [rcx + 8]
cmovb rdx, qword [rcx + 8]
mov rbp, qword [rcx + 0x10]
cmp rdx, rbp
cmovbe rbp, rdx
mov rsi, r15
test rbp, rbp
je 0x18009c4ef
nop dword [rax + rax]
mov rax, qword [rdi + 0x28]
nop
cmp rax, qword [rdi + 0x10]
jae 0x18009c4e7
mov ecx, reloc.WS2_32.dll_recv
call fcn.180150dc4
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x18009c4d9
mov ecx, 8
call fcn.180150dc4
test rax, rax
je 0x18009c4a6
mov qword [rax], rdi
jmp 0x18009c4a9
mov rax, r15
mov qword [rsp + 0x70], rax
lea r14, [rbx + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x18009b360]
xor edx, edx
xor ecx, ecx
call fcn.1801ccff8
mov qword [rbx], rax
test rax, rax
je 0x18009c502
jmp 0x18009c4dc
mov rbx, r15
mov rdx, rbx
mov rcx, rdi
call fcn.18009bfd0
inc rsi
cmp rsi, rbp
jb 0x18009c470
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], r15d
mov ecx, 6
call fcn.18015b984
int3
Function at 0x1800b7150
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1800b7192
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800b7330
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x130
mov rax, qword [0x180331338]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rsi, qword [rsp + 0x190]
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov r15, r8
movsxd r8, edx
mov r12, r9
mov rax, r8
shl rax, 5
lea rbx, [rcx + 0x230]
mov r14, qword [rcx + r8*8 + 0x1e8]
add rbx, rax
mov rax, qword [rcx + 0x410]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x1800b743c
lea rax, [0x1800b71e0]
cmp qword [rcx + r8*8 + 0x210], rax
jne 0x1800b743c
cmp qword [rbx], 0
je 0x1800b73c1
test rdi, rdi
je 0x1800b743c
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, r14
call fcn.1800cd400
cmp eax, 0xffffffff
je 0x1800b743c
test al, 1
je 0x1800b743c
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1800b741b
mov eax, dword [rbp + 0x734]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [fcn.1801ca7b8]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
je 0x1800b7476
mov rdi, qword [rbx + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1800b743c
add qword [rbx + 0x10], rcx
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
mov dword [rsi], 0
cmp rbx, 0xffffffffffffffff
jne 0x1800b74b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x1800b7485
xor ebx, ebx
mov dword [rsi], 0x51
jmp 0x1800b74b5
mov dword [rsi], 0x1b
mov rax, 0xffffffffffffffff
jmp 0x1800b74b8
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.1800c1310
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1800b6ec0
mov dword [rbp + 0xde4], edi
mov dword [rsi], 0x37
mov rax, rbx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.180150f20
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800b7ca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x180331338]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800b7d53
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800c1310
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800b6ec0
jmp 0x1800b7e1b
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x1800b7df0
sub edx, 1
je 0x1800b7d9a
cmp edx, 0x15
jne 0x1800b7da1
lea rdx, [rsp + 0x38]
mov r8, rbx
mov r9d, 0x2e
call fcn.1800d3110
test rax, rax
je 0x1800b7da1
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
jmp 0x1800b7e1b
lea rdx, [rsp + 0x34]
jmp 0x1800b7d72
mov byte [rbx], 0
mov dword [rdi], 0
call fcn.18019b958
mov dword [rax], 0x273f
call fcn.18019b958
mov ebx, dword [rax]
call fcn.18019b958
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800c1310
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800b6ec0
jmp 0x1800b7e1b
cmp dword [rsp + 0x20], 2
jle 0x1800b7e12
lea r9, [rsp + 0x32]
mov edx, 0x2e
lea r8, [0x180238e80]
mov rcx, rbx
call fcn.1800ba5b0
jmp 0x1800b7e15
mov byte [rbx], 0
mov dword [rdi], 0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180150f20
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800b9e20
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x180239580]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1800b9e4a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1802395a0]
mov rcx, rbx
mov r14, rax
call fcn.1801dba38
test rax, rax
je 0x1800b9ead
mov rcx, rbx
test r14, r14
je 0x1800b9e97
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1800b9ee5
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800b9ee5
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1800b9fa8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1800b9f10
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.1801ca7b8]
mov rdi, rax
test rax, rax
je 0x1800b9f9a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800b9f9a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1800b9f40
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1800b9f54
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1800b9f70
mov rcx, rdi
test r14, r14
je 0x1800b9f91
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1800b9f97
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.18019b840]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x1800bf690
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.18019b854]
mov rdi, rax
test rax, rax
je 0x1800bf70d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1800bf738
cmp ebx, esi
je 0x1800bf738
cmp ebx, 0x8000
ja 0x1800bf738
cmp ebx, esi
jb 0x1800bf733
mov edx, ebx
mov rcx, rdi
call qword [fcn.18019b854]
mov rdi, rax
test rax, rax
jne 0x1800bf6d0
mov rcx, rbp
call qword [fcn.18019b840]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1800bf718
mov rcx, rdi
jmp 0x1800bf710

Function at 0x1800c3070
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1800c3085
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1800c2be0

Function at 0x1800c3c30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1800cbc30
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x1800a8e29.0
mov rcx, rdi
mov rsi, rax
call case.0x1800a8e29.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1800c3ce0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1800cbc30
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1800cbcc0
cmp rax, 0x3e8
ja 0x1800c3d11
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1800c3c90
test rsi, rsi
je 0x1800c3ced
mov rcx, rsi
call fcn.18019b840
test rbx, rbx
je 0x1800c3cfa
mov rcx, rbx
call fcn.18019b840
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1800c3d1e
mov rcx, rsi
call fcn.18019b840
test rbx, rbx
je 0x1800c3d2b
mov rcx, rbx
call fcn.18019b840
mov eax, 1
jmp 0x1800c3cfc