joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009e0a0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140165b9c], 0
mov rbx, rdx
mov rdi, rcx
jne 0x14009e0be
call fcn.1400ac5e0
cmp byte [0x140165ba6], 0
mov rdx, rbx
mov rcx, rdi
je 0x14009e0e3
xor r9d, r9d
lea r8d, [r9 + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400ac9e0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14009bc60

Function at 0x14009f440
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140128218]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14009f4d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14009f4d6
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14009f4fa
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400afe40
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.14006ac80
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14009f5b0
lea rdx, [0x1401256c0]
lea rcx, [rsp + 0x50]
call fcn.1400b2e3c
int3

Function at 0x14009f9b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140128218]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1401669d4]
mov rax, qword gs:[0x58]
mov edx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140164b70], ecx
jg 0x14009fa8f
mov eax, ebx
cmp rbx, rax
jne 0x14009fa51
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14009fa51
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x140164b68]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14009fad2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400afe40
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.14006ac80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14009f5b0
lea rdx, [0x1401256c0]
lea rcx, [rsp + 0x40]
call fcn.1400b2e3c
nop
lea rcx, [0x140164b70]
call fcn.1400aff08
cmp dword [0x140164b70], 0xffffffff
jne 0x14009f9fc
lea rcx, [0x140164b68]
call fcn.14009f440
lea rcx, [0x1400f10a0]
call fcn.1400b02c4
nop
lea rcx, [0x140164b70]
call fcn.1400afe9c
jmp 0x14009f9fc
lea rdx, [0x1400f68f8]
lea rcx, [rsp + 0x20]
call fcn.14006ac80
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14009f5b0
lea rdx, [0x1401256c0]
lea rcx, [rsp + 0x40]
call fcn.1400b2e3c
int3
Function at 0x1400ade40
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 0x1400adec4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400f8120]
cmp byte [rcx + rax], 0
je 0x1400adec4
dec r8
sub rdx, 1
jne 0x1400adeaa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400b0d74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b0dbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b0dbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b0dbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b0dbe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b0dbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b0dc0
xor al, al
add rsp, 0x28
ret
Function at 0x1400bf250
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.1400b0b60
sub rsp, rax
mov rax, qword [0x140128218]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d4d74
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400bf29f
mov rax, rbp
jmp 0x1400bf3a7
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 + 0x166f70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400d5004
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x166f70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400bf3a3
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 0x1400bf3a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400d5004
test rax, rax
js 0x1400bf3a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400bf3a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400bf395
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400bf395
cmp byte [rcx], 0xd
jne 0x1400bf37b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400bf38a
cmp byte [rcx + 1], 0xa
jne 0x1400bf38a
inc rcx
jmp 0x1400bf38a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1285c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400bf35d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400bf3a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400afe40
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 0x1400cd9f8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400cda2f
call fcn.1400ce5e0
mov dword [rax], socket
call fcn.1400ca0e4
xor eax, eax
jmp 0x1400cdabd
mov rdx, r9
mov rcx, r8
call fcn.1400cd994
mov rbx, rax
test rax, rax
je 0x1400cdaba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400cd8c0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400cdaa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ce554
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400cda8e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400cda9d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400d6910
jmp 0x1400cdaba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400cdab7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d22cc
Capabilities:
Parse pe header

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

Function at 0x1400d5788
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, [0x140166f70]
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 0x1400d57df
cmp word [rdx], r13w
jne 0x1400d57df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d57e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d5909
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d592a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d581d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d5844
cmp r9, r8
jae 0x1400d5854
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 0x1400d57fe
jmp 0x1400d5909
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 0x1400d58fe
cmp dword [rsp + 0x80], esi
je 0x1400d58fe
lea r8, [0x140166f70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d58d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d58a6
mov word [rbx], r13w
jmp 0x1400d5906
mov ecx, recv
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 0x1400d58b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d5906
cmp word [rsp + 0x70], r13w
jne 0x1400d58e3
cmp rbx, r14
je 0x1400d58a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d500c
cmp word [rsp + 0x70], r13w
je 0x1400d5909
mov ecx, recv
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, [0x140166f70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d5903
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d5909
Function at 0x1400d8c60
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d8c76
mov al, 1
jmp 0x1400d8cd6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d8c87
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d8cd4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e014c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d8cd4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d8cd4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d8cd4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d8cd6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400df438
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 0x1400df468
xor eax, eax
jmp 0x1400df52b
mov rbp, rbx
cmp word [rax], si
je 0x1400df48d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400df474
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400df470
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.1400dd0c0
movsxd r14, eax
test eax, eax
jne 0x1400df4cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400df461
mov rcx, r14
call fcn.1400d95fc
mov rdi, rax
test rax, rax
jne 0x1400df4e4
xor ecx, ecx
call fcn.1400d6910
jmp 0x1400df4c0
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.1400dd0c0
test eax, eax
jne 0x1400df515
mov rcx, rdi
call fcn.1400d6910
jmp 0x1400df51f
xor ecx, ecx
call fcn.1400d6910
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 0x1400e26a0
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.1400d5428
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 0x1400e2741
cmp ebx, dword [rsp + 0x30]
je 0x1400e273a
test esi, esi
je 0x1400e273a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e2715
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e2722
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e26ff
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e2726
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e2743
mov eax, 1
jmp 0x1400e2743
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e6a4c
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.1400bf5d0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400e6ad6
cmp byte [rbp - 0x21], r15b
je 0x1400e6ad1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400e6b0c
call fcn.1400d6c6c
test eax, eax
jne 0x1400e6af8
cmp byte [rbp - 0x21], r15b
je 0x1400e6af0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400e6b0c
cmp byte [rbp - 0x21], r15b
je 0x1400e6b09
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.1400d1880
test eax, eax
jne 0x1400e6bac
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400bf5d0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400e6b4b
cmp byte [rbp - 0x21], r15b
je 0x1400e6b80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400e6b80
call fcn.1400d6c6c
test eax, eax
jne 0x1400e6b6c
cmp byte [rbp - 0x21], r15b
je 0x1400e6b65
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400e6b80
cmp byte [rbp - 0x21], r15b
je 0x1400e6b7d
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.1400d1880
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400e6bac
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400e6baf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400e6bbd
mov rcx, rdi
call fcn.1400d6910
cmp byte [rbp + 0x3f], r15b
je 0x1400e6bcc
mov rcx, qword [rbp + 0x27]
call fcn.1400d6910
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 0x1400e6f5c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400d500c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400d500c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e70ac
cmp rax, 0xffffffffffffffff
je 0x1400e70ac
xor edi, edi
test rbp, rbp
jle 0x1400e7057
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d6898
mov rbx, rax
test rax, rax
jne 0x1400e6fe4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e704d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400d317c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400d80b0
cmp eax, 0xffffffff
je 0x1400e702d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e6ff4
mov edx, r15d
mov ecx, r14d
call fcn.1400d317c
jmp 0x1400e704d
cmp byte [rsi + 0x38], dil
je 0x1400e7044
cmp dword [rsi + 0x34], 5
jne 0x1400e7044
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400e704d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d6910
jmp 0x1400e70c0
jns 0x1400e70c0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400d500c
cmp rax, 0xffffffffffffffff
jne 0x1400e7078
cmp byte [rsi + 0x30], dil
je 0x1400e70c0
mov edi, dword [rsi + 0x2c]
jmp 0x1400e70c0
mov ecx, r14d
call fcn.1400e014c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400e70c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1400e70c0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e70b9
mov eax, dword [rsi + 0x2c]
jmp 0x1400e70be
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400d500c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1800701e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov r14, qword [0x1800a5920]
xor ebx, ebx
test r14, r14
je 0x1800702a5
movsxd rax, dword [r14 + 0x3c]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
lea r12, str.fmFkmnQY_
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov qword [rsp + 0x20], r15
mov r15d, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x20]
add r15, r14
mov ebp, dword [rcx + 0x24]
add rdi, r14
add rbp, r14
test r12d, 0xffff0000
jne 0x180070250
movzx eax, r12w
sub eax, dword [rcx + 0x10]
mov ebx, dword [r15 + rax*4]
add rbx, r14
jmp 0x180070291
mov qword [rsp + 0x48], rsi
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18007028c
nop dword [rax]
mov ecx, dword [rdi]
mov rdx, r12
add rcx, r14
dec esi
call fcn.18008f5f0
test eax, eax
je 0x180070281
add rdi, 4
add rbp, 2
test esi, esi
jne 0x180070260
jmp 0x18007028c
movzx eax, word [rbp]
mov ebx, dword [r15 + rax*4]
add rbx, r14
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
call rbx
xor eax, eax
add rsp, 0x28
pop r14
pop rbx
ret

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

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov r14, qword [0x1800a5920]
xor ebx, ebx
test r14, r14
je 0x180070385
movsxd rax, dword [r14 + 0x3c]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
lea r12, [0x18009e570]
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov qword [rsp + 0x20], r15
mov r15d, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x20]
add r15, r14
mov ebp, dword [rcx + 0x24]
add rdi, r14
add rbp, r14
test r12d, 0xffff0000
jne 0x180070330
movzx eax, r12w
sub eax, dword [rcx + 0x10]
mov ebx, dword [r15 + rax*4]
add rbx, r14
jmp 0x180070371
mov qword [rsp + 0x48], rsi
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18007036c
nop dword [rax]
mov ecx, dword [rdi]
mov rdx, r12
add rcx, r14
dec esi
call fcn.18008f5f0
test eax, eax
je 0x180070361
add rdi, 4
add rbp, 2
test esi, esi
jne 0x180070340
jmp 0x18007036c
movzx eax, word [rbp]
mov ebx, dword [r15 + rax*4]
add rbx, r14
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
call rbx
xor eax, eax
add rsp, 0x28
pop r14
pop rbx
ret
Function at 0x401f20
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
mov esi, ecx
push rbx
sub rsp, 0x20
call fcn.00401016
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x401f68
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.00402738
cmp eax, esi
jne 0x401f63
mov rax, qword [rbx + 0x30]
jmp 0x401f6a
mov rbx, qword [rbx]
jmp 0x401f47
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x401f72
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x401f8c
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x401f8c
xor eax, eax
ret

Function at 0x402a60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x10
jne 0x402a64
mov r10d, 4
lea r11, [0x00403600]
lea rbx, [0x004034e0]
movzx r9d, byte [rcx + 0xc]
movzx r8d, byte [rcx + 0xd]
movzx edx, byte [rcx + 0xe]
movzx eax, byte [rcx + 0xf]
test r10b, 3
jne 0x402ade
mov sil, byte [r11 + r8]
mov r8b, byte [r11 + rdx]
mov dl, byte [r11 + rax]
mov al, byte [r11 + r9]
mov r9d, r10d
shr r9d, 2
xor sil, byte [rbx + r9]
mov r9d, esi
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r10d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0xc], r9b
mov byte [rcx + 0xd], r8b
mov byte [rcx + 0xe], dl
mov byte [rcx + 0xf], al
cmp r10d, 0x2c
jne 0x402aa8
pop rbx
pop rsi
ret

Function at 0x402b09
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
xor eax, eax
and ecx, 0xff0
add r8, rcx
lea r9, [rdx + rax]
xor ecx, ecx
mov r10b, byte [r8 + rcx]
inc rcx
xor byte [r9], r10b
inc r9
cmp rcx, 4
jne 0x402b1e
add rax, 4
add r8, 4
cmp rax, 0x10
jne 0x402b18
ret