joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026680
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140073ba0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400266e3
mov qword [rsp], rbx
lea rbx, [0x140060b60]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400266c3
cmp byte [r8], r9b
jne 0x1400266c3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400266b0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f20]
not eax
mov r8, qword [r10 + 0x5f28]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002670f
cmp dword [r8 + 8], eax
je 0x140026716
add r8, 0x48
cmp r8, rcx
jne 0x140026700
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140058af0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x78], rax
movsx edi, cl
mov ecx, edi
movsxd rbx, edx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140058b52
xor eax, eax
lea rdx, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x50], 1
lea r8d, [rax + 0x28]
mov word [rsp + 0x58], di
lea ecx, [rax + 1]
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [rsp + 0x20]
call fcn.140007a80
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
cmp rbx, 1
jl 0x140058b98
imul rdx, rbx, 0xf4240
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rdx
cmp rax, rcx
jge 0x140058b93
lea rcx, [rdx + rax]
mov qword [rsp + 0x20], rcx
jmp 0x140058b98
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x20]
call fcn.14000a2b0
xor eax, eax
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x28], 1
lea r8d, [rax + 0x28]
mov word [rsp + 0x30], di
lea ecx, [rax + 1]
mov dword [rsp + 0x34], 2
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005a500
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret

Function at 0x140058c00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, 0x57
movsxd rdi, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140058c66
xorps xmm0, xmm0
lea r8d, [rsi - 0x2f]
movups xmmword [rsp + 0x28], xmm0
xor eax, eax
mov dword [rsp + 0x28], 1
lea rdx, [rsp + 0x28]
mov word [rsp + 0x30], si
lea ecx, [rsi - 0x56]
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.USER32.dll_SendInput]
lea rcx, [rsp + 0x20]
mov rbx, rdi
call fcn.140007a80
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x20], rax
cmp rdi, 1
jl 0x140058caf
imul rdx, rbx, 0xf4240
movabs r8, 0x7fffffffffffffff
mov rcx, r8
sub rcx, rdx
cmp rax, rcx
jge 0x140058caa
lea rcx, [rdx + rax]
mov qword [rsp + 0x20], rcx
jmp 0x140058caf
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x20]
call fcn.14000a2b0
mov edx, edi
mov cl, 0x20
call fcn.140058af0
xor eax, eax
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x28], 1
lea r8d, [rax + 0x28]
mov word [rsp + 0x30], si
lea ecx, [rax + 1]
mov dword [rsp + 0x34], 2
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005a500
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140059010
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140073040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edi, 0x20
mov ecx, edi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movabs rbx, 0x6666666666666667
test ax, ax
js 0x14005910a
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x11], 1
mov word [rbp - 9], di
mov dword [rbp - 5], eax
lea r8, [rbp - 0x11]
xor edx, edx
lea rcx, [rbp + 0x17]
call fcn.140059c70
mov rcx, qword [rbp + 0x1f]
sub rcx, qword [rbp + 0x17]
mov rax, rbx
imul rcx
mov rcx, rdx
sar rcx, 4
mov rax, rcx
shr rax, 0x3f
add rcx, rax
lea r8d, [rdi + 8]
mov rdx, qword [rbp + 0x17]
call qword [sym.imp.USER32.dll_SendInput]
nop
mov r8, qword [rbp + 0x17]
test r8, r8
je 0x14005910a
mov rcx, qword [rbp + 0x27]
sub rcx, r8
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x140059102
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059102
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14005a564
lea rcx, [rbp - 0x19]
call fcn.140007a80
movabs r8, 0x7ffffffff1194d7f
mov rax, qword [rbp - 0x19]
cmp rax, r8
je 0x14005913f
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x14005913f
add rax, 0xee6b280
jmp 0x140059149
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
call fcn.14000a2b0
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
mov qword [rbp + 0x3f], rax
mov dword [rbp - 0x11], 1
mov word [rbp - 9], di
mov dword [rbp - 5], 2
lea r8, [rbp - 0x11]
xor edx, edx
lea rcx, [rbp + 0x2f]
call fcn.140059c70
mov rcx, qword [rbp + 0x37]
sub rcx, qword [rbp + 0x2f]
mov rax, rbx
imul rcx
mov rcx, rdx
sar rcx, 4
mov r9, rcx
shr r9, 0x3f
add rcx, r9
mov r8d, 0x28
mov rdx, qword [rbp + 0x2f]
call qword [sym.imp.USER32.dll_SendInput]
nop
mov r8, qword [rbp + 0x2f]
test r8, r8
je 0x140059211
mov rcx, qword [rbp + 0x3f]
sub rcx, r8
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*4]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x140059209
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059209
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.14005a564
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005a500
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140059a10
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
test dl, dl
je 0x140059a4b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.sent_up_is_true__sending_down_arrow
call fcn.140005df0
lea rdx, [0x140005fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, 0xc8
mov cl, 0x28
add rsp, 0x28
jmp fcn.140058af0
test cl, cl
je 0x140059a82
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.sent_down_is_true__sending_up
call fcn.140005df0
lea rdx, [0x140005fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, 0xc8
mov cl, 0x26
add rsp, 0x28
jmp fcn.140058af0
test r9b, r9b
je 0x140059aba
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.sent_up_2_is_true__sending_down_arrow
call fcn.140005df0
lea rdx, [0x140005fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, 0x96
mov cl, 0x28
add rsp, 0x28
jmp fcn.140058af0
test r8b, r8b
je 0x140059af2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.sent_down_2_is_true__sending_up
call fcn.140005df0
lea rdx, [0x140005fc0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, 0x96
mov cl, 0x26
add rsp, 0x28
jmp fcn.140058af0
add rsp, 0x28
ret

Function at 0x140059bd0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov edx, 0x3e8
mov cl, 0x26
call fcn.140058af0
mov edx, 0x190
mov cl, 0x28
add rsp, 0x28
jmp fcn.140058af0
Function at 0x14005b010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005b05a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005b05a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005b05a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005b05a
cmp dword [rcx + 0x84], 0xe
jbe 0x14005b05a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005b05c
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4cb0b0
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 0x2fc4cbab2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cbb4a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cbb2e
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 0x2fc4cbb22
cmp qword [rbp - 0x10], 0
je 0x2fc4cbb22
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 0x2fc4cbae8
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cbb4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cbc50
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 0x2fc4cbc78
mov eax, 0
jmp 0x2fc4cbcc6
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 0x2fc4cbca1
mov eax, 0
jmp 0x2fc4cbcc6
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 0x2fc4cbcc1
mov eax, 0
jmp 0x2fc4cbcc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cbccc
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 0x2fc4cbd4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cbd41
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 0x2fc4cbd41
mov rax, qword [rbp - 8]
jmp 0x2fc4cbd5f
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 0x2fc4cbd14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400111ef
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140012c80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012ca0
xor al, al
jmp 0x140012d21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012cb3
xor al, al
jmp 0x140012d21
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 0x140012cdd
xor al, al
jmp 0x140012d21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012cf1
xor al, al
jmp 0x140012d21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d03
xor al, al
jmp 0x140012d21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d1f
xor al, al
jmp 0x140012d21
mov al, 1
add rsp, 0x38
ret
Function at 0x1400111fe
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014220
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014240
xor al, al
jmp 0x1400142c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014253
xor al, al
jmp 0x1400142c1
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 0x14001427d
xor al, al
jmp 0x1400142c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014291
xor al, al
jmp 0x1400142c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142a3
xor al, al
jmp 0x1400142c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142bf
xor al, al
jmp 0x1400142c1
mov al, 1
add rsp, 0x38
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004360e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004360f0]
mov dword [rax], 1
mov rax, qword [0x00436100]
mov dword [rax], 1
mov rax, qword [0x004360d0]
mov dword [rax], 1
mov rax, qword [0x00435fa0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004360c0]
mov dword [0x00439008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00436080]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00435f30]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x418348
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov r12, rdx
mov rax, qword [rcx + 0x14340]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov rdi, qword [rax]
mov r13d, edi
and r13d, 3
mov dword [rsp + 0x28], r13d
xor edi, r13d
mov qword [rsp + 0x20], rdi
lea rbp, [rsp + 0x20]
lea rbx, [0x00424020]
mov r9d, 1
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call sym.insertsubseg
movsxd rax, dword [rsp + 0x28]
mov eax, dword [rbx + rax*4]
mov dword [rsp + 0x28], eax
cdqe
mov rdx, qword [rsp + 0x20]
mov rax, qword [rdx + rax*8]
mov edx, eax
and edx, 3
xor eax, edx
movsxd rdx, edx
mov edx, dword [rbx + rdx*4]
mov rcx, qword [rsi + 0x14340]
cmp rax, rcx
je 0x4183f7
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], edx
movsxd rdx, edx
mov rax, qword [rax + rdx*8]
mov edx, eax
and edx, 3
xor eax, edx
movsxd rdx, edx
mov edx, dword [rbx + rdx*4]
cmp rax, rcx
jne 0x4183d5
cmp rdi, qword [rsp + 0x20]
jne 0x418391
cmp r13d, dword [rsp + 0x28]
jne 0x418391
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x41bde2
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov edi, edx
mov rbp, r8
mov r9, rcx
mov r8d, 0xe
mov edx, 1
lea rcx, str._Generated_by
call sym.fwrite
test edi, edi
jle 0x41be3c
mov rbx, rbp
lea eax, [rdi - 1]
lea rdi, [rbp + rax*8 + 8]
mov rdx, rsi
mov ecx, 0x20
call sym.fputc
mov rdx, rsi
mov rcx, qword [rbx]
call sym.fputs
add rbx, 8
cmp rbx, rdi
jne 0x41be1b
mov rdx, rsi
mov ecx, 0xa
call sym.fputc
mov rcx, rsi
call sym.fclose
nop
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x41e7e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00439624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x41e968
mov rax, qword [0x00439628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41e82c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x41e8b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x41e810
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x41e99d
mov rax, qword [0x00439628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00439628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x41e980
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41e8ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x41e910
add dword [0x00439624], 1
cmp edi, 8
jae 0x41e8e3
test dil, 4
jne 0x41e954
test edi, edi
je 0x41e8d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41e96f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x41e8d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x41e8fc
jmp 0x41e8d8
add rsi, qword [0x00439628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41e8ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x41e8d8
xor esi, esi
jmp 0x41e837
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x41e8d8
mov rax, qword [0x00439628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x41f0f0
Capabilities:
Get thread local storage value

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