joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013f570
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14013f694
cmp r8d, 0xff
jne 0x14013f5d1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14013f5bb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x1dc410]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14011bc10
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14011bc10
cmp r8d, 0xfb
jne 0x14013f5e3
lea r9, str.WILL
jmp 0x14013f621
cmp r8d, 0xfc
jne 0x14013f5f5
lea r9, str.WONT
jmp 0x14013f621
cmp r8d, 0xfd
jne 0x14013f607
lea r9, [0x1401dce34]
jmp 0x14013f621
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14013f67d
cmp r10d, 0x27
jg 0x14013f654
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x1dca30]
test r8, r8
jne 0x14013f664
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14011bc10
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14013f63b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14011bc10
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14011bc10
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14013fa3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14011ba90
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14013f570
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14013fbf0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14013fd98
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14013fc55
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14013fc55
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14013fc55
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14013fc8c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14013fce2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013fce2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013fce2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013fce2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14013fce2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14013f6a0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14013fd44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14011ba90
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14013fa70
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14013fd90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14011ba90
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140141500
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140383d78]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140141595
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1401415f6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14011ba90
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401552b0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1401416b1
sub ecx, 1
je 0x140141724
sub ecx, 1
je 0x140141660
cmp ecx, 1
je 0x140141643
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1401da890]
call fcn.14011ba90
jmp 0x140141724
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140141230
test eax, eax
je 0x140141724
jmp 0x1401415ca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140141724
sub rax, rsi
cmp rax, rbp
jae 0x140141724
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14011bc10
jmp 0x140141724
cmp r8d, 4
jle 0x140141724
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140141724
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14011b9b0
mov esi, eax
test eax, eax
je 0x140141703
mov edx, 5
mov rcx, rbx
call fcn.1401421f0
mov eax, esi
jmp 0x1401415ca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14012a450
mov rcx, r14
call fcn.14012a730
test eax, eax
je 0x1401415c8
mov edx, 5
mov rcx, rbx
call fcn.1401421f0
mov eax, Ordinal_46
jmp 0x1401415ca
Function at 0x1401544c0
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
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140154502
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 [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140154549
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1401545a2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140154560
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401545e3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401e001a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401e001b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1401545b0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140154630
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401546b4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1401546b4
dec r8
sub rdx, 1
jne 0x14015469a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140154e08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140154788
mov ebx, eax
test eax, eax
jne 0x140154e38
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140154e9b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140154e92
test al, 0x10
je 0x140154e92
bt eax, 0xa
jae 0x140154e8b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140154eac
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140154e87
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140154e87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140154e92
and dword [rsp + 0x3c], 0
jmp 0x140154e97
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14015613c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x680
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor ebp, ebp
mov qword [rsp + 0x20], 0x238
mov r12, r8
mov dword [rsp + 0x28], ebp
mov r15, rdx
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x38], rbp
mov r8d, 0x20c
mov qword [rsp + 0x40], rbp
lea rcx, [rsp + 0x4c]
mov dword [rsp + 0x48], ebp
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140001160
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
call fcn.140001070
jmp 0x14000125e
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140001184
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____Process32First_Failed_With_Error_:__d__n
jmp 0x140001252
lea r13, str.notepad.exe
nop dword [rax + rax]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rdi, [rsp + 0x260]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp edx, 0x208
jae 0x1400011f9
mov rsi, rbp
test edx, edx
je 0x1400011e1
mov rdi, rbp
mov esi, edx
mov ebx, edx
movzx ecx, word [rsp + rdi + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov word [rsp + rdi + 0x260], ax
lea rdi, [rdi + 2]
sub rbx, 1
jne 0x1400011c4
lea rax, [rsi + rsi]
cmp rax, 0x410
jae 0x1400012bd
mov word [rsp + rax + 0x260], bp
lea rdx, [rsp + 0x260]
mov rax, rbp
movzx ecx, word [rdx + rax*2]
cmp cx, word [r13 + rax*2]
jne 0x140001278
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r13 + rax*2 + 2]
jne 0x140001278
add rax, 2
cmp rax, 0xc
jne 0x140001204
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
mov dword [r15], r8d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [r12], rax
test rax, rax
jne 0x140001259
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____OpenProcess_Failed_With_Error_:__d__n
mov edx, eax
call fcn.140001070
test r14, r14
je 0x140001267
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [r15], ebp
je 0x140001290
cmp qword [r12], rbp
setne bpl
mov eax, ebp
jmp 0x140001292
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001190
jmp 0x140001259
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140001690
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x680
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400017b8
int3
Function at 0x140002084
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004780
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004780
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002f00
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002ea5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e00
mov rcx, rbx
call fcn.140003820
mov rdi, rax
test rax, rax
je 0x140002f22
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003960
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002eb0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d60
nop dword [rax]
xor esi, esi
jmp 0x140002e28
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400034ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400034e3
test rsi, rsi
je 0x1400034e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400034c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003820
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003840
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003848
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003840
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000389d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003894
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003840
add rax, 0x28
cmp rax, r9
jne 0x140003880
xor eax, eax
ret

Function at 0x1400038a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400038bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400038c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400038bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003960
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ae0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000397f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003988
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140006e30
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401a2920]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov rax, qword [rdx]
mov r12d, dword [rax - 0x10]
lea rcx, [rsp + 0x40]
call qword [0x14011a9a8]
nop
mov eax, 1
cmp r12d, 0x400
cmovg r12d, eax
lea eax, [r12 + r12*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edi, eax
inc eax
mov ebx, eax
mov edx, eax
mov rcx, rbp
call fcn.1400082f0
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, qword [rbp]
call fcn.140100000
mov rax, qword [rbp]
mov word [rax], di
mov eax, r12d
and eax, 0x80000003
jge 0x140006ed2
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x140007032
test r12d, r12d
jle 0x140007032
lea r15d, [rax + 2]
nop word [rax + rax]
mov r9d, 4
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [0x14011b028]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [0x14011b048]
nop
lea rcx, [rsp + 0x30]
call qword [0x14011a9b0]
mov r14, qword [rbp]
xor ebx, ebx
lea rdi, [rsp + 0x20]
nop dword [rax]
mov edx, ebx
lea rcx, [rsp + 0x40]
call qword [0x14011aff0]
movzx ecx, ax
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x140006f4e
lea eax, [rcx - 0x41]
jmp 0x140006f8c
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140006f5c
lea eax, [rcx - 0x47]
jmp 0x140006f8c
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x140006f6a
lea eax, [rcx + 4]
jmp 0x140006f8c
cmp ecx, 0x2b
jne 0x140006f74
lea eax, [rcx + 0x13]
jmp 0x140006f8c
cmp ecx, 0x2f
jne 0x140006f7e
lea eax, [rcx + 0x10]
jmp 0x140006f8c
cmp ecx, 0x3d
jne 0x140007016
mov eax, 0xffffffff
mov dword [rdi], eax
inc ebx
add rdi, 4
cmp ebx, 4
jl 0x140006f30
mov ecx, dword [rsp + 0x20]
cmp ecx, 0xffffffff
je 0x140007016
mov r10d, dword [rsp + 0x24]
cmp r10d, 0xffffffff
je 0x140007016
mov r9d, dword [rsp + 0x28]
mov eax, dword [rsp + 0x2c]
cmp r9d, 0xffffffff
jne 0x140006fc7
cmp eax, r9d
jne 0x140007016
lea edx, [r9 + 2]
jmp 0x140006fd6
cmp eax, 0xffffffff
mov edx, 3
jne 0x140006fd6
mov edx, 2
mov r8d, edx
shl ecx, 6
or ecx, r10d
shl ecx, 6
and r9d, 0x3f
or ecx, r9d
shl ecx, 6
and eax, 0x3f
or ecx, eax
mov eax, ecx
shr eax, 0x10
mov byte [r14 + r15], al
cmp edx, 1
jbe 0x140007009
mov eax, ecx
shr eax, 8
mov byte [r14 + r15 + 1], al
cmp r8d, 2
jbe 0x140007018
mov byte [r14 + r15 + 2], cl
jmp 0x140007018
xor edx, edx
add esi, 4
lea rcx, [rdx + r15]
test rdx, rdx
cmove rcx, r15
mov r15, rcx
cmp esi, r12d
jl 0x140006ef0
lea rcx, [rsp + 0x40]
call qword [0x14011a9b0]
nop
mov rax, rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400feb00
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008190
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1401a2920]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0
mov rcx, rdx
call qword [0x14011a9a8]
mov dword [rsp + 0x20], 1
mov rax, qword [rbx]
lea rbp, [rax + 2]
movzx esi, word [rax]
add esi, esi
je 0x1400082bf
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r15d, 0x3d
nop word [rax + rax]
mov ecx, 3
cmp esi, ecx
cmovl ecx, esi
movzx edx, byte [rbp]
shl edx, 0x10
cmp ecx, 1
jle 0x14000821f
movzx eax, byte [rbp + 1]
shl eax, 8
or edx, eax
cmp ecx, 2
jle 0x14000822a
movzx eax, byte [rbp + 2]
or edx, eax
mov r8d, edx
mov eax, edx
shr rax, 0x12
movzx eax, word [r14 + rax*2]
mov word [rsp + 0x30], ax
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, word [r14 + rax*2]
mov word [rsp + 0x32], ax
cmp ecx, 1
jle 0x14000827e
mov eax, r8d
shr rax, 6
and eax, 0x3f
movzx eax, word [r14 + rax*2]
mov word [rsp + 0x34], ax
cmp ecx, 2
jle 0x140008284
and r8d, 0x3f
movzx eax, word [r14 + r8*2]
mov word [rsp + 0x36], ax
jmp 0x14000828a
mov word [rsp + 0x34], r15w
mov word [rsp + 0x36], r15w
movsxd rax, ecx
add rbp, rax
sub esi, ecx
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
movzx edx, word [rsp + rbx*2 + 0x30]
mov rcx, rdi
call qword [0x14011b000]
inc rbx
cmp rbx, 4
jl 0x1400082a0
test esi, esi
jg 0x140008200
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400feb00
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret