joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140132210
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140132372
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov edx, dword [r8 + 0x10]
movq xmm4, rsi
xor edx, dword [r11 + 0x10]
and edx, esi
punpcklqdq xmm4, xmm4
xor dword [r11 + 0x10], edx
xor dword [r8 + 0x10], edx
mov ecx, dword [r11 + 0x14]
mov edx, dword [r8 + 0x14]
xor rdx, rcx
and edx, 4
and rdx, rsi
mov eax, edx
xor eax, ecx
xor ecx, ecx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], edx
mov edx, ecx
test r9d, r9d
jle 0x140132332
cmp ebx, 2
jb 0x140132332
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x1401322c1
cmp rdi, r8
jae 0x14013232d
cmp r9, r10
ja 0x1401322cb
cmp rdi, r10
jae 0x14013232d
cmp r9, r11
ja 0x1401322d5
cmp rdi, r11
jae 0x14013232d
cmp r8, r10
ja 0x1401322df
cmp rax, r10
jae 0x14013232d
cmp r8, r11
ja 0x1401322e9
cmp rax, r11
jae 0x14013232d
mov eax, ebx
and eax, 0xfffffffe
nop
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x1401322f0
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x14013236d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, qword [rcx + rax*8]
xor r9, rdx
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x140132340
mov rsi, qword [rsp + 0x10]
pop rbx
ret

Function at 0x14015bda0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14022cf80
sub rsp, rax
lea rcx, [0x1406778a0]
add rsp, 0x28
jmp fcn.140114150
Function at 0x14017f430
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x20
call fcn.14022cf80
sub rsp, rax
mov rbx, rcx
call fcn.140102b40
test eax, eax
je 0x14017f453
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
Function at 0x1401d5060
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.14022cf80
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401d5089
lea rax, [0x1401d36d0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401cc610
lea rax, [0x1401d2890]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401cc350
Function at 0x14022d6f0
Capabilities:
Parse pe header

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

Function at 0x14022da6c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14022daf0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1402b7dd0]
cmp byte [rcx + rax], 0
je 0x14022daf0
dec r8
sub rdx, 1
jne 0x14022dad6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x6df7b3e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6df9c5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6df7b568
mov rax, qword [0x6df9c5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6df7b42c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6df7b4b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6df7b410
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6df7b59d
mov rax, qword [0x6df9c5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6df9c5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6df7b580
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6df7b4ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6df7b510
add dword [0x6df9c5e4], 1
cmp edi, 8
jae 0x6df7b4e3
test dil, 4
jne 0x6df7b554
test edi, edi
je 0x6df7b4d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6df7b56f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6df7b4d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6df7b4fc
jmp 0x6df7b4d8
add rsi, qword [0x6df9c5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6df7b4ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6df7b4d8
xor esi, esi
jmp 0x6df7b437
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6df7b4d8
mov rax, qword [0x6df9c5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6df7bcf0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6df9c8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6df9c8a0]
test rbx, rbx
je 0x6df7bd44
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 0x6df7bd3b
test rsi, rsi
je 0x6df7bd3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6df7bd20
lea rcx, [0x6df9c8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6df7bf80
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6df7bf90
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6df7bfa0
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 0x6df7bfe1
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 0x6df7bfd8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6df7bfe3
add rax, 0x28
cmp rax, r9
jne 0x6df7bfc4
xor eax, eax
ret

Function at 0x6df7c080
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6df991f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6df7c0ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6df7c0ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6df7c0ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6df7c0e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6df7c0ef
add rax, 0x28
cmp rax, r9
jne 0x6df7c0d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6df7c1f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6df991f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6df7c210
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6df7c208
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6df7c26d
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 0x6df7c264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6df7c274
add rax, 0x28
cmp rax, r9
jne 0x6df7c250
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6df7c290
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6df991f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6df7c2fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6df7c2fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6df7c2fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6df7c2fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6df7c2f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6df7c305
add rcx, 0x28
cmp rcx, rax
jne 0x6df7c2e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6df7c318
jmp 0x6df7c2fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6df7c326
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6df7c2fe
test r9d, r9d
jg 0x6df7c310
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6df7c690
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
nop
nop
nop
nop
nop
nop
Function at 0x140011253
Capabilities:
Hash data using sha512

Disassembly:
jmp 0x140013c10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140029009]
call fcn.140011483
cmp qword [rbp + 0xe0], 0
jne 0x140013c43
mov eax, 1
jmp 0x140013d5a
mov rax, qword [rbp + 0xe0]
mov qword [rax + 0x48], 0
mov rax, qword [rbp + 0xe0]
mov qword [rax], 0
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0x6a09e667f3bcc908
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0xbb67ae8584caa73b
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0x3c6ef372fe94f82b
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0xa54ff53a5f1d36f1
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 4
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0x510e527fade682d1
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0x9b05688c2b3e6c1f
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 6
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0x1f83d9abfb41bd6b
mov qword [rcx + rax + 8], rdx
mov eax, 8
imul rax, rax, 7
mov rcx, qword [rbp + 0xe0]
movabs rdx, 0x5be0cd19137e2179
mov qword [rcx + rax + 8], rdx
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011267
Capabilities:
Terminate process

Disassembly:
jmp 0x140016970
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011271
Capabilities:
Allocate or change rwx memory
Print debug messages

Disassembly:
jmp 0x140014760
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xcc8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x23a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xce8]
mov rax, qword [0x140023008]
xor rax, rbp
mov qword [rbp + 0xc98], rax
lea rcx, [0x1400290c5]
call fcn.140011483
mov rax, qword [rbp + 0xcc0]
mov qword [rbp + 0x828], rax
mov eax, dword [rbp + 0xcc8]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x848], rax
cmp qword [rbp + 0x848], 0
jne 0x1400147ef
xor eax, eax
jmp 0x1400148d4
mov dword [rbp + 0x864], 0xac8289b1
mov eax, dword [rbp + 0xcc8]
sub rax, 0x40
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x828]
lea rcx, [rdx + rcx + 0x40]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rbp + 0x848]
call fcn.140011217
mov eax, dword [rbp + 0xcc8]
sub rax, 0x40
mov r8d, dword [rbp + 0x864]
mov edx, eax
mov rcx, qword [rbp + 0x848]
call fcn.1400112a8
mov eax, dword [rbp + 0xcc8]
sub rax, 0x40
lea r8, [rbp + 0x890]
mov rdx, rax
mov rcx, qword [rbp + 0x848]
call fcn.140011451
mov rax, qword [rbp + 0x828]
mov r8d, 0x40
mov rdx, rax
lea rcx, [rbp + 0x890]
call fcn.140011195
test eax, eax
jne 0x14001488b
jmp 0x1400148c0
mov r8d, dword [rbp + 0x864]
lea rdx, str._m0yv__brute_key_0X_X_invalid_hash_in_result_buffer
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [rbp + 0x864]
inc eax
mov dword [rbp + 0x864], eax
jmp 0x1400147f9
lea rcx, str._m0yv__decrypted_buffer
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rbp + 0x848]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f580]
call fcn.1400113e3
mov rax, rdi
mov rcx, qword [rbp + 0xc98]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0xca8]
pop rdi
pop rbp
ret
Function at 0x1400112da
Capabilities:
Write file on windows

Disassembly:
jmp 0x140014a40
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140023008]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1400290c5]
call fcn.140011483
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140014ad6
xor eax, eax
jmp 0x140014b0b
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x150]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f0c0]
call fcn.1400113e3
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140011316
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017d60
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017d80
xor al, al
jmp 0x140017e01
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017d93
xor al, al
jmp 0x140017e01
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140017dbd
xor al, al
jmp 0x140017e01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017dd1
xor al, al
jmp 0x140017e01
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017de3
xor al, al
jmp 0x140017e01
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017dff
xor al, al
jmp 0x140017e01
mov al, 1
add rsp, 0x38
ret
Function at 0x140011348
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
jmp 0x140015380
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400290c5]
call fcn.140011483
mov r8d, 0xa
mov edx, 0x66
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400153d1
jmp 0x140015463
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400153ea
jmp 0x140015463
mov rdx, qword [rbp + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x44], eax
mov edx, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x28]
call fcn.140011271
mov qword [rbp + 0x68], rax
call fcn.1400112ad
lea rcx, str._m0yv__loading_to_memory
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0x14]
mov rcx, qword [rbp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rcx, qword [rbp + 0x88]
call qword [rbp + 0xa8]
mov ecx, 0x927c0
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
test eax, eax
jne 0x1400153ae
xor eax, eax
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400114f6
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x140014b80
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140023008]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x1400290c5]
call fcn.140011483
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140014c19
xor eax, eax
jmp 0x140014cbe
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x64], 0
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x140014c3e
jmp 0x140014cb1
mov eax, dword [rbp + 0x64]
inc eax
mov eax, eax
mov ecx, eax
call fcn.1400111cc
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x148]
mov qword [rax], rcx
mov rax, qword [rbp + 0x188]
cmp qword [rax], 0
jne 0x140014c73
jmp 0x140014cb1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x64]
mov rax, qword [rbp + 0x188]
mov rdx, qword [rax]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x190]
mov ecx, dword [rbp + 0x64]
mov dword [rax], ecx
xor eax, eax
test eax, eax
jne 0x140014c27
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f040]
call fcn.1400113e3
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011212
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140002510
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.140012470
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.140012470
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 0x140002580
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400180b4]
mov r12, rcx
test ebx, ebx
jle 0x1400026b0
mov rax, qword [0x1400180b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400025cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002653
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400025b0
mov rcx, r12
call fcn.140002f20
mov rsi, rax
test rax, rax
je 0x1400026d2
mov rax, qword [0x1400180b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140003050
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400180b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400026b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000264c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002660
add dword [0x1400180b4], 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 [0x1400180b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000264c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002510
nop dword [rax]
xor ebx, ebx
jmp 0x1400025d7
mov rax, qword [0x1400180b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002510
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002510
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002b90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140018120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140018100]
test rbx, rbx
je 0x140002be4
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 0x140002bdb
test r12, r12
je 0x140002bdb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002bc0
lea rcx, [0x140018120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]