joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cde4
Capabilities:
Parse pe header

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

Function at 0x14000faf8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fb67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fb67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fb67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fb67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fb67
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fb67
cmp dword [rcx + 0xf8], 0
je 0x14000fb67
mov ecx, ebx
call fcn.14000fc0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fa00
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fbc8
call fcn.1400146ec
cmp eax, 1
jne 0x14000fbb8
xor dl, dl
jmp 0x14000fbc2
call fcn.1400146b8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fbd3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fbdc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000faf8

Function at 0x14000fce0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000fb67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fb67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fb67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fb67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fb67
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fb67
cmp dword [rcx + 0xf8], 0
je 0x14000fb67
mov ecx, ebx
call fcn.14000fc0c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000fa00
nop
cmp dword [rbp + 0x20], 0
jne 0x14000fbc8
call fcn.1400146ec
cmp eax, 1
jne 0x14000fbb8
xor dl, dl
jmp 0x14000fbc2
call fcn.1400146b8
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14000fbd3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fbdc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000faf8
Function at 0x1400192e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001936f
mov rsi, rbx
cmp word [rax], bp
je 0x14001932e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019318
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019314
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016820
mov rdi, rax
test rax, rax
je 0x14001935c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001fea0
mov rbp, rdi
xor ecx, ecx
call fcn.140015900
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b430
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b446
mov al, 1
jmp 0x14001b4b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b457
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b4b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019630
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b4b0
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b4b0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b4b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b4b2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f6f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004ec740]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004ec750]
mov dword [rax], 1
mov rax, qword [0x004ec760]
mov dword [rax], 1
mov rax, qword [0x004ec730]
mov dword [rax], 1
mov rax, qword [0x004ec5e0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x004ec720]
mov dword [0x00511020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004ec6e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x004ec6c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004eba20]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x401997
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x425ebc28
call sym.SW2_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x4019d7
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8b97e370
call sym.SW2_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x401a17
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x4392772d
call sym.SW2_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x401a57
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rbx
mov eax, 0x2170
call fcn.0040c5a0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x2110], ecx
mov r8d, dword [rbp + 0x2110]
mov edx, 0
mov ecx, 0x410
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x20e0], rax
cmp qword [rbp + 0x20e0], 0
jne 0x401aaa
mov ebx, 1
jmp 0x401c4f
lea rcx, [rbp + 0xcc]
lea rdx, [rbp + 0xd0]
mov rax, qword [rbp + 0x20e0]
mov r9, rcx
mov r8d, 0x2000
mov rcx, rax
call sym.EnumProcessModules
test eax, eax
setne al
test al, al
je 0x401c37
mov dword [rbp + 0x20ec], 0
mov eax, dword [rbp + 0x20ec]
mov edx, dword [rbp + 0xcc]
mov edx, edx
shr rdx, 3
cmp rax, rdx
jae 0x401c37
mov eax, dword [rbp + 0x20ec]
mov rdx, qword [rbp + rax*8 + 0xd0]
lea rcx, [rbp - 0x40]
mov rax, qword [rbp + 0x20e0]
mov r9d, 0x104
mov r8, rcx
mov rcx, rax
call sym.GetModuleFileNameExA
test eax, eax
setne al
test al, al
je 0x401c2b
lea rax, [rbp + 0x20df]
mov rcx, rax
call fcn.00465010
lea rcx, [rbp + 0x20df]
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x20df]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, str.SbieDll.dll
movsx edx, al
lea rax, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_char__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
jne 0x401bf9
lea rax, str.Api_log.dll
movsx edx, al
lea rax, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_char__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
jne 0x401bf9
lea rax, str.Dir_watch.dll
movsx edx, al
lea rax, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_char__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
jne 0x401bf9
lea rax, str.dbghelp.dll
movsx edx, al
lea rax, [rbp - 0x60]
mov r8d, 0
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.find_char__unsigned_long_long__const
cmp rax, 0xffffffffffffffff
je 0x401c00
mov eax, 1
jmp 0x401c05
mov eax, 0
test al, al
je 0x401c15
mov ebx, 2
mov esi, 0
jmp 0x401c1a
mov esi, 1
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp esi, 1
jne 0x401c4f
add dword [rbp + 0x20ec], 1
jmp 0x401ae7
mov rax, qword [rbp + 0x20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ebx, 0
mov eax, ebx
jmp 0x401c70
add rsp, 0x2170
pop rbx
pop rsi
pop rbp
ret
Function at 0x401c7b
Capabilities:
Enumerate process modules

Disassembly:
push rbp
mov eax, 0x1050
call fcn.0040c5a0
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.EnumProcesses
test eax, eax
sete al
test al, al
je 0x401cbc
mov eax, 1
jmp 0x401d3d
mov eax, dword [rbp - 0x54]
shr eax, 2
mov dword [rbp + 0xfc4], eax
mov dword [rbp + 0xfc8], 0
cmp dword [rbp + 0xfc8], 2
je 0x401d38
mov dword [rbp + 0xfcc], 0
mov eax, dword [rbp + 0xfcc]
cmp eax, dword [rbp + 0xfc4]
jae 0x401cd2
mov eax, dword [rbp + 0xfcc]
mov eax, dword [rbp + rax*4 - 0x50]
mov ecx, eax
call sym.PrintModules_unsigned_long_
mov dword [rbp + 0xfc0], eax
cmp dword [rbp + 0xfc0], 2
jne 0x401d2f
mov eax, dword [rbp + 0xfc0]
mov dword [rbp + 0xfc8], eax
mov eax, dword [rbp + 0xfcc]
mov eax, dword [rbp + rax*4 - 0x50]
mov dword [rbp + 0xfbc], eax
add dword [rbp + 0xfcc], 1
jmp 0x401ce5
mov eax, 0
add rsp, 0x1050
pop rbp
ret

Function at 0x401e30
Capabilities:
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 8], rax
mov dword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
call sym.getLoadedDlls__
lea rcx, [0x004b1fe0]
call sym.deC_unsigned_char_
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [0x004e318c]
mov r8d, 0
mov rcx, rax
call sym.NtAllocateVirtualMemory
mov dword [rbp - 0xc], eax
mov eax, dword [0x004e318c]
mov ecx, eax
mov rdx, qword [0x00511040]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov r9d, 1
lea r8, [0x004e318c]
mov rcx, rax
call sym.NtProtectVirtualMemory
mov dword [rbp - 0x10], eax
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0x20000000
mov rcx, rax
call sym.NtCreateThreadEx
mov dword [rbp - 0x14], eax
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20
lea r8, [0x004e318c]
mov rcx, rax
call sym.NtProtectVirtualMemory
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp - 0x28]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x90
pop rbp
ret
Function at 0x40b8c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x40b930
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x005110d4]
mov r12, rcx
test ebx, ebx
jle 0x40ba60
mov rax, qword [0x005110d8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40b97c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40ba03
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x40b960
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x40ba82
mov rax, qword [0x005110d8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005110d8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40ba67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40b9fc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x40ba10
add dword [0x005110d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x005110d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b9fc
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 ebx, ebx
jmp 0x40b987
mov rax, qword [0x005110d8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40bf50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00511140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00511120]
test rbx, rbx
je 0x40bfa4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40bf9b
test r12, r12
je 0x40bf9b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40bf80
lea rcx, [0x00511140]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x40c1c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x40c1d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x40c1e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x40c1f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40c23c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x40c233
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x40c23e
add rax, 0x28
cmp rax, r9
jne 0x40c220
xor eax, eax
ret

Function at 0x40c240
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x40c2d0
mov rdx, qword [0x004ec5e0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x40c2be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40c2be
cmp word [rax + 0x18], 0x20b
jne 0x40c2be
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40c2d0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x40c2a9
add r12, 0x28
cmp r12, rsi
je 0x40c2d0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x40c2a0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x004ec5e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x40c300
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x40c308
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40c300
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x40c355
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40c34c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40c300
add rax, 0x28
cmp rax, r9
jne 0x40c338
xor eax, eax
ret

Function at 0x40c360
Capabilities:
Parse pe header

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

Function at 0x40c3a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004ec5e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x40c3c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x40c3c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x40c3c0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40c408
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40c3ff
test rcx, rcx
je 0x40c3c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x40c3f0
xor eax, eax
ret
Function at 0x40c410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004ec5e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40c430
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40c438
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x004ec5e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x40c470
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x40c478
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x40c470
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40c470
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40c4b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40c4c8
add rax, 0x28
cmp r9, rax
jne 0x40c4a0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x004ec5e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x40c502
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x40c510
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40c502
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x40c502
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x40c502
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x40c55d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x40c570
add rdx, 0x28
cmp r10, rdx
jne 0x40c548
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x40c57f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x40c58f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40c566
test ecx, ecx
jg 0x40c578
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x40c660
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x40c690
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x40c6d0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x40c710
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40c728
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]