joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099938
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140190900
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14023e96a]
call fcn.14009c5f2
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x14019093c
mov rcx, qword [rbp + 0x100]
call fcn.140099ac8
jmp 0x140190957
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x140190957
mov rcx, qword [rbp + 0x100]
call fcn.14009a9c3
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140099dc5
Capabilities:
Terminate process

Disassembly:
jmp 0x1401a9c60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x140226100]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x14023e968]
call fcn.14009c5f2
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x240]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x48]
mov qword [rbp + 0x200], rax
lea r9, [rbp + 0x28]
lea r8, [0x140203ab8]
xor edx, edx
mov rcx, qword [rbp + 0x1f8]
call qword [rbp + 0x200]
cmp dword [rbp + 4], 0
jne 0x1401a9d2d
lea rdx, str.Back_buffer_gotten_successfully.
lea rcx, [rbp + 0x108]
call fcn.14009a793
nop
lea rcx, [rbp + 0x108]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x108]
call fcn.1400999f1
jmp 0x1401a9de3
mov edx, dword [rbp + 4]
lea rcx, [rbp + 0x148]
call fcn.14009baa3
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rbp + 0x200], rax
mov r8, qword [rbp + 0x200]
lea rdx, str.GetBuffer_failed._HResult:
lea rcx, [rbp + 0x188]
call fcn.14009c778
mov qword [rbp + 0x208], rax
mov rax, qword [rbp + 0x208]
mov qword [rbp + 0x210], rax
mov rcx, qword [rbp + 0x210]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x188]
call fcn.1400999f1
nop
lea rcx, [rbp + 0x148]
call fcn.1400999f1
lea rdx, str.Please_send_this_log_to_developer.
lea rcx, [rbp + 0x1c8]
call fcn.14009a793
nop
lea rcx, [rbp + 0x1c8]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x1c8]
call fcn.1400999f1
call fcn.14009b431
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x28]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14009bc47
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.14009a93c
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x140099f69
Capabilities:
Terminate process

Disassembly:
jmp 0x1401bac80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x30]
lea rcx, [0x14023e96d]
call fcn.14009c5f2
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 0x1e0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax]
call qword [rax + 0x180]
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x250]
mov qword [rbp + 0x1a0], rax
mov rax, qword [rbp + 0x1e0]
mov rdx, qword [rax + 0x78]
mov rcx, qword [rbp + 0x198]
call qword [rbp + 0x1a0]
mov r8, qword [rbp + 0x1f0]
mov rdx, qword [rbp + 0x1f8]
mov rcx, qword [rbp + 0x1e0]
call fcn.14009c4c6
mov rax, qword [rbp + 0x1e0]
movzx eax, byte [rax + 0xc0]
test eax, eax
je 0x1401bad73
mov rax, qword [rbp + 0x200]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x1f8]
mov r8, qword [rbp + 0x1f0]
mov rdx, qword [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1e0]
call fcn.14009b576
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x188]
mov qword [rbp + 0x1a0], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x198]
call qword [rbp + 0x1a0]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401bae76
mov edx, dword [rbp + 4]
lea rcx, [rbp + 0xe8]
call fcn.14009baa3
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x1a0], rax
mov r8, qword [rbp + 0x1a0]
lea rdx, str.EndDraw_failed._HResult:
lea rcx, [rbp + 0x128]
call fcn.14009c778
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x1b0], rax
mov rcx, qword [rbp + 0x1b0]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x128]
call fcn.1400999f1
nop
lea rcx, [rbp + 0xe8]
call fcn.1400999f1
lea rdx, str.Please_send_this_log_to_developer.
lea rcx, [rbp + 0x168]
call fcn.14009a793
nop
lea rcx, [rbp + 0x168]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x168]
call fcn.1400999f1
call fcn.14009b431
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x14009a9c3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14019e060
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14023e96a]
call fcn.14009c5f2
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14019e0a4
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14019e135
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14019e0fa
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14019e104
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14019e099
mov qword [rbp + 0x88], 0xe3
jmp 0x14019e153
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14019e1fc
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14019e1b8
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14019e1c2
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14019e142
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14019e25c
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14019e266
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x14009adc9
Capabilities:
Terminate process

Disassembly:
jmp 0x1401c9e60
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 0x14009b1de
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401c1e50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1401c1e8d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14009c5bb
add rsp, 0x58
ret
Function at 0x14009b4a9
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401cabf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401cac10
xor al, al
jmp 0x1401cac91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401cac23
xor al, al
jmp 0x1401cac91
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 0x1401cac4d
xor al, al
jmp 0x1401cac91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401cac61
xor al, al
jmp 0x1401cac91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401cac73
xor al, al
jmp 0x1401cac91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401cac8f
xor al, al
jmp 0x1401cac91
mov al, 1
add rsp, 0x38
ret
Function at 0x14009bd96
Capabilities:
Create directory

Disassembly:
jmp 0x1401c38e0
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140226100]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1401c391d
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x1401c3992
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x1401c3980
mov edx, 1
mov ecx, 2
call fcn.1400991b3
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140099f91
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1401c3980
mov edx, 0x10
mov ecx, dword [rsp + 0x48]
call fcn.14009969f
movzx eax, al
test eax, eax
jne 0x1401c3980
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009a93c
add rsp, 0x68
ret
Function at 0x14009c51b
Capabilities:
Write file on windows

Disassembly:
jmp 0x140198f10
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 [0x140226100]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x14023e833]
call fcn.14009c5f2
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140198f76
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140198f7d
mov al, 1
jmp 0x1401990ed
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140099f0f
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.140099f0f
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.14009b9fe
movzx eax, al
test eax, eax
je 0x140198fe0
xor al, al
jmp 0x1401990ed
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 0x140199053
cmp dword [rbp + 0x160], 1
je 0x14019905e
cmp dword [rbp + 0x160], 3
je 0x1401990dc
jmp 0x1401990eb
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 0x1401990ae
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 0x1401990ae
xor al, al
jmp 0x1401990ed
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1401990c9
mov dword [rbp + 0x154], 1
jmp 0x1401990d3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1401990ed
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1401990ed
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1401fbc90]
call fcn.14009bc47
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.14009a93c
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x14009cab6
Capabilities:
Terminate process

Disassembly:
jmp 0x1401abad0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14023e968]
call fcn.14009c5f2
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x1e0]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
mov qword [rbp + 0x1a0], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x198]
call qword [rbp + 0x1a0]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x1401abbf9
mov edx, dword [rbp + 4]
lea rcx, [rbp + 0xe8]
call fcn.14009baa3
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x1a0], rax
mov r8, qword [rbp + 0x1a0]
lea rdx, str.Present_failed._HResult:
lea rcx, [rbp + 0x128]
call fcn.14009c778
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x1b0], rax
mov rcx, qword [rbp + 0x1b0]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x128]
call fcn.1400999f1
nop
lea rcx, [rbp + 0xe8]
call fcn.1400999f1
lea rdx, str.Please_send_this_log_to_developer.
lea rcx, [rbp + 0x168]
call fcn.14009a793
nop
lea rcx, [rbp + 0x168]
call fcn.14009c2fa
nop
lea rcx, [rbp + 0x168]
call fcn.1400999f1
call fcn.14009b431
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x140001dfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e46
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e46
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e46
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e46
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e46
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e48
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d35a0
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.2fc4d4680
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3fa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d403a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d401e
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 0x2fc4d4012
cmp qword [rbp - 0x10], 0
je 0x2fc4d4012
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 0x2fc4d3fd8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d403b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4140
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 0x2fc4d4168
mov eax, 0
jmp 0x2fc4d41b6
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 0x2fc4d4191
mov eax, 0
jmp 0x2fc4d41b6
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 0x2fc4d41b1
mov eax, 0
jmp 0x2fc4d41b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d41bc
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 0x2fc4d423a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4231
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 0x2fc4d4231
mov rax, qword [rbp - 8]
jmp 0x2fc4d424f
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 0x2fc4d4204
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9810
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.2fc4da8f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da212
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4da2aa
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4da28e
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 0x2fc4da282
cmp qword [rbp - 0x10], 0
je 0x2fc4da282
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 0x2fc4da248
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da2ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da3b0
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 0x2fc4da3d8
mov eax, 0
jmp 0x2fc4da426
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 0x2fc4da401
mov eax, 0
jmp 0x2fc4da426
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 0x2fc4da421
mov eax, 0
jmp 0x2fc4da426
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da42c
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 0x2fc4da4aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da4a1
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 0x2fc4da4a1
mov rax, qword [rbp - 8]
jmp 0x2fc4da4bf
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 0x2fc4da474
mov eax, 0
add rsp, 0x20
pop rbp
ret