joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400038b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, qword [sym.imp.WS2_32.dll_recv]
test r9b, r9b
mov edi, r8d
cmovne r14, qword [sym.imp.WS2_32.dll_send]
mov rbp, rdx
mov r15, rcx
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
mov rcx, r15
call r14
movsxd rsi, eax
test eax, eax
jns 0x140003906
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1400038e3
test esi, esi
jle 0x140003913
sub edi, esi
add rbp, rsi
test edi, edi
jg 0x1400038e3
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
test edi, edi
sete al
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140003934
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x60], rbx
lea rax, [r9 + 0xf]
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], rdi
mov r15d, r8d
mov r14, rdx
mov r12, rcx
cmp rax, r9
ja 0x14000396f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140001010
sub rsp, rax
mov r8, r9
lea rdi, [rsp + 0x40]
mov rcx, rdi
call sub.msvcrt.dll_memcpy
mov ebx, 0x3a
mov rcx, rdi
mov edx, ebx
lea rsi, str.1688
call qword [sym.imp.msvcrt.dll_strrchr]
mov edx, ebx
mov rcx, rdi
mov r13, rax
call qword [sym.imp.msvcrt.dll_strchr]
mov edx, 0x5d
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.msvcrt.dll_strrchr]
cmp byte [rdi], 0x5b
jne 0x1400039dd
test rax, rax
je 0x1400039dd
mov byte [rax], 0
inc rdi
cmp byte [rax + 1], 0x3a
jne 0x1400039ee
lea rsi, [rax + 2]
jmp 0x1400039ee
test rbx, rbx
je 0x1400039ee
cmp rbx, r13
jne 0x1400039ee
mov byte [rbx], 0
lea rsi, [rbx + 1]
xor edx, edx
lea rcx, [rbp]
lea r8d, [rdx + 0x30]
call sub.msvcrt.dll_memset
and dword [rbp], 0
lea r8, [rbp]
mov r9, r12
mov rdx, rsi
mov rcx, rdi
mov dword [rbp + 4], r15d
mov dword [rbp + 8], 1
mov dword [rbp + 0xc], 6
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140003a6d
and qword [rsp + 0x30], 0
mov r9d, 0x400
lea rbx, [0x14000ff00]
mov dword [rsp + 0x28], r9d
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Warning:__s:__s_n
mov r8, rbx
mov rdx, r14
call fcn.140003dec
xor al, al
jmp 0x140003a6f
mov al, 1
mov rbx, qword [rbp + 0x60]
mov rsi, qword [rbp + 0x68]
mov rdi, qword [rbp + 0x70]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140003a8c
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
or r15, 0xffffffffffffffff
mov r14b, r8b
mov rsi, rcx
mov rdi, r15
mov r9, r15
inc r9
cmp byte [rcx + r9], 0
jne 0x140003ab8
inc r9
cmp r9, 0x108
ja 0x140003c8b
mov r8d, dword [0x14000fd44]
mov rdx, rcx
lea rcx, [rbp + 0x58]
call fcn.140003934
test al, al
je 0x140003c8b
mov rbx, qword [rbp + 0x58]
test rbx, rbx
je 0x140003c7d
mov rdi, qword [rbx + 0x20]
mov edx, dword [rbx + 0x10]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0xa
lea r8, [rsp + 0x50]
mov rcx, rdi
mov r9d, 0x40
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140003baa
cmp word [rdi], 0x17
lea rax, str.__s_:_s
lea r8, str._s:_s
cmove r8, rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
lea rcx, [rbp - 0x70]
mov edx, 0x80
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll__snprintf]
cmp eax, 0x80
ja 0x140003baa
test r14b, r14b
je 0x140003b89
lea r8, [rbp - 0x70]
lea rcx, str.Connecting_to__s___s__...
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_printf]
jmp 0x140003b9a
lea rdx, [rbp - 0x70]
lea rcx, str.Connecting_to__s_...
call qword [sym.imp.msvcrt.dll_printf]
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, [rax + 0x30]
call qword [sym.imp.msvcrt.dll_fflush]
mov ecx, dword [rbx + 4]
mov edx, 1
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rbp + 0x48]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
mov dword [rbp + 0x48], 0x2710
mov rdi, rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rbp + 0x48]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140003c6c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
jne 0x140003c31
lea rax, str.Timed_out
jmp 0x140003c3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400020e8
lea rdx, [rbp - 0x70]
lea rcx, str._s:__s_n
mov r8, rax
call fcn.140003dec
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
mov rdi, r15
test rbx, rbx
jne 0x140003afa
jmp 0x140003c79
lea rcx, str.successful_n
call qword [sym.imp.msvcrt.dll_printf]
mov rbx, qword [rbp + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rdi
jmp 0x140003c8e
mov rax, r15
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000505c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140005064
cmp rax, 0x24
jne 0x14000507c
call fcn.140001f00
test al, al
jne 0x140005094
lea rcx, str.Fatal:_Command_line_contains_an_invalid_GUID._n
call fcn.140003e6c
mov ecx, 0x57
call qword [sym.imp.msvcrt.dll_exit]
int3
add rsp, 0x28
ret

Function at 0x14000509c
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbp, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x1400050d2
lea ebx, [rax + 0x50]
jmp 0x1400050de
movsx eax, word [rsp + 0x3a]
movsx ebx, word [rsp + 0x3e]
sub ebx, eax
mov rax, qword [0x14000fd10]
lea rcx, str.You_may_use_these_product_names_or_numbers:_n_n
xor dil, dil
mov esi, dword [rax + 0x14]
mov dword [rsp + 0xb0], esi
call rbp
mov r9, qword [0x14000fd10]
movsxd r10, dword [r9 + 0x14]
mov r12d, 1
test r10, r10
jle 0x140005142
mov r8, qword [r9 + 0x30]
add r8, 0x10
mov rcx, qword [r8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140005120
cmp al, dil
movzx edx, dil
movzx ecx, al
cmova edx, ecx
add r8, 0x20
mov dil, dl
sub r10, r12
jne 0x140005119
movzx eax, dil
mov dword [rsp + 0xb8], eax
lea ecx, [rax + 0xa]
mov eax, ebx
cdq
idiv ecx
test eax, eax
mov r15d, eax
mov eax, esi
cmove r15d, r12d
cdq
mov dword [rsp + 0x20], r15d
idiv r15d
mov ebx, eax
mov dword [rsp + 0xa8], eax
test edx, edx
je 0x140005180
add bl, r12b
mov dword [rsp + 0xa8], ebx
xor dil, dil
mov byte [rsp + 0xa0], dil
test bl, bl
je 0x140005291
xor r14d, r14d
test r15d, r15d
jle 0x14000526c
movzx eax, bl
mov ebx, dword [rsp + 0xb0]
movzx esi, dil
mov edi, dword [rsp + 0xb8]
mov dword [rsp + 0x24], eax
cmp esi, ebx
jge 0x14000525d
mov r8, qword [r9 + 0x30]
movsxd r13, esi
lea edx, [rsi + 1]
shl r13, 5
lea rcx, str._3u___s
mov r8, qword [r8 + r13 + 0x10]
call rbp
mov r9, qword [0x14000fd10]
lea eax, [rdi + 4]
movsxd r8, eax
mov rax, qword [r9 + 0x30]
xor r12b, r12b
mov rdx, qword [rax + r13 + 0x10]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1400051f9
cmp r8, rcx
je 0x140005247
mov r15, r8
lea rcx, [0x14000a33c]
call rbp
mov r9, qword [0x14000fd10]
inc r12b
mov rax, qword [r9 + 0x30]
mov rcx, qword [rax + r13 + 0x10]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000522a
mov rcx, r15
sub rcx, rax
movzx eax, r12b
cmp rax, rcx
jb 0x14000520a
mov r15d, dword [rsp + 0x20]
add esi, dword [rsp + 0x24]
mov r12d, 1
add r14d, r12d
cmp r14d, r15d
jl 0x1400051b8
mov ebx, dword [rsp + 0xa8]
mov dil, byte [rsp + 0xa0]
lea rcx, reloc.WS2_32.dll_ioctlsocket
call rbp
add dil, r12b
mov byte [rsp + 0xa0], dil
cmp dil, bl
jae 0x140005291
mov r9, qword [0x14000fd10]
jmp 0x140005193
lea rcx, reloc.WS2_32.dll_ioctlsocket
call rbp
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1400052a4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14000fed8]
mov edx, 0x2e
call qword [sym.imp.msvcrt.dll_strchr]
mov rdi, rax
test rax, rax
jne 0x1400052de
lea rcx, str.Fatal:_Protocol_version_must_be_in_the_format_._n
call fcn.140003e6c
lea ecx, [rdi + 0x57]
call qword [sym.imp.msvcrt.dll_exit]
int3
mov rcx, qword [0x14000fed8]
lea rdx, [rsp + 0x30]
mov r8d, 0xa
call qword [sym.imp.msvcrt.dll_strtol]
lea rdx, [rsp + 0x38]
lea rcx, [rdi + 1]
mov r8d, 0xa
mov ebx, eax
call qword [sym.imp.msvcrt.dll_strtol]
mov rcx, qword [rsp + 0x30]
cmp byte [rcx], 0
je 0x14000531c
cmp byte [rcx], 0x2e
jne 0x140005376
mov rcx, qword [rsp + 0x38]
cmp byte [rcx], 0
jne 0x140005376
mov rcx, qword [0x14000fed8]
cmp byte [rcx], 0x2e
je 0x140005376
cmp byte [rdi + 1], 0
je 0x140005376
mov ecx, 0xffff
cmp ebx, ecx
ja 0x14000535e
cmp eax, ecx
ja 0x14000535e
mov word [0x14000fea0], bx
mov rbx, qword [rsp + 0x40]
mov word [0x14000fd40], ax
add rsp, 0x20
pop rdi
ret
lea rcx, str.Fatal:_Major_and_minor_protocol_version_number_must_be_between_0_and_65535_n
call fcn.140003e6c
mov ecx, 0x57
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rcx, str.Fatal:_Protocol_version_must_be_in_the_format_._n
call fcn.140003e6c
mov ecx, 0x57
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x140005c8c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x30
mov rdx, qword [0x14000fe88]
mov r15, rcx
mov al, byte [rdx]
cmp al, byte [0x140008994]
jne 0x140005cc4
mov al, byte [rdx + 1]
cmp al, byte [0x140008995]
je 0x140005d2c
mov rax, qword [0x14000fe88]
cmp byte [rax], 0x2e
je 0x140005d2c
cmp qword [0x14000fd48], 0
jne 0x140005de4
mov ecx, 8
call fcn.140002124
mov ecx, 0x10c
mov qword [0x14000fd48], rax
call fcn.140002124
mov rdx, qword [0x14000fe88]
mov rcx, rax
mov rax, qword [0x14000fd48]
mov r8d, 0x104
mov qword [rax], rcx
add rcx, 8
mov dword [0x14000fd58], 1
call qword [sym.imp.msvcrt.dll_strncpy]
jmp 0x140005de4
cmp qword [0x14000fd48], 0
jne 0x140005d41
call fcn.140001a5c
mov dword [0x14000fd58], eax
cmp dword [0x14000fd58], 1
jge 0x140005d62
lea rcx, str.Fatal:_No_KMS_servers_found_n
call fcn.140003e6c
mov ecx, 0x2745
call qword [sym.imp.msvcrt.dll_exit]
int3
cmp byte [0x14000fd39], 0
jne 0x140005d70
call fcn.14000199c
cmp byte [0x14000fd3b], 0
je 0x140005de4
xor esi, esi
cmp dword [0x14000fd58], esi
jle 0x140005dd7
xor edi, edi
cmp byte [0x14000fd39], 0
je 0x140005d92
xor ecx, ecx
jmp 0x140005d9f
mov rax, qword [0x14000fd48]
mov rcx, qword [rdi + rax]
mov ecx, dword [rcx]
mov rax, qword [0x14000fd48]
mov dword [rsp + 0x20], ecx
lea rcx, str.Found___40s__priority:__hu__weight:__hu__randomized_weight:__i__n
mov rdx, qword [rdi + rax]
add rdx, 8
movzx r9d, word [rdx - 2]
movzx r8d, word [rdx - 4]
call qword [sym.imp.msvcrt.dll_printf]
inc esi
add rdi, 8
cmp esi, dword [0x14000fd58]
jl 0x140005d85
lea rcx, reloc.WS2_32.dll_ioctlsocket
call qword [sym.imp.msvcrt.dll_printf]
xor esi, esi
cmp dword [0x14000fd58], esi
jle 0x140005ea2
xor r14d, r14d
mov rax, qword [0x14000fe88]
mov cl, byte [rax]
mov rax, qword [0x14000fd48]
sub cl, 0x2d
cmp cl, 1
mov rcx, qword [r14 + rax]
setbe r8b
add rcx, 8
call fcn.140003a8c
mov qword [r15], rax
cmp rax, 0xffffffffffffffff
je 0x140005e90
mov dil, byte [0x14000fd3b]
test dil, dil
je 0x140005e45
lea rcx, str._nPerforming_RPC_bind_..._n
call qword [sym.imp.msvcrt.dll_printf]
mov dil, byte [0x14000fd3b]
mov rbp, qword [r15]
and dword [0x14000fee8], 0
mov r8b, dil
mov dl, 0xb
mov rcx, rbp
mov byte [0x14000fe80], 0
call fcn.140004bac
test eax, eax
jne 0x140005e84
test dword [0x14000fee8], 0x10000
jne 0x140005eba
mov r8b, dil
mov dl, 0xe
mov rcx, rbp
call fcn.140004bac
test eax, eax
je 0x140005eba
lea rcx, str.Warning:_Could_not_bind_RPC_n
call fcn.140003e6c
inc esi
add r14, 8
cmp esi, dword [0x14000fd58]
jl 0x140005df5
lea rcx, str.Fatal:_Could_not_connect_to_any_KMS_server_n
call fcn.140003e6c
mov ecx, 0x2745
call qword [sym.imp.msvcrt.dll_exit]
int3
cmp byte [0x14000fd3b], 0
je 0x140005ed0
lea rcx, str...._successful_n
call qword [sym.imp.msvcrt.dll_printf]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140007118
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rcx, dword [rsp + 0x60]
shl rcx, 3
mov rsi, rax
call fcn.140002124
mov ecx, dword [rsp + 0x60]
xor r14d, r14d
mov rbp, rax
test ecx, ecx
jle 0x1400071d9
mov rdi, rax
sub rdi, rsi
and qword [rsp + 0x38], 0
mov rax, qword [rdi + rsi]
and qword [rsp + 0x30], 0
mov r8, qword [rsi]
and dword [rsp + 0x28], 0
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.140002124
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov qword [rdi + rsi], rax
mov r8, qword [rsi]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [rsp + 0x60]
inc r14d
lea rsi, [rsi + 8]
cmp r14d, ecx
jl 0x140007163
mov rdx, rbp
call fcn.140006bb4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.140001148
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.140001148
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 2
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x14000231c]
mov qword [rsp + 0x38], rax
lea rax, [0x140002320]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x1400018f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000193e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000193e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000193e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000193e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000193e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001940
xor al, al
add rsp, 0x28
ret
Function at 0x27e2213f1
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 0xc], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 1
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x27e221458
lea rcx, str.Error_calculating_decoded_length._n
call sym.printf
mov eax, 0
jmp 0x27e2214d6
mov eax, dword [rbp - 0xc]
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rbp - 0xc]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 1
mov edx, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
jne 0x27e2214c6
lea rcx, str.Error_decoding_base64._n
call sym.printf
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x27e2214d6
mov eax, dword [rbp - 0xc]
mov edx, eax
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x27e2214dc
Capabilities:
Get common file path
Write file on windows

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], rcx
mov qword [rbp + 0x1d8], rdx
lea rax, [rbp + 0xb0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0xb0]
mov r9, rdx
mov r8d, 0
lea rdx, str.temp
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
call rax
lea rax, [rbp - 0x60]
lea rdx, [0x27e229040]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x1b8], rax
cmp qword [rbp + 0x1b8], 0
jne 0x27e221570
lea rcx, str.Failed_to_create_temp_file._n
call sym.printf
mov eax, 0
jmp 0x27e2215b0
mov rdx, qword [rbp + 0x1b8]
mov rax, qword [rbp + 0x1d8]
mov r9, rdx
mov r8, rax
mov edx, 1
mov rcx, qword [rbp + 0x1d0]
call sym.fwrite
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call sym.fclose
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strdup
add rsp, 0x240
pop rbp
ret
Function at 0x27e221830
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x27e2218a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x27e542054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x27e221a50
mov rax, qword [0x27e542058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x27e2218ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x27e221977
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x27e2218d0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x27e221aad
mov rax, qword [0x27e542058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x27e542058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x27e221a92
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x27e221970
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x27e221a00
add dword [0x27e542054], 1
cmp ebx, 8
jae 0x27e2219a8
test bl, 4
jne 0x27e221a60
test ebx, ebx
je 0x27e221999
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x27e221a80
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x27e221999
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x27e2219da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x27e542058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x27e221970
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x27e2218f7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x27e221999
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x27e221999
mov rax, qword [0x27e542058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]