joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443110
Capabilities:
Parse pe header
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x44314d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x4431db
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x443171
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4431db
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4431b8
cmp ecx, 0x20b
je 0x443190
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4431db
cmp dword [rax + 0x84], 0xe
ja 0x4431a4
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4431db
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x4431db
cmp dword [rax + 0x74], 0xe
ja 0x4431c9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x4431db
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x005ed3f8], 0xffffffffffffffff
mov qword [0x005ed400], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x005ead8c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x005ead88]
mov dword [rcx], eax
call fcn.00443620
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x443235
lea rcx, [0x00443610]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00561010]
lea rcx, [0x00561008]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x005ead84]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x005ead80]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x00561000]
lea rcx, [0x00560f70]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x4432d6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x4432c6
cmp al, 0x22
je 0x4432c6
jmp 0x4432b0
cmp byte [r8], 0x22
jne 0x4432e6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4432e6
cmp byte [r8], 0x20
jbe 0x4432e6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4432d6
movzx eax, byte [r8]
test al, al
je 0x4432fc
cmp al, 0x20
ja 0x4432fc
inc r8
mov qword [rsp + 0x30], r8
jmp 0x4432e6
test byte [rsp + 0x8c], 1
je 0x443311
movzx r9d, word [rsp + 0x90]
jmp 0x443317
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.004017e0
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x443333
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x443357
mov eax, edi
jmp 0x443360
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x4482e0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x58], rdi
mov rbx, rcx
mov qword [rcx + 8], rsi
call fcn.00449fb0
mov edx, 0x98
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.00449f50
test rax, rax
mov rdi, rax
jne 0x44833b
mov rcx, rbx
call fcn.00449fc0
mov r11, qword [rbx]
mov dword [r11 + 0x28], getservbyport
mov rcx, qword [rbx]
mov dword [rcx + 0x2c], esi
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
mov dword [rdi + 0x5c], 0x3b9aca00
lea rax, [fcn.00446d50]
lea rcx, str.JPEGMEM
mov qword [rdi], rax
lea rax, [0x00446f00]
mov qword [rdi + 8], rax
lea rax, [0x00447000]
mov qword [rdi + 0x10], rax
lea rax, [fcn.00447210]
mov qword [rdi + 0x18], rax
lea rax, [0x00447430]
mov qword [rdi + 0x20], rax
lea rax, [0x004474e0]
mov qword [rdi + 0x28], rax
lea rax, [0x00447590]
mov qword [rdi + 0x30], rax
lea rax, [0x00447c00]
mov qword [rdi + 0x38], rax
lea rax, [0x00447e80]
mov qword [rdi + 0x40], rax
lea rax, [fcn.00448110]
mov qword [rdi + 0x48], rax
lea rax, [0x00448280]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x58], eax
mov qword [rdi + 0x68], rsi
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x60], rsi
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x88], rsi
mov dword [rdi + 0x90], 0x98
mov qword [rbx + 8], rdi
call qword [sym.imp.msvcrt.dll_getenv]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
test rax, rax
je 0x448463
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x20]
lea rdx, str._ld_c
mov rcx, rax
mov byte [rsp + 0x40], 0x78
call qword [sym.imp.msvcrt.dll_sscanf]
test eax, eax
jle 0x448463
movzx eax, byte [rsp + 0x40]
cmp al, 0x6d
je 0x448439
cmp al, 0x4d
jne 0x448456
mov eax, dword [rsp + 0x20]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
mov dword [rdi + 0x58], eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
mov eax, dword [rsp + 0x20]
imul eax, eax, 0x3e8
mov dword [rdi + 0x58], eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x454c00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov rbp, rcx
nop
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x454ccc
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.004435a0
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x454c90
sub eax, edi
jmp 0x454c92
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x454c80
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x454cc0
sub eax, edi
jmp 0x454cc2
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x454cb0
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x454daa
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x454d52
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x454d24
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.00456ca0
mov dword [rsi + 0x4c], eax
jmp 0x454d3a
cmp ecx, 2
jne 0x454d3a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.00456a60
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.004435a0
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x454d93
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbp + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x454daa
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x454c30
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x4852b0
Capabilities:
Access the windows event log

Disassembly:
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbp
mov eax, 0x280
call fcn.0055e9c0
sub rsp, rax
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x228], rbx
mov qword [rbp + 0x220], rdi
mov rax, qword [0x005ca070]
mov qword [rbp + 0x210], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x485334
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x485334
lea rbx, [rbp + 0x248]
call sub.msvcrt.dll___iob_func
mov rdx, qword [rbp + 0x240]
lea rcx, [rax + 0x60]
mov r8, rbx
call sub.msvcrt.dll_vfprintf
jmp 0x4854cc
mov r8, qword [rbp + 0x240]
mov rcx, r8
call fcn.00484b60
inc eax
mov edi, eax
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.0055e9c0
sub rsp, rax
lea rbx, [rsp + 0x50]
test rbx, rbx
jne 0x48536e
lea rbx, str.no_stack_
jmp 0x48541a
mov r9d, edi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4853a9
xor edx, edx
test rdi, rdi
je 0x4853a9
nop
mov rax, qword [rbp + 0x240]
inc rdx
cmp rdx, rdi
movsx ecx, byte [rdx + rax - 1]
mov word [rbx + rdx*2 - 2], cx
jb 0x485390
xor edx, edx
test rdi, rdi
je 0x48541a
lea r9, [0x00400000]
cmp word [rbx + rdx*2], 0x25
jne case.0x4853e5.47
lea r8, [rbx + rdx*2 + 2]
movzx eax, word [r8]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x4853e5.47
cdqe
movzx eax, byte [r9 + rax + 0x85508]
mov ecx, dword [r9 + rax*4 + 0x854f0]
add rcx, r9
jmp rcx
inc rdx
add r8, 2
jmp 0x4853c3
mov word [rbx + rdx*2 + 2], 0x53
jmp case.0x4853e5.47
mov word [rbx + rdx*2 + 2], reloc.WS2_32.dll_WSAStartup
jmp case.0x4853e5.47
mov word [rbx + rdx*2 + 2], 0x43
jmp case.0x4853e5.47
mov word [rbx + rdx*2 + 2], 0x63
inc rdx
cmp rdx, rdi
jb 0x4853b7
lea r9, [rbp + 0x248]
lea rcx, [rbp + 0x10]
mov r8, rbx
mov edx, 0xff
call sub.msvcrt.dll__vsnwprintf
mov word [rbp + 0x20e], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4854b3
call fcn.00485140
test eax, eax
jle 0x4854b3
lea rdx, str.OPENSSL
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov qword [rsp + 0x40], 0
xor r9d, r9d
mov rbx, rax
lea rax, [rbp + 0x10]
xor r8d, r8d
mov qword [rbp], rax
lea rax, [rbp]
mov dx, 1
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4854cc
lea r8, str.OpenSSL:_FATAL
lea rdx, [rbp + 0x10]
mov r9d, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rbp + 0x210]
call fcn.0055e990
mov rbx, qword [rbp + 0x228]
mov rdi, qword [rbp + 0x220]
lea rsp, [rbp + 0x230]
pop rbp
ret
Function at 0x48ef10
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
test rcx, rcx
mov r9, rcx
je 0x48ef67
movzx eax, byte [rcx]
test al, al
je 0x48ef67
mov r10d, 0x100
nop
nop
movsx edx, al
inc r9
or edx, r10d
add r10d, 0x100
mov eax, edx
shr eax, 2
xor eax, edx
and eax, 0xf
movzx ecx, al
mov al, byte [r9]
imul edx, edx
rol r8d, cl
xor r8d, edx
test al, al
jne 0x48ef30
mov eax, r8d
shr eax, 0x10
xor eax, r8d
ret
xor eax, eax
ret
Function at 0x49e680
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0055e9c0
sub rsp, rax
mov qword [rsp + 0x40], rbx
mov rbx, r8
call fcn.0049e0c0
test eax, eax
js 0x49e8be
mov eax, dword [rbx + 0xf0]
xor r10d, r10d
shl eax, 2
test eax, eax
movsxd r9, eax
jle 0x49e709
lea rdx, [rbx + r9*4 + 8]
lea r8, [rbx + 8]
nop
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r10, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r9, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r10, r9
jl 0x49e6c0
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x49e8bc
mov qword [rsp + 0x48], rdi
lea r10, [rbx + 2]
lea rdi, [0x00400000]
nop
mov r8d, dword [r10 + 0xe]
add r10, 0x10
inc r11d
mov rax, r8
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x170a10]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
mov r9d, dword [rdi + rdx*4 + 0x171610]
movzx eax, r8b
movzx eax, byte [rdi + rax*4 + 0x170a10]
xor r9d, dword [rdi + rcx*4 + 0x171e10]
xor r9d, dword [rdi + rax*4 + 0x172210]
movzx eax, byte [r10]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
xor r9d, dword [rdi + rcx*4 + 0x171a10]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov rax, r9
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x170a10]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
mov r8d, dword [rdi + rdx*4 + 0x171610]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x171e10]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x171a10]
movzx eax, byte [rdi + rax*4 + 0x170a10]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rax*4 + 0x172210]
mov rax, r9
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rdi + rax*4 + 0x170a10]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
mov r8d, dword [rdi + rdx*4 + 0x171610]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x171e10]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x171a10]
movzx eax, byte [rdi + rax*4 + 0x170a10]
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rax*4 + 0x172210]
movzx eax, byte [r10 + 0xb]
mov dword [r10 + 6], r8d
movzx edx, byte [rdi + rax*4 + 0x170a10]
movzx eax, byte [r10 + 0xc]
movzx ecx, byte [rdi + rax*4 + 0x170a10]
mov r8d, dword [rdi + rdx*4 + 0x171e10]
mov rax, r9
xor r8d, dword [rdi + rcx*4 + 0x171a10]
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x170a10]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x171610]
movzx eax, byte [rdi + rax*4 + 0x170a10]
xor r8d, dword [rdi + rax*4 + 0x172210]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x49e730
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x4a8ab0
Capabilities:
Encode data using base64

Disassembly:
push rbx
xor r11d, r11d
test r8d, r8d
mov r10, rdx
mov r9, rcx
jle 0x4a8ba7
lea rbx, [0x0057f6b0]
nop
nop
cmp r8d, 3
movzx ecx, byte [r10]
jl 0x4a8b2f
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 2]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 2], al
mov al, cl
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9 + 3], al
jmp 0x4a8b85
shl ecx, 0x10
cmp r8d, 2
jne 0x4a8b42
movzx eax, byte [r10 + 1]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + rbx]
mov byte [r9], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
cmp r8d, 1
movzx eax, byte [rax + rbx]
mov byte [r9 + 1], al
jne 0x4a8b71
lea eax, [r8 + 0x3c]
jmp 0x4a8b7c
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + rbx]
mov byte [r9 + 2], al
mov byte [r9 + 3], 0x3d
sub r8d, 3
add r9, 4
add r11d, 4
add r10, 3
test r8d, r8d
jg 0x4a8ad0
mov byte [r9], 0
mov eax, r11d
pop rbx
ret
mov byte [rcx], r11b
mov eax, r11d
pop rbx
ret
Function at 0x4a8d90
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x68
call fcn.0055e9c0
sub rsp, rax
mov qword [rsp + 0x58], rbp
movsxd rbp, dword [rsp + 0x90]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ebp, ebp
mov qword [rsp + 0x28], r15
mov r13, r9
mov rdi, rdx
mov rsi, rcx
mov dword [r8], r14d
mov r15, r8
je 0x4a8fca
cmp dword [rcx + 4], 0x50
jle 0x4a8df9
lea r8, str.ctx__length____int_sizeof_ctx__enc_data_
lea edx, [rax + 0x23]
lea rcx, [0x005d8d38]
call fcn.00485560
movsxd rcx, dword [rsi]
mov qword [rsp + 0x40], r12
mov r12d, dword [rsi + 4]
lea eax, [rcx + rbp]
cmp eax, r12d
jge 0x4a8e24
lea rcx, [rcx + rsi + 8]
mov r8, rbp
mov rdx, r13
call fcn.004435a0
add dword [rsi], ebp
jmp 0x4a8fc5
test ecx, ecx
mov qword [rsp + 0x60], rbx
je 0x4a8e70
sub r12d, ecx
lea rcx, [rcx + rsi + 8]
mov rdx, r13
movsxd rbx, r12d
mov r8, rbx
call fcn.004435a0
mov r8d, dword [rsi + 4]
lea rdx, [rsi + 8]
mov rcx, rdi
add r13, rbx
sub ebp, r12d
call fcn.004a8ab0
mov dword [rsi], r14d
movsxd rcx, eax
add rdi, rcx
inc rdi
mov byte [rdi - 1], 0xa
mov byte [rdi], r14b
lea r14d, [rax + 1]
cmp ebp, dword [rsi + 4]
jl 0x4a8fa8
lea r12, [0x0057f6b0]
mov r9d, dword [rsi + 4]
xor r11d, r11d
xor ebx, ebx
test r9d, r9d
mov r8, rdi
jle 0x4a8f81
lea r10, [r13 + 1]
nop
nop
cmp r9d, 3
jl 0x4a8f07
movzx eax, byte [r10]
movzx ecx, byte [r10 - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r10 + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [r8], al
mov eax, ecx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [r8 + 1], al
mov eax, ecx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [r8 + 2], al
mov al, cl
and eax, 0x3f
add r8, 4
movzx eax, byte [rax + r12]
mov byte [r8 - 1], al
jmp 0x4a8f68
movzx ecx, byte [r10 - 1]
shl ecx, 0x10
cmp r9d, 2
jne 0x4a8f1e
movzx eax, byte [r10]
shl eax, 8
or ecx, eax
mov rax, rcx
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [r8], al
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
cmp r9d, 1
movzx eax, byte [rax + r12]
mov byte [r8 + 1], al
jne 0x4a8f4f
lea eax, [r9 + 0x3c]
jmp 0x4a8f5b
shr rcx, 6
and ecx, 0x3f
movzx eax, byte [rcx + r12]
mov byte [r8 + 2], al
mov byte [r8 + 3], 0x3d
add r8, 4
sub r9d, 3
add r11d, 4
add rbx, 4
add r10, 3
test r9d, r9d
jg 0x4a8ea0
mov byte [r8], 0
movsxd rcx, dword [rsi + 4]
add rdi, rbx
mov byte [rdi], 0xa
inc rdi
sub ebp, ecx
add r13, rcx
mov byte [rdi], 0
cmp ebp, dword [rsi + 4]
lea r14d, [r14 + r11 + 1]
jge 0x4a8e80
test ebp, ebp
mov rbx, qword [rsp + 0x60]
je 0x4a8fc0
lea rcx, [rsi + 8]
movsxd r8, ebp
mov rdx, r13
call fcn.004435a0
mov dword [rsi], ebp
mov dword [r15], r14d
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x68
ret
Function at 0x4acbf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.0055e9c0
sub rsp, rax
mov rax, qword [0x005ca070]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
lea edi, [rdx - 1]
mov qword [rsp + 0x58], r13
mov r13, qword [rsp + 0xb0]
lea eax, [rdi - 0x29]
mov esi, r9d
mov r12, r8
cmp r9d, eax
jle 0x4acc5d
mov edx, 0x79
lea r9, [0x005d9118]
mov dword [rsp + 0x20], gethostbyname
lea ecx, [rdx - 0x75]
lea r8d, [rdx - 0xb]
call fcn.0047c130
xor eax, eax
jmp 0x4ace3e
cmp edi, 0x29
jge 0x4acc89
mov edx, 0x79
lea r9, [0x005d9130]
mov dword [rsp + 0x20], reloc.WS2_32.dll_gethostbyaddr
lea ecx, [rdx - 0x75]
lea r8d, [rdx - 1]
call fcn.0047c130
xor eax, eax
jmp 0x4ace3e
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], rbp
mov byte [rcx], 0
lea rbp, [rcx + 0x15]
lea rbx, [rcx + 1]
call fcn.004812b0
movsxd rdx, dword [rsp + 0xb8]
xor r9d, r9d
mov r8, rbp
mov rcx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.0049dc30
mov r11d, edi
lea rcx, [rbp + 0x14]
sub r11d, esi
xor edx, edx
sub r11d, 0x29
movsxd r8, r11d
call sub.msvcrt.dll_memset
movsxd rax, esi
movsxd r11, edi
sub r11, rax
mov r8, rsi
mov rdx, r12
lea rcx, [r11 + rbp - 0x14]
mov byte [r11 + rbp - 0x15], 1
call fcn.004435a0
mov edx, reloc.WS2_32.dll_sendto
mov rcx, rbx
call fcn.00481740
test eax, eax
jle 0x4acd4f
add edi, 0xffffffec
lea rdx, [0x005d9148]
mov r8d, 0x48
mov ecx, edi
call fcn.004844e0
test rax, rax
mov rsi, rax
jne 0x4acd56
lea r9, [0x005d9160]
lea edx, [rax + 0x79]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov dword [rsp + 0x20], 0x4b
call fcn.0047c130
xor eax, eax
jmp 0x4ace31
call fcn.004812b0
mov r9d, reloc.WS2_32.dll_sendto
mov r8, rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.004ac9d0
test eax, eax
js 0x4acd4f
test edi, edi
jle 0x4acda0
mov r11, rsi
mov rcx, rbp
mov r10d, edi
sub r11, rbp
nop
nop
nop
movzx eax, byte [r11 + rcx]
inc rcx
xor byte [rcx - 1], al
dec r10
jne 0x4acd90
call fcn.004812b0
lea rcx, [rsp + 0x30]
mov r9d, edi
mov r8, rbp
mov edx, reloc.WS2_32.dll_sendto
mov qword [rsp + 0x20], rax
call fcn.004ac9d0
test eax, eax
js 0x4acd4f
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x31]
lea r9, [rsp + 0x32]
lea r10, [rsp + 0x33]
lea r11, [rsp + 0x34]
sub rdx, rbx
sub r8, rbx
sub r9, rbx
sub r10, rbx
sub r11, rbx
mov ecx, 4
movzx eax, byte [rdx + rbx]
add rbx, 5
xor byte [rbx - 5], al
movzx eax, byte [r8 + rbx - 5]
xor byte [rbx - 4], al
movzx eax, byte [r9 + rbx - 5]
xor byte [rbx - 3], al
movzx eax, byte [r10 + rbx - 5]
xor byte [rbx - 2], al
movzx eax, byte [r11 + rbx - 5]
xor byte [rbx - 1], al
dec rcx
jne 0x4acdf0
mov rcx, rsi
call fcn.004849b0
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.0055e990
add rsp, 0x88
ret
Function at 0x4ad280
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
mov eax, gethostbyname
call fcn.0055e9c0
sub rsp, rax
cmp dword [rsp + 0x60], r9d
mov r10, rcx
jne 0x4ad341
movzx eax, byte [r8]
cmp al, 0x6a
je 0x4ad2ad
cmp al, 0x6b
jne 0x4ad341
cmp al, 0x6b
lea rdx, [r8 + 1]
jne 0x4ad30a
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x4ad2d6
nop
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x4ad2d6
cmp cl, 0xbb
jne 0x4ad2f3
inc eax
cmp eax, ebx
jl 0x4ad2c0
sub ebx, eax
test eax, eax
jne 0x4ad30e
mov dword [rsp + 0x20], 0x8a
lea r9, [0x005d9220]
mov r8d, 0x8a
jmp 0x4ad356
mov dword [rsp + 0x20], 0x81
lea r9, [0x005d9208]
mov r8d, 0x8a
jmp 0x4ad356
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x4ad32e
mov dword [rsp + 0x20], DllRegisterServer
lea r9, str..crypto_rsa_rsa_x931.c
mov r8d, 0x8b
jmp 0x4ad356
mov r8d, ebx
mov rcx, r10
call fcn.004435a0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov dword [rsp + 0x20], WSAStartup
lea r9, [0x005d91f0]
mov r8d, 0x89
mov edx, 0x80
lea ecx, [rdx - 0x7c]
call fcn.0047c130
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret