joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016cc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140016ce2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140016cf1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140016d14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140016d16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016d52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140016dee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140016d8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140016dce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140016dee
cmp rbx, rax
ja 0x140016da0
test rbx, rbx
je 0x140016dee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140017250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001727d
xor eax, eax
jmp 0x1400173e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400172b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400172b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400173e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400173dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400172fa
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140017325
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400173e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140017394
sub eax, 1
je 0x140017394
cmp eax, 2
jne 0x1400173dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400173e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400173c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400173dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400173e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140044e50
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140017850
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140017923
cmp byte [rcx + 0x71], 0
je 0x140017923
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001791f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400178e4
sub eax, 1
je 0x1400178e8
cmp eax, 2
jne 0x14001791f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140044e50
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140017916
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001791f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400178cc
xor al, al
jmp 0x1400178cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140044e50
add rsp, 0x60
pop rbx
ret
Function at 0x14001a2d0
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 + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
call fcn.140028b50
mov r15d, 0xfffffffa
cmp qword [rbx + 0x18], 0xf
jbe 0x14001a336
mov r14, qword [rbx]
mov rcx, r14
mov rbx, r14
jmp 0x14001a33c
mov r14, rbx
mov rcx, rbx
mov r13, qword [rsi]
add r13, rcx
cmp rbx, r13
je 0x14001a441
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
nop word [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x14001a3e6
movsxd r12, ebp
movsxd rsi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebx, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + 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 0x14001a3cd
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14001a3c2
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001a3dc
mov rcx, rdi
call fcn.140018510
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rbx, 1
jne 0x14001a390
inc r14
cmp r14, r13
jne 0x14001a360
cmp r15d, 0xfffffffa
jle 0x14001a441
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
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 0x14001a439
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14001a42e
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001a441
mov rcx, rdi
call fcn.140018510
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x14001a489
nop word [rax + rax]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x14001a475
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x14001a46d
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x14001a480
mov r9b, 0x3d
mov rcx, rdi
call fcn.140018510
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x14001a450
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 0x14001b070
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov r14, rcx
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jns 0x14001b134
mov qword [rsp + 0x50], r12
movabs r12, 0x7ffffffffffffc17
mov qword [rsp + 0x58], r15
movabs r15, 0x7fffffffffffffff
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14001b114
lea rcx, [rsp + 0x28]
call fcn.1400192b0
mov rax, qword [rsp + 0x28]
cmp rax, r12
jge 0x14001b0ec
add rax, 0x3e8
mov qword [rsp + 0x20], rax
jmp 0x14001b0f1
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x20]
call fcn.140032d10
mov r9d, edi
mov r8d, esi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
js 0x14001b0c0
mov r12, qword [rsp + 0x50]
mov rax, rbx
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rax, rbx
jmp 0x14001b121

Function at 0x14001b140
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea edi, [rcx + 1]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x40], edx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], r8d
lea rdx, [rsp + 0x50]
mov ecx, edi
mov dword [rsp + 0x50], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14001b257
mov qword [rsp + 0x280], rbp
movabs rbp, 0x7ffffffffffffc17
mov qword [rsp + 0x288], rsi
movabs rsi, 0x7fffffffffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14001b223
lea rcx, [rsp + 0x38]
call fcn.1400192b0
mov rax, qword [rsp + 0x38]
cmp rax, rbp
jge 0x14001b1f0
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x14001b1f5
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.140032d10
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
js 0x14001b1c4
mov rbp, qword [rsp + 0x280]
mov rax, rbx
mov rsi, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140044e50
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
mov rax, rbx
jmp 0x14001b236
Function at 0x14001b840
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x140059040]
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 0x14001b878
cmp ax, 0x17
jne 0x14001b8ed
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 sub.VCRUNTIME140.dll_memset
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 0x14001b8ed
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001b8d2
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140028c00
mov al, 1
jmp 0x14001b8ef
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140044e50
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14001cda0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdx, qword [rcx + 8]
mov rdi, rcx
mov rax, qword [rcx + 0x20]
xor r9d, r9d
mov r8, qword [rcx + 0x28]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
lea ebx, [rdx + 1]
mov qword [rsp + 0x58], rdx
mov dword [rsp + 0x44], r8d
mov ecx, ebx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 1
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
jns 0x14001ce86
movabs rbp, 0x7ffffffffffffc17
movabs rsi, 0x7fffffffffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14001ce9c
lea rcx, [rsp + 0x38]
call fcn.1400192b0
mov rax, qword [rsp + 0x38]
cmp rax, rbp
jge 0x14001ce54
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x14001ce59
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.140032d10
lea rax, [rsp + 0x40]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x14001ce28
test rcx, rcx
je 0x14001ce9c
mov rcx, qword [rdi + 8]
call fcn.14001b260
test al, al
je 0x14001ce9c
mov al, 1
jmp 0x14001ce9e
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140044e50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001d000
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140059040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r9, qword [rcx + 8]
mov rbp, r8
mov rax, qword [rcx + 0x20]
lea r8, [rsp + 0x50]
mov r10, qword [rcx + 0x28]
mov rsi, rdx
mov dword [rsp + 0x48], eax
mov rdi, rcx
lea ebx, [r9 + 1]
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov dword [rsp + 0x50], 1
mov ecx, ebx
mov dword [rsp + 0x4c], r10d
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
movabs r15, 0x7ffffffffffffc17
movabs r14, 0x7fffffffffffffff
test eax, eax
jns 0x14001d0f5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14001d181
lea rcx, [rsp + 0x38]
call fcn.1400192b0
mov rax, qword [rsp + 0x38]
cmp rax, r15
jge 0x14001d0c3
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x14001d0c8
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
call fcn.140032d10
lea rax, [rsp + 0x48]
xor r9d, r9d
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_select]
movsxd rcx, eax
test eax, eax
js 0x14001d093
test rcx, rcx
je 0x14001d181
mov rcx, qword [rdi + 8]
call fcn.14001b260
test al, al
je 0x14001d181
mov rdi, qword [rdi + 8]
xor r9d, r9d
mov rcx, rdi
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
jns 0x14001d17c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
jne 0x14001d17c
lea rcx, [rsp + 0x38]
call fcn.1400192b0
mov rax, qword [rsp + 0x38]
cmp rax, r15
jge 0x14001d154
add rax, 0x3e8
mov qword [rsp + 0x30], rax
jmp 0x14001d159
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x30]
call fcn.140032d10
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
movsxd rbx, eax
test eax, eax
js 0x14001d128
mov rax, rbx
jmp 0x14001d188
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140044e50
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14001d240
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140059040]
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 0x14001d299
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.14001b840
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140044e50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140042650
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 0x140042715
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140042715
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 0x14004272e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x140042705
cmp byte [rcx], 0x5c
jne 0x1400426fe
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x1400426fe
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400426ec
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x1400426fb
test r8b, 0x10
jne 0x1400426fe
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x1400426fe
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140038f30
test edi, edi
jne 0x140042670
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.140038f20
int3

Function at 0x140045b2c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400bd7f0]
mov dword [rax], 1
mov rax, qword [0x1400bd800]
mov dword [rax], 1
mov rax, qword [0x1400bd810]
mov dword [rax], 1
mov rax, qword [0x1400bd710]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140030fe0
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140098ea0
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400310ad
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop word cs:[rax + rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400aa104
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14003108e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140031080
test rsi, rsi
je 0x1400aa104
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140031040
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400310dc
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400310f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400311ad
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400aa10a
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14003118e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140031180
test rsi, rsi
je 0x1400aa10a
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140031140
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret