joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400346f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003471d
xor eax, eax
jmp 0x140034889
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140034757
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140034757
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 0x140034889
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003487c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003479a
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 0x1400347c5
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 0x140034881
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 0x140034834
sub eax, 1
je 0x140034834
cmp eax, 2
jne 0x14003487c
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 0x140034881
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140034862
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 0x14003487c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140034881
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003e110
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140034b20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140034bf3
cmp byte [rcx + 0x71], 0
je 0x140034bf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140034bef
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 0x140034bb4
sub eax, 1
je 0x140034bb8
cmp eax, 2
jne 0x140034bef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003e110
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140034be6
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 0x140034bef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140034b9c
xor al, al
jmp 0x140034b9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003e110
add rsp, 0x60
pop rbx
ret
Function at 0x140036dc0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rcx + 0x10]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140036dec
mov rcx, rbx
call fcn.1400383a0
xor al, al
add rsp, 0x20
pop rbx
ret
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x1a8], rax
cmp rax, 0xffffffffffffffff
je 0x140036e3c
lea rdx, [rbx + 0x1b0]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140036e4a
mov rcx, qword [rbx + 0x1a8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x1a8], 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140038290
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor esi, esi
mov qword [rsp + 0x38], rdx
mov rbx, rdx
mov rdi, rcx
cmp byte [rcx + 8], sil
je 0x14003834f
mov rcx, qword [rcx + 0x1a8]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x34], esi
mov r8d, 0x1007
mov dword [rsp + 0x38], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14003834f
cmp dword [rsp + 0x34], esi
jne 0x14003834f
mov rcx, qword [rdi + 0x1a8]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, 0x400
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
mov rcx, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
test eax, eax
jg 0x140038345
lea r8d, [rsi + 0x14]
lea rdx, str.Error_receiving_data
jmp 0x14003836d
movsxd r8, eax
lea rdx, [rsp + 0x40]
jmp 0x14003836d
xorps xmm0, xmm0
lea rdx, str.Not_connected
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov r8d, recv
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.140001870
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14003e110
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003b920
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], send
mov byte [rsp + 0x68], al
lea rdx, str.Enter_command:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140034f50
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400355e0
lea rdx, str.Launching_command:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140034f50
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rax
call fcn.140035420
lea rdx, [0x140035120]
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]
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rsp + 0x78]
sub rax, rcx
cmp rax, 0x1f
jb 0x14003bae3
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x1f
lea r9, str.c:windows_system32cmd.exe__c
lea rcx, [rsp + 0x48]
call fcn.1400352d0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14003ba87
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ba81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003ba81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x14003baca
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bac5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003bac5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003e16c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14003e110
add rsp, 0x90
pop rbx
ret
call fcn.1400011b0
nop
int3
Function at 0x14003baf0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x240], rax
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x1400683c0]
lea rcx, [rsp + 0x44]
mov edi, edx
mov dword [rsp + 0x40], eax
xor edx, edx
movaps xmmword [rsp + 0x30], xmm0
mov r8d, 0x1f4
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14003bb87
lea r9, [rsp + 0x28]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x14003bb87
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
test edi, edi
jne 0x14003bbae
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Failed_to_get_process_name_and_ID.
call fcn.140034f50
lea rdx, [0x140035120]
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003e110
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x14003bd30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x30]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx ecx, word [rsp + 0x30]
add rdi, 0x20
test ecx, ecx
je 0x14003be9d
sub ecx, 5
je 0x14003be56
sub ecx, 1
je 0x14003be15
sub ecx, 3
je 0x14003bdcd
cmp qword [rdi + 0x18], 0x14
jb 0x14003bdbc
mov rbx, qword [rdi]
lea rdx, str.Unknown_architecture
mov rcx, rbx
mov qword [rdi + 0x10], socket
mov r8d, socket
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x14], 0
jmp 0x14003beea
lea r9, str.Unknown_architecture
mov edx, socket
jmp 0x14003bee2
mov rax, qword [rdi + 0x18]
cmp rax, 6
jb 0x14003be09
mov rbx, rdi
cmp rax, 0x10
jb 0x14003bde3
mov rbx, qword [rdi]
mov r8d, 6
mov qword [rdi + 0x10], 6
lea rdx, str.64_bit
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 6], 0
jmp 0x14003beea
lea r9, str.64_bit
jmp 0x14003bedd
cmp qword [rdi + 0x18], 0x13
jb 0x14003be45
mov rbx, qword [rdi]
lea rdx, str.Intel_Itanium_based
mov rcx, rbx
mov qword [rdi + 0x10], reloc.WS2_32.dll_send
mov r8d, reloc.WS2_32.dll_send
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x13], 0
jmp 0x14003beea
lea r9, str.Intel_Itanium_based
mov edx, reloc.WS2_32.dll_send
jmp 0x14003bee2
mov rax, qword [rdi + 0x18]
cmp rax, 3
jb 0x14003be8f
mov rbx, rdi
cmp rax, 0x10
jb 0x14003be6c
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140068454]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14003beea
lea r9, [0x140068454]
mov edx, 3
jmp 0x14003bee2
mov rax, qword [rdi + 0x18]
cmp rax, 6
jb 0x14003bed6
mov rbx, rdi
cmp rax, 0x10
jb 0x14003beb3
mov rbx, qword [rdi]
mov r8d, 6
mov qword [rdi + 0x10], 6
lea rdx, str.32_bit
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 6], 0
jmp 0x14003beea
lea r9, str.32_bit
mov edx, 6
mov rcx, rdi
call fcn.140001df0
mov rdx, rdi
mov rcx, rsi
call fcn.1400012d0
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003e110
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003bf20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x28], rdx
lea rcx, [rsp + 0x30]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [rsp + 0x30]
test edx, edx
je 0x14003c038
sub edx, 5
je 0x14003c08c
sub edx, 1
je 0x14003c009
sub edx, 3
je 0x14003bfbd
add rdi, 0x40
cmp qword [rdi + 0x18], 0x14
jb 0x14003bfac
mov rbx, qword [rdi]
lea rdx, str.Unknown_architecture
mov rcx, rbx
mov qword [rdi + 0x10], socket
mov r8d, socket
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x14], 0
jmp 0x14003c0e6
lea r9, str.Unknown_architecture
mov edx, socket
jmp 0x14003c0de
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x14003bffd
mov rbx, rdi
cmp rax, 0x10
jb 0x14003bfd7
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140068490]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14003c0e6
lea r9, [0x140068490]
jmp 0x14003c0d9
cmp qword [rdi + 0x58], 0x13
lea rcx, [rdi + 0x40]
jb 0x14003c079
mov rbx, qword [rcx]
lea rdx, str.Intel_Itanium_based
mov qword [rcx + 0x10], reloc.WS2_32.dll_send
mov r8d, reloc.WS2_32.dll_send
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x13], 0
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x14003c0d2
mov rbx, rdi
cmp rax, 0x10
jb 0x14003c056
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140068494]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14003c0e6
lea r9, str.Intel_Itanium_based
mov edx, reloc.WS2_32.dll_send
call fcn.140001df0
jmp 0x14003c038
mov rax, qword [rdi + 0x58]
add rdi, 0x40
cmp rax, 3
jb 0x14003c0c9
mov rbx, rdi
cmp rax, 0x10
jb 0x14003c0a6
mov rbx, qword [rdi]
mov r8d, 3
mov qword [rdi + 0x10], 3
lea rdx, [0x140068454]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 3], 0
jmp 0x14003c0e6
lea r9, [0x140068454]
jmp 0x14003c0d9
lea r9, [0x140068494]
mov edx, 3
mov rcx, rdi
call fcn.140001df0
mov rdx, rdi
mov rcx, rsi
call fcn.1400012d0
mov rax, rsi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003e110
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14003ebc0
Capabilities:
Parse pe header

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

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

Disassembly:
jmp 0x140014390
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400143b0
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400143c3
xor al, al
jmp 0x140014431
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 0x1400143ed
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014401
xor al, al
jmp 0x140014431
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014413
xor al, al
jmp 0x140014431
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001442f
xor al, al
jmp 0x140014431
mov al, 1
add rsp, 0x38
ret
Function at 0x140001408
Capabilities:
Hash data with crc32

Disassembly:
lea r8, [0x140013530]
sub rax, rax
test rcx, rcx
je 0x140001523
dec rax
test rdx, rdx
je 0x140001521
test rcx, 3
je 0x14000144d
xor al, byte [rcx]
add rcx, 1
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x140001427
mov r10, rdx
and r10, 7
shr rdx, 3
je 0x1400014fc
xor eax, dword [rcx]
add rcx, 4
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
xor eax, dword [rcx]
add rcx, 4
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x14000145e
mov rdx, r10
test rdx, rdx
je 0x140001521
xor al, byte [rcx]
add rcx, 1
mov r9, 0xff
and r9, rax
shr eax, 8
xor eax, dword [r8 + r9*4]
add rdx, 0xffffffffffffffff
jne 0x140001504
not eax
ret
Function at 0x140003ecc
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.MyDownloadToBufferWithDecompress_begin
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xorps xmm0, xmm0
mov qword [rbp - 0x28], 0xf
xor r15d, r15d
lea rdx, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
mov rcx, rbx
mov byte [rbp - 0x40], r15b
mov qword [rbp - 0x30], r15
call fcn.140003c10
test al, al
jne 0x140003f3b
mov dil, r15b
jmp 0x14000404f
lea rcx, str.MyDownloadToBufferWithDecompress_end
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r15w
jne 0x140003f4c
xorps xmm0, xmm0
lea rcx, [rbp - 0x20]
xorps xmm1, xmm1
mov rdx, rdi
movups xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x10], xmm1
call fcn.140008ec8
lea rcx, str.write_file_buffer_begin
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [rbp - 0x28], 0xf
lea r14, [rbp - 0x40]
mov rsi, qword [rbp - 0x30]
lea rdx, [rbp - 0x20]
cmova r14, qword [rbp - 0x40]
lea r8, [0x140013fe0]
cmp qword [rbp - 8], 7
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x30], r15
cmova rdx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll__wfopen_s]
test eax, eax
jne 0x140003ffe
mov rbx, qword [rbp + 0x30]
test rbx, rbx
je 0x140003ffe
test rsi, rsi
je 0x140003ff5
lea edi, [rax + 1]
mov r9, rbx
mov edx, edi
mov r8, rsi
mov rcx, r14
call fcn.14000d230
cmp rax, rsi
jne 0x140003ff5
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
lea rcx, str.write_file_buffer_end
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004001
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
mov dil, r15b
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x14000403d
mov rcx, qword [rbp - 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004038
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400040a3
call fcn.14000bfec
movdqa xmm0, xmmword [0x140014210]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r15w
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140004086
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004081
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400040a3
call fcn.14000bfec
lea r11, [rsp + 0x60]
mov al, dil
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14000ce90
int3
Function at 0x1400040ac
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13b0
call fcn.14000e370
sub rsp, rax
xorps xmm0, xmm0
movsxd rdx, edx
movups xmmword [rcx], xmm0
xor ebp, ebp
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rbp
mov rdi, rcx
mov word [rcx], bp
call fcn.140007930
cmp qword [rdi + 0x18], 7
mov rbx, rdi
mov rsi, qword [rdi + 0x10]
jbe 0x1400040fc
mov rbx, qword [rdi]
call fcn.14000bc70
or dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r8
jb 0x140004118
mov dword [rsp + 0x20], r8d
lea rsi, [rbx + rsi*2]
mov dword [rsp + 0x13c0], ebp
mov dword [rsp + 0x13c4], 0x3d
jmp 0x140004176
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x13c0]
call fcn.1400088f8
cdqe
lea rcx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
movzx eax, word [rcx + rax*2]
mov word [rbx], ax
add rbx, 2
cmp rbx, rsi
jne 0x140004150
lea r11, [rsp + 0x13b0]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140004198
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13b8
call fcn.14000e370
sub rsp, rax
call fcn.14000bc70
or dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r8d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r8
jb 0x1400041c1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x13d0]
mov dword [rsp + 0x13d0], 0x10
mov dword [rsp + 0x13d4], 0x20
call fcn.1400088f8
add rsp, 0x13b8
ret

Function at 0x140004270
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov rbx, rdx
xor r8d, r8d
mov rdi, rcx
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x140004298
xor al, al
jmp 0x1400042db
inc eax
mov rcx, rbx
movsxd rdx, eax
call fcn.140007dbc
cmp qword [rbx + 0x18], 0xf
mov r9, rbx
jbe 0x1400042b2
mov r9, qword [rbx]
mov r8, qword [rbx + 0x10]
mov edx, 0xd
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageA]
mov rdi, rax
test eax, eax
jle 0x1400042d6
movsxd rdx, edi
mov rcx, rbx
call fcn.140007dbc
test edi, edi
setg al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret