joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3a4db3a40
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.3a4dbdd10
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.3a4dbdd10
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 0x3a4db3ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3a4e8e104]
mov rbx, rcx
test esi, esi
jle 0x3a4db3be0
mov rax, qword [0x3a4e8e108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3a4db3afb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3a4db3b85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3a4db3ae0
mov rcx, rbx
call fcn.3a4db4310
mov rdi, rax
test rax, rax
je 0x3a4db3c02
mov rax, qword [0x3a4e8e108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3a4db4450
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3a4e8e108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3a4db3be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3a4db3b7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3a4db3b90
add dword [0x3a4e8e104], 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 [0x3a4e8e108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3a4db3b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3a4db3a40
nop dword [rax]
xor esi, esi
jmp 0x3a4db3b08
mov rax, qword [0x3a4e8e108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3a4db3a40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3a4db3a40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3a4db3f80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3a4e8e140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3a4e8e120]
test rbx, rbx
je 0x3a4db3fdc
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 0x3a4db3fd3
test rsi, rsi
je 0x3a4db3fd3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3a4db3fb8
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 0x3a4db4310
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x3a4db4390
Capabilities:
Parse pe header

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

Function at 0x3a4db4450
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3a4e684f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3a4db446f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3a4db4478
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x3a4e21660
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x3a4e216a8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x3a4e2167a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x3a4e5c160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x3a4e61200]
jmp 0x3a4db5170

Function at 0x3a4e5c170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x3a4e61200]
jmp 0x3a4db5170
Function at 0x1410c7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1410c71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1410c7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410c706f
add dl, dl
jne 0x1410c7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410c70f6
xor eax, eax
add dl, dl
jne 0x1410c70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1410c71ad
add dl, dl
jne 0x1410c70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1410c70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1410c707e
mov eax, 1
add dl, dl
jne 0x1410c7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1410c7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410c70fb
sub eax, ebx
mov ebx, 1
jne 0x1410c714c
mov ecx, 1
add dl, dl
jne 0x1410c712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410c713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410c7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410c707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1410c7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1410c7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1410c715d
cmp eax, 0x7d00
jae 0x1410c719b
cmp eax, 0x500
jb 0x1410c7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410c707e
cmp eax, 0x7f
ja 0x1410c719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1410c707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1410c71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1410c707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140026020
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140026098
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140026098
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140026098
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14002608c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400260aa
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14002607a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14002609a

Function at 0x140027528
Capabilities:
Parse pe header

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

Function at 0x140030548
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400302ac

Function at 0x141f7cf69
Capabilities:
Encode data using xor

Disassembly:
test rax, rax
lea rsp, [rsp + 8]
je 0x141f7cff3
push 0xfffffffff48486a7
mov qword [rsp], r9
mov r9d, 0x2929cd19
push r11
shl r9w, 0x21
lea r9, [0x141f98e08]
mov r11d, 0x619ec22e
movzx r11d, byte [r11 + rdi - 0x619ec22e]
push 0xf3211bc
xor r11d, edx
shr byte [rsp + 2], 0xa7
and r11d, 0xff
sub dword [rsp + 2], 0x679219a1
and byte [rsp + 7], 0x8a
mov r11d, dword [r9 + r11*4]
rol qword [rsp], 0x1f
shr edx, 8
xor edx, r11d
inc rdi
xor edx, 0xeebea6ac
dec rax
push 0x293eee32
lea rsp, [rsp + 0x10]
jne 0x141f7cf94
pop r11
pop r9
not edx
call fcn.141f7559d
mov r8w, word [r8]
jmp fcn.141f7edae
Function at 0x140029b04
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140079e30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140079e50
xor al, al
jmp 0x140079ed1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140079e63
xor al, al
jmp 0x140079ed1
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 0x140079e8d
xor al, al
jmp 0x140079ed1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140079ea1
xor al, al
jmp 0x140079ed1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140079eb3
xor al, al
jmp 0x140079ed1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140079ecf
xor al, al
jmp 0x140079ed1
mov al, 1
add rsp, 0x38
ret
Function at 0x140029dde
Capabilities:
Hide graphical window

Disassembly:
jmp 0x1400648b0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2d8]
mov rax, qword [0x1400ba040]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x1400c3105]
call fcn.14002a2fc
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
mov dword [rbp + 0x10], 0x50
lea rdx, str.clsname
lea rcx, [rbp + 0x78]
call fcn.1400298ca
lea rcx, [rbp + 0x78]
call fcn.1400291f9
mov qword [rbp + 0x50], rax
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov word [rbp + 0xb4], ax
movzx eax, word [rbp + 0xb4]
test eax, eax
jne 0x1400649a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xd4], eax
mov ecx, dword [rbp + 0xd4]
call fcn.1400579b0
mov dword [rbp + 0x1f4], 0xffffffff
lea rcx, [rbp + 0x78]
call fcn.1400293b1
mov eax, dword [rbp + 0x1f4]
jmp 0x140064a7b
lea rcx, [rbp + 0x78]
call fcn.1400291f9
mov qword [rsp + 0x58], 0
mov rcx, qword [rbp + 0x270]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x1f4
mov dword [rsp + 0x30], 0x1f4
mov dword [rsp + 0x28], 0xc8
mov dword [rsp + 0x20], 0x64
mov r9d, 0xcf0000
lea r8, str.Game
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0
jne 0x140064a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x114], eax
mov ecx, dword [rbp + 0x114]
call fcn.140057ab0
mov dword [rbp + 0x214], 0xffffffff
lea rcx, [rbp + 0x78]
call fcn.1400293b1
mov eax, dword [rbp + 0x214]
jmp 0x140064a7b
mov edx, 5
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rbp + 0x234], 0
lea rcx, [rbp + 0x78]
call fcn.1400293b1
mov eax, dword [rbp + 0x234]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x1400821d0]
call fcn.14002a004
mov rax, rdi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.140029974
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret
Function at 0x140699058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406991df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140699089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069906f
add dl, dl
jne 0x140699096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406990f6
xor eax, eax
add dl, dl
jne 0x1406990a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406991ad
add dl, dl
jne 0x1406990b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406990c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406990d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406990dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406990ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069907e
mov eax, 1
add dl, dl
jne 0x140699106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140699113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406990fb
sub eax, ebx
mov ebx, 1
jne 0x14069914c
mov ecx, 1
add dl, dl
jne 0x14069912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140699123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140699168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140699175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069915d
cmp eax, 0x7d00
jae 0x14069919b
cmp eax, 0x500
jb 0x140699196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069907e
cmp eax, 0x7f
ja 0x14069919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406991d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14069907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x40a650
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x258
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
add rsp, 0x258
ret
mov rax, qword [rcx + 0x128]
cmp byte [rax], 0
je 0x40db88
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp 0x40a650

Function at 0x40a6a0
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov r12, rcx
mov rcx, r8
mov rdi, r8
mov rbp, rdx
call sub.msvcrt.dll_strlen
lea ebx, [rax + 1]
cdqe
mov byte [rdi + rax], 0xa
test ebx, ebx
jle 0x40a742
lea r14, [rsp + 0x40]
xor esi, esi
lea r13, [rsp + 0x38]
lea r15, [rsp + 0x34]
nop word [rax + rax]
mov rcx, qword [rbp]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x38], 0
mov r8, r14
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x48], rcx
add ecx, 1
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40a755
mov rcx, qword [r12]
lea rdx, [rdi + rsi]
mov r9, r15
movsxd r8, ebx
call qword [sym.imp.libcurl_4.dll_curl_easy_send]
test eax, eax
jne 0x40a750
movsxd rdx, dword [rsp + 0x34]
sub ebx, edx
add rsi, rdx
test ebx, ebx
jg 0x40a6e8
mov eax, 1
jmp 0x40a757
cmp eax, 0x51
je 0x40a6e8
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x40bf70
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x148
mov qword [rsp + 0x40], 0
mov rbx, rcx
mov r13, rdx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.libcurl_4.dll_curl_easy_init]
mov r12, rax
test rax, rax
je 0x40c2b0
lea rsi, [rsp + 0x40]
mov r8, rbx
mov rcx, rax
mov rbx, qword [sym.imp.libcurl_4.dll_curl_easy_setopt]
mov edx, 0x2712
call rbx
mov r8d, 1
mov edx, 0x4a
mov rcx, r12
call rbx
mov r8d, 0xf
mov edx, 0x4e
mov rcx, r12
call rbx
mov r8, rsi
mov edx, 0x271a
mov rcx, r12
call rbx
mov r8d, 1
mov edx, 0x63
mov rcx, r12
call rbx
mov r8d, 1
mov edx, 0x79
mov rcx, r12
call rbx
lea r8, [0x0040a580]
mov edx, 0x4e2b
mov rcx, r12
call rbx
lea r8, [rsp + 0x20]
mov edx, 0x2711
mov rcx, r12
call rbx
mov rax, qword [0x0064b3a0]
mov r8, qword [rax]
test r8, r8
je 0x40c240
mov edx, 0x2714
mov rcx, r12
call rbx
mov rax, qword [0x0064b3b0]
mov edx, 0x65
mov rcx, r12
mov r8d, dword [rax]
call rbx
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_perform]
test eax, eax
jne 0x40c290
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x40c1fb
cmp qword [rsp + 0x28], 0
jne 0x40c230
lea rdx, str.Empty_data_received_for_config
mov ecx, 1
xor r13d, r13d
call fcn.0040a770
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_cleanup]
mov rax, r13
add rsp, 0x148
pop rbx
pop rsi
pop r12
pop r13
ret
mov r8, r13
xor edx, edx
call fcn.005b34f0
mov r13, rax
jmp 0x40c20f
lea rcx, str.http_proxy
call sub.msvcrt.dll_getenv
test rax, rax
je 0x40c1d8
lea rcx, str.all_proxy
call sub.msvcrt.dll_getenv
lea rcx, str.all_proxy
test rax, rax
je 0x40c2d0
call sub.msvcrt.dll_getenv
mov rcx, r12
mov edx, 0x2714
mov r8, rax
call rbx
mov rcx, r12
call qword [sym.imp.libcurl_4.dll_curl_easy_perform]
test eax, eax
je 0x40c1e9
nop dword [rax]
mov r8, rsi
mov ecx, 1
xor r13d, r13d
lea rdx, str.Remote_config_read_failed:__s
call fcn.0040a770
jmp 0x40c20f
lea rdx, str.Remote_config_init_failed_
mov ecx, 1
xor r13d, r13d
call fcn.0040a770
jmp 0x40c218
lea rcx, str.ALL_PROXY
call sub.msvcrt.dll_getenv
test rax, rax
je 0x40c2f0
lea rcx, str.ALL_PROXY
jmp 0x40c269
lea r8, [0x005f1be3]
mov edx, 0x2714
mov rcx, r12
call rbx
jmp 0x40c1d8
Function at 0x40db70
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x258
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
add rsp, 0x258
ret
mov rax, qword [rcx + 0x128]
cmp byte [rax], 0
je 0x40db88
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp 0x40a650
Function at 0x415350
Capabilities:
Hash data using sha512

Disassembly:
push rdi
push rbx
sub rsp, 0x68
mov rbx, rcx
test rcx, rcx
je 0x41542a
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x415400
xor eax, eax
movdqu xmm1, xmmword [0x005f4480]
mov byte [rsp + 0x20], dl
lea r8, [rcx + 0x40]
mov word [rsp + 0x3e], ax
xor eax, eax
movdqu xmm2, xmmword [0x005f4490]
mov ecx, 0x16
mov rdi, r8
mov qword [rsp + 0x29], 0
movdqu xmm0, xmmword [0x005f4460]
rep stosq qword [rdi], rax
mov byte [rsp + 0x31], 0
mov qword [rsp + 0x21], 0x10100
pxor xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x32], 0
mov dword [rsp + 0x3a], 0
movups xmmword [rbx], xmm0
movdqu xmm0, xmmword [0x005f4470]
pxor xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x30], xmm2
mov dword [rbx + 0xe4], edx
add rsp, 0x68
pop rbx
pop rdi
ret
mov edx, 0xf0
call fcn.00417ed0
cmp byte [rbx + 0xe8], 0
je 0x41541b
mov qword [rbx + 0x58], 0xffffffffffffffff
mov qword [rbx + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x4153f5
mov eax, 0xffffffff
jmp 0x4153f5

Function at 0x415440
Capabilities:
Hash data using sha512

Disassembly:
push r13
push r12
push rdi
sub rsp, 0xe0
mov r10, r8
mov r12, rcx
mov r8, r9
test rcx, rcx
je 0x4155b1
lea rax, [rdx - 1]
cmp rax, 0x3f
ja 0x415580
lea rax, [r9 - 1]
cmp rax, 0x3f
ja 0x415580
test r10, r10
je 0x415580
mov byte [rsp + 0x21], r9b
lea r9, [rcx + 0x40]
xor eax, eax
mov ecx, 0x16
mov rdi, r9
mov word [rsp + 0x3e], ax
xor eax, eax
movdqu xmm1, xmmword [0x005f4480]
rep stosq qword [rdi], rax
lea r13, [rsp + 0x60]
mov ecx, 0x10
movdqu xmm2, xmmword [0x005f4490]
mov rdi, r13
mov byte [rsp + 0x20], dl
movdqu xmm0, xmmword [0x005f4460]
rep stosq qword [rdi], rax
movups xmmword [r12 + 0x20], xmm1
mov rcx, r13
mov qword [rsp + 0x2a], 0
movups xmmword [r12 + 0x30], xmm2
mov qword [rsp + 0x22], 0x101
pxor xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x32], 0
mov dword [rsp + 0x3a], 0
movups xmmword [r12], xmm0
movdqu xmm0, xmmword [0x005f4470]
pxor xmm0, xmmword [rsp + 0x30]
mov dword [r12 + 0xe4], edx
mov rdx, r10
movups xmmword [r12 + 0x10], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call sub.msvcrt.dll_memcpy
mov r8d, pe_nt_image_headers64
mov rdx, r13
mov rcx, r12
call fcn.004150b0
mov edx, pe_nt_image_headers64
mov rcx, r13
call fcn.00417ed0
xor eax, eax
add rsp, 0xe0
pop rdi
pop r12
pop r13
ret
mov edx, 0xf0
mov rcx, r12
call fcn.00417ed0
cmp byte [r12 + 0xe8], 0
je 0x4155a1
mov qword [r12 + 0x58], 0xffffffffffffffff
mov qword [r12 + 0x50], 0xffffffffffffffff
mov eax, 0xffffffff
jmp 0x415571
mov eax, 0xffffffff
jmp 0x415571
Function at 0x41c680
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov r9, r8
test rcx, rcx
je 0x41c6d0
test rdx, rdx
je 0x41c6d0
mov r8, rdx
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
sete al
movzx eax, al
neg eax
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffffff
jmp 0x41c6c1