joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005700]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005710]
mov dword [rax], 1
mov rax, qword [0x140005720]
mov dword [rax], 1
mov rax, qword [0x140005680]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400056f0]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400057c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400057a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005630]
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 [dbg._matherr]
call dbg.__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 0x140001450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x170], rcx
mov qword [rbp + 0x178], rdx
mov qword [rbp + 0x180], r8
lea rax, [rbp - 0x40]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x15c], eax
cmp dword [rbp + 0x15c], 0
je 0x1400014c4
lea rax, str.WSAStartup_failed
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov edx, eax
mov rax, qword [rbp + 0x170]
mov dword [rax + 0x14], edx
mov word [rbp - 0x50], 2
mov rax, qword [rbp + 0x178]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp - 0x4c], eax
mov rax, qword [rbp + 0x180]
mov eax, dword [rax]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x4e], ax
mov rax, qword [rbp + 0x170]
mov eax, dword [rax + 0x14]
mov ecx, eax
lea rax, [rbp - 0x50]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
mov dword [rbp + 0x158], eax
cmp dword [rbp + 0x158], 0xffffffff
jne 0x14000158b
lea rax, str.Connection_to_relay_server_failed.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 0
jmp 0x1400015e3
lea rax, str.Connection_to_relay_server_success_
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov dword [rbp - 0x54], 1
mov rax, qword [rbp + 0x170]
mov eax, dword [rax + 0x14]
mov ecx, eax
lea rax, [rbp - 0x54]
mov r8, rax
mov edx, 0x8004667e
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rax
mov eax, 1
add rsp, 0x1e0
pop rbp
ret
Function at 0x1400015ec
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push rbp
push rbx
sub rsp, 0x1d8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x170], rcx
mov qword [rbp + 0x178], rdx
lea rax, [rbp - 0x50]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x14c], eax
cmp dword [rbp + 0x14c], 0
je 0x14000165a
lea rax, str.WSAStartup_failed
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov r8d, 0x11
mov edx, 2
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov edx, eax
mov rax, qword [rbp + 0x170]
mov dword [rax], edx
mov dword [rbp - 0x54], 1
mov rax, qword [rbp + 0x170]
mov eax, dword [rax]
mov ecx, eax
lea rax, [rbp - 0x54]
mov r8, rax
mov edx, 0x8004667e
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
call rax
mov rax, qword [rbp + 0x170]
mov word [rax + 4], 2
lea rax, str.0.0.0.0
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov rdx, qword [rbp + 0x170]
mov dword [rdx + 8], eax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov rdx, qword [rbp + 0x170]
mov word [rdx + 6], ax
mov rax, qword [rbp + 0x170]
add rax, 4
mov rdx, qword [rbp + 0x170]
mov edx, dword [rdx]
mov ecx, edx
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
cmp eax, 0xffffffff
sete al
test al, al
je 0x140001768
lea rax, str.Failed_to_bind_to_port__ERROR:
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
mov rcx, rbx
call sym.std::ostream::operator___int_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
jmp 0x140001793
lea rax, str.Server_successfully_created.
mov rdx, rax
mov rax, qword [sym.imp.libstdc_6.dll_std::cout]
mov rcx, rax
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [0x140005660]
mov rdx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
mov eax, 1
add rsp, 0x1d8
pop rbx
pop rbp
ret
Function at 0x1400020f0
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002160
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
mov rbx, rcx
test esi, esi
jle 0x140002290
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400021ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002235
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002190
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400022b2
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002297
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000222e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002240
add dword [0x140008094], 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 [0x140008098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000222e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400021b8
mov rax, qword [0x140008098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000289c
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 0x140002893
test eax, eax
jne 0x140002893
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002878
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 0x140002ab0
Capabilities:
Parse pe header

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

Function at 0x140002ae0
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 0x140002b2d
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 0x140002b24
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002b2f
add rax, 0x28
cmp rax, r9
jne 0x140002b10
xor eax, eax
ret

Function at 0x140002b30
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002bc0
mov rdx, qword [0x140005680]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002bae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002bae
cmp word [rax + 0x18], 0x20b
jne 0x140002bae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002bc0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002b99
add rbx, 0x28
cmp rbx, rdi
je 0x140002bc0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002b90
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002bd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005680]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002bf0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002bf8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002bf0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002c4d
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 0x140002c44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002bf0
add rax, 0x28
cmp rax, r9
jne 0x140002c30
xor eax, eax
ret

Function at 0x140002c50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005680]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002c6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002c78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002c6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002c90
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005680]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002cb0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002cb8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002cb0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002d00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002cf7
test rcx, rcx
je 0x140002cb0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002ce8
xor eax, eax
ret

Function at 0x140002d10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005680]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002d2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002d38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002d50
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005680]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d70
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002d70
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002dc4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002dd0
add rdx, 0x28
cmp rdx, r9
jne 0x140002db0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002de0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140005680]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002e02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002e10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002e02
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002e02
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002e65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002e78
add rdx, 0x28
cmp r10, rdx
jne 0x140002e50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002e87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002e97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002e6e
test ecx, ecx
jg 0x140002e80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140011244
Capabilities:
Terminate process

Disassembly:
jmp 0x140014b70
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 0x1400112c6
Capabilities:
Create thread
Terminate thread

Disassembly:
jmp 0x140013410
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rcx, [0x1400250f3]
call fcn.140011410
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400111ae]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
call fcn.140011154
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001100f]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
call fcn.140011087
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011190]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x48], rax
call fcn.140011447
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001136b]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x68], rax
call fcn.1400110b9
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140011069]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x88], rax
call fcn.140011195
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400112d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015ec0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015ee0
xor al, al
jmp 0x140015f61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015ef3
xor al, al
jmp 0x140015f61
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 0x140015f1d
xor al, al
jmp 0x140015f61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015f31
xor al, al
jmp 0x140015f61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015f43
xor al, al
jmp 0x140015f61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015f5f
xor al, al
jmp 0x140015f61
mov al, 1
add rsp, 0x38
ret
Function at 0x40dd40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00d520a8], 0
je 0x40ddde
cmp word [0x00d523b8], 0xd7b2
jne 0x40dd73
cmp dword [0x00d523c0], 0
jbe 0x40dd73
lea rcx, [0x00d523b0]
call qword [0x00d523d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00c9e3dc]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040de14]
call fcn.0040f600
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40de00
cmp byte [0x00c9c054], 0
jne 0x40de00
xor rcx, rcx
lea rdx, [0x00c9e3dc]
lea r8, [0x00c9e2ec]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40e130
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00c9c058], 0
je 0x40e161
mov rcx, rsi
mov rdx, rdi
call qword [0x00c9c058]
mov r13, rax
jmp 0x40e177
mov ecx, 0x10
call fcn.00406850
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x00d520a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040e0c0]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40e1bc
mov rcx, r13
call fcn.00406880
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x412420
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00d56e70]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00d56e98], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00d56e68], al
cmp byte [0x00d56e68], 0
je 0x4124bf
lea rcx, [0x004124c4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004124de]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00d56e50], rax
lea rcx, [0x004124c4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004124fc]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00d56e58], rax
lea rcx, [0x004124c4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041251a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00d56e60], rax
add rsp, 0x28
ret