joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002aa30
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18002ac0f
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180027470
mov rcx, qword [rsi + 8]
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x18002abd8
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x14]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x15]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x16]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x17]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x18002ab4c
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x18002abc7
mov rax, qword [r11 + 8]
mov r9, qword [rcx + 0x10]
cmp r9, qword [rax + 0x10]
jne 0x18002ab89
mov r10, qword [rax]
cmp r10, rcx
je 0x18002ab83
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x18002abc7
mov r8, rax
cmp r10, rax
je 0x18002aba3
mov rax, qword [rax + 8]
mov r8, rax
cmp r9, qword [rax + 0x10]
je 0x18002abe9
cmp r10, rax
jne 0x18002ab91
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x18002aad0
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x18002abc7
lea rcx, str.invalid_hash_bucket_count
call fcn.180039dfc
int3
Function at 0x1800326b0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x18007d010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rbp, rax
cmp rax, qword [r14 + 0x18]
jne 0x180032713
mov rcx, qword [0x180080590]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x840
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, qword [0x1800805a0]
test rax, rax
cmove rbp, qword [0x180080598]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x68]
test al, al
jne 0x180032839
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x4000
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edx, dword [r14 + 0x30]
mov r9b, 1
xor r8d, r8d
mov rcx, r14
call fcn.180036720
mov rcx, qword [r14 + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180032780
lea rdx, [rsp + 0x40]
lea rcx, [r14 + 0x60]
call fcn.180006040
mov rax, qword [r14 + 0x18]
mov qword [r14 + 0x88], rax
xor eax, eax
mov qword [r14 + 0xa8], rax
lea rax, str.ComparePlus_NavBar
mov qword [r14 + 0x90], rax
lea rax, [r14 + 0x40]
mov dword [r14 + 0x9c], 0x10000001
cmp qword [rax + 0x18], 8
jb 0x1800327d4
mov rax, qword [rax]
lea rcx, [0x18006f280]
mov qword [r14 + 0xc8], rax
mov dword [r14 + 0x98], 0x1b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x83
mov dword [rsp + 0x28], 0x1020
mov rcx, rax
mov dword [rsp + 0x20], 0xe
lea r9d, [rdx - 0x75]
lea r8d, [r9 - 0xd]
call qword [sym.imp.USER32.dll_LoadImageW]
mov rcx, qword [r14 + 0x10]
lea r9, [r14 + 0x88]
xor r8d, r8d
mov qword [r14 + 0xa0], rax
mov edx, 0x809
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [r14 + 0x138]
call fcn.180032180
lea rcx, [r14 + 0x188]
call fcn.180032180
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.USER32.dll_GetDC]
mov rdx, rax
lea rcx, [r14 + 0x138]
mov rdi, rax
call fcn.180032090
mov rdx, rdi
lea rcx, [r14 + 0x188]
call fcn.180032090
mov rcx, qword [r14 + 0x18]
mov rdx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call fcn.180032990
mov rax, qword [r14]
mov dl, 1
mov rcx, r14
call qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800383a0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180043654
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x18004352b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004352b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004352b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004352b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004352b
cmp dword [rcx + 0x84], 0xe
jbe 0x18004352b
cmp dword [rcx + 0xf8], 0
je 0x18004352b
mov ecx, ebx
call fcn.1800435cc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1800433bc
cmp dword [rbp + 0x20], 0
je 0x180043578
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180043580
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800434c4
Function at 0x1400011c0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x70], 0x68
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor edx, edx
cmp qword [rcx + 0x18], 0xf
movups xmmword [r11 - 0x50], xmm0
mov dword [r11 - 0x4c], 1
mov word [r11 - 0x48], dx
movups xmmword [r11 - 0x70], xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
jbe 0x14000121e
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001296
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_process.
call fcn.140001a00
mov rcx, rax
lea rdx, [0x140001bd0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140002060
add rsp, 0xf8
ret
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140002060
add rsp, 0xf8
ret
Function at 0x1400029e0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004430]
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 [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043a0]
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 0x140001480
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
lea rdx, section..rdata
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400014bb
lea rax, str.Failed_to_open_file
mov rcx, rax
call sym.perror
jmp 0x14000150a
mov rax, qword [rbp - 8]
mov r8d, 0
mov edx, 0xc8
mov rcx, rax
call sym.fseek
mov dword [rbp - 0xe], 0x90e58955
mov word [rbp - 0xa], 0xc35d
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0xe]
mov r9, rdx
mov r8d, 1
mov edx, 6
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001870
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 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001a10
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000192b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001910
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a32
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400019ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019c0
add dword [0x140007094], 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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001938
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000201c
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 rsi, rsi
je 0x140002013
test eax, eax
jne 0x140002013
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ff8
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 0x140002230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002260
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 0x1400022ad
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 0x1400022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022af
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

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

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

Function at 0x1400023d0
Capabilities:
Parse pe header

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

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002430
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002438
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002430
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002480
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002477
test rcx, rcx
je 0x140002430
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002468
xor eax, eax
ret
Function at 0x140002490
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400043c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002582
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002590
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002582
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002582
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002582
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 0x1400025e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025f8
add rdx, 0x28
cmp r10, rdx
jne 0x1400025d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002607
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002617
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ee
test ecx, ecx
jg 0x140002600
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180001810
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov edi, 1
mov rax, rdx
test rdx, rdx
je 0x1800019f8
mov qword [rsp + 0x50], rbp
xor ebp, ebp
mov edx, ebp
cmp byte [rax], dl
je 0x1800019e9
lea rax, [rax + 1]
inc edx
cmp byte [rax], bpl
jne 0x180001840
test edx, edx
je 0x1800019e9
lea rax, [rdx + 1]
mov qword [rsp + 0x28], r14
mov ecx, 0xffffffff
mov qword [rsp + 0x20], r15
mov r15d, edx
cmp rax, rcx
ja 0x1800019c9
mov r9d, edi
mov r8d, eax
xor edx, edx
mov rcx, rsi
call fcn.180002440
mov r14, rax
test rax, rax
je 0x1800019e2
mov qword [rsp + 0x58], r12
mov rcx, rax
mov qword [rsp + 0x60], r13
nop dword [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800018a0
lea r12, [r15 + r14]
mov rdx, rbp
mov rbx, r14
lea r13, [0x180000000]
cmp rbx, r12
jae 0x18000193f
movsx r15, byte [rbx]
mov rax, r15
cmp r15d, 0x7c
ja case.0x1800018e8.3
movzx eax, byte [rax + r13 + 0x1a14]
mov ecx, dword [r13 + rax*4 + 0x1a04]
add rcx, r13
jmp rcx
test rdx, rdx
je 0x1800018fd
lea rax, [r14 - 1]
cmp rdx, rax
jb 0x1800018fd
mov rdx, rbp
jmp 0x180001934
mov edi, ebp
jmp 0x180001934
test rdx, rdx
je 0x180001928
xor edx, edx
mov byte [rbx], bpl
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180001925
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne case.0x1800018e8.0
mov byte [rbx], r15b
mov rdx, rbp
jmp 0x180001934
test rdx, rdx
cmove rdx, rbx
inc rbx
test edi, edi
jne 0x1800018c2
jmp 0x18000193f
mov edi, ebp
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
test rsi, rsi
jne 0x18000197b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov ebx, dword [rsi + 0x30]
and ebx, 1
je 0x18000198b
mov ebp, dword [r14 - 8]
add r14, 0xfffffffffffffff8
mov rcx, qword [rsi + 0x28]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x180001962
test byte [rsi + 0x30], 2
je 0x1800019ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add qword [rsi + 0x60], 0xfffffffffffffff8
mov eax, ebp
sub qword [rsi + 0x58], rax
test byte [rsi + 0x30], 2
je 0x180001962
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180001962
test byte [rsi + 0x30], 4
je 0x1800019e2
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov ecx, 0xc0000017
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, ebp
jmp 0x180001964
mov eax, edi
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret