joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002438c
Capabilities:
Parse pe header

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

Function at 0x14002c9e0
Capabilities:
Parse pe header

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

Function at 0x140001920
Capabilities:
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea r9, [0x1400013c0]
xor edx, edx
mov r8d, 0x3e8
xor ecx, ecx
call qword [sym.imp.USER32.dll_SetTimer]
xor r9d, r9d
lea rdx, [0x1400013d0]
xor r8d, r8d
mov qword [0x140005e80], rax
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
xor r9d, r9d
lea rdx, [0x1400016c0]
xor r8d, r8d
mov ecx, 0xe
mov rdi, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov rbx, rax
test rdi, rdi
je 0x140001a17
test rax, rax
je 0x140001a17
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1400019ed
nop
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400019c0
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rdx, qword [0x140005e80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
call fcn.1400010c0
xor eax, eax
jmp 0x140001a28
lea rcx, str.Failed_to_install_hook__n
call fcn.140001060
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001a50
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000235a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000235a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000235a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000235a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000235a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000235c
xor al, al
add rsp, 0x28
ret
Function at 0x41c6c0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.004059e0
movsd xmm0, qword [0x0041c780]
comisd xmm0, xmm6
jbe 0x41c6f9
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.004053c0
call fcn.004053a0
mov rcx, rax
xor r8, r8
jmp 0x41c761
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x41c76c
cmp r8d, 9
jl 0x41c70f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x420590
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409ca0
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040d6d0
mov esi, eax
cmp esi, 0x104
jbe 0x4205ed
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404ab0
mov rdi, rax
jmp 0x4205f1
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040d6d0
mov rax, rdi
mov rcx, rax
call fcn.0040f000
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x420647
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42062b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x420659
mov rcx, rdi
call fcn.00404ae0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x421c20
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x004352c8]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00404e80
mov dword [0x0043520c], 0xb7e15163
mov ebx, 1
lea rax, [0x0043520c]
movsxd rcx, ebx
lea rdx, [0x00435208]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x421c53
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x0043520c]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.00421a70
mov r13d, eax
lea rax, [0x0043520c]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.00421a70
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x421c8f
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x140f75058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f751df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f75089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f7506f
add dl, dl
jne 0x140f75096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f750f6
xor eax, eax
add dl, dl
jne 0x140f750a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f751ad
add dl, dl
jne 0x140f750b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f750c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f750d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f750dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f750ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f7507e
mov eax, 1
add dl, dl
jne 0x140f75106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f75113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f750fb
sub eax, ebx
mov ebx, 1
jne 0x140f7514c
mov ecx, 1
add dl, dl
jne 0x140f7512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f7513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f75123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f75168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f75175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f7515d
cmp eax, 0x7d00
jae 0x140f7519b
cmp eax, 0x500
jb 0x140f75196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7507e
cmp eax, 0x7f
ja 0x140f7519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f751d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f7507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401728
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [0x0040d038], 1
mov eax, dword [0x0040d038]
mov dword [0x0040d05c], eax
mov eax, dword [0x0040d05c]
mov dword [0x0040d058], eax
mov qword [0x0040d040], 0
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov qword [0x0040d050], rax
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x401790
mov dword [0x0040d048], 2
add qword [rbp + 0x10], 1
jmp 0x4017ce
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x4017ac
mov dword [0x0040d048], 0
add qword [rbp + 0x10], 1
jmp 0x4017ce
mov rax, qword [0x0040d050]
test rax, rax
je 0x4017c4
mov dword [0x0040d048], 0
jmp 0x4017ce
mov dword [0x0040d048], 1
mov rax, qword [rbp + 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x4022f0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp - 8], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov ecx, 0x30
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x40232f
mov eax, 0
jmp 0x402584
mov rax, qword [rbp - 8]
mov qword [rax], 0
mov rax, qword [rbp - 8]
mov qword [rax + 8], 0
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x4023e1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x0040dae0]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, str.Failed_to_call_the_thing__out_error___s
call fcn.004033f9
jmp 0x402501
mov rax, qword [rbp - 8]
lea rdx, [rax + 8]
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x40246a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x0040dae0]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, str.Failed_to_call_the_thing__in_error___s
call fcn.004033f9
jmp 0x402501
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.00402978
mov rdx, rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x4024ec
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.Cannot_call_the_thing
call fcn.004033f9
jmp 0x402501
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 8]
jmp 0x402584
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x40251a
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x402533
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
je 0x402552
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
test rax, rax
je 0x402573
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x402978
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x58], 0
mov dword [rbp - 0x30], 0x68
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov dword [rbp - 4], 0
mov eax, dword [rbp - 4]
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x10], eax
mov word [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov word [rbp + 0x12], 0
mov dword [rbp + 0xc], 0x101
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x28], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 0x30]
lea rdx, [rax + 0x60]
mov rax, qword [rbp + 0x88]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9, rdx
mov r8, rbx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
mov rax, qword [0x00409fe0]
mov rax, qword [rax]
lea rdx, [rbp + 0x40]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x402ad2
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x402b28
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x0040dae0]
mov rdx, rax
call sub.msvcrt.dll__itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rcx, str.Failed_to_call_the_thing__error___s
call fcn.004033f9
mov rax, qword [rbp + 0x58]
add rsp, 0xe8
pop rbx
pop rbp
ret

Function at 0x402e70
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x101
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x138], eax
cmp dword [rbp + 0x138], 0
je 0x402eb0
jmp 0x402ece
movzx eax, word [rbp - 0x60]
cmp al, 1
jne 0x402ec4
movzx eax, word [rbp - 0x60]
shr ax, 8
cmp al, 1
je 0x402ece
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
nop
add rsp, 0x1c0
pop rbp
ret
Function at 0x4046f8
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x40], ecx
mov qword [rbp - 0x38], rdx
lea rax, [0x0040dc48]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x40]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
je 0x404754
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
lea rcx, str.udptest_first_write_failed___errno__d
call fcn.004033f9
mov eax, dword [0x0040d0cc]
test eax, eax
je 0x404771
mov eax, dword [0x0040d0cc]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__sleep]
call rax
jmp 0x4047e7
mov word [0x0040d0c8], 0
mov dword [0x0040d0cc], 5
mov rax, qword [rbp - 0x38]
mov r9d, 0
mov r8d, 0
mov edx, 0x7a69
mov rcx, rax
call fcn.00403de9
mov ebx, eax
test ebx, ebx
jle 0x4047bd
mov eax, dword [rbp - 0x40]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov dword [0x0040d0cc], 0
movzx eax, word [0x0040d0c8]
add eax, 1
mov word [0x0040d0c8], ax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
lea rax, [0x0040dc48]
mov rdx, qword [rax]
mov eax, dword [rbp - 0x40]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
jne 0x404829
mov eax, dword [rbp - 0x40]
jmp 0x404855
mov eax, dword [rbp - 0x40]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov eax, dword [rbp - 0x40]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov dword [rbp - 0x28], edx
mov edi, 0
mov rbx, qword [rbp - 0x30]
mov esi, dword [rbp - 0x28]
jmp 0x404b0c
movzx eax, byte [rbx]
cmp al, 0xff
je 0x404a89
jmp 0x404b05
mov byte [0x0040d0e2], 0xff
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
cmp al, 0xfb
je 0x404aa5
movzx eax, byte [rbx]
cmp al, 0xfc
jne 0x404aaa
mov edi, 0xfffffffe
movzx eax, byte [rbx]
cmp al, 0xfd
je 0x404ab8
movzx eax, byte [rbx]
cmp al, 0xfe
jne 0x404abd
mov edi, 0xfffffffc
test dil, dil
je 0x404b05
mov byte [0x0040d0e3], dil
add rbx, 1
sub esi, 1
movzx eax, byte [rbx]
mov byte [0x0040d0e4], al
mov eax, dword [0x00408020]
cdqe
mov r9d, 0
mov r8d, 3
lea rdx, [0x0040d0e2]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov edi, 0
add rbx, 1
sub esi, 1
test esi, esi
jg 0x404a80
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x4063b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x0040d114]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4064ca
mov rax, qword [0x0040d118]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x4063fe
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4064b0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x4063e2
mov rcx, rbx
call fcn.004071f0
test rax, rax
mov r12, rax
je 0x406502
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x0040d118]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.00407310
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0040d118]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4064e5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4064a9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4064a9
mov r9, rbp
add r9, qword [0x0040d118]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4064d1
add dword [0x0040d114], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40640b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00406340
mov rax, qword [0x0040d118]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.00406340
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00406340
nop
nop word cs:[rax + rax]

Function at 0x407100
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x407141
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x407138
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x407143
add rax, 0x28
cmp rax, r9
jne 0x407124
xor eax, eax
repz ret

Function at 0x4071f0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00409e40]
cmp word [rbx], 0x5a4d
je 0x407210
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.004070c0
test eax, eax
je 0x407204
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00407100
Function at 0x407460
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040da80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040da60]
test rbx, rbx
je 0x4074b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4074ab
test rsi, rsi
je 0x4074ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x407490
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x0040da80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x1409ac058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409ac1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409ac089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ac06f
add dl, dl
jne 0x1409ac096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ac0f6
xor eax, eax
add dl, dl
jne 0x1409ac0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409ac1ad
add dl, dl
jne 0x1409ac0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ac0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ac0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ac0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409ac0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409ac07e
mov eax, 1
add dl, dl
jne 0x1409ac106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409ac113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ac0fb
sub eax, ebx
mov ebx, 1
jne 0x1409ac14c
mov ecx, 1
add dl, dl
jne 0x1409ac12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409ac13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ac123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ac07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409ac168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409ac175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409ac15d
cmp eax, 0x7d00
jae 0x1409ac19b
cmp eax, 0x500
jb 0x1409ac196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ac07e
cmp eax, 0x7f
ja 0x1409ac19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409ac07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409ac1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409ac07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20