joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400092d0
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rsi
push rbx
call fcn.14000e6d0
sub rsp, rax
mov r13, rcx
lea r15, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400093d0
xor r12d, r12d
lea r14, [rsp + 0x60]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009349
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, r14
lea r8, str.D:_A__FA____s_
test r12, r12
cmovne r9, r12
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140009460
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x2068
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r14, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call r14
test eax, eax
jne 0x140009407
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009328
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov rsi, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov r12, rax
test rax, rax
je 0x140009328
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, rax
mov edx, 1
call r14
lea r14, [rsp + 0x60]
test eax, eax
je 0x140009330
mov rcx, qword [r12]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x140009330
mov eax, 0xffffffff
jmp 0x1400093be

Function at 0x140009aa0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
mov r10d, 0x80000000
mov r11d, ecx
test ecx, ecx
je 0x140009b19
mov ebx, 3
lea rsi, [0x1400247e0]
jmp 0x140009ac8
add ebx, 1
sar r11d, 1
je 0x140009b19
test r11b, 1
je 0x140009ac0
mov eax, ebx
mov edx, 0x80000000
and eax, 0x1f
mov r9d, dword [rsi + rax*4]
mov eax, r10d
xor r10d, r10d
jmp 0x140009b01
mov r8d, eax
shr eax, 1
mov ecx, eax
and r8d, 1
shr edx, 1
xor ecx, 0xedb88320
test r8d, r8d
cmovne eax, ecx
test r9d, edx
je 0x140009ae8
lea ecx, [rdx - 1]
xor r10d, eax
test ecx, r9d
jne 0x140009ae8
add ebx, 1
sar r11d, 1
jne 0x140009ac8
mov eax, r10d
pop rbx
pop rsi
ret
Function at 0x14000da00
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 fcn.140020da0
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.140020da0
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 0x14000da70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14002f394]
mov r12, rcx
test ebx, ebx
jle 0x14000dba0
mov rax, qword [0x14002f398]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000dabc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000db43
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000daa0
mov rcx, r12
call fcn.14000e410
mov rsi, rax
test rax, rax
je 0x14000dbc2
mov rax, qword [0x14002f398]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000e540
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14002f398]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000dba7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000db3c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000db50
add dword [0x14002f394], 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 [0x14002f398]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000db3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000da00
nop dword [rax]
xor ebx, ebx
jmp 0x14000dac7
mov rax, qword [0x14002f398]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000da00
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000da00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14002f400]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f3e0]
test rbx, rbx
je 0x14000e0d4
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 0x14000e0cb
test r12, r12
je 0x14000e0cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e0b0
lea rcx, [0x14002f400]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000e410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140028930]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e430
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e438
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e430
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000e485
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 0x14000e47c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e430
add rax, 0x28
cmp rax, r9
jne 0x14000e468
xor eax, eax
ret

Function at 0x14000e490
Capabilities:
Parse pe header

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

Function at 0x14000e540
Capabilities:
Parse pe header

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

Function at 0x14000fd30
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140028a00]
mov rax, qword [rsi]
test rax, rax
je 0x14000fdc0
cmp qword [rax + 0x30], 0
jne 0x14000fde0
lea rbx, [0x140021088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000fd90
cmp qword [rax + 0x30], 0
jne 0x14000fdb0
lea rdx, [0x140021088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140020f50
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014c30
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000fd72
test rax, rax
jne 0x14000fdb0
call fcn.140014c30
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000fd80
call fcn.140014c30
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fd50
test rax, rax
jne 0x14000fde0
call fcn.140014c30
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000fd5b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14000fdf0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000ff02
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000feda
add rax, 1
cmp rax, 0x6b
je 0x14000fef7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fed0
cmp edx, 0x6a
je 0x14000fef7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000feeb
Function at 0x140010910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x140028a00]
mov rax, qword [rsi]
test rax, rax
je 0x140010b00
cmp qword [rax + 0x28], 0
jne 0x140010ae8
lea rcx, [0x14002f4b8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140010af5
call fcn.14000ff20
mov rax, qword [rsi]
test rax, rax
je 0x140010990
cmp qword [rax + 0x30], 0
jne 0x1400109b0
lea rdx, [0x140021088]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400109c4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140014c30
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140010960
test rax, rax
jne 0x1400109b0
call fcn.140014c30
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14001097e
call fcn.14000fa60
cmp qword [0x140033050], 0
mov rbx, rax
je 0x14001097e
test rax, rax
je 0x14001097e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140016ad0
cmp eax, 1
je 0x140010b6d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140020f56
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140010b48
cmp qword [rax + 0x30], 0
je 0x140010b30
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140020f56
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14001094c
mov rax, qword [rsi]
jmp 0x140010959
call fcn.140014c30
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140010938
test rax, rax
jne 0x140010ae8
call fcn.140014c30
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14001094c
jmp 0x140010951
lea rdx, [0x140021088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140010abe
call fcn.140014c30
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140010b30
test rax, rax
jne 0x140010aba
call fcn.140014c30
jmp 0x140010aba
call fcn.14000fdf0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140028a00]
mov rdx, qword [rax]
lea rax, [0x14002f4c8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140014ab0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014ad0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140014b18
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140014ac4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140014b05
Function at 0x140014c30
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14002f5a0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140014c53
lea rax, [0x14002f5a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140014c9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014c98
lea rax, [0x14002f5e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140014ccb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014cc8
xor ecx, ecx
mov byte [0x14002f5f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14002f602], rdx
lea r8, [0x14002f5a0]
lea rbx, [0x14002f5fa]
mov qword [0x14002f612], rdx
mov qword [0x14002f622], rdx
mov qword [0x14002f632], rdx
xor edx, edx
mov qword [0x14002f5fa], rax
mov qword [0x14002f60a], rax
mov qword [0x14002f61a], rax
mov qword [0x14002f62a], rax
mov byte [0x14002f63a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140014ea6
lea rcx, [0x14002f5e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140014df1
lea rsi, [0x14002f4e0]
lea r8, [0x14002f63a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140014d9d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140014d90
lea rcx, [0x14002f5e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140014e93
lea rcx, [0x140014b40]
mov qword [0x14002f4e0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14002f4e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14002f5e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14002f63a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140014ec6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140014e43
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140014e30
mov rax, rdx
mov qword [0x14002f4e0], rax
lea rsi, [0x14002f4e0]
jmp 0x140014e69
cmp rdx, rsi
je 0x140014dcf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140014e60
cmp rdx, rsi
je 0x140014dcf
mov qword [rdx + 8], rsi
lea rcx, [0x140014b40]
call sub.msvcrt.dll__onexit
jmp 0x140014dcf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140014ab0
xor eax, eax
jmp 0x140014de8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140014ab0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140014ab0
xor eax, eax
jmp 0x140014e4f
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov dword [rsp + 0x30], 0
mov edx, 0x1cd
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, 0x1cd
lea rdx, [0x140003080]
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x1cd
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001098
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400010c0
add rsp, 0x40
pop rbx
ret

Function at 0x140001988
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405710]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405720]
mov dword [rax], 1
mov rax, qword [0x00405730]
mov dword [rax], 1
mov rax, qword [0x00405700]
mov dword [rax], 1
mov rax, qword [0x004055f0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004056f0]
mov dword [0x0040800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004056b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004055a0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
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 0x402590
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 0x402600
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4027a8
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40264c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4026d7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402630
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x4027e2
mov rax, qword [0x00408618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4027f1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4026d0
sub eax, 4
and eax, 0xfffffffb
jne 0x402760
add dword [0x00408614], 1
cmp ebx, 8
jae 0x402708
test bl, 4
jne 0x4027b0
test ebx, ebx
je 0x4026f9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4027d0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x4026f9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40273a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00408618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4026d0
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 edi, edi
jmp 0x402657
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4026f9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4026f9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00408618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]