joyce8/EMBER2024-capa huggingface dataset:
Function at 0x303ffb7f0
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, 0x20
jne 0x303ffb7f4
mov r11d, 8
lea r10, [0x304001160]
lea rbx, [0x304001140]
mov esi, r11d
movzx r9d, byte [rcx + 0x1c]
movzx r8d, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1e]
movzx eax, byte [rcx + 0x1f]
and esi, 7
jne 0x303ffb872
mov sil, byte [r10 + r8]
mov r8b, byte [r10 + rdx]
mov dl, byte [r10 + rax]
mov al, byte [r10 + r9]
mov r9d, r11d
shr r9d, 3
xor sil, byte [rbx + r9]
mov r9d, esi
jmp 0x303ffb887
cmp esi, 4
jne 0x303ffb887
mov r9b, byte [r10 + r9]
mov r8b, byte [r10 + r8]
mov dl, byte [r10 + rdx]
mov al, byte [r10 + rax]
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r11d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0x1c], r9b
mov byte [rcx + 0x1d], r8b
mov byte [rcx + 0x1e], dl
mov byte [rcx + 0x1f], al
cmp r11d, 0x3c
jne 0x303ffb838
pop rbx
pop rsi
ret

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

Disassembly:
push r15
xor r15d, r15d
push r14
push r13
push r12
mov r12, rcx
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rax, dword [rcx + 0x3c]
mov dword [rsp + 0xa8], edx
mov qword [rsp + 0x38], 0
add rax, rcx
mov qword [rsp + 0x40], 0
mov ebx, dword [rax + 0x88]
mov qword [rsp + 0x48], 0
mov eax, dword [rax + 0x8c]
add rbx, rcx
mov esi, dword [rbx + 0x20]
mov r13d, dword [rbx + 0x1c]
mov dword [rsp + 0x2c], eax
mov r14d, dword [rbx + 0x24]
cmp dword [rbx + 0x18], r15d
jbe 0x303ffb9c5
mov edi, r15d
lea rax, [r12 + rdi*4]
mov ebp, dword [rax + rsi]
add rbp, r12
mov rcx, rbp
call fcn.303ffac60
cmp eax, dword [rsp + 0xa8]
jne 0x303ffb9c9
add rdi, rdi
add rdi, r12
movzx eax, word [rdi + r14]
lea rax, [r12 + rax*4]
mov eax, dword [rax + r13]
add rax, r12
mov qword [rsp + 0x38], rax
cmp rax, rbx
jae 0x303ffb97c
mov rax, qword [rsp + 0x38]
jmp 0x303ffb9d1
mov esi, dword [rsp + 0x2c]
add rsi, r12
add rsi, rbx
cmp rax, rsi
jae 0x303ffb975
mov rcx, rbp
call fcn.303ffdd50
xor r8d, r8d
mov qword [rsp + 0x48], rbp
mov rcx, r12
mov word [rsp + 0x40], ax
inc eax
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov word [rsp + 0x42], ax
mov rax, qword [0x3040012a0]
call qword [rax + 0x26e]
test eax, eax
jns 0x303ffb975
xor eax, eax
jmp 0x303ffb9d1
inc r15d
jmp 0x303ffb92d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x303ffcf20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
movzx eax, word [r8 + 0x14]
mov r10w, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
xor r8d, r8d
cmp r10w, r8w
je 0x303ffcf68
mov r9d, dword [rax + 0xc]
cmp r9d, edx
ja 0x303ffcf5f
mov r11d, dword [rax + 8]
add r11d, r9d
cmp r11d, edx
jbe 0x303ffcf5f
add edx, dword [rax + 0x14]
sub edx, r9d
lea rax, [rdx + rcx]
ret
inc r8d
add rax, 0x28
jmp 0x303ffcf39
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400054c0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400054d0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x140005440]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400054b0]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140005580]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140005560]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140005420]
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 [sym._matherr]
call sym.__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 0x140001706
Capabilities:
Reference http user-agent string

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0x98], 0
mov rax, qword [sym.imp.libcurl.dll_curl_easy_init]
call rax
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x140001946
mov dword [rbp + 0x8c], 0x40
mov edx, dword [rbp + 0x8c]
mov rax, qword [rbp + 0x90]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
lea rax, [rbp + 0x10]
mov r8d, 0x64
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x10]
movabs rcx, 0x312f2f3a70747468
mov qword [rax], rcx
movabs rcx, 0x312e302e302e3732
mov qword [rax + 8], rcx
movabs rdx, 0x2f303030383a31
mov qword [rax + 0xf], rdx
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x10]
add rax, rdx
movabs rcx, 0x6e7465672f707061
mov qword [rax], rcx
movabs rdx, 0x2f7377656e7465
mov qword [rax + 5], rdx
mov dword [rbp + 0x88], 0x2712
lea rcx, [rbp + 0x10]
mov edx, dword [rbp + 0x88]
mov rax, qword [rbp + 0x90]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
lea rax, [rbp - 0x60]
mov r8d, 0x64
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x60]
movabs rcx, 0x203a5253552d5855
mov qword [rax], rcx
mov byte [rax + 8], 0
lea rax, [rbp - 0x60]
lea rdx, [0x140008060]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x98]
mov rdx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_slist_append]
call rax
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x84], 0x2727
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x84]
mov rax, qword [rbp + 0x90]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov dword [rbp + 0x80], 0x2722
mov edx, dword [rbp + 0x80]
mov rax, qword [rbp + 0x90]
lea r8, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov dword [rbp + 0x7c], 0x4e2b
mov edx, dword [rbp + 0x7c]
mov rax, qword [rbp + 0x90]
lea r8, [sym.news_callback]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov dword [rbp + 0x78], 0x271f
mov rcx, qword [rbp + 0xb0]
mov edx, dword [rbp + 0x78]
mov rax, qword [rbp + 0x90]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_perform]
call rax
mov rax, qword [rbp + 0x98]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_slist_free_all]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_cleanup]
call rax
nop
add rsp, 0x120
pop rbp
ret
Function at 0x140001d92
Capabilities:
Reference http user-agent string

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x98], 0
mov ecx, 3
mov rax, qword [sym.imp.libcurl.dll_curl_global_init]
call rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_init]
call rax
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
je 0x140001faa
mov dword [rbp + 0x8c], 0x40
mov edx, dword [rbp + 0x8c]
mov rax, qword [rbp + 0x90]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
lea rax, [rbp + 0x10]
mov r8d, 0x64
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x10]
movabs rcx, 0x312f2f3a70747468
mov qword [rax], rcx
movabs rcx, 0x312e302e302e3732
mov qword [rax + 8], rcx
movabs rdx, 0x2f303030383a31
mov qword [rax + 0xf], rdx
lea rax, [rbp + 0x10]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp + 0x10]
add rax, rdx
movabs rcx, 0x7377656e2f707061
mov qword [rax], rcx
mov word [rax + 8], 0x2f
mov dword [rbp + 0x88], 0x2712
lea rcx, [rbp + 0x10]
mov edx, dword [rbp + 0x88]
mov rax, qword [rbp + 0x90]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
lea rax, [rbp - 0x60]
mov r8d, 0x64
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x60]
movabs rdx, 0x203a5253552d5855
mov qword [rax], rdx
mov byte [rax + 8], 0
lea rax, [rbp - 0x60]
lea rdx, [0x140008060]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x98]
mov rdx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_slist_append]
call rax
mov qword [rbp + 0x98], rax
mov dword [rbp + 0x84], 0x2727
mov rcx, qword [rbp + 0x98]
mov edx, dword [rbp + 0x84]
mov rax, qword [rbp + 0x90]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov dword [rbp + 0x80], 0x2722
mov edx, dword [rbp + 0x80]
mov rax, qword [rbp + 0x90]
lea r8, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_117.0.0.0_Safari_537.36
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov dword [rbp + 0x7c], 0x4e2b
mov edx, dword [rbp + 0x7c]
mov rax, qword [rbp + 0x90]
lea r8, [sym.check_callback]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_setopt]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_perform]
call rax
mov rax, qword [rbp + 0x98]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_slist_free_all]
call rax
mov rax, qword [rbp + 0x90]
mov rcx, rax
mov rax, qword [sym.imp.libcurl.dll_curl_easy_cleanup]
call rax
mov rax, qword [sym.imp.libcurl.dll_curl_global_cleanup]
call rax
nop
add rsp, 0x120
pop rbp
ret
Function at 0x140001fee
Capabilities:
Set current directory

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov r8d, 0x400
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0x3ac], eax
jmp 0x140002054
mov eax, dword [rbp + 0x3ac]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x5c
jne 0x14000204d
mov eax, dword [rbp + 0x3ac]
cdqe
mov byte [rbp + rax - 0x60], 0
jmp 0x14000205d
sub dword [rbp + 0x3ac], 1
cmp dword [rbp + 0x3ac], 0
jne 0x14000202d
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call rax
nop
add rsp, 0x430
pop rbp
ret

Function at 0x140002077
Capabilities:
Get session user name

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
lea rax, str.Make_username_Started_._n
mov rcx, rax
call sym.Log
mov dword [rbp - 0x44], 0x101
movabs rax, 0x24777324676d717b
mov qword [rbp - 0x60], rax
movabs rax, 0x6d7669772478696b
mov qword [rbp - 0x58], rax
movabs rax, 0x7669667179727065
mov qword [rbp - 0x50], rax
mov byte [rbp - 0x48], 0
lea rdx, [rbp - 0x44]
lea rax, [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
lea rax, [rbp - 0x40]
mov rdx, rax
lea rax, [0x140008060]
mov rcx, rax
call sym.strcpy
lea rax, [rbp - 0x60]
mov edx, 0
mov rcx, rax
call sym.cipher
lea rax, [rbp - 0x60]
lea rdx, [0x140005088]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x140002183
mov rax, qword [rbp + 0xc8]
mov rcx, rax
call sym.fgetc
mov byte [rbp + 0xc7], al
movzx eax, byte [rbp + 0xc7]
cmp al, 0x39
jg 0x140002178
movzx eax, byte [rbp + 0xc7]
cmp al, 0x2f
jle 0x140002178
lea rax, [rbp + 0xc7]
mov r8d, 1
mov rdx, rax
lea rax, [0x140008060]
mov rcx, rax
call sym.strncat
movzx eax, byte [rbp + 0xc7]
cmp al, 0xff
jne 0x14000212e
mov edx, 1
lea rax, [0x140008060]
mov rcx, rax
call sym.cipher
lea rax, str.Make_username_finished_._n
mov rcx, rax
call sym.Log
nop
add rsp, 0x150
pop rbp
ret

Function at 0x140002520
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002590
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008124]
test esi, esi
mov rbx, rcx
jle 0x1400026c0
mov rax, qword [0x140008128]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400025db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002665
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400025c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400026e2
mov rax, qword [0x140008128]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400026c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000265e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002670
add dword [0x140008124], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140008128]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000265e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400025e8
mov rax, qword [0x140008128]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002c50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008160]
test rbx, rbx
je 0x140002cac
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 0x140002ca3
test rsi, rsi
je 0x140002ca3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002c88
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 0x140002ec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002ed8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002ee0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002ef0
Capabilities:
Enumerate pe sections

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

Function at 0x140002f40
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002fd0
mov rdx, qword [0x140005440]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002fbe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002fbe
cmp word [rax + 0x18], 0x20b
jne 0x140002fbe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002fd0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002fa9
add rbx, 0x28
cmp rbx, rdi
je 0x140002fd0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002fa0
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 0x140002fe0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003060
Capabilities:
Parse pe header

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

Function at 0x1400030a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005440]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400030c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400030c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400030c0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140003110
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003107
test rcx, rcx
je 0x1400030c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400030f8
xor eax, eax
ret
Function at 0x140003120
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140005440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003180
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003188
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003180
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140003180
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]
cmp rcx, r8
mov rax, r8
jb 0x1400031d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400031e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400031c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005440]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003212
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003220
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003212
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003212
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140003212
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]
cmp rax, r9
mov r8, r9
jb 0x140003275
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003288
add rdx, 0x28
cmp rdx, r10
jne 0x140003260
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003297
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400032a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000327e
test ecx, ecx
jg 0x140003290
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400597a8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x350
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r14d, edx
mov rsi, rcx
mov edi, 1
test rcx, rcx
je 0x1400597fc
lea rdx, [0x1400a4a80]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
jne 0x1400597fe
xor edi, edi
test edi, edi
je 0x14005998b
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.14001bc34
nop
lea rcx, [rsp + 0x50]
call fcn.140057cdc
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400b53b8]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140024095.0]
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005994d
lea rdx, [0x1400a4b90]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x14005992e
lea rdx, [0x1400b536c]
lea rcx, [rsp + 0x11c]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
nop dword [rax + rax]
test eax, eax
je 0x14005992e
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140024095.0]
lea rcx, [rsp + 0x50]
call fcn.140057cdc
mov rax, qword [rsp + 0x50]
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x64]
lea rdx, [rsp + 0x11c]
lea rcx, [rsp + 0x50]
mov rax, qword [rax + 0x20]
call qword [case.0x140024095.0]
mov rcx, qword [rsp + 0x58]
test byte [rsp + 0xf0], 0x10
je 0x140059922
xor r8d, r8d
mov edx, r14d
call fcn.1400597a8
jmp 0x14005992e
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140059869
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140059966
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
test r14d, r14d
je 0x140059980
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
neg eax
sbb ecx, ecx
and edi, ecx
lea rcx, [rsp + 0x50]
call fcn.14001456c
nop
jmp 0x140059991
mov eax, edi
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140029fb0
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop r14
pop rdi
pop rsi
ret