joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010551c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x14010555e
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1401059c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140105a9a
test rbx, rbx
je 0x140105aa0
test r9, r9
je 0x140105aa6
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140105a83
cmp dword [rsp + 0x48], 3
jne 0x140105a83
test eax, eax
jne 0x140105a83
cmp dword [rdi], eax
je 0x140105a83
mov ecx, dword [rdi]
call fcn.140008464
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140105a77
cmp dword [rsp + 0x48], 3
jne 0x140105a77
test eax, eax
jne 0x140105a77
mov eax, 1
jmp 0x140105a85
mov rcx, qword [rbx]
call fcn.14000846c
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14001170c
int3
call fcn.14001170c
int3
call fcn.14001170c
int3

Function at 0x140105dcc
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140105ddd
xor eax, eax
jmp 0x140105e0b
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140105e14
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140105e25
xor eax, eax
jmp 0x140105e49
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1401666b8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1404706d0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1404681f4]
test eax, eax
je 0x140166703
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1404681f4]
test eax, eax
jne 0x14016670c
call fcn.14000d1e8
test eax, eax
je 0x140166728
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140286120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140166730
xor eax, eax
jmp 0x140166795
test rbx, rbx
jne 0x140166750
lea rcx, str.ChooseColorA
call fcn.14003afd4
mov rbx, rax
test rax, rax
je 0x140166763
mov qword [0x1404706d0], rax
mov rcx, rbx
call fcn.1401bb6c4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140166778
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016677a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140166793
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016b4f0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140470820]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1404681f4]
test eax, eax
je 0x14016b53b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1404681f4]
test eax, eax
jne 0x14016b544
call fcn.14000d1e8
test eax, eax
je 0x14016b560
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140286120]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016b568
xor eax, eax
jmp 0x14016b5cd
test rbx, rbx
jne 0x14016b588
lea rcx, str.PrintDlgA
call fcn.14003afd4
mov rbx, rax
test rax, rax
je 0x14016b59b
mov qword [0x140470820], rax
mov rcx, rbx
call fcn.1401bb6c4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016b5b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016b5b2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016b5cb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401cdcd4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401cdaa8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401cdaa8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401cdaa8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401cdaa8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401cdaa8
cmp dword [rcx + 0x84], 0xe
jbe 0x1401cdaa8
cmp dword [rcx + 0xf8], esi
je 0x1401cdaa8
mov ecx, r14d
call fcn.1401cdbf0
mov ecx, 2
call fcn.1401d3f58
nop
cmp byte [0x140472698], 0
jne 0x1401cdb72
mov r15d, 1
mov eax, r15d
xchg dword [0x140472688], eax
test ebx, ebx
jne 0x1401cdb1b
mov rdi, qword [0x140287768]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140472690]
cmp rcx, rax
je 0x1401cdb12
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400022c0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1404727c8]
jmp 0x1401cdb27
cmp ebx, r15d
jne 0x1401cdb2d
lea rcx, [0x1404727e0]
call fcn.1401ce788
nop
test ebx, ebx
jne 0x1401cdb44
lea rdx, [0x1401e7a20]
lea rcx, [0x1401e7a00]
call fcn.1401ceac4
lea rdx, [0x1401e7a30]
lea rcx, [0x1401e7a28]
call fcn.1401ceac4
movzx eax, byte [0x140472698]
test esi, esi
cmove eax, r15d
mov byte [0x140472698], al
jmp 0x1401cdb72
mov ecx, 2
call fcn.1401d3fac
test esi, esi
jne 0x1401cdb89
mov ecx, r14d
call fcn.1401cdba4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401cda38
Function at 0x14001128a
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1400155a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400155c0
xor al, al
jmp 0x140015641
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400155d3
xor al, al
jmp 0x140015641
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 0x1400155fd
xor al, al
jmp 0x140015641
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015611
xor al, al
jmp 0x140015641
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015623
xor al, al
jmp 0x140015641
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001563f
xor al, al
jmp 0x140015641
mov al, 1
add rsp, 0x38
ret
Function at 0x1400015a6
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov dword [rbp - 0x20], eax
mov eax, dword [rbp + 0x18]
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x30], 0xb
mov dword [rbp - 0x2c], 0xb
lea rax, str.ArgosRc4Key
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x20]
mov rcx, rax
call sub.ADVAPI32.dll_SystemFunction033
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140001616
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, str.____SystemFunction033_FAILED_With_Error:_0x_XX__n
mov rcx, rax
call fcn.140001530
mov eax, 0
jmp 0x14000161b
mov eax, 1
add rsp, 0x50
pop rbp
ret

