joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x5074], 1
mov r12, rcx
mov r15, rdx
jne 0x401db0
cmp byte [rdx + 0x11], 0x6e
je 0x401ce0
lea rdi, [rdx + 0x12]
lea rcx, [rcx + 0x3070]
mov rdx, rdi
call fcn.00407990
mov r14, rax
test rax, rax
je 0x401dc6
lea rcx, [r12 + 0x70]
lea rdx, [0x00418129]
call fcn.00403830
mov r13, rax
test rax, rax
je 0x401d40
mov edx, dword [r15 + 4]
xor r8d, r8d
add edx, dword [r12]
mov rcx, rax
call fcn.0040e980
test eax, eax
js 0x401d90
cmp byte [r15 + 0x10], 1
je 0x401d00
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x401de6
mov esi, dword [r15 + 0xc]
test rsi, rsi
jne 0x401c8e
jmp 0x401d60
mov r9, r14
mov r8d, 1
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401d70
sub rsi, rbx
je 0x401d60
mov ebx, 0x2000
mov r9, r13
mov r8d, 1
mov rcx, r12
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401c68
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fread
call fcn.004024f0
mov rcx, r12
call sub.msvcrt.dll_free
jmp 0x401d13
call fcn.00401b00
mov ebx, eax
test eax, eax
js 0x401d28
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
mov r8, r14
mov rdx, r15
mov rcx, r13
call fcn.00401590
mov ebx, eax
mov rcx, r13
call sub.msvcrt.dll_fclose
mov rcx, r14
call sub.msvcrt.dll_fclose
jmp 0x401ceb
lea rdx, [r15 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.00402490
jmp 0x401ceb
mov rdx, rdi
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov ebx, 0xffffffff
call fcn.00402490
jmp 0x401d1b
xor ebx, ebx
jmp 0x401cce
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov ebx, 0xffffffff
lea rcx, str.fwrite
call fcn.004024f0
jmp 0x401cce
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov ebx, 0xffffffff
lea rcx, str.fseek
call fcn.004024f0
jmp 0x401d13
lea rcx, str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
mov ebx, 0xffffffff
call fcn.00402490
jmp 0x401ceb
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov ebx, 0xffffffff
lea rcx, str.fopen
call fcn.004024f0
jmp 0x401ceb
mov r8, rdi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
or ebx, 0xffffffff
call fcn.004024f0
jmp 0x401d13
Function at 0x401e10
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x30
lea rdx, [0x00418129]
mov rbx, rcx
lea rcx, [rcx + 0x70]
call fcn.00403830
mov r12, rax
test rax, rax
je 0x402017
mov rax, qword [0x0041e340]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rcx, r12
mov r13d, 0xffffffff
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.00407ff0
mov rsi, rax
test rax, rax
jne 0x401e90
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, r13d
add rsp, 0x30
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov edx, eax
mov rcx, r12
call fcn.0040e980
test eax, eax
js 0x401fc0
lea rcx, [rbx + 0x18]
mov r9, r12
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x401fe0
mov eax, dword [rbx + 0x20]
mov ecx, dword [rbx + 0x28]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x5078], 0
mov edx, dword [rbx + 0x24]
bswap eax
bswap ecx
mov dword [rbx + 0x20], eax
mov eax, eax
mov dword [rbx + 0x28], ecx
mov ecx, dword [rbx + 0x2c]
sub rsi, rax
bswap edx
mov qword [rbx], rsi
bswap ecx
mov dword [rbx + 0x24], edx
add edx, esi
mov dword [rbx + 0x2c], ecx
mov dword [0x00421050], ecx
mov rcx, r12
call fcn.0040e980
movsxd r14, dword [rbx + 0x28]
mov rcx, r14
call sub.msvcrt.dll_malloc
mov qword [rbx + 8], rax
mov rcx, rax
test rax, rax
je 0x402022
mov r9, r12
mov r8d, 1
mov rdx, r14
call sub.msvcrt.dll_fread
test rax, rax
je 0x401fa0
movsxd rax, dword [rbx + 0x28]
add rax, qword [rbx + 8]
mov rcx, r12
mov qword [rbx + 0x10], rax
call sub.msvcrt.dll_ferror
mov r13d, eax
test eax, eax
jne 0x402000
mov rax, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jae 0x401e76
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp r8, rax
ja 0x401f70
jmp 0x401e76
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.004024f0
jmp 0x401e76
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.004024f0
jmp 0x401e76
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.004024f0
jmp 0x401e76
lea rcx, str.Error_on_file._n
mov r13d, 0xffffffff
call fcn.00402490
jmp 0x401e76
mov r13d, 0xffffffff
jmp 0x401e7e
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.004024f0
jmp 0x401e76
Function at 0x407260
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.0040ddf0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.00408680
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4072a8
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.004084b0
mov rcx, rax
test rax, rax
je 0x407297
cmp byte [rax], 0
je 0x407297
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x407350
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.00408680
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x407660
Capabilities:
Delete directory

Disassembly:
push r15
mov eax, 0x44b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
mov r8d, 0x1000
lea rax, [rsp + 0x24a0]
mov rdx, rcx
lea rbx, [rsp + 0x490]
mov rsi, rax
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.00408680
mov rdx, rsi
mov rcx, rbx
call sub.msvcrt.dll_wcscpy
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov r13, rax
movzx eax, word [rsp + rax*2 + 0x48e]
cmp ax, 0x2f
je 0x4076cc
cmp ax, 0x5c
jne 0x407720
lea rdx, [0x0041a47a]
mov rcx, rbx
lea rbp, [rsp + 0x260]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, rbx
call fcn.0040e640
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x407738
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x44b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x0041a476]
mov rcx, rbx
add r13, 1
call sub.msvcrt.dll_wcscat
jmp 0x4076cc
lea rdi, [rsp + 0x30]
mov ecx, 0x46
mov rsi, rbp
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea r12, [rsp + 0x30]
mov rcx, rbx
mov r8, r12
mov r15, r12
call fcn.004077a0
jmp 0x40777f
mov rdi, r12
mov ecx, 0x46
mov rsi, rbp
mov r8, r15
rep movsq qword [rdi], qword [rsi]
mov rdx, r13
mov rcx, rbx
mov r12, r15
call fcn.004077a0
mov rdx, rbp
mov rcx, r14
call fcn.0040e6d0
test eax, eax
je 0x407760
mov rcx, r14
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x4076f7

Function at 0x4077a0
Capabilities:
Delete directory
Delete file

Disassembly:
push r13
mov eax, 0x1038
push r12
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
lea r12, [r8 + 0x24]
mov r13, rcx
mov rsi, rdx
mov rbx, r8
lea rdx, [0x0041a47e]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x4077e8
add rsp, 0x1038
pop rbx
pop rsi
pop r12
pop r13
ret
lea rdx, [0x0041a482]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x4077d3
xor eax, eax
mov rcx, r13
mov rdx, r12
mov word [r13 + rsi*2], ax
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rbx], 0x10
je 0x407840
call fcn.00408970
test eax, eax
jne 0x407868
lea r12, [rsp + 0x20]
mov r8d, 0x1000
mov rdx, r13
mov rcx, r12
call fcn.004084b0
mov rcx, r12
call fcn.00407660
jmp 0x4077d3
mov rbx, qword [sym.imp.msvcrt.dll__wremove]
call rbx
test eax, eax
je 0x4077d3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rbx
jmp 0x4077d3
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x4077d3
Function at 0x407ac0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.0040ddf0
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x0041a51c]
call fcn.00403830
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.00407990
mov r13, rax
test r12, r12
je 0x407bca
test rax, rax
je 0x407bbd
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x407bb8
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fread
mov r8, rax
test rax, rax
jne 0x407b60
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407b10
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x407b8f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x407b81
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x407b10
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x407b8f
test r12, r12
je 0x407bca
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x407b97
jmp 0x407b9f
Function at 0x407c40
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.0040ddf0
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.00408680
mov edx, 1
lea rcx, [0x00407100]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov rbp, qword [fcn.00416030]
xor ecx, ecx
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407df0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.00402530
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x407ff0
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 rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x4080f0
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.0040e980
test eax, eax
js 0x4080f0
mov rcx, rdi
call fcn.0040ea30
movsxd r8, eax
cmp r8, rbx
jb 0x4080f0
mov r14d, 1
lea rax, [rbx - 1]
sub r14, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov ebp, 0x2000
cmp r8, rbp
cmovae rbp, r8
lea r13, [rbp - 0x2000]
sub r8, r13
mov r15, r8
cmp rbx, r8
ja 0x4080f0
xor r8d, r8d
mov edx, r13d
mov rcx, rdi
call fcn.0040e980
test eax, eax
js 0x4080f0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
cmp rax, r15
jne 0x4080f0
mov rdx, qword [rsp + 0x20]
lea r15, [rdx + rax]
jmp 0x4080d2
lea r14, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r14]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x408110
mov r15, r14
test r15, r15
jne 0x4080b8
mov rax, qword [rsp + 0x28]
lea r8, [rax + r13]
test r13, r13
jne 0x408062
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [rbp + r15 - 0x2001]
jmp 0x4080f3

Function at 0x408920
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x00421320]
test rax, rax
je 0x40895a
mov dword [rsp + 0x20], 0x18
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sbb eax, eax
add rsp, 0x48
ret
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.00402490
mov eax, 0xffffffff
jmp 0x408955
Function at 0x40d040
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov r12, 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 fcn.00416030
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00416030
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x40d0b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004223a4]
test ebx, ebx
mov r12, rcx
jle 0x40d1e0
mov rax, qword [0x004223a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x40d0fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x40d185
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x40d0e0
mov rcx, r12
call fcn.0040db30
test rax, rax
mov rsi, rax
je 0x40d202
mov rax, qword [0x004223a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.0040dc60
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004223a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d1e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40d17e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40d190
add dword [0x004223a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004223a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40d17e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040d040
nop dword [rax]
xor ebx, ebx
jmp 0x40d108
mov rax, qword [0x004223a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rsi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.0040d040
lea rcx, str.Address__p_has_no_image_section
mov rdx, r12
call fcn.0040d040
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40d780
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x00422400]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004223e0]
test rbx, rbx
je 0x40d7dc
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40d7d3
test r12, r12
je 0x40d7d3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d7b8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40db30
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0041e740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40db50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40db58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40db50
sub rcx, rdx
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40dba5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40db9c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40db50
add rax, 0x28
cmp rax, r9
jne 0x40db88
xor eax, eax
ret

Function at 0x40dbb0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0041e740]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40dbd0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x40dbd8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x40dbd0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x40dc60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0041e740]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40dc80
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40dc88
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x414880
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4149f9
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x007e1328]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042d360
xorps xmm15, xmm15
mov r14, qword [0x008e5dd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4148f0
mov rbx, qword [rsp + 0x60]
jmp 0x414900
add rsp, 0x48
pop rbp
ret
sub rax, rbx
add rcx, rbx
mov rbx, rax
nop
test rbx, rbx
jbe 0x414925
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
mov rax, rbx
jmp 0x414935
cmp rbx, 0x1000
jae 0x4148f6
nop dword [rax]
jmp 0x4149a9
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
cmp rbx, 0x1000
jae 0x414942
xor edx, edx
jmp 0x4149a0
mov qword [rsp + 0x30], rbx
mov rax, qword [0x007e1328]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042d360
xorps xmm15, xmm15
mov r14, qword [0x008e5dd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov edx, eax
mov rax, qword [rsp + 0x38]
nop
test dl, dl
jne 0x41492b
jmp 0x414914
call fcn.004545c0
xorps xmm15, xmm15
mov r14, qword [0x008e5dd0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
cmp eax, 8
jne 0x4149e0
lea rax, [0x00808a04]
mov ebx, 0xd
call fcn.0042f960
nop dword [rax]
cmp eax, 0x5af
je 0x4149c8
lea rax, [0x0080c998]
mov ebx, 0x1f
call fcn.0042f960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00450f00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00414880
Function at 0x41b340
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41b55a
push rbp
mov rbp, rsp
sub rsp, 0x30
test rax, 7
jne 0x41b548
mov qword [rsp + 0x40], rax
mov rdx, qword [rdi + 0x50]
test byte [rdx], al
mov r9, r8
shr r9, 3
mov r10, r8
and r10d, 7
nop
mov r11, rcx
mov rcx, r10
mov r12d, 1
shl r12d, cl
lea r10, [rdx + r9]
cmp byte [0x008e5bd0], 0
jne 0x41b481
cmp dword [0x008e6110], 0
nop
jle 0x41b3c9
cmp qword [rdi + 0xa0], r8
ja 0x41b3c9
mov r8, qword [rdi + 0x48]
test byte [r8], al
movzx r8d, byte [r9 + r8]
nop
nop dword [rax + rax]
test r12b, r8b
je 0x41b4f8
movzx edx, byte [r9 + rdx]
test r12b, dl
jne 0x41b47b
nop
lock or byte [r10], r12b
mov rcx, qword [rdi + 0x18]
movabs rdx, 0x800000000000
add rdx, rcx
mov r8, rdx
shr rdx, 0x2a
nop
nop
nop
nop word [rax + rax]
cmp rdx, 0x40
jae 0x41b4eb
lea r9, [0x008b7fb8]
mov rdx, qword [r9 + rdx*8]
test byte [rdx], al
mov r9, rcx
shr r9, 0x10
and r9d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r10d, 1
shl r10d, cl
shr r8, 0x16
and r8d, 0xfffff
mov rdx, qword [rdx + r8*8]
test byte [rdx], al
movzx r8d, byte [rdx + r9 + 0x11440]
lea rdx, [rdx + r9]
lea rdx, [rdx + 0x11440]
test r10b, r8b
jne 0x41b460
lock or byte [rdx], r10b
movzx edx, byte [rdi + 0x6a]
test dl, 1
je 0x41b4a2
mov rax, qword [rsi + 0x10]
add rax, qword [rdi + 0x70]
mov qword [rsi + 0x10], rax
add rsp, 0x30
pop rbp
ret
add rsp, 0x30
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov rcx, r11
mov rdi, r10
mov esi, r12d
call fcn.004144a0
test al, al
jne 0x41b4d8
mov rax, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
prefetcht0 byte [rax]
mov rdx, qword [rsi]
test rdx, rdx
je 0x41b4c7
mov rdi, qword [rdx + 0x10]
cmp rdi, 0xfd
je 0x41b4c7
jae 0x41b4de
mov qword [rdx + rdi*8 + 0x18], rax
inc qword [rdx + 0x10]
jmp 0x41b4d2
mov rbx, rax
mov rax, rsi
call fcn.00420900
add rsp, 0x30
pop rbp
ret
add rsp, 0x30
pop rbp
ret
mov rax, rdi
mov ecx, 0xfd
call fcn.004531a0
mov rax, rdx
mov ecx, 0x40
call fcn.004531c0
lea rax, [0x00807f20]
mov rcx, rbx
mov rdi, r11
mov ebx, 4
call fcn.0041b5c0
lea rax, [0x00807e93]
mov ebx, 3
mov rcx, qword [rsp + 0x40]
mov rdi, 0xffffffffffffffff
call fcn.0041b5c0
mov rdx, qword [r14 + 0x30]
mov byte [rdx + 0xf9], 2
lea rax, [0x00809b39]
mov ebx, 0x13
call fcn.0042f960
lea rax, [0x0080d479]
mov ebx, 0x23
call fcn.0042f960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
call fcn.00450f00
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
nop dword [rax + rax]
jmp fcn.0041b340