joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800aebe0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x80
mov r8, qword [0x180129ac8]
mov rsi, rcx
mov rcx, qword [0x180129ad0]
xor ebx, ebx
cmp r8, rcx
jne 0x1800aec15
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
jmp 0x1800aedc5
mov qword [rsp + 0x90], rbp
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
mov r10, rbx
mov qword [rsp + 0xa0], r14
mov rdi, rbx
mov r14, rcx
mov qword [rsp + 0x70], rbx
sub r14, r8
movdqu xmmword [rsp + 0x60], xmm0
sub r14, 1
je 0x1800aec9b
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800aeddf
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.1800c3170
mov rbp, qword [rsp + 0x60]
mov r8, r14
mov rcx, rbp
xor edx, edx
call fcn.1800ced40
mov rcx, qword [0x180129ad0]
lea r9, [r14 + rbp]
mov r8, qword [0x180129ac8]
mov r10, rbp
mov rdi, qword [rsp + 0x70]
jmp 0x1800aeca5
mov r9, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov edx, 1
sub rcx, r8
sub rcx, rdx
je 0x1800aeccf
movzx eax, byte [r8 + rdx]
mov byte [r10 + rdx - 1], al
lea rdx, [rdx + 1]
sub rcx, 1
je 0x1800aeccf
mov r8, qword [0x180129ac8]
jmp 0x1800aecb2
sub r9d, ebp
mov qword [rsp + 0x58], rbp
inc r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], r9d
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800aed6e
mov rcx, rbp
mov qword [rsp + 0x68], rcx
cmp dword [rsp + 0x40], ebx
jbe 0x1800aed61
nop word [rax + rax]
mov r8d, ebx
add r8, qword [rsp + 0x48]
cmp rcx, rdi
je 0x1800aed3d
movzx eax, byte [r8]
mov byte [rcx], al
inc rcx
mov qword [rsp + 0x68], rcx
jmp 0x1800aed54
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.1800bf800
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
inc ebx
cmp ebx, dword [rsp + 0x40]
jb 0x1800aed20
mov rbp, qword [rsp + 0x60]
mov qword [rsi], rbp
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdi
jmp 0x1800aedad
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
test rbp, rbp
je 0x1800aedad
sub rdi, rbp
mov rax, rbp
cmp rdi, 0x1000
jb 0x1800aeda2
mov rbp, qword [rbp - 8]
add rdi, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800aedd9
mov rdx, rdi
mov rcx, rbp
call fcn.1800cb8d0
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
mov rax, rsi
add rsp, 0x80
pop rsi
ret
call fcn.1800dab30
int3
call fcn.1800c1780
int3
Function at 0x1800aedf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
xor r13d, r13d
mov rbx, r8
mov rsi, rdx
mov r12, rcx
cmp r8, r9
je 0x1800aeec7
mov r15, qword [r9]
mov r14, qword [r9 + 8]
mov rdi, qword [r8]
sub r14, r15
mov rdx, qword [r8 + 0x10]
sub rdx, rdi
cmp r14, rdx
jbe 0x1800aeeb1
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800aefbd
mov rcx, rdx
shr rcx, 1
sub rax, rcx
cmp rdx, rax
jbe 0x1800aee5b
mov rbp, r14
jmp 0x1800aee66
lea rbp, [rcx + rdx]
cmp rbp, r14
cmovb rbp, r14
test rdi, rdi
je 0x1800aeea3
cmp rdx, 0x1000
jb 0x1800aee90
mov rcx, qword [rdi - 8]
add rdx, 0x27
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1800aefc3
mov rdi, rcx
mov rcx, rdi
call fcn.1800cb8d0
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rdx, rbp
mov rcx, rbx
call fcn.1800c3170
mov rdi, qword [rbx]
mov r8, r14
mov rdx, r15
mov rcx, rdi
call fcn.1800cef60
lea rax, [r14 + rdi]
mov qword [rbx + 8], rax
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov dword [rsp + 0x288], 0x200
jb 0x1800aeedf
mov rdx, qword [rsi]
lea rax, [rsp + 0x288]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800aef5d
mov rdi, r13
cmp dword [rsp + 0x288], edi
jbe 0x1800aef5d
nop word [rax + rax]
mov rdx, qword [rbx + 8]
movzx eax, byte [rsp + rdi + 0x30]
mov byte [rsp + 0x280], al
cmp rdx, qword [rbx + 0x10]
je 0x1800aef3e
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x1800aef4e
lea r8, [rsp + 0x280]
mov rcx, rbx
call fcn.1800bf800
mov eax, dword [rsp + 0x288]
inc rdi
cmp rdi, rax
jb 0x1800aef20
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x1800aef93
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x1800aef8e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800aefc3
mov rcx, r8
call fcn.1800cb8d0
mov rbx, qword [rsp + 0x270]
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 0xf
mov byte [rsi], r13b
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800c1780
int3
call fcn.1800dab30
int3
Function at 0x1800b5140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0xa0
lea rdx, [0x1801271b8]
lea rcx, [rsp + 0x80]
call fcn.1800bea10
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.18008ae30
lea rcx, [rsp + 0x40]
mov rbx, rax
call fcn.18008d940
mov r8, qword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rax, rdx
sub rax, r9
cmp r8, rax
jbe 0x1800b51b3
mov rax, qword [rbx + 0x18]
sub rax, r8
cmp rax, r9
jb 0x1800b51b3
cmp rdx, 0x10
jb 0x1800b51a6
mov rcx, qword [rcx]
mov r8, rcx
mov rcx, rbx
call fcn.1800c34e0
jmp 0x1800b51c5
cmp qword [rbx + 0x18], 0x10
jb 0x1800b51bd
mov rbx, qword [rbx]
mov rdx, rbx
call fcn.1800be770
movups xmm0, xmmword [rax]
xor ebx, ebx
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
mov byte [rax], bl
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], rbx
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1800b5223
mov rcx, qword [rsp + 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b521e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b52f5
call fcn.1800cb8d0
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
cmp rdx, 0x10
jb 0x1800b5273
mov rcx, qword [rsp + 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b526e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b52f5
call fcn.1800cb8d0
cmp qword [rsp + 0x38], 0x10
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1800b52ad
test al, 0x10
je 0x1800b52ad
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.1800bea10
mov rcx, rax
call fcn.1800b3e00
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1800b52e6
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b52e1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b52ef
call fcn.1800cb8d0
add rsp, 0xa0
pop rbx
ret
call fcn.1800dab30
int3
call fcn.1800dab30
int3
Function at 0x1800c0200
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800c0234
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800c0220
ret
Function at 0x1800e3d0c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800e3d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800d9cf4
or eax, 0xffffffff
jmp 0x1800e3d2e
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800e52d8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800e52b5
call fcn.1800d9d64
mov dword [rax], 0x16
call fcn.1800dab10
or eax, 0xffffffff
jmp 0x1800e52d2
sub dword [rcx + 0x10], 1
jns 0x1800e52c4
add rsp, 0x28
jmp 0x1800efd18
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800e5294
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x1800efd4a
call fcn.1800d9d64
mov dword [rax], 0x16
call fcn.1800dab10
jmp 0x1800efe67
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800efe67
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800efe67
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800efd79
lock or dword [rcx + 0x14], 0x10
jmp 0x1800efe67
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800efd8d
call fcn.1800f2b6c
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1800e399c
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.1800f1c08
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800efe55
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x1800efe20
mov rcx, rdi
call fcn.1800e399c
cmp eax, esi
je 0x1800efe0b
mov rcx, rdi
call fcn.1800e399c
cmp eax, 0xfffffffe
je 0x1800efe0b
mov rcx, rdi
call fcn.1800e399c
movsxd rbx, eax
lea r14, [0x180128f90]
mov rcx, rdi
sar rbx, 6
call fcn.1800e399c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800efe12
lea rdx, [0x180124460]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800efe20
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x1800efe44
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x1800efe44
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x1800efe44
mov dword [rdi + 0x20], 0x1000
add dword [rdi + 0x10], esi
mov rax, qword [rdi]
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x1800efe6a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004400]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004410]
mov dword [rax], 1
mov rax, qword [0x140004420]
mov dword [rax], 1
mov rax, qword [0x140004380]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400043f0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004360]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Capture network configuration via ipconfig
Execute command
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, str.ipconfig__release
mov rcx, rax
call sym.system
mov dword [rbp - 0xc], 0x1388
lea rdx, [rbp - 0xc]
lea rax, [rbp - 0x18]
mov rcx, rax
call method.std::chrono::duration_long_long__std::ratio_1ll__1000ll___.duration_int__void__int_const_
lea rax, [rbp - 0x18]
mov rcx, rax
call method.void_std::this_thread::sleep_for_long_long__std.ratio_1ll__1000ll____std::chrono::duration_long_long__std::ratio_1ll__1000ll____const_
jmp 0x14000147f

Function at 0x140001780
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002170
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400021bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400021b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021bf
add rax, 0x28
cmp rax, r9
jne 0x1400021a0
xor eax, eax
ret

Function at 0x1400021c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002250
mov rdx, qword [0x140004380]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000223e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000223e
cmp word [rax + 0x18], 0x20b
jne 0x14000223e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002250
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002229
add rbx, 0x28
cmp rbx, rdi
je 0x140002250
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002220
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022dd
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 0x1400022d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002280
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

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

Function at 0x140002320
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004380]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002340
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002387
test rcx, rcx
je 0x140002340
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002378
xor eax, eax
ret
Function at 0x1400023a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400023bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002400
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002400
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002460
add rdx, 0x28
cmp rdx, r9
jne 0x140002440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004380]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002492
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002492
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400024f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002508
add rdx, 0x28
cmp r10, rdx
jne 0x1400024e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024fe
test ecx, ecx
jg 0x140002510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140009f8c
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, r8d
mov rbx, rdx
xor edi, edi
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x140009fea
test byte [rcx + 0x1c], 4
je 0x140009fea
cmp byte [rcx + 0x19], 5
jb 0x140009fea
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xea
call fcn.140001024
lea rcx, str.SentItems
test esi, esi
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140088010]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14000a06a
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000a052
test byte [rcx + 0x1c], 4
je 0x14000a052
cmp byte [rcx + 0x19], 2
jb 0x14000a052
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xeb
mov r9d, eax
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
mov eax, ebx
jmp 0x14000a0c5
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a0c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14000a0c3
test byte [rcx + 0x1c], 4
je 0x14000a0c3
cmp byte [rcx + 0x19], 2
jb 0x14000a0c3
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xec
mov dword [rsp + 0x20], eax
lea r8, [0x140088520]
call fcn.140001328
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec50
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop r14
pop rdi
pop rsi
ret
Function at 0x14000a0f0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
mov rsi, r9
mov ebp, r8d
mov rbx, rdx
mov rcx, qword [0x14009b028]
lea r15, [0x14009b028]
lea r12, [0x140088520]
cmp rcx, r15
je 0x14000a15d
test byte [rcx + 0x1c], 4
je 0x14000a15d
cmp byte [rcx + 0x19], 5
jb 0x14000a15d
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r12
call fcn.140001024
lea rcx, str.SentItems
test ebp, ebp
lea rax, str.Inbox
mov r9, rbx
cmovne rax, rcx
lea r8, [0x140088010]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14000a1da
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a1c1
test byte [rcx + 0x1c], 4
je 0x14000a1c1
cmp byte [rcx + 0x19], 2
jb 0x14000a1c1
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r12
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x14000a2c6
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a2b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
jne 0x14000a285
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a237
test byte [rcx + 0x1c], 4
je 0x14000a237
cmp byte [rcx + 0x19], 5
jb 0x14000a237
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r12
call fcn.1400011fc
lea rdx, [rsp + 0x30]
call fcn.140009eb8
test eax, eax
jne 0x14000a281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a2c6
test byte [rcx + 0x1c], 4
je 0x14000a2c6
cmp byte [rcx + 0x19], 2
jb 0x14000a2c6
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r12
call fcn.140001050
jmp 0x14000a2c6
xor eax, eax
jmp 0x14000a2be
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14000a2c6
test byte [rcx + 0x1c], 4
je 0x14000a2c6
cmp byte [rcx + 0x19], 2
jb 0x14000a2c6
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140001328
jmp 0x14000a2c6
mov eax, 1
xor ebx, ebx
cmp dword [rdi], ebx
je 0x14000a2c6
mov dword [rdi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec50
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a618
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
cmp rcx, r12
je 0x14000a679
test byte [rcx + 0x1c], 4
je 0x14000a679
cmp byte [rcx + 0x19], 5
jb 0x14000a679
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfa
call fcn.140001024
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a703
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a6d9
test byte [rcx + 0x1c], 4
je 0x14000a6d9
cmp byte [rcx + 0x19], 3
jb 0x14000a6d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfb
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001094
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14007ec50
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a703
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
je 0x14000a775
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a775
test byte [rcx + 0x1c], 4
je 0x14000a775
cmp byte [rcx + 0x19], 2
jb 0x14000a775
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfc
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.140001094
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14000a7bd
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14000a7bd
test byte [rcx + 0x1c], 4
je 0x14000a7bd
cmp byte [rcx + 0x19], 2
jb 0x14000a7bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088520]
mov edx, 0xfd
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call fcn.140001094
cmp ebx, 0x12
jne 0x14000a6d9
mov qword [r14], rbp
xor eax, eax
jmp 0x14000a6db