joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801e9d40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1802943b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x180205a20]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x180205a24]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x180205a08]
mov word [rsp + 0x6c], ax
mov eax, 0x30
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x180205a18]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1801e9e44
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1801e9df8
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x1801e9e67
inc ax
mov word [rsp + 0x6a], ax
jmp 0x1801e9e13
cmp eax, 0xe7
jne 0x1801e9e67
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1801e9e67
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1801e9dd8
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1801e62c0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x1801e9e49

Function at 0x1801e9e70
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1801e9e90
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x1801e9e86
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1801e9e86
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1801e9f1b
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x1801e9f30
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1801e9f04
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.1801e9cf0
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801e9f40
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x1801e9f56
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x1801e9f63
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1801e9f5b
test rdx, rdx
je 0x1801e9f5b
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1801e9f9a
cmp dword [rsp + 0x50], edi
jne 0x1801e9f9a
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000989c
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 0x1400098d6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400098db
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 0x140009924
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c4d0]
cmp byte [rcx + rax], 0
je 0x140009924
dec r8
sub rdx, 1
jne 0x14000990a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000a8b8
Capabilities:
Parse pe header

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

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

Function at 0x140316700
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403164fc
Function at 0x1403197b4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1403197e4
xor eax, eax
jmp 0x1403198a7
mov rbp, rbx
cmp word [rax], si
je 0x140319809
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403197f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403197ec
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1403196d4
movsxd r14, eax
test eax, eax
jne 0x140319847
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1403197dd
mov rcx, r14
call fcn.14031a248
mov rdi, rax
test rax, rax
jne 0x140319860
xor ecx, ecx
call fcn.140317d0c
jmp 0x14031983c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1403196d4
test eax, eax
jne 0x140319891
mov rcx, rdi
call fcn.140317d0c
jmp 0x14031989b
xor ecx, ecx
call fcn.140317d0c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14031f010
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14031f038
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14031f038
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001b70
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi - 1]
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
test eax, eax
jle 0x140001c94
mov r8, qword [rsp + 0x40]
cmp rbx, r8
ja 0x140001c0c
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov word [rax + rbx*2], si
jmp 0x140001c60
mov rdx, rbx
sub rdx, r8
mov rdi, qword [rsp + 0x48]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140001c53
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x30]
cmp rdi, 8
cmovae r9, qword [rsp + 0x30]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140001c48
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], si
jmp 0x140001c60
mov r9, rdx
lea rcx, [rsp + 0x30]
call fcn.140002370
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, str.cs2.exe
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001d1b
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x7c]
sub rdi, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x140001d03
add rax, 2
test ecx, ecx
jne 0x140001cf0
test edx, edx
je 0x140001d17
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140001cca
mov esi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001d6a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006fd0
mov eax, esi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140006fb0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001da0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov edi, edx
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [rsp + 0x20], edi
jne 0x140001e24
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x140001e24
cmp word [rsp + 0x30], si
jne 0x140001e50
test rbx, rbx
jne 0x140001dd0
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140006fb0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x140001e2b
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call fcn.10014c000
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10000c1e0
add rsp, 0x28
jmp 0x10000bae0
Function at 0x14002214c
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 0x140022186
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14002218b
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 0x1400221d4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140025820]
cmp byte [rcx + rax], 0
je 0x1400221d4
dec r8
sub rdx, 1
jne 0x1400221ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140023488
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140008890]
mov rcx, qword [0x140008740]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400088a0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400088b0]
mov dword [rax], 1
mov rax, qword [0x140008880]
mov dword [rax], 1
jne 0x140001090
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001090
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000106b
cmp cx, 0x20b
je 0x14000107a
jmp 0x140001090
cmp dword [rax + 0x74], 0xe
jbe 0x140001090
cmp dword [rax + 0xe8], 0
jmp 0x14000108a
cmp dword [rax + 0x84], 0xe
jbe 0x140001090
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140008870]
mov dword [0x14000b020], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x1400010ac
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140008830]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140008810]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400086f0]
cmp dword [rax], 1
jne 0x1400010ee
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400018ac
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x180], rcx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov rcx, qword [rbp + 0x180]
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x168], rax
cmp qword [rbp + 0x168], 0
jne 0x14000190c
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 0
jmp 0x1400019df
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x160], rax
cmp qword [rbp + 0x160], 0xffffffffffffffff
jne 0x14000195d
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
lea rax, str.Failed_to_setup_socket
mov rcx, rax
call sym.puts
call sym.getchar
mov eax, 0
jmp 0x1400019df
mov word [rbp + 0x140], 2
mov rax, qword [rbp + 0x168]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp + 0x144], eax
mov ecx, 0x50
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x142], ax
lea rdx, [rbp + 0x140]
mov rax, qword [rbp + 0x160]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x15c], eax
cmp qword [rbp + 0x160], 0xffffffffffffffff
jne 0x1400019c8
mov eax, 0
jmp 0x1400019df
cmp dword [rbp + 0x15c], 0
je 0x1400019d8
mov eax, 0
jmp 0x1400019df
mov rax, qword [rbp + 0x160]
add rsp, 0x1f0
pop rbp
ret
Function at 0x1400019e8
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], r8
mov rax, rsp
mov rsi, rax
mov rax, qword [rbp + 0x48]
mov rcx, rax
call sym.strlen
mov rbx, rax
mov rax, qword [rbp + 0x50]
mov rcx, rax
call sym.strlen
cmp rbx, rax
jbe 0x140001a3f
mov rax, qword [rbp + 0x48]
mov rcx, rax
call sym.strlen
mov dword [rbp - 4], eax
jmp 0x140001a4e
mov rax, qword [rbp + 0x50]
mov rcx, rax
call sym.strlen
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
lea ebx, [rax + 0x14]
mov eax, ebx
sub rax, 1
mov qword [rbp - 0x10], rax
mov eax, ebx
mov r14, rax
mov r15d, 0
mov eax, ebx
mov r12, rax
mov r13d, 0
mov eax, ebx
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002b30
sub rsp, rax
lea rax, [rsp + 0x20]
add rax, 0
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
test al, al
jne 0x140001ac7
mov rax, qword [rbp - 0x18]
movabs rdx, 0x5448202f20544547
movabs rcx, 0xa0d312e312f5054
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0
jmp 0x140001ae1
mov rdx, qword [rbp + 0x48]
mov rax, qword [rbp - 0x18]
mov r8, rdx
lea rdx, str.GET__s_HTTP_1.1_r_n
mov rcx, rax
call sym.sprintf
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [rbp - 0x18]
mov r9d, 0
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x40]
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov edx, ebx
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov rdx, qword [rbp + 0x50]
mov rax, qword [rbp - 0x18]
mov r8, rdx
lea rdx, str.Host:__s_r_n_r_n
mov rcx, rax
call sym.sprintf
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [rbp - 0x18]
mov r9d, 0
mov r8d, edx
mov rdx, rax
mov rcx, qword [rbp + 0x40]
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov rsp, rsi
nop
mov rsp, rbp
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400021c5
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000b0c8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000b0c4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140002213
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000220b
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400022fc
inc ebx
add rax, 0x28
jmp 0x1400021eb
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140002232
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000b0c8]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b0c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140002296
mov rax, qword [0x14000b0c8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400022f6
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400022f6
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000b0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400022f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000b0c4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400026c0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x14000b120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b100]
test rbx, rbx
je 0x14000270e
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140002708
test r12, r12
je 0x140002708
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400026e0
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400028d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400028f3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400028f3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400028f4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x14000292e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x140002925
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002930
inc r8d
add rax, 0x28
jmp 0x14000290c
xor eax, eax
ret

Function at 0x1400029a5
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140008740]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x1400029d1
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret