joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f0a0
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 0x14007f0e2
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 0x14007f129
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 0x14007f182
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 0x14007f140
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007f1c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14009168a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009168b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007f190
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 0x14007f1dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14007f216
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007f21b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007f264
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007f264
dec r8
sub rdx, 1
jne 0x14007f24a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400808ec
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140017f90]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140017fa0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140010130
jmp 0x14000123c
mov rax, qword [0x140017fa0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140017fa0]
mov dword [rax], 1
mov rax, qword [0x140017fe0]
mov rdx, rax
mov rax, qword [0x140017fd0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14001d024], 1
mov rax, qword [0x140017fa0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140017fc0]
mov rdx, rax
mov rax, qword [0x140017fb0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140017fa0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140017f90]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140017ef0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140017ef0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000ea88
mov rax, qword [0x140018020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140017f80]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000e280
mov eax, dword [0x14001d004]
lea rdx, [0x14001d008]
mov ecx, eax
call fcn.14000147c
call fcn.14000def7
mov rax, qword [0x140017f10]
mov rax, qword [rax]
mov rdx, qword [0x14001d010]
mov qword [rax], rdx
mov rcx, qword [0x14001d010]
mov rdx, qword [0x14001d008]
mov eax, dword [0x14001d004]
mov r8, rcx
mov ecx, eax
call fcn.14000df20
mov dword [0x14001d01c], eax
mov eax, dword [0x14001d020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001d01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14001d024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001d01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140017f40]
mov dword [rax], 1
mov rax, qword [0x140017f50]
mov dword [rax], 1
mov rax, qword [0x140017f60]
mov dword [rax], 1
mov rax, qword [0x140017ec0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001b20
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rdx
lea rdx, [0x140012179]
mov rbx, rcx
call fcn.140004910
mov rbp, rax
test rax, rax
je 0x140001c50
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001c28
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r13, rax
test rax, rax
je 0x140001c66
cmp byte [r12 + 0x10], 1
je 0x140001bf8
mov rdi, rax
test rsi, rsi
jne 0x140001ba0
jmp 0x140001c0d
add rdi, rbx
sub rsi, rbx
je 0x140001c0d
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001b98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov edx, dword [rax]
lea rcx, str.fread
call fcn.140002da0
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
jmp 0x140001c0d
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001710
test eax, eax
jne 0x140001be5
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov edx, dword [rax]
lea rcx, str.fseek
call fcn.140002da0
jmp 0x140001bed
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
xor r13d, r13d
call fcn.140002ca0
jmp 0x140001c15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rsp + 0x20], esi
lea r9, [r12 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
mov edx, dword [rax]
lea rcx, str.malloc
call fcn.140002da0
jmp 0x140001bed
Function at 0x140007b90
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f5b0
sub rsp, rax
mov rsi, r8
mov r14, rcx
mov rcx, rdx
mov rbx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rsi
mov rdi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rdi + rax + 1]
cmp rax, 0xfff
ja 0x140007c91
mov dword [rsp + 0x20], 0x5c
lea rdi, [rsp + 0x30]
mov r9, rbx
lea r8, str._s_c
mov edx, 0x1000
mov rcx, rdi
mov r12d, 0x1000
lea r13, [rsp + 0x1030]
call fcn.14000feb0
mov edx, 0x5c
mov rcx, rsi
movsxd rbp, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
sub r12, rbp
mov r15, qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add rbp, rdi
mov rbx, rax
test rax, rax
jne 0x140007c46
jmp 0x140007ca0
lea rcx, [rbx + 1]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
mov rbx, rax
test rax, rax
je 0x140007ca0
mov qword [rsp + 0x20], rsi
mov r9d, ebx
mov rcx, rbp
mov rdx, r12
sub r9d, esi
lea r8, [0x140013e85]
call fcn.14000feb0
mov rcx, rdi
call fcn.1400048d0
test eax, eax
jne 0x140007c30
mov rdx, r13
mov rcx, rdi
mov r8d, 0x1000
call fcn.140009160
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call r15
test eax, eax
jne 0x140007c30
mov eax, 0xffffffff
jmp 0x140007ca2
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140007cc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000f5b0
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140013e8a]
call fcn.140004910
mov rbx, rax
test rax, rax
je 0x140007dae
mov rcx, rsi
lea rdx, [0x140013e8d]
call fcn.140004910
mov rsi, rax
test rax, rax
je 0x140007da6
lea rdi, [rsp + 0x20]
jmp 0x140007d4f
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov r8, rax
test rax, rax
je 0x140007d90
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140007d80
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x140007d80
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x140007d10
xor edi, edi
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov edi, 0xffffffff
jmp 0x140007d5d
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x140007d5b
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x140007d88
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov edi, 0xffffffff
jmp 0x140007d6d
Function at 0x140007dc0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007eb0
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007eb0
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007eb0
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007eb0
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007eb0
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rbx
jne 0x140007eb0
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x140007e9a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x140007ed0
mov rbx, r15
test rbx, rbx
jne 0x140007e80
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x140007e29
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007eb2
Function at 0x140007ee0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f5b0
sub rsp, rax
lea r8, [0x140013ea0]
mov edx, 0x1000
lea r14, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r14
call fcn.14000ff10
cmp eax, 0xfff
jg 0x140008048
lea rsi, [rsp + 0x30]
lea ebx, [rax - 1]
mov r12d, 0x1000
mov rcx, r14
mov rdx, rsi
sub r12d, ebx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140008048
movsxd rax, ebx
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
lea rbx, [rsp + 0x5c]
lea rbp, [0x140013eaa]
lea rax, [r14 + rax*2]
lea r15, [0x140013eae]
mov qword [rsp + 0x20], rax
movsxd rax, r12d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007fe0
mov rdx, r15
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x140007fe0
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
lea r8, [0x140013eb4]
call fcn.14000ff10
cmp eax, r12d
jge 0x140007fe0
mov eax, dword [rsp + 0x30]
mov rcx, r14
test al, 0x10
je 0x140008028
test ah, 4
je 0x140007fd9
cmp dword [rsp + 0x54], 0xa000000c
je 0x140008040
call fcn.140007ee0
nop
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007f83
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r13
call rdi
test eax, eax
jne 0x140007f83
jmp 0x140007fec
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140007fe0
mov eax, 0xffffffff
jmp 0x14000800e
Function at 0x140008250
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f5b0
sub rsp, rax
mov rbp, rcx
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1400082a0
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x1400082c0
xor r14d, r14d
mov eax, r14d
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
test rax, rax
je 0x1400082a0
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140008300
xor r14d, r14d
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x1400082a3
lea r14, [rsp + 0x2040]
lea rcx, [rbp + 0x2022]
mov r8d, 0x1000
mov rdx, r14
call fcn.140009160
test rax, rax
je 0x1400082ea
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
je 0x1400082ea
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
xor r13d, r13d
lea r12d, [rax*8]
add r12, rdi
nop word cs:[rax + rax]
nop dword [rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x14000839b
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x14000839b
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x140008360
test r13d, r13d
je 0x1400082ea
movsxd r13, r13d
xor r14d, r14d
lea r15, [rdi + r13*8]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400083cd
add rbx, 8
cmp rbx, r15
je 0x1400082ed
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400083c0
mov r12d, 0x20
jmp 0x1400083f6
sub r12d, 1
je 0x1400083c0
mov rcx, qword [rbx]
call r13
test eax, eax
jne 0x1400083f0
add r14d, 1
jmp 0x1400083c0

Function at 0x140008490
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000f5b0
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140009160
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008508
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140008508
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140009060
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x14000e290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14000fe10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000ef62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140020468]
test eax, eax
je 0x14000effa
lea rax, [0x140020440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140020470]
mov qword [rbp - 8], rax
jmp 0x14000efde
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000efd2
cmp qword [rbp - 0x10], 0
je 0x14000efd2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000ef98
lea rax, [0x140020440]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000effb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000f100
Capabilities:
Parse pe header

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

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