joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044240
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180088ad0], ebp
je 0x180044297
cmp rbx, 0x20
jae 0x180044280
xor ecx, ecx
jmp 0x180044282
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180088ad0], ebp
jne 0x180044276
cmp qword [0x180088ad8], r15
je 0x180044391
test rdi, rdi
jne 0x1800442b7
mov ecx, esi
call fcn.180043d90
mov ebp, eax
jmp 0x180044396
mov ecx, dword [0x180088dfc]
mov ebx, r15d
test ecx, ecx
je 0x1800442df
mov r8, qword [0x180088df0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800442e9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800442d0
mov ebp, 4
jmp 0x180044396
cmp ebx, 0xffffffff
je 0x1800442df
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180044388
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180043ab0
mov edx, esi
mov ecx, ebx
call fcn.180043c60
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180044396
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180044372
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180044368
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180044340
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180088ad8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180044396
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180044396
mov ebp, 2
xchg dword [0x180088ad0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180048d30
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180048d63
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180048d00]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140147590
Capabilities:
Encrypt data using rc4 prga
Get common file path

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
mov word [rsp + 0x10], dx
mov dword [rsp + 8], ecx
sub rsp, 0x88
movabs rax, 0x7a8c893d4cfe51
mov qword [rsp + 0x40], rax
mov eax, 0x6fd
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
movabs rax, 0x7ef5d56d99cbdc
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
cmp rax, qword [rcx]
jge 0x14014761d
movabs rax, 0x70f6f963e584d6
mov rcx, qword [rsp + 0x40]
and rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
sar rax, 0x31
mov qword [rsp + 0x40], rax
jmp 0x140147660
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
movabs rcx, 0x77fd6b2081b335
sub rax, rcx
cmp rax, qword [rsp + 0x40]
je 0x140147660
mov byte [rsp + 0x34], 0x1b
movzx eax, word [rsp + 0xa8]
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x48]
mov word [rsp + 0x58], ax
mov eax, dword [rsp + 0x38]
movzx ecx, al
mov eax, dword [rsp + 0x90]
shl eax, cl
cmp eax, dword [rsp + 0xb0]
jg 0x14014767b
jmp 0x1401476a4
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ILRemoveLastID]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
movabs rcx, 0x731a3a4d9d4e6e
sub rax, rcx
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x34]
mov byte [rsp + 0x5c], al
cmp byte [rsp + 0x5c], 0x33
je 0x1401476b8
jmp 0x1401476d5
movabs rax, 0x7e426a47e50792
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
movzx r9d, word [rsp + 0x30]
mov r8d, dword [rsp + 0xa0]
movzx edx, word [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
call fcn.140147590
nop
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0xb0]
jne 0x1401477a4
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
mov dword [rsp + 0x64], eax
movabs rax, 0x75f79375bcbbf0
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
movsx eax, word [rsp + 0x98]
movsx ecx, word [rsp + 0xa8]
add eax, ecx
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
movzx r9d, word [rsp + 0x30]
mov r8d, dword [rsp + 0xa0]
movzx edx, word [rsp + 0xa8]
mov ecx, dword [rsp + 0x38]
call fcn.140147590
movsx eax, word [rsp + 0xa8]
movsx ecx, word [rsp + 0x98]
and eax, ecx
mov word [rsp + 0x30], ax
mov eax, 0xd0
add rsp, 0x88
ret
Function at 0x140147c40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x108
mov eax, 0xd6e
mov word [rsp + 0x30], ax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x70], rax
movabs rax, 0x7e9518ee38ff71
cmp qword [rsp + 0x70], rax
je 0x140147c7e
jmp 0x140147cbb
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [rsp + 0x60], eax
mov byte [rsp + 0x20], 0xcc
movzx r9d, word [rsp + 0x30]
mov r8, qword [rsp + 0x120]
movzx edx, word [rsp + 0x30]
mov rcx, qword [rsp + 0x120]
call fcn.140146fb0
nop
jmp 0x140147dc2
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140147ce6
movabs rax, 0x7ac623adbf3306
cmp qword [rsp + 0x48], rax
je 0x140147d51
jmp 0x140147d6b
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
movabs rax, 0x795f5d925ba3d8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0x5b91
je 0x140147d23
jmp 0x140147d4f
movzx eax, word [rsp + 0x30]
add eax, 0x5d4
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov dword [rsp + 0x118], 0x7347
mov ecx, 0x50
call qword [sym.imp.SHELL32.dll_SHChangeNotifyDeregister]
mov dword [rsp + 0x64], eax
jmp 0x140147d6b
movabs rax, 0x71852e9babb567
mov rcx, qword [rsp + 0x50]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140147d94
cmp dword [rsp + 0x3c], 0x6182
je 0x140147db0
jmp 0x140147dc2
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x6c], eax
mov eax, 0x515
mov word [rsp + 0x40], ax
mov byte [rsp + 0x38], 0xe6
jmp 0x140147dc2
movzx eax, word [rsp + 0x30]
or eax, 0x885
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0x1d3
jg 0x140147ddb
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x34], eax
jmp 0x140147de5
movzx eax, word [rsp + 0x30]
sub eax, 0x32b
movabs rax, 0x7342dc847e97b2
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x20], 0xd4
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x34]
mov edx, 0xb9
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x110], eax
mov eax, 0x45
add rsp, 0x108
ret
Function at 0x140148aa0
Capabilities:
Parse pe header

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

