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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x180169b40]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1800c12d5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1800c1336
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.18009ac00
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800d85d0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1800c13f1
sub ecx, 1
je 0x1800c1464
sub ecx, 1
je 0x1800c13a0
cmp ecx, 1
je 0x1800c1383
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800e0a48]
call fcn.18009ac00
jmp 0x1800c1464
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1800c0f70
test eax, eax
je 0x1800c1464
jmp 0x1800c130a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1800c1464
sub rax, rsi
cmp rax, rbp
jae 0x1800c1464
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.18009ad80
jmp 0x1800c1464
cmp r8d, 4
jle 0x1800c1464
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1800c1464
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.18009ab20
mov esi, eax
test eax, eax
je 0x1800c1443
mov edx, 5
mov rcx, rbx
call fcn.1800c1f30
mov eax, esi
jmp 0x1800c130a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800aa190
mov rcx, r14
call fcn.1800aa470
test eax, eax
je 0x1800c1308
mov edx, 5
mov rcx, rbx
call fcn.1800c1f30
mov eax, Ordinal_45
jmp 0x1800c130a
Function at 0x1800d4340
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1800d4382
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1800d43c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1800d4422
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1800d43e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800d4463
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x180153ff2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x180153ff3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800d4430
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1800d45e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800d4830
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800d46fa
mov rax, qword [0x180169b08]
cmp qword [rsp + 0x20], rax
jb 0x1800d4644
mov rax, qword [0x180169b10]
cmp qword [rsp + 0x20], rax
ja 0x1800d4644
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800d4606
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800d4675
jmp 0x1800d46fa
cmp dword [rsp + 0x50], 0x10000
jne 0x1800d46dd
cmp qword [rsp + 0x48], 0x10000
jb 0x1800d46dd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800d46bb
mov rax, qword [rsp + 0x28]
jmp 0x1800d46fc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800d46cb
xor eax, eax
jmp 0x1800d46fc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800d46f5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800d4830
mov qword [rsp + 0x20], rax
jmp 0x1800d4606
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800d4710
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800d4870
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800d4826
mov rax, qword [0x180169b08]
cmp qword [rsp + 0x20], rax
jb 0x1800d476b
mov rax, qword [0x180169b10]
cmp qword [rsp + 0x20], rax
ja 0x1800d476b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800d472d
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x1800d479c
jmp 0x1800d4826
cmp dword [rsp + 0x50], 0x10000
jne 0x1800d4804
cmp qword [rsp + 0x48], 0x10000
jb 0x1800d4804
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800d47e2
mov rax, qword [rsp + 0x28]
jmp 0x1800d4828
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800d47f2
xor eax, eax
jmp 0x1800d4828
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800d4821
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800d4870
mov qword [rsp + 0x20], rax
jmp 0x1800d472d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800d48c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800d4e50
mov qword [rsp + 0x28], 0
cmp qword [0x18016bd90], 0
jne 0x1800d4908
cmp qword [0x18016bd88], 0
je 0x1800d4908
mov rax, qword [0x18016bd88]
mov qword [0x18016bd90], rax
cmp qword [0x18016bd90], 0
je 0x1800d49ae
mov rax, qword [0x18016bd90]
cmp qword [rax + 0x10], 0
je 0x1800d49ae
mov rax, qword [0x18016bd90]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800d49ae
mov rax, qword [0x18016bd90]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800d49ae
mov rax, qword [0x18016bd90]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800d4974
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800d497b
xor eax, eax
jmp 0x1800d4b29
mov rax, qword [0x18016bd90]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x1800d4b29
mov rax, qword [0x18016bd88]
mov qword [0x18016bd90], rax
jmp 0x1800d49d0
mov rax, qword [0x18016bd90]
mov rax, qword [rax + 8]
mov qword [0x18016bd90], rax
cmp qword [0x18016bd90], 0
je 0x1800d4a1d
cmp qword [0x18016bd90], 0
je 0x1800d4a1b
mov rax, qword [0x18016bd90]
cmp qword [rax + 0x10], 0
je 0x1800d4a1b
mov rax, qword [0x18016bd90]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800d4a1b
mov rax, qword [0x18016bd90]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800d4a1b
jmp 0x1800d494c
jmp 0x1800d49be
mov rcx, qword [rsp + 0x60]
call fcn.1800d6aa0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800d4b30
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800d4b27
mov rax, qword [rsp + 0x48]
mov qword [0x18016bd90], rax
mov rax, qword [0x18016bd90]
mov dword [rax], 0x52727464
mov rax, qword [0x18016bd90]
mov qword [rax + 0x10], 0
mov rax, qword [0x18016bd90]
mov rcx, qword [0x18016bd88]
mov qword [rax + 8], rcx
mov rax, qword [0x18016bd90]
mov qword [0x18016bd88], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18016bd90]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800d4ad8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800d4b12
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800d4ace
mov rax, qword [0x18016bd90]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800d494c
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800d5840
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, Ordinal_50
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800d5887
xor al, al
jmp 0x1800d5929
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1800d58b1
xor al, al
jmp 0x1800d5929
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x1800d5921
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x1800d5921
mov al, 1
jmp 0x1800d5929
jmp 0x1800d5927
xor al, al
add rsp, 0x78
ret

Function at 0x1800d5c30
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18016bd88]
mov qword [rsp + 0x28], rax
jmp 0x1800d5c50
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800d5c7f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800d5c7d
call sub.KERNEL32.dll_GetLastError
jmp 0x1800d5c81
jmp 0x1800d5c42
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800d6340
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18016bda0], eax
je 0x1800d635b
mov eax, 0x10dd
jmp 0x1800d6480
mov rax, qword [0x18016bdb8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800d6405
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800d63d0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800d63d0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800d4f90
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.1800d8028
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1800d6367
mov qword [0x18016bdb8], 0
call fcn.1800d59f0
mov rax, qword [0x18016bdb0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1800d6469
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.1800d8028
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800d6421
mov qword [0x18016bdb0], 0
mov dword [0x18016bda0], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800d69b0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18016bda4], 0
je 0x1800d69cd
mov eax, dword [0x18016bda4]
jmp 0x1800d6a93
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800d69e0
xor eax, eax
jmp 0x1800d6a93
mov ecx, reloc.WS2_32.dll_recv
call fcn.1800d7fec
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800d6a4e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800d6a33
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.1800d8028
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18016bda4], eax
mov qword [0x18016bda8], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800d6a93
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800d6a68
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800d6a09
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18016bdb0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18016bdb0], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800d9260
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 0x1800d929a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800d929f
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 0x1800d92e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800d92e8
dec r8
sub rdx, 1
jne 0x1800d92ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140006960
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea r9, [rdx + 2]
mov rdi, rdx
mov rbx, rcx
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mov rsi, r8
mul r9
shr rdx, 1
shl rdx, 2
mov rcx, rdx
mov qword [r8], rdx
call fcn.140019570
mov r10, rax
test rax, rax
je 0x140006ab0
xor eax, eax
lea r11, [0x140000000]
test rdi, rdi
je 0x140006a71
mov r9, r10
movsxd rcx, eax
cmp rcx, rdi
jae 0x1400069d6
movzx edx, byte [rbx]
inc eax
inc rbx
jmp 0x1400069d8
xor edx, edx
movsxd rcx, eax
cmp rcx, rdi
jae 0x1400069eb
movzx r8d, byte [rbx]
inc eax
inc rbx
jmp 0x1400069ee
xor r8d, r8d
movsxd rcx, eax
cmp rcx, rdi
jae 0x140006a00
movzx ecx, byte [rbx]
inc eax
inc rbx
jmp 0x140006a02
xor ecx, ecx
shl rdx, 8
add rdx, r8
shl rdx, 8
add rdx, rcx
mov rcx, rdx
shr rcx, 0x12
movzx ecx, byte [rcx + r11 + 0x30860]
mov byte [r9], cl
mov rcx, rdx
shr rcx, 0xc
and ecx, 0x3f
movzx ecx, byte [rcx + r11 + 0x30860]
mov byte [r9 + 1], cl
mov rcx, rdx
shr rcx, 6
and edx, 0x3f
and ecx, 0x3f
movzx ecx, byte [rcx + r11 + 0x30860]
mov byte [r9 + 2], cl
movzx ecx, byte [rdx + r11 + 0x30860]
mov byte [r9 + 3], cl
add r9, 4
movsxd rcx, eax
cmp rcx, rdi
jb 0x1400069c4
mov rax, rbp
mul rdi
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rdi, rax
movsxd rdx, dword [r11 + rdi*4 + 0x2f7e0]
test rdx, rdx
jle 0x140006aad
mov rcx, qword [rsi]
dec rcx
add rcx, r10
nop word [rax + rax]
mov byte [rcx], 0x3d
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140006aa0
mov rax, r10
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140006ca0
Capabilities:
Encrypt data using rc4 prga

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, 0x200
xor esi, esi
movsxd r14, edx
mov r10d, esi
mov r11d, esi
mov ebx, esi
mov rbp, rcx
mov edi, pe_nt_image_headers64
nop dword [rax]
nop word [rax + rax]
mov eax, r11d
mov byte [rsp + rbx], r11b
cdq
lea rbx, [rbx + 1]
idiv r9d
inc r11d
movsxd rax, edx
movzx ecx, byte [rax + r8]
mov byte [rsp + rbx + 0xff], cl
cmp r11d, edi
jl 0x140006ce0
mov r8, rsi
mov eax, edi
nop dword [rax + rax]
movzx ecx, byte [rsp + r8 + 0x100]
movzx r9d, byte [rsp + r8]
add r10d, ecx
add r10d, r9d
and r10d, 0x800000ff
jge 0x140006d3a
dec r10d
or r10d, 0xffffff00
inc r10d
movsxd rcx, r10d
movzx edx, byte [rsp + rcx]
mov byte [rsp + rcx], r9b
mov byte [rsp + r8], dl
inc r8
sub rdi, 1
jne 0x140006d10
mov r11, r14
test r14d, r14d
jle 0x140006dce
mov r10, qword [rsp + 0x230]
sub rbp, r10
inc eax
and eax, 0x800000ff
jge 0x140006d77
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea rdx, [rsp]
add rdx, rcx
movzx r9d, byte [rdx]
lea ecx, [rsi + r9]
and ecx, 0x800000ff
jge 0x140006d9b
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd rsi, ecx
lea r8, [rsp]
movzx ecx, byte [r8 + rsi]
mov byte [r8 + rsi], r9b
mov byte [rdx], cl
mov edx, ecx
movzx ecx, byte [r8 + rsi]
add rdx, rcx
movzx ecx, dl
movzx edx, byte [rsp + rcx]
xor dl, byte [r10 + rbp]
mov byte [r10], dl
inc r10
sub r11, 1
jne 0x140006d65
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x1400070e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
mov ebx, edi
cmp byte [rcx], bl
je 0x1400071e0
mov qword [rsp + 0x30], rbp
movabs rbp, 0x20006100200061
nop dword [rax]
cmp ebx, 0x1387
jge 0x1400071c9
movsxd rax, ebx
cmp byte [rax + rsi], 0x25
jne 0x1400071af
cmp byte [rax + rsi + 1], 0x25
jne 0x1400071af
movzx ecx, byte [rax + rsi + 2]
lea rdx, [rax + rsi]
lea eax, [rcx - 0x43]
cmp al, 0x35
ja 0x140007155
movsx rax, al
bt rbp, rax
jae 0x140007155
mov eax, 3
lea r8d, [rax - 2]
jmp 0x1400071b7
sub cl, 0x30
cmp cl, 9
ja 0x1400071af
lea rcx, [rdx + 2]
call fcn.140016c28
mov r8d, eax
mov eax, 0x66666667
imul r8d
mov ecx, edx
sar ecx, 2
mov edx, ecx
shr edx, 0x1f
add ecx, edx
je 0x14000718c
call fcn.140006df0
lea ecx, [rax + 3]
add eax, 4
jmp 0x140007194
mov ecx, 3
lea eax, [rcx + 1]
add ecx, ebx
movsxd rdx, ecx
movzx ecx, byte [rdx + rsi]
sub cl, 0x43
cmp cl, 0x35
ja 0x1400071af
movsx rcx, cl
bt rbp, rcx
jb 0x1400071b7
mov eax, 1
mov r8d, eax
add ebx, eax
add edi, r8d
movsxd rcx, ebx
cmp byte [rcx + rsi], 0
jne 0x140007110
mov rbp, qword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400074e0
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14000d6d0
test rax, rax
je 0x140007548
mov rcx, rax
call fcn.14000dc30
mov qword [0x140542be0], rax
test rax, rax
je 0x140007548
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
xor ecx, ecx
mov dword [rsp + 0x50], ebx
mov r9d, 0x23be
mov dword [rsp + 0x20], ebx
mov r8, rax
mov edx, 0x10000
call qword [sym.imp.kernel32.dll_CreateThread]
cmp dword [rsp + 0x50], ebx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x140007550
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x470
mov r14, rcx
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x260]
xor edx, edx
mov r8d, 0x208
xor esi, esi
call fcn.14000f260
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbp, rax
call qword [sym.imp.kernel32.dll_Process32FirstW]
cmp eax, 1
jne 0x14000764f
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_Process32NextW]
cmp eax, 1
jne 0x14000764f
mov qword [rsp + 0x488], rdi
mov qword [rsp + 0x480], rbx
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000762c
mov r9d, 0x208
lea r8, [rsp + 0x260]
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_K32GetModuleFileNameExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.kernel32.dll_CloseHandle]
test ebx, ebx
je 0x14000762c
mov rdx, r14
lea rcx, [rsp + 0x260]
call qword [sym.imp.shlwapi.dll_StrStrIW]
test rax, rax
cmovne esi, dword [rsp + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_Process32NextW]
cmp eax, 1
je 0x1400075d1
mov rdi, qword [rsp + 0x488]
mov rbx, qword [rsp + 0x480]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
lea r11, [rsp + 0x470]
mov eax, esi
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret