joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dcbb0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400dcd74
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400dcd54
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400dcc0d
lea ebp, [rax + 0xe]
jmp 0x1400dcc19
cmp eax, 0x17
jne 0x1400dccc1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400dccc1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400dccc1
cmp rax, rbp
jb 0x1400dccc1
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400dccfc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400dcceb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400dccae
call qword [str.___v_]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400dccd0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400dccbe
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400dcc00
jmp 0x1400dcd02
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400100d8]
mov rcx, rdi
call qword [fcn.1400100d8]
jmp 0x1400dcd02
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400100d8]
jmp 0x1400dcd02
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400dcd17
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400dcd4f
test rbx, rbx
je 0x1400dcd4a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400100d8]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400100d8]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400100d8]
mov rbx, rdi
test rdi, rdi
jne 0x1400dcd21
mov rbx, r13
jmp 0x1400dcd63
test rbx, rbx
jne 0x1400dcd63
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400e1cf0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov edx, 1
mov ebx, 2
mov rsi, r9
lea r8d, [rdx + 5]
mov ecx, ebx
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x30], 1
call qword [sym.imp.WSOCK32.DLL_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400e1ee1
xor eax, eax
mov ecx, 0x7f000001
mov qword [rsp + 0x38], rax
mov word [rsp + 0x38], bx
mov qword [rsp + 0x40], rax
call qword [sym.imp.WSOCK32.DLL_htonl]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 2]
mov dword [rsp + 0x3c], eax
xor eax, eax
mov edx, 0xffff
mov rcx, rdi
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi], 0xffffffffffffffff
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
cmp eax, 0xffffffff
je 0x1400e1ec5
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_bind]
cmp eax, 0xffffffff
je 0x1400e1ec5
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_getsockname]
cmp eax, 0xffffffff
je 0x1400e1ec5
lea edx, [rbx - 1]
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_listen]
cmp eax, 0xffffffff
je 0x1400e1ec5
lea edx, [rbx - 1]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.WSOCK32.DLL_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400e1ec5
lea r8d, [rbx + 0xe]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.WSOCK32.DLL_connect]
cmp eax, 0xffffffff
je 0x1400e1ec5
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400e1ec5
lea r8, [0x14012d458]
lea edx, [rbx + 0xa]
lea rcx, [rsp + 0x48]
mov r9, rsi
call fcn.1400d4210
lea rax, [rsp + 0x48]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400e1e51
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WSOCK32.DLL_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400e1ec5
mov rcx, qword [rsi + 8]
xor r9d, r9d
lea rdx, [rsp + 0x54]
lea r8d, [r9 + 0xc]
call qword [sym.imp.WSOCK32.DLL_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400e1ec5
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400e1ec5
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_closesocket]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WSOCK32.DLL_closesocket]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
or eax, 0xffffffff
add rsp, 0x60
pop rdi
ret

Function at 0x1400e1f00
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400e73b0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400e73ea
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400e73e8
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ee140
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ee182
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ee1c5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ee221
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400ee1e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ee263
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14012ff11]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14012ff12]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ee230
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400eec5c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x14015f720], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x14015f730]
jne 0x1400eeca9
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x14015f758], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x14015f720], 1
mov ecx, dword [0x14015f758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x1400eed7e
mov rcx, qword [0x14015d920]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400eeda9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x14015f728]
test rax, rax
je 0x1400eecf9
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x14015f728], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x1400eedc4]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x14015f758]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x14015d920]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x1400eeda9
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140078330
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov esi, dword [rcx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1400783e9
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1400783e9
mov r14d, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r11d
mov r10d, 0x27236627
lea rcx, [r14 + r11*4]
mov r9d, dword [rcx + rbx]
add r9, rbx
movzx ecx, byte [r9]
inc r9
test cl, cl
je 0x1400783e4
nop
movsx edx, cl
lea r9, [r9 + 1]
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
movzx ecx, byte [r9 - 1]
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test cl, cl
jne 0x1400783b0
cmp r10d, 0xb077167
je 0x1400783f1
test r11d, r11d
jne 0x140078390
mov rax, qword [rax]
jmp 0x140078360
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
call rax
test eax, eax
jne 0x1400784e9
mov qword [rsp + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword gs:[0x60]
mov rbp, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x30]
movsxd rdx, dword [rbx + 0x3c]
mov esi, dword [rdx + rbx + 0x88]
add rsi, rbx
cmp rsi, rbx
je 0x1400784ba
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x1400784ba
mov r14d, dword [rsi + 0x20]
nop word [rax + rax]
dec r11d
mov r10d, 0x282367ba
lea rax, [r14 + r11*4]
mov r8d, dword [rax + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x1400784b5
movsx eax, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, eax
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, eax
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x140078480
cmp r10d, 0x4a8918ee
je 0x1400784c2
test r11d, r11d
jne 0x140078460
mov rcx, qword [rcx]
jmp 0x140078431
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, rbx
mov rcx, rbp
call rax
mov rbp, qword [rsp + 0x30]
test eax, eax
je 0x1400784eb
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14007a6e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14007f040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov ecx, 8
call fcn.14007a970
lea rcx, [0x140078c10]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14007a910]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14007a75a
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007a950
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14007b494
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140016150
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140013e60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140013e80
xor al, al
jmp 0x140013f01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140013e93
xor al, al
jmp 0x140013f01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140013ebd
xor al, al
jmp 0x140013f01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140013ed1
xor al, al
jmp 0x140013f01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140013ee3
xor al, al
jmp 0x140013f01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140013eff
xor al, al
jmp 0x140013f01
mov al, 1
add rsp, 0x38
ret
Function at 0x140001465
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400d6030]
mov dword [rax], 1
mov rax, qword [0x1400d6040]
mov dword [rax], 1
mov rax, qword [0x1400d6050]
mov dword [rax], 1
mov rax, qword [0x1400d6020]
mov dword [rax], 1
mov rax, qword [0x1400d5e80]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014c3
mov eax, 0
jmp 0x140001570
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400014ef
mov eax, 0
jmp 0x140001570
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001515
cmp eax, 0x20b
je 0x14000153c
jmp 0x14000156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001528
mov eax, 0
jmp 0x140001570
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001570
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001557
mov eax, 0
jmp 0x140001570
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001570
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002840
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
mov r13, rcx
lea rax, [rsp + 0x48]
mov byte [rsp + 0x48], 0
mov rbx, rdx
lea r14, [rsp + 0x88]
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x38]
mov qword [rsp + 0x40], 0
mov rcx, r14
call fcn.140097d40
mov rcx, qword [rbx]
lea rdx, [rsp + 0x58]
call fcn.140010497
test eax, eax
jne 0x14000292d
mov eax, dword [rsp + 0x6c]
mov ecx, 3
add eax, 2
cdq
idiv ecx
mov rcx, r12
lea edx, [rax*4 + 1]
movsxd rdx, edx
call fcn.1400aa000
cmp dword [rsp + 0x6c], 0
jle 0x140002a37
mov rdx, qword [rbx]
lea rcx, [rsp + 0x98]
mov r8d, 0xc
call fcn.14008a660
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rdx - 0x18]
add rcx, r14
test rax, rax
jne 0x1400028fd
mov edx, 4
call fcn.1400bfe50
jmp 0x140002904
xor edx, edx
call fcn.1400bfa30
lea rcx, [rsp + 0xe0]
call fcn.14002e290
test al, al
je 0x14000292d
lea rax, [rsp + 0x34]
lea r15, [rsp + 0x35]
mov qword [rsp + 0x28], rax
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_basic_string::append
jmp 0x14000293c
xor edx, edx
mov rcx, r13
call fcn.140001c9e
jmp 0x140002a8b
xor esi, esi
mov rdx, qword [rsp + 0x28]
mov rcx, r14
mov dword [rsp + 0x24], esi
mov ebx, esi
call fcn.1400796e0
mov edi, dword [rsp + 0x178]
test edi, edi
je 0x140002a6c
mov eax, 1
mov ecx, 3
movsxd rdx, esi
sub ecx, dword [rsp + 0x24]
cmp esi, 2
cmovg rcx, rax
add rdx, r15
xor eax, eax
mov rdi, rdx
mov edx, 0
rep stosb byte [rdi], al
mov eax, 2
sub eax, dword [rsp + 0x24]
cmp esi, 2
cmovg eax, edx
lea edi, [rsi + rax + 1]
test esi, esi
je 0x140002a37
mov sil, byte [rsp + 0x35]
mov rcx, r12
mov eax, esi
shr al, 2
and eax, 0x3f
movsx edx, byte [rbp + rax]
call fcn.1400aa4e0
mov al, byte [rsp + 0x36]
shl esi, 4
mov rcx, r12
and esi, 0x30
mov byte [rsp + 0x24], al
shr al, 4
movzx eax, al
or esi, eax
movsxd rsi, esi
movsx edx, byte [rbp + rsi]
call fcn.1400aa4e0
mov edx, 0x3d
cmp ebx, 1
je 0x140002a09
mov eax, dword [rsp + 0x24]
mov dl, byte [rsp + 0x37]
shl eax, 2
shr dl, 6
movzx edx, dl
and eax, 0x3c
or eax, edx
cdqe
movsx edx, byte [rbp + rax]
mov rcx, r12
call fcn.1400aa4e0
mov edx, 0x3d
cmp ebx, 3
jne 0x140002a27
mov al, byte [rsp + 0x37]
and eax, 0x3f
movsx edx, byte [rbp + rax]
mov rcx, r12
call fcn.1400aa4e0
test edi, edi
je 0x14000293c
mov rcx, r14
call fcn.140097780
mov rdx, r12
mov rcx, r13
call fcn.1400aa560
jmp 0x140002a8b
mov al, byte [rsp + 0x34]
mov byte [r15 + rsi], al
inc rsi
cmp rsi, 3
jne 0x14000293e
mov ebx, 3
jmp 0x1400029a2
mov rcx, r14
call fcn.1400983b0
mov rcx, r12
call fcn.1400a7e00
mov rax, r13
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000daf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.14001bb20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.14001bb20
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000e6f6
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140105188]
test eax, eax
je 0x14000e784
lea rcx, [0x140105160]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140105190]
mov qword [rbp - 8], rax
jmp 0x14000e76b
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000e75f
cmp qword [rbp - 0x10], 0
je 0x14000e75f
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000e725
lea rcx, [0x140105160]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000e785
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e890
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000e8b8
mov eax, 0
jmp 0x14000e906
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000e8e1
mov eax, 0
jmp 0x14000e906
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000e901
mov eax, 0
jmp 0x14000e906
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000e90c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000e98a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000e981
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000e981
mov rax, qword [rbp - 8]
jmp 0x14000e99f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000e954
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14001eb09
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001ec53
mov rcx, qword [rbp + 0x10]
call fcn.14001e14d
cmp eax, 1
jne 0x14001ec46
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001ebfc
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001ec12
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001ebf8
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001ec31
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001ec54
nop
add rsp, 0x90
pop rbp
ret