Function at 0x14014bf00
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14014bf6f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14014bf6f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14014bf6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14014bf6f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14014bf6f
cmp dword [rcx + 0x84], 0xe
jbe 0x14014bf6f
cmp dword [rcx + 0xf8], 0
je 0x14014bf6f
mov ecx, ebx
call fcn.14014c020
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14014bdfc
nop
cmp dword [rbp + 0x20], 0
je 0x14014bfbd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14014bfc8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14014bf00

Function at 0x14014c104
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14014bf00
Function at 0x14014eb60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14014ebe7
mov rsi, rbx
cmp word [rax], bp
je 0x14014eba6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14014eb90
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14014eb8c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14014f580
mov rdi, rax
test rax, rax
je 0x14014ebd4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401544d0
mov rbp, rdi
xor ecx, ecx
call fcn.14014d828
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140153d30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140153d58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140153d58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000d8b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000d8d1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000d8fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000d900
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000d959
test ecx, ecx
jle 0x14000d939
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000d959
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000d959
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
and bh, byte [rbx + rbp*4 + 0x3422e91]
cmp byte [rcx - 0xea06101], dl
xchg ebx, eax
stosb byte [rdi], al
Function at 0x14000d980
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000d9a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000d9b1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000d9d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000d9d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000da12
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000daae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000da4d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000da8e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000daae
cmp rbx, rax
ja 0x14000da60
test rbx, rbx
je 0x14000daae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
or byte [rcx + 0x2eb3eecb], bh
invalid
Function at 0x14000df10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000df3d
xor eax, eax
jmp 0x14000e0a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000df77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000df77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000e0a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000e09c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000dfba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000dfe5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e0a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000e054
sub eax, 1
je 0x14000e054
cmp eax, 2
jne 0x14000e09c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e0a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000e082
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000e09c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000e0a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140012800
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000f0e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000f1b3
cmp byte [rcx + 0x71], 0
je 0x14000f1b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000f1af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f174
sub eax, 1
je 0x14000f178
cmp eax, 2
jne 0x14000f1af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140012800
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000f1a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000f1af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000f15c
xor al, al
jmp 0x14000f15c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140012800
add rsp, 0x60
pop rbx
ret
Function at 0x140010910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140010977
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140010932
mov ecx, dword [r10]
jmp 0x140010a98
cmp ecx, 0x270
jb 0x140010a98
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1400109b0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140010a10
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret

Function at 0x1400133e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001342e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001342e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001342e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001342e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001342e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140013430
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4dd660
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4de062
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc502108]
test eax, eax
je 0x2fc4de0fa
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc502110]
mov qword [rbp - 8], rax
jmp 0x2fc4de0de
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 0x2fc4de0d2
cmp qword [rbp - 0x10], 0
je 0x2fc4de0d2
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 0x2fc4de098
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4de0fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4de200
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 0x2fc4de228
mov eax, 0
jmp 0x2fc4de276
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 0x2fc4de251
mov eax, 0
jmp 0x2fc4de276
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 0x2fc4de271
mov eax, 0
jmp 0x2fc4de276
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4de27c
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 0x2fc4de2fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4de2f1
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 0x2fc4de2f1
mov rax, qword [rbp - 8]
jmp 0x2fc4de30f
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 0x2fc4de2c4
mov eax, 0
add rsp, 0x20
pop rbp
ret