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

Disassembly:
push rbx
mov rbx, rcx
sub rsp, 0x40
mov ecx, dword [rcx]
test ecx, ecx
jne 0x100c3623
mov eax, dword [rbx + 0xc]
test al, 0x1c
jne 0x100c3660
test al, 3
je 0x100c3660
mov ecx, 0xffffffff
movzx eax, word [rbx + 6]
lea edx, [rax - 0x60]
cmp dx, 9
ja 0x100c36ee
mov edx, dword [rbx]
test edx, edx
je 0x100c3610
mov edx, dword [0x100d08c8]
lea edx, [rdx + rdx*4]
lea eax, [rax + rdx*2 - 0x60]
mov dword [0x100d08c8], eax
cmp ecx, 0xffffffff
je 0x100c361d
mov rdx, rbx
call fcn.100c32e0
add rsp, 0x40
pop rbx
ret
movsx ecx, byte [rbx + 0xa]
movzx r8d, word [rbx + 6]
movzx edx, word [rbx + 8]
mov dword [rsp + 0x20], 0
mov r9d, dword [rbx + 0xc]
call fcn.100c3400
mov ecx, eax
mov eax, dword [rbx + 0xc]
test al, 0x1c
je 0x100c36e1
cmp ecx, 0xffffffff
je 0x100c3660
mov dword [0x100d08c8], 0
jmp 0x100c3615
mov ebx, dword [0x100d08c8]
test ebx, ebx
je 0x100c361d
movsx ecx, bl
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov qword [rsp + 0x38], 0
mov r8d, eax
mov edx, eax
movzx ecx, al
mov byte [rsp + 0x3a], bl
mov qword [rsp + 0x30], 0
shr r8d, 4
shr edx, 6
and r8d, 0x10
and edx, 8
shr eax, 9
mov word [rsp + 0x36], cx
or edx, r8d
and eax, 2
or eax, edx
xor edx, edx
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
movzx ecx, byte [0x100d08c8]
lea rdx, [rsp + 0x30]
mov word [rsp + 0x38], ax
call fcn.100c32e0
mov dword [0x100d08c8], 0
add rsp, 0x40
pop rbx
ret
test al, 3
je 0x100c364e
jmp 0x100c35e6
cmp ecx, 0xffffffff
jne 0x100c3653
jmp 0x100c361d
Function at 0x100c4c60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x100d3f24]
test ebp, ebp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
jle 0x100c4d7a
mov rax, qword [0x100d3f28]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x100c4cae
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x100c4d60
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x100c4c92
mov rcx, rbx
call fcn.100c58d0
test rax, rax
mov r12, rax
je 0x100c4db2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x100d3f28]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.100c59f0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov qword [r13 + 8], rax
mov rax, qword [0x100d3f28]
lea rdx, [rsp + 0x20]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x100c4d95
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x100c4d59
sub eax, 0x40
and eax, 0xffffffbf
je 0x100c4d59
mov r9, rbp
mov r8d, 0x40
add r9, qword [0x100d3f28]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100c4d81
add dword [0x100d3f24], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.ntdll.dll_memcpy
xor ebp, ebp
jmp 0x100c4cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.100c4bf0
mov rax, qword [0x100d3f28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rbp + 8]
call fcn.100c4bf0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.100c4bf0
nop
nop word cs:[rax + rax]

Function at 0x100c5530
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x100d4220]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x100d4200]
test rbx, rbx
je 0x100c5584
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x100c557b
test rsi, rsi
je 0x100c557b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x100c5560
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x100d4220]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x100c57e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x100c5821
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x100c5818
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x100c5823
add rax, 0x28
cmp rax, r9
jne 0x100c5804
xor eax, eax
ret
Function at 0x100c58d0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x100c9230]
cmp word [rbx], 0x5a4d
je 0x100c58f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.100c57a0
test eax, eax
je 0x100c58e4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.100c57e0
Function at 0x14000b11c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000af18
Function at 0x1400106f4
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 0x14001077b
mov rsi, rbx
cmp word [rax], bp
je 0x14001073a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010724
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010720
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000d0bc
mov rdi, rax
test rax, rax
je 0x140010768
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400037e0
mov rbp, rdi
xor ecx, ecx
call fcn.14000cbf8
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140024e30]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140024e40]
mov dword [rax], 1
mov rax, qword [0x140024e50]
mov dword [rax], 1
mov rax, qword [0x140024de0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140024e20]
mov dword [0x14002d00c], 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 [0x140024f00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140024ee0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140024ba0]
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 0x140001507
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x180
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0xfc], 0
jmp 0x140001546
mov edx, 0xa
mov ecx, 1
call sym.generateRandomNumber_int__int_
mov dword [rbp + 0xe4], eax
add dword [rbp + 0xfc], 1
cmp dword [rbp + 0xfc], 4
jle 0x14000152a
lea rax, [rbp - 0x40]
lea rdx, [0x140022090]
mov ecx, 0x22
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x115
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0
jne 0x1400015d3
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x1400016df
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0xf0]
mov r8d, 0x115
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0xf0]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x115
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x14000163e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x1400016df
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x1400016a4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x1400016df
mov rax, qword [rbp + 0xf0]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0xe8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
call sym.getchar
mov eax, 0
add rsp, 0x180
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002d0a4]
mov rbx, rcx
test esi, esi
jle 0x14000b710
mov rax, qword [0x14002d0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b62b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b6b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b610
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000b732
mov rax, qword [0x14002d0a8]
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 [0x14002d0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b717
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b6ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b6c0
add dword [0x14002d0a4], 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 [0x14002d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b6ae
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 0x14000b638
mov rax, qword [0x14002d0a8]
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 0x14000bca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002d0e0]
test rbx, rbx
je 0x14000bcfc
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 0x14000bcf3
test rsi, rsi
je 0x14000bcf3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bcd8
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 0x14000bf10
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bf28
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bf30
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000bf40
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 0x14000bf8d
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 0x14000bf84
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000bf8f
add rax, 0x28
cmp rax, r9
jne 0x14000bf70
xor eax, eax
ret

Function at 0x14000bf90
Capabilities:
Parse pe header

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

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

Function at 0x14000c0b0
Capabilities:
Parse pe header

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

Function at 0x14000c0f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140024de0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000c110
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000c118
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000c110
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000c160
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000c157
test rcx, rcx
je 0x14000c110
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000c148
xor eax, eax
ret
Function at 0x14000c170
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140024de0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000c262
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000c270
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c262
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000c262
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000c262
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 0x14000c2c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000c2d8
add rdx, 0x28
cmp rdx, r10
jne 0x14000c2b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000c2e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000c2f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000c2ce
test ecx, ecx
jg 0x14000c2e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000c420
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000c450
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
add byte [rax], al
add byte [rax], al
add al, dh
invalid
sub al, 0x90
sub al, 0xa
sahf
or byte [rax], al
add byte [rax], al
add byte [rax], al
add al, ah
loopne 0x14005c89b
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
add dword [rcx], eax
add dword [rcx], eax
add byte [rax], al
add al, byte [rcx]
add byte [rax], al
add byte [rax], al
jle case.0x140011e6c.14
ror dword [rcx + rax], 0x50
add dword [rax + 4], edx
invalid
add edx, dword [rcx - 0x39fb8118]
invalid
xchg ecx, eax
call 0x15794ce22
invalid
rcr byte [rdx], cl
add dword [rsp + rax - 0x1f], ebx
add dword [rsp + rax - 0x3e], ebx
call 0x15e00ce79
popfq
invalid
add al, 0xae
xchg ecx, eax
call 0x15feacea0
movsd dword [rdi], dword [rsi]
and dword [rbx], eax
xchg ecx, eax

Function at 0x14000c490
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000c4c0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000c4d8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000ccf0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140024b90]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000cd28
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000cd90
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000cda0
mov esi, dword [0x14002d188]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000cdf8
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000ce40
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000cd17
mov rcx, rbx
call fcn.14000cc50
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000cd17
call fcn.14000cc50
mov qword [rbx + 0x10], rax
jmp 0x14000cd17
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000ced1
mov r9d, dword [0x140021030]
test r9d, r9d
je 0x14000cef9
lea rcx, [0x14002d1a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000cede
mov eax, dword [rsi]
test eax, eax
je 0x14000cd31
lea rcx, [0x14002d1a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000cd31
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000cf34
mov qword [rax], rdi
mov ecx, dword [0x14002d188]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000cd6b
call r13
jmp 0x14000cd6b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000cf34
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000ce1b
lea rcx, [0x14002d1a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000cf2c
lea rdx, [0x14000cc00]
mov ecx, eax
mov dword [0x14002d188], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14000cf34
mov dword [0x140021030], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000cdbc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000cd31
mov rax, qword [0x14002d180]
lea r12, [rax + 1]
mov qword [0x14002d180], r12
mov qword [rbx + 0x10], r12
jmp 0x14000cdd6
lock add dword [0x140021034], 1
je 0x14000ce89
mov r8d, dword [0x140021030]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140021030]
test r8d, r8d
jne 0x14000cec7
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000cf20
jmp 0x14000cec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000ceb9
call sym.abort
nop
nop word [rax + rax]