Function at 0x140001621
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, 0x200
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x40]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WSOCK32.dll_socket]
call rax
mov qword [rbp + 0x178], rax
cmp qword [rbp + 0x178], 0xffffffffffffffff
jne 0x1400016a9
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Error_while_creating_socket.___d__n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0x178]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, 0xffffffffffffffff
jmp 0x1400017b0
movabs rax, 0x2e3836312e323931
mov qword [rbp - 0x4f], rax
movabs rax, 0x312e36352e
mov qword [rbp - 0x48], rax
call sub.msvcrt.dll_rand
mov dword [rbp + 0x174], 0
mov word [rbp + 0x160], 2
mov ecx, 0x3419
mov rax, qword [sym.imp.WSOCK32.dll_htons]
call rax
mov word [rbp + 0x162], ax
lea rcx, [rbp - 0x4f]
mov eax, dword [rbp + 0x174]
movsxd rdx, eax
mov rax, rdx
shl rax, 4
sub rax, rdx
add rax, rcx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_inet_addr]
call rax
mov dword [rbp + 0x164], eax
lea rdx, [rbp + 0x160]
mov rax, qword [rbp + 0x178]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_connect]
call rax
mov dword [rbp + 0x170], eax
cmp dword [rbp + 0x170], 0xffffffff
jne 0x140001783
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Error_while_creating_socket.___d__n
mov rcx, rax
call fcn.140001530
mov rax, qword [rbp + 0x178]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, 0xffffffffffffffff
jmp 0x1400017b0
mov dword [rbp - 0x54], 1
lea rdx, [rbp - 0x54]
mov rax, qword [rbp + 0x178]
mov r8, rdx
mov edx, 0x8004667e
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_ioctlsocket]
call rax
mov rax, qword [rbp + 0x178]
add rsp, 0x200
pop rbp
ret
Function at 0x14000186e
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
call fcn.140001621
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x1400018c1
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
jmp 0x140001958
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_strcpy
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400015a6
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cmp eax, dword [rbp - 0xc]
je 0x14000192f
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
jmp 0x140001958
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [rbp - 0x18], 0
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x14000195e
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
call fcn.140001621
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
cdqe
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x1400019b5
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
jmp 0x140001ab9
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_strcpy
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.1400015a6
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cmp eax, dword [rbp - 0xc]
je 0x140001a26
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
jmp 0x140001ab9
mov ecx, 0xa
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, 0x200
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_recv]
call rax
mov dword [rbp - 0x20], eax
cmp dword [rbp - 0x20], 0
jns 0x140001a81
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
jmp 0x140001ab9
mov edx, dword [rbp - 0x20]
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400015a6
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [rbp - 0x18], 0
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x140001abf
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov rax, qword [rbp + 0xd0]
lea rdx, [0x14000a06b]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp + 0xb0], rax
cmp qword [rbp + 0xb0], 0
jne 0x140001b0b
mov eax, 0
jmp 0x140001d24
mov qword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 0
mov ecx, 0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov byte [rax], 0
jmp 0x140001cd4
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rdx, qword [rbp + 0xa8]
add rax, rdx
add rax, 1
mov qword [rbp + 0xa0], rax
mov rdx, qword [rbp + 0xa0]
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sub.msvcrt.dll_realloc
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x140001c8c
mov eax, 0
jmp 0x140001d24
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rdx, qword [rbp + 0xb8]
lea rcx, [rax + rdx]
mov rdx, qword [rbp + 0xa8]
lea rax, [rbp - 0x60]
mov r8, rdx
mov rdx, rax
call sub.msvcrt.dll_strncpy
mov rax, qword [rbp + 0xa0]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0xb8]
add rax, rdx
mov byte [rax], 0
mov rdx, qword [rbp + 0xb0]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x100
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x140001c37
mov rax, qword [rbp + 0xb0]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__pclose]
call rax
mov rax, qword [rbp + 0xb8]
add rsp, 0x140
pop rbp
ret

Function at 0x140002590
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.140008310
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.140008310
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 0x140002600
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x140002730
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000264b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400026d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002630
mov rcx, rbx
call fcn.140003050
mov rdi, rax
test rax, rax
je 0x140002752
mov rax, qword [0x14000d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003190
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002737
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400026ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400026e0
add dword [0x14000d0b4], 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 [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400026ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002590
nop dword [rax]
xor esi, esi
jmp 0x140002658
mov rax, qword [0x14000d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002590
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002590
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002cc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x140002d1c
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 eax, eax
jne 0x140002d13
test rsi, rsi
je 0x140002d13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002cf8
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 0x140003050
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400030d0
Capabilities:
Parse pe header

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

Function at 0x140003190
Capabilities:
Parse pe header

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

Function at 0x140001000
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.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
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
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
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