joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016350
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x28
cmp byte [0x1400ca690], 0
je 0x1400163b1
test dl, dl
je 0x140016394
cmp qword [0x1400cc170], 0
jne 0x1400163b1
mov r8, qword [0x1400cc168]
lea rdx, [0x140015e60]
xor r9d, r9d
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x1400cc170], rax
mov al, 1
add rsp, 0x28
ret
mov rcx, qword [0x1400cc170]
test rcx, rcx
je 0x1400163b1
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x1400cc170], 0
mov al, 1
add rsp, 0x28
ret

Function at 0x1400164a0
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x28
xor al, al
cmp byte [0x1400ca690], al
jne 0x1400164b3
add rsp, 0x28
ret
test dl, dl
je 0x1400164ee
cmp qword [0x1400cc170], 0
jne 0x140016510
mov r8, qword [0x1400cc168]
lea rdx, [0x140015e60]
xor r9d, r9d
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
test rax, rax
mov qword [0x1400cc170], rax
setne al
add rsp, 0x28
ret
mov rcx, qword [0x1400cc170]
test rcx, rcx
je 0x140016510
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
mov qword [0x1400cc170], 0
setne al
add rsp, 0x28
ret
Function at 0x140070950
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x14007098d
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.14006f918
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140070a8c
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14006f918
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140070a00
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14006d060
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x140070acb
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140070acb
call fcn.14006f920
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140070ab2
mov rcx, r14
call fcn.14006f920
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x1400028b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14004a020]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov r15, r8
mov r14, rdx
mov dword [rsp + 0x20], ebx
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
lea rcx, str.WinHTTP
lea edx, [rbx + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
jne 0x14000290b
lea rcx, str.InternetOpen_failed._n
call fcn.140001270
xor eax, eax
jmp 0x140002a84
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80003000
mov rdx, rdi
mov qword [rsp + 0x48], rbp
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbp, rax
test rax, rax
jne 0x140002970
lea rcx, str.InternetOpenUrl_failed._n
call fcn.140001270
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov dword [rsp + 0x20], 0x80003000
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
test rax, rax
je 0x14000299e
mov ecx, 0x400
mov dword [rsp + 0x30], ebx
call fcn.140018cd8
mov rdi, rax
mov r14, rbx
test rax, rax
jne 0x1400029ae
lea rcx, str.Memory_allocation_failed._n
call fcn.140001270
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x140002a7f
mov qword [rsp + 0x40], r12
mov r12, 0xffffffffffffffff
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov r8d, 0x400
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002a52
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140002a17
mov edx, ebx
add edx, ecx
mov rcx, r14
cmovb rdx, r12
call fcn.1400155b0
test rax, rax
je 0x140002a39
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov ecx, ebx
mov r14, rax
add rcx, rax
call fcn.1400110a0
mov eax, dword [rsp + 0x30]
add ebx, eax
test eax, eax
jne 0x1400029c0
mov rcx, rdi
call fcn.1400187b0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, r14
mov dword [r15], ebx
jmp 0x140002a7a
lea rcx, str.Reallocation_failed._n
call fcn.140001270
mov rcx, rdi
call fcn.1400187b0
mov rcx, r14
jmp 0x140002a61
lea rcx, str.InternetReadFile_failed._n
call fcn.140001270
mov rcx, rdi
call fcn.1400187b0
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f250
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001f94c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f748
Function at 0x140026dc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000fb50
sub rsp, rax
mov rax, qword [0x14004a020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140024498
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140026e0f
mov rax, rbp
jmp 0x140026f17
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4c9e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400280a8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4c9e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140026f13
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026f13
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400280a8
test rax, rax
js 0x140026f13
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140026f13
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140026f05
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140026f05
cmp byte [rcx], 0xd
jne 0x140026eeb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140026efa
cmp byte [rcx + 1], 0xa
jne 0x140026efa
inc rcx
jmp 0x140026efa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026ecd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140026f17
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f250
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140027234
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002724a
mov al, 1
jmp 0x1400272aa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002725b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400272a8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002be58
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400272a8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400272a8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400272a8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400272aa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140027448
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004c9e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002749f
cmp word [rdx], r13w
jne 0x14002749f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400274a4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400275c9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400275ea
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400274dd
mov rdx, r9
mov word [rbx], cx
jmp 0x140027504
cmp r9, r8
jae 0x140027514
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400274be
jmp 0x1400275c9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400275be
cmp dword [rsp + 0x80], esi
je 0x1400275be
lea r8, [0x14004c9e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140027596
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140027566
mov word [rbx], r13w
jmp 0x1400275c6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140027573
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400275c6
cmp word [rsp + 0x70], r13w
jne 0x1400275a3
cmp rbx, r14
je 0x140027560
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400280b0
cmp word [rsp + 0x70], r13w
je 0x1400275c9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004c9e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400275c3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400275c9
Function at 0x14002b5f0
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 0x14002b620
xor eax, eax
jmp 0x14002b6e3
mov rbp, rbx
cmp word [rax], si
je 0x14002b645
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002b62c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002b628
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.140029bf0
movsxd r14, eax
test eax, eax
jne 0x14002b683
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002b619
mov rcx, r14
call fcn.140023104
mov rdi, rax
test rax, rax
jne 0x14002b69c
xor ecx, ecx
call fcn.140022294
jmp 0x14002b678
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.140029bf0
test eax, eax
jne 0x14002b6cd
mov rcx, rdi
call fcn.140022294
jmp 0x14002b6d7
xor ecx, ecx
call fcn.140022294
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 0x14002e3ac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400249a4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002e44d
cmp ebx, dword [rsp + 0x30]
je 0x14002e446
test esi, esi
je 0x14002e446
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002e421
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002e42e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002e40b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002e432
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002e44f
mov eax, 1
jmp 0x14002e44f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400316b4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001ba9c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003173e
cmp byte [rbp - 0x21], r15b
je 0x140031739
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140031774
call fcn.140022598
test eax, eax
jne 0x140031760
cmp byte [rbp - 0x21], r15b
je 0x140031758
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140031774
cmp byte [rbp - 0x21], r15b
je 0x140031771
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001e918
test eax, eax
jne 0x140031814
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001ba9c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400317b3
cmp byte [rbp - 0x21], r15b
je 0x1400317e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400317e8
call fcn.140022598
test eax, eax
jne 0x1400317d4
cmp byte [rbp - 0x21], r15b
je 0x1400317cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400317e8
cmp byte [rbp - 0x21], r15b
je 0x1400317e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001e918
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140031814
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140031817
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140031825
mov rcx, rdi
call fcn.140022294
cmp byte [rbp + 0x3f], r15b
je 0x140031834
mov rcx, qword [rbp + 0x27]
call fcn.140022294
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140005680
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov rcx, qword [rcx]
lea rbx, [rdi + 0x50]
test rcx, rcx
je 0x1400056b1
xor edx, edx
mov r8d, 0x8000
call qword [rbx]
mov qword [rdi + 8], rsi
mov qword [rdi], rsi
cmp qword [rdi + 0x80], rsi
je 0x14000572c
mov rax, qword [0x140756c70]
mov qword [rsp + 0x38], rax
test al, al
jne 0x140005710
mov dword [rsp + 0x30], esi
mov eax, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x30]
mov edx, dword [rsp + 0x30]
sub edx, 0x3f
xor edx, dword [rsp + rax*4 + 0x3c]
movsxd rax, dword [rsp + 0x30]
mov dword [rsp + rax*4 + 0x3c], edx
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp eax, 1
jb 0x1400056e0
lea rbx, [rdi + 0x50]
mov eax, dword [rsp + 0x3c]
lea rdx, reloc.WS2_32.dll_getpeername
mov rcx, qword [rdi + 0x80]
call qword [rdx + rax*8]
mov qword [rdi + 0x80], rsi
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp rax

Function at 0x1400057b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14d, ecx
call fcn.14000576c
mov rdx, qword [rax + 0x18]
mov rbp, qword [rdx + 0x20]
mov r11, rbp
mov rcx, r11
call fcn.1400057a8
mov r11, qword [r11]
mov r10, qword [rax + 0x30]
test r10, r10
je 0x14000583b
movsxd rax, dword [r10 + 0x3c]
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
je 0x14000583b
lea rdi, [r10 + rcx]
mov ecx, dword [rdi + 0xc]
add rcx, r10
call fcn.140005778
mov esi, dword [rdi + 0x20]
xor ebx, ebx
add rsi, r10
mov r15d, eax
cmp dword [rdi + 0x18], ebx
jbe 0x14000583b
mov ecx, dword [rsi]
add rcx, r10
call fcn.140005778
add eax, r15d
cmp r14d, eax
je 0x14000585b
inc ebx
add rsi, 4
cmp ebx, dword [rdi + 0x18]
jb 0x14000581e
cmp r11, rbp
jne 0x1400057db
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ecx, dword [rdi + 0x24]
add rcx, r10
movzx r8d, word [rcx + rbx*2]
mov ecx, dword [rdi + 0x1c]
add rcx, r10
mov eax, dword [rcx + r8*4]
add rax, r10
jmp 0x140005842
Function at 0x140005c54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov ecx, 0x7bac0721
call fcn.1400057b0
mov ecx, 0xf477a895
mov r13, rax
call fcn.1400057b0
lea rcx, [rbp - 0x50]
mov qword [rbp + 0x40], rax
mov dword [rbp - 0x50], 0x6c64746e
xor r15d, r15d
mov dword [rbp - 0x4c], 0x6c642e6c
mov word [rbp - 0x48], WSAGetLastError
mov dword [rbp - 0x20], 0x526c7452
mov dword [rbp - 0x1c], 0x6c6c4165
mov dword [rbp - 0x18], 0x7461636f
mov dword [rbp - 0x14], 0x61654865
mov word [rbp - 0x10], WSACleanup
call fcn.140005878
mov rcx, rax
lea rdx, [rbp - 0x20]
call fcn.140005898
lea rcx, [rbp - 0x40]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x40], 0x6c64746e
mov dword [rbp - 0x3c], 0x6c642e6c
mov word [rbp - 0x38], WSAGetLastError
mov dword [rbp - 0x30], 0x416c7452
mov dword [rbp - 0x2c], 0x636f6c6c
mov dword [rbp - 0x28], 0x48657461
mov dword [rbp - 0x24], 0x706165
call fcn.140005878
mov rcx, rax
lea rdx, [rbp - 0x30]
call fcn.140005898
mov rcx, qword [rbx]
lea edi, [r15 + 1]
mov r12, qword [rbx + 8]
mov qword [rbp + 0x50], rax
cmp dword [rcx + 0x94], r15d
jbe 0x140005e67
mov esi, dword [rcx + 0x90]
lea edx, [rdi + 0x13]
add rsi, r12
mov rcx, rsi
call r13
test eax, eax
jne 0x140005e67
add rsi, 0x10
mov edi, 1
cmp dword [rsi - 4], r15d
je 0x140005e67
mov ecx, dword [rsi - 4]
mov rdx, qword [rbx + 0x38]
add rcx, r12
call qword [rbx + 0x20]
mov r14, rax
test rax, rax
je 0x140005e64
mov ecx, dword [rbx + 0x18]
mov r15, qword [rbx + 0x10]
inc ecx
movsxd rdi, ecx
shl rdi, 3
call qword [rbp + 0x40]
mov rcx, rax
test r15, r15
je 0x140005daa
mov r9, rdi
mov r8, r15
xor edx, edx
call qword [rbp + 0x48]
jmp 0x140005db5
mov r8, rdi
mov edx, 8
call qword [rbp + 0x50]
mov rcx, rax
test rax, rax
je 0x140005e56
mov qword [rbx + 0x10], rax
movsxd rax, dword [rbx + 0x18]
mov qword [rcx + rax*8], r14
inc dword [rbx + 0x18]
mov eax, dword [rsi - 0x10]
test eax, eax
jne 0x140005dd9
mov eax, dword [rsi]
mov r15d, eax
mov edi, 1
add r15, r12
mov rax, qword [r15]
test rax, rax
je 0x140005e2b
mov edi, dword [rsi]
add rdi, r12
mov r8, qword [rbx + 0x38]
mov rcx, r14
test rax, rax
jns 0x140005e03
movzx edx, word [r15]
jmp 0x140005e0d
mov rdx, qword [r15]
add rdx, 2
add rdx, r12
call qword [rbx + 0x28]
mov qword [rdi], rax
test rax, rax
je 0x140005e48
add r15, 8
add rdi, 8
mov rax, qword [r15]
test rax, rax
jne 0x140005df1
lea edi, [rax + 1]
add rsi, 0x14
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsi - 0x10]
call r13
xor r15d, r15d
test eax, eax
je 0x140005d5a
jmp 0x140005e67
mov rdx, qword [rbx + 0x38]
xor edi, edi
mov rcx, r14
call qword [rbx + 0x30]
jmp 0x140005e67
mov rdx, qword [rbx + 0x38]
mov rcx, r14
call qword [rbx + 0x30]
xor edi, edi
jmp 0x140005e67
mov edi, r15d
mov rbx, qword [rsp + 0xc8]
mov eax, edi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005ec4
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, rcx
mov ecx, 0x4faef192
call fcn.1400057b0
mov ecx, 0x9e5a8833
mov r12, rax
call fcn.1400057b0
mov ecx, 0xf477a895
mov rbx, rax
call fcn.1400057b0
mov ecx, 0xc9f93d32
mov rdi, rax
call fcn.1400057b0
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x20], 0x6c64746e
mov dword [rbp - 0x1c], 0x6c642e6c
mov word [rbp - 0x18], WSAGetLastError
mov dword [rbp - 0x10], 0x416c7452
mov dword [rbp - 0xc], 0x636f6c6c
mov dword [rbp - 8], 0x48657461
mov dword [rbp - 4], 0x706165
call fcn.140005878
mov rcx, rax
lea rdx, [rbp - 0x10]
call fcn.140005898
mov r13, rax
mov eax, 0x5a4d
cmp word [r15], ax
jne 0x140005fe1
movsxd rsi, dword [r15 + 0x3c]
add rsi, r15
cmp dword [rsi], 0x4550
jne 0x140005fe1
mov edx, dword [rsi + 0x50]
mov r9d, 4
mov rcx, qword [rsi + 0x30]
mov r8d, 0x3000
call rbx
mov r14, rax
test rax, rax
jne 0x140005fb7
mov edx, dword [rsi + 0x50]
lea r9d, [rax + 4]
xor ecx, ecx
mov r8d, 0x3000
call rbx
mov r14, rax
test rax, rax
je 0x140005fe1
call rdi
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x38]
call r13
xor r13d, r13d
mov rdi, rax
mov rcx, r14
test rax, rax
jne 0x140006001
xor edx, edx
mov r8d, 0x8000
call r12
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [rax + 8], r14
mov r9d, 4
mov qword [rax + 0x18], r13
mov r8d, 0x1000
mov qword [rax + 0x10], r13
lea rax, [0x140005e84]
mov qword [rdi + 0x20], rax
lea rax, [0x140005e8c]
mov qword [rdi + 0x28], rax
lea rax, [0x140005e94]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], r13
mov edx, dword [rsi + 0x54]
call rbx
mov r8d, dword [rsi + 0x54]
mov rdx, r15
mov rcx, rax
mov rbx, rax
call qword [rbp + 0x48]
movsxd rax, dword [r15 + 0x3c]
mov r8, rdi
add rax, rbx
mov rdx, rsi
mov qword [rdi], rax
mov rcx, r15
mov qword [rax + 0x30], r14
call fcn.1400058c8
mov rdx, r14
sub rdx, qword [rsi + 0x30]
je 0x140006080
mov rcx, rdi
call fcn.140005bb8
mov rcx, rdi
call fcn.140005c54
test eax, eax
je 0x140005fe1
mov rcx, rdi
call fcn.1400059bc
mov rcx, rdi
call fcn.140005b6c
mov rax, qword [rdi]
cmp dword [rax + 0x28], r13d
je 0x1400060c8
mov eax, dword [rax + 0x28]
xor r8d, r8d
add rax, r14
mov rcx, r14
lea ebx, [r8 + 1]
mov edx, ebx
call rax
test eax, eax
je 0x140005fe1
mov dword [rdi + 0x1c], ebx
mov rax, rdi
jmp 0x140005fe3

Function at 0x140006198
Capabilities:
Encode data using xor

Disassembly:
movsxd r8, edx
test edx, edx
jle 0x1400061ab
xor byte [rcx], 0x3a
inc rcx
sub r8, 1
jne 0x14000619f
mov eax, 1
ret