joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044a36
Capabilities:
Write file on windows

Disassembly:
jmp 0x14005ddc0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1400f1040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1401010fc]
call fcn.140044aa9
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14005de27
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14005de2e
mov al, 1
jmp 0x14005df9e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140043799
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.140043799
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1400444c3
movzx eax, al
test eax, eax
je 0x14005de91
xor al, al
jmp 0x14005df9e
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14005df04
cmp dword [rbp + 0x160], 1
je 0x14005df0f
cmp dword [rbp + 0x160], 3
je 0x14005df8d
jmp 0x14005df9c
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14005df5f
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14005df5f
xor al, al
jmp 0x14005df9e
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14005df7a
mov dword [rbp + 0x154], 1
jmp 0x14005df84
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14005df9e
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14005df9e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400d90b0]
call fcn.1400445d6
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140043cda
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140044c7a
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400790f0
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400f1040]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x140101559]
call fcn.140044aa9
nop
mov dword [rbp + 0x284], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x2a4], eax
xor edx, edx
mov ecx, 2
call fcn.140043c94
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14007915d
jmp 0x1400791b0
mov r8d, 0x238
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400443ba
nop
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140044013
test eax, eax
jne 0x140079189
jmp 0x1400791b0
mov eax, dword [rbp + 0x2a4]
cmp dword [rbp + 0x38], eax
jne 0x14007919f
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x284], eax
jmp 0x1400791b0
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140044694
test eax, eax
jne 0x140079189
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x1400791c2
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x284]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400e0830]
call fcn.1400445d6
mov rax, rdi
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.140043cda
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret

Function at 0x1400c5210
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140044b80
movzx eax, al
test eax, eax
jne 0x1400c5230
mov ecx, 7
call fcn.140044603
nop
mov byte [rsp + 0x20], 0
call fcn.14004467b
mov byte [rsp + 0x21], al
cmp dword [0x1400f1b08], 1
jne 0x1400c5254
mov ecx, 7
call fcn.140044603
nop
jmp 0x1400c52ac
cmp dword [0x1400f1b08], 0
jne 0x1400c52a7
mov dword [0x1400f1b08], 1
lea rdx, [0x1400d1880]
lea rcx, [0x1400d1550]
call fcn.140043c80
test eax, eax
je 0x1400c5288
mov eax, 0xff
jmp 0x1400c53b1
lea rdx, [0x1400d1440]
lea rcx, [section..rdata]
call fcn.140044658
mov dword [0x1400f1b08], 2
jmp 0x1400c52ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400445b3
call fcn.1400442e3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400c5309
mov rcx, qword [rsp + 0x30]
call fcn.140043a28
movzx eax, al
test eax, eax
je 0x1400c5309
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140103020]
nop
call fcn.140044405
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400c533d
mov rcx, qword [rsp + 0x38]
call fcn.140043a28
movzx eax, al
test eax, eax
je 0x1400c533d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400449be
nop
call fcn.1400c5460
mov dword [rsp + 0x28], eax
call fcn.140044239
movzx eax, al
test eax, eax
jne 0x1400c535c
mov ecx, dword [rsp + 0x28]
call fcn.140043230
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400c536b
call fcn.140044a09
nop
xor edx, edx
mov cl, 1
call fcn.1400439ab
mov eax, dword [rsp + 0x28]
jmp 0x1400c53b1
add rsp, 0x68
ret
Function at 0x402ff0
Capabilities:
Hash data via wincrypt

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [rsp + 0xb0]
mov rdi, rcx
mov rbx, rdx
mov r14, r8
mov ebp, r9d
test rcx, rcx
je 0x403122
mov rcx, qword [rdx]
test r9d, r9d
je 0x403122
test rcx, rcx
je 0x403122
lea r13, [rsp + 0x3c]
mov dword [rsp + 0x3c], 0x280
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x20], 0
mov r9, r13
mov r12, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call r12
mov rcx, qword [rbx]
mov r15d, eax
test rcx, rcx
jne 0x403110
test r15d, r15d
je 0x403122
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateHash]
test eax, eax
je 0x403122
mov rcx, qword [rbx]
test rcx, rcx
je 0x403122
xor r9d, r9d
mov r8d, ebp
mov rdx, r14
mov rdi, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rdi
test eax, eax
je 0x403122
xor r9d, r9d
mov r8d, dword [rsp + 0x3c]
mov rdx, rsi
mov rcx, qword [rbx]
call rdi
test eax, eax
je 0x403122
mov r8, rsi
mov r9, r13
mov edx, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x3c], 0x280
mov dword [rsp + 0x20], 0
call r12
mov rcx, qword [rbx]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
mov qword [rbx], 0
test esi, esi
sete al
neg eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbx], 0
jmp 0x40306b
mov eax, 0xffffffff
jmp 0x4030ff
Function at 0x417350
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00515a24]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x417504
mov rax, qword [0x00515a28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41739c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x417429
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x417380
mov rcx, rbx
call fcn.00418020
test rax, rax
mov r12, rax
je 0x417539
mov rax, qword [0x00515a28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00418150
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00515a28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41751c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x417422
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4174a4
add dword [0x00515a24], 1
cmp edi, 8
jae 0x417460
test dil, 4
jne 0x4174f0
test edi, edi
je 0x41744c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41750b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x41744c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x417490
jmp 0x41744c
add rsi, qword [0x00515a28]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
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 0x417422
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004b1b30
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x41744c
xor esi, esi
jmp 0x4173a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x41744c
mov rax, qword [0x00515a28]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.004b1b30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004b1b30
nop
nop dword [rax]
Function at 0x417c90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00515d00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00515ce0]
test rbx, rbx
je 0x417ce4
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 0x417cdb
test rsi, rsi
je 0x417cdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x417cc0
lea rcx, [0x00515d00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x418020
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004ec970]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x41808d
mov rcx, r8
call fcn.00417f00
test eax, eax
je 0x41808d
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 0x41808d
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 0x418084
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41808f
add rax, 0x28
cmp rax, r9
jne 0x418070
xor eax, eax
add rsp, 0x28
ret

Function at 0x4183a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [0x00515ce8]
xor esi, esi
mov ebp, ecx
mov rdi, rdx
test eax, eax
jne 0x417d24
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x417d78
mov dword [rax], ebp
mov qword [rax + 8], rdi
lea rcx, [0x00515d00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x00515ce0]
lea rcx, [0x00515d00]
mov qword [0x00515ce0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov esi, 0xffffffff
jmp 0x417d19
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4183d0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x423440
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
je 0x423450
jmp 0x417d00
xor eax, eax
ret

Function at 0x418400
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 0x418430
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x418445
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x425f20
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor r11d, r11d
mov rax, rcx
add r9, r8
mov rbx, r8
mov rdi, rdx
lea rcx, [0x004f6720]
cmp rbx, r9
je 0x425fc4
movzx r10d, byte [rbx]
cmp r10b, 0x3d
je 0x425fc4
movzx r10d, byte [rcx + r10]
cmp r10b, 0xff
je 0x425fc4
movsxd rsi, r11d
add r11d, 1
add rbx, 1
mov byte [rsp + rsi + 0x1c], r10b
cmp r11d, 4
jne 0x425f40
movzx r11d, byte [rsp + 0x1d]
movzx r10d, byte [rsp + 0x1e]
add rdi, 3
mov ebp, r11d
mov esi, r10d
sar r10d, 2
sar ebp, 4
shl r11d, 4
and r10d, 0xf
mov r12d, ebp
movzx ebp, byte [rsp + 0x1c]
add r10d, r11d
shl esi, 6
and r12d, 3
add sil, byte [rsp + 0x1f]
mov byte [rdi - 2], r10b
xor r11d, r11d
lea ebp, [r12 + rbp*4]
mov byte [rdi - 1], sil
mov byte [rdi - 3], bpl
cmp rbx, r9
jne 0x425f45
test r11d, r11d
je 0x426026
movzx r10d, byte [rsp + 0x1d]
movzx esi, byte [rsp + 0x1c]
mov ecx, r10d
shl r10d, 4
sar ecx, 4
and ecx, 3
lea esi, [rcx + rsi*4]
movzx ecx, byte [rsp + 0x1e]
mov r9d, ecx
shl ecx, 6
add cl, byte [rsp + 0x1f]
sar r9d, 2
and r9d, 0xf
add r9d, r10d
mov r10d, r11d
sub r10d, 1
je 0x426026
mov byte [rdi], sil
cmp r10d, 1
je 0x42601d
mov byte [rdi + 1], r9b
cmp r10d, 2
je 0x42601d
mov byte [rdi + 2], cl
lea ecx, [r11 - 2]
lea rdi, [rdi + rcx + 1]
mov qword [rsp + 8], rdi
movq xmm0, qword [rsp + 8]
mov qword [rsp + 8], rbx
movhps xmm0, qword [rsp + 8]
mov qword [rsp + 8], rdx
movq xmm1, qword [rsp + 8]
mov qword [rsp + 8], r8
movhps xmm1, qword [rsp + 8]
psubq xmm0, xmm1
movups xmmword [rax], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x477990
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x4779b8
call r12
cmp dword [rax], 4
jne 0x4779d6
mov rcx, rbp
call fcn.004777b0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x4779b0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4b0070
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [0x004b2454], 0
jne 0x4b0081
lea rax, [0x004b2440]
ret
mov ecx, dword [0x004b2450]
jmp fcn.00418400

Function at 0x4b1b30
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.00423240
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00423240
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400512b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400512c0]
mov dword [rax], 1
mov rax, qword [0x1400512d0]
mov dword [rax], 1
mov rax, qword [0x140051250]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400512a0]
mov dword [0x140059020], 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 [0x140051380]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140051360]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140050fe0]
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 0x1400050cc
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
add rax, 4
mov qword [rbp - 0x10], rax
lea rax, [0x14004d007]
mov qword [str.BABUBE], rax
mov eax, dword [0x14004c210]
cmp eax, 0x29
jne 0x14000512c
mov rax, qword [str.BABUBE]
mov qword [rbp - 0x18], rax
mov byte [0x14004c1f0], 0
mov dword [0x14004c210], 0x349
mov rax, qword [rbp - 0x18]
mov qword [str.BABUBE], rax
jmp 0x14000516e
mov byte [0x14004c220], 1
mov dword [0x14004c210], 0x1218e
mov edx, dword [0x14004c210]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11.to_string_int_
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov qword [str.BABUBE], rax
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string__
mov dword [0x14004c210], 0x29
mov dword [rbp - 8], 0
jmp 0x1400051d8
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x77fd0
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.NtWriteFile
mov dword [rbp - 4], eax
add dword [rbp - 8], 1
cmp dword [rbp - 8], 0xf
jle 0x140005181
mov eax, dword [rbp - 4]
add rsp, 0xa0
pop rbp
ret
Function at 0x140027b20
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 sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140027b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400590b4]
mov rbx, rcx
test esi, esi
jle 0x140027cc0
mov rax, qword [0x1400590b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140027bdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140027c65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140027bc0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140027ce2
mov rax, qword [0x1400590b8]
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 [0x1400590b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140027cc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140027c5e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140027c70
add dword [0x1400590b4], 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 [0x1400590b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140027c5e
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 0x140027be8
mov rax, qword [0x1400590b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400283b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x1400284e0
ja 0x1400283f8
test edx, edx
je 0x140028478
mov eax, dword [0x140059108]
test eax, eax
je 0x140028560
mov dword [0x140059108], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x1400283e5
mov eax, dword [0x140059108]
test eax, eax
je 0x1400283e5
lea r12, [0x140059120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140059100]
test rbx, rbx
je 0x140028464
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 0x140028588
test eax, eax
jne 0x140028588
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140028438
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400283e5
mov eax, dword [0x140059108]
test eax, eax
jne 0x1400284f8
mov eax, dword [0x140059108]
cmp eax, 1
jne 0x1400283e5
mov rbx, qword [0x140059100]
test rbx, rbx
je 0x1400284b1
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call sym.free
test rbx, rbx
jne 0x1400284a0
lea rcx, [0x140059120]
mov qword [0x140059100], 0
mov dword [0x140059108], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x1400283e5
call sym._fpreset
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x140059120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140059100]
test rbx, rbx
je 0x14002854c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140028578
test rsi, rsi
je 0x140028578
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140028528
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140028482
lea rcx, [0x140059120]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1400283db
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140028528
jmp 0x14002854c
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140028438
jmp 0x140028464

Function at 0x1400285a0
Capabilities:
Parse pe header

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

Function at 0x1400285d0
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 0x14002861d
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 0x140028614
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14002861f
add rax, 0x28
cmp rax, r9
jne 0x140028600
xor eax, eax
ret