joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003ba2
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x180069e50
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x18008f2e0]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x18008f2d8]
call fcn.1800693f0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180069e90
call qword [0x180148020]
jmp 0x180069e96
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180003f49
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1800190a8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x18008b6d8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x18008b6d0]
call fcn.180018b20
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1800190e8
call qword [0x180148020]
jmp 0x1800190ee
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800040de
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800530e8
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180052eb3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180052eb3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180052eb3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180052eb3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180052eb3
cmp dword [rcx + 0x84], 0xe
jbe 0x180052eb3
cmp dword [rcx + 0xf8], 0
je 0x180052eb3
mov ecx, ebx
call fcn.180053044
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180052bb0
cmp dword [rbp + 0x20], 0
je 0x180052f00
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180052f38
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180052e4c
Function at 0x18000416a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180008810
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rcx, [0x180147005]
call fcn.1800041f1
mov rcx, qword [rbp + 0x268]
call fcn.1800026c1
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x270]
call fcn.1800026c1
mov dword [rbp + 0x24], eax
mov dword [rbp + 0xc4], 0
jmp 0x18000887b
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xc4], eax
jge 0x180008945
mov eax, dword [rbp + 0xc4]
add eax, eax
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov eax, dword [rbp + 0xc4]
lea eax, [rax + rax + 1]
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x44]
mov ecx, eax
call fcn.1800034fe
sub eax, 0x30
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x84]
cmp eax, 9
jle 0x1800088ec
movsx eax, byte [rbp + 0x84]
sub eax, 7
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x64]
mov ecx, eax
call fcn.1800034fe
sub eax, 0x30
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0xa4]
cmp eax, 9
jle 0x18000891c
movsx eax, byte [rbp + 0xa4]
sub eax, 7
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0x84]
imul eax, eax, 0x10
movsx ecx, byte [rbp + 0xa4]
add eax, ecx
movsxd rcx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x18000886d
mov dword [rbp + 0xe4], 0
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 0x104], eax
jmp 0x180008978
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jge 0x1800089dc
movsxd rax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x260]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x124], al
movsxd rax, dword [rbp + 0x104]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0x260]
mov r8, qword [rbp + 0x260]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x260]
movzx edx, byte [rbp + 0x124]
mov byte [rcx + rax], dl
jmp 0x18000895c
mov dword [rbp + 0x144], 0
jmp 0x1800089f6
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x144], eax
jge 0x180008a4f
mov eax, dword [rbp + 0x144]
add eax, 5
cdq
idiv dword [rbp + 0x24]
mov eax, edx
mov dword [rbp + 0x164], eax
movsxd rax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x260]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0x164]
mov rdx, qword [rbp + 0x270]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rbp + 0x144]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x1800089e8
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x180008200
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x180008200
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x180147005]
call fcn.1800041f1
mov eax, dword [0x18013cd68]
mov dword [rbp + 0x64], eax
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor r9d, r9d
mov r8d, 0x20
lea rdx, str.1L2NRhWkcNKE7EwaZXQeLoBJHZOgU1gd
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov edx, 0x6610
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
lea rax, [rbp + 0x64]
mov qword [rsp + 0x28], rax
mov rax, qword [0x18013cd60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rcx, [rbp - 0x30]
lea rdx, [0x1800890e0]
call fcn.1800038eb
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x180008810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180008810
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
lea rcx, [0x180147005]
call fcn.1800041f1
mov rcx, qword [rbp + 0x268]
call fcn.1800026c1
xor edx, edx
mov ecx, 2
div rcx
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x270]
call fcn.1800026c1
mov dword [rbp + 0x24], eax
mov dword [rbp + 0xc4], 0
jmp 0x18000887b
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xc4], eax
jge 0x180008945
mov eax, dword [rbp + 0xc4]
add eax, eax
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x44], al
mov eax, dword [rbp + 0xc4]
lea eax, [rax + rax + 1]
cdqe
mov rcx, qword [rbp + 0x268]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x64], al
movsx eax, byte [rbp + 0x44]
mov ecx, eax
call fcn.1800034fe
sub eax, 0x30
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x84]
cmp eax, 9
jle 0x1800088ec
movsx eax, byte [rbp + 0x84]
sub eax, 7
mov byte [rbp + 0x84], al
movsx eax, byte [rbp + 0x64]
mov ecx, eax
call fcn.1800034fe
sub eax, 0x30
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0xa4]
cmp eax, 9
jle 0x18000891c
movsx eax, byte [rbp + 0xa4]
sub eax, 7
mov byte [rbp + 0xa4], al
movsx eax, byte [rbp + 0x84]
imul eax, eax, 0x10
movsx ecx, byte [rbp + 0xa4]
add eax, ecx
movsxd rcx, dword [rbp + 0xc4]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x18000886d
mov dword [rbp + 0xe4], 0
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 0x104], eax
jmp 0x180008978
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
cmp dword [rbp + 0xe4], eax
jge 0x1800089dc
movsxd rax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x260]
movzx eax, byte [rcx + rax]
mov byte [rbp + 0x124], al
movsxd rax, dword [rbp + 0x104]
movsxd rcx, dword [rbp + 0xe4]
mov rdx, qword [rbp + 0x260]
mov r8, qword [rbp + 0x260]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rbp + 0x104]
mov rcx, qword [rbp + 0x260]
movzx edx, byte [rbp + 0x124]
mov byte [rcx + rax], dl
jmp 0x18000895c
mov dword [rbp + 0x144], 0
jmp 0x1800089f6
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x144], eax
jge 0x180008a4f
mov eax, dword [rbp + 0x144]
add eax, 5
cdq
idiv dword [rbp + 0x24]
mov eax, edx
mov dword [rbp + 0x164], eax
movsxd rax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x260]
movsx eax, byte [rcx + rax]
movsxd rcx, dword [rbp + 0x164]
mov rdx, qword [rbp + 0x270]
movsx ecx, byte [rdx + rcx]
xor eax, ecx
movsxd rcx, dword [rbp + 0x144]
mov rdx, qword [rbp + 0x260]
mov byte [rdx + rcx], al
jmp 0x1800089e8
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x2fc4d87e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d98c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d91e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d927a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d925e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d9252
cmp qword [rbp - 0x10], 0
je 0x2fc4d9252
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d9218
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d927b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9380
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d93a8
mov eax, 0
jmp 0x2fc4d93f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d93d1
mov eax, 0
jmp 0x2fc4d93f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d93f1
mov eax, 0
jmp 0x2fc4d93f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d93fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d947a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9471
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9471
mov rax, qword [rbp - 8]
jmp 0x2fc4d948f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d9444
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14004c490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14004c4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14002cba0
jmp 0x14000123c
mov rax, qword [0x14004c4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14004c4a0]
mov dword [rax], 1
mov rax, qword [0x14004c4e0]
mov rdx, rax
mov rax, qword [0x14004c4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140050024], 1
mov rax, qword [0x14004c4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14004c4c0]
mov rdx, rax
mov rax, qword [0x14004c4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14004c4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14004c490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14004c3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14004c3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14002be28
mov rax, qword [0x14004c520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14004c480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14002b620
mov eax, dword [0x140050004]
lea rdx, [0x140050008]
mov ecx, eax
call fcn.14000147c
call fcn.14002b3b7
mov rax, qword [0x14004c410]
mov rax, qword [rax]
mov rdx, qword [0x140050010]
mov qword [rax], rdx
mov rcx, qword [0x140050010]
mov rdx, qword [0x140050008]
mov eax, dword [0x140050004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14005001c], eax
mov eax, dword [0x140050020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14005001c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140050024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14005001c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004c440]
mov dword [rax], 1
mov rax, qword [0x14004c450]
mov dword [rax], 1
mov rax, qword [0x14004c460]
mov dword [rax], 1
mov rax, qword [0x14004c400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14002b630
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14002c990
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14002c302
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140050168]
test eax, eax
je 0x14002c39a
lea rax, [0x140050140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140050170]
mov qword [rbp - 8], rax
jmp 0x14002c37e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14002c372
cmp qword [rbp - 0x10], 0
je 0x14002c372
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002c338
lea rax, [0x140050140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002c39b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14002c4a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002c4c8
mov eax, 0
jmp 0x14002c516
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14002c4f1
mov eax, 0
jmp 0x14002c516
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002c511
mov eax, 0
jmp 0x14002c516
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14002c51c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002c59a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002c591
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14002c591
mov rax, qword [rbp - 8]
jmp 0x14002c5af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14002c564
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011294
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f20
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 0x14001133e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016270
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016290
xor al, al
jmp 0x140016311
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400162a3
xor al, al
jmp 0x140016311
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 0x1400162cd
xor al, al
jmp 0x140016311
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400162e1
xor al, al
jmp 0x140016311
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400162f3
xor al, al
jmp 0x140016311
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001630f
xor al, al
jmp 0x140016311
mov al, 1
add rsp, 0x38
ret