joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e63e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
jmp 0x40e665
cmp qword [rsp + 0x68], 0
je 0x40e665
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x60], eax
jae 0x40e65a
mov dword [rsp + 0x34], 0x10dd
jmp 0x40e665
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x40e680
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e6d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
jmp 0x40e6e9
cmp qword [rsp + 0x68], 0
je 0x40e6e9
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x40e7b0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x40e7ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
jmp 0x40e7f8
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x40e810
Capabilities:
Clear file content

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x2c]
mov rcx, qword [rsp + 0x40]
call fcn.0040e780
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x40e8a9
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.0040e700
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x40e8a9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x40e891
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x40]
call fcn.0040e700
jmp 0x40e8a9
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x40]
call fcn.0040e700
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x40e8c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e8ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x410a70
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x65b
cmp qword [rsp + 0x40], 0
jne 0x410a8f
mov eax, dword [rsp + 0x20]
jmp 0x410a9c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x410ab0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0x65b
cmp qword [rsp + 0x40], 0
jne 0x410acf
mov eax, dword [rsp + 0x20]
jmp 0x410adc
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add rsp, 0x38
ret
Function at 0x4111f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x411217
cmp qword [rsp + 0x50], 0
jne 0x41121e
xor eax, eax
jmp 0x4112b6
cmp dword [rsp + 0x48], 0
jle 0x41122c
cmp dword [rsp + 0x58], 0
jg 0x411233
xor eax, eax
jmp 0x4112b6
movsxd rax, dword [rsp + 0x48]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], 0
jmp 0x41125b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jge 0x4112b1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
movzx ecx, word [rsp + 0x60]
sar ecx, 8
xor eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
movzx ecx, word [rsp + 0x60]
add eax, ecx
imul eax, eax, 0xce6d
add eax, 0x58bf
mov word [rsp + 0x60], ax
jmp 0x411251
mov eax, 1
add rsp, 0x38
ret
Function at 0x4128b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov dword [rsp], 0
jmp 0x4128d8
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp], eax
jge 0x41297c
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
and eax, 0xf
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
shr eax, 4
add eax, 5
and eax, 0xf
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
shr eax, 8
add eax, 0xb
and eax, 0xf
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx edx, byte [rsp + 4]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x4128d0
add rsp, 0x18
ret

Function at 0x412990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov dword [rsp], 0
jmp 0x4129b8
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp], eax
jge 0x412a5c
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
shr eax, 8
add eax, 0xb
and eax, 0xf
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
shr eax, 4
add eax, 5
and eax, 0xf
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x20]
and eax, 0xf
mov eax, eax
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x40]
movzx edx, byte [rsp + 4]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x4129b0
add rsp, 0x18
ret
Function at 0x4134a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x70], 0
jne 0x4134d8
mov eax, dword [rsp + 0x30]
jmp 0x413617
mov eax, dword [rsp + 0x78]
shl rax, 1
mov rcx, rax
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x4134fe
mov eax, dword [rsp + 0x30]
jmp 0x413617
mov dword [rsp + 0x58], 0x57
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x413549
cmp qword [rsp + 0x38], 0
jne 0x41354e
jmp 0x4135ed
mov eax, dword [rsp + 0x78]
shl rax, 1
mov dword [rsp + 0x5c], eax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.SystemRoot
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x413594
jmp 0x4135ed
lea rdx, [0x00421148]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcsstr]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x4135e3
mov rax, qword [rsp + 0x50]
mov word [rax + 2], 0
mov eax, dword [rsp + 0x78]
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcstombs]
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_strlen
mov dword [rsp + 0x30], eax
xor eax, eax
test eax, eax
jne 0x4134fe
cmp qword [rsp + 0x38], 0
je 0x413600
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x40], 0
je 0x413613
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret

Function at 0x413630
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x40], 0
jne 0x41365c
mov eax, dword [rsp + 0x20]
jmp 0x413673
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x413de0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x28], 0
mov ecx, 0x114
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x413e1c
jmp 0x413e68
mov r8d, 0x114
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x28]
mov dword [rax], 0x114
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x413e4a
jmp 0x413e68
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
xor eax, eax
test eax, eax
jne 0x413e02
cmp qword [rsp + 0x28], 0
je 0x413e7b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_free]
cmp dword [rsp + 0x30], 0xa
jne 0x413e89
mov byte [rsp + 0x34], 8
jmp 0x413ed0
cmp dword [rsp + 0x30], 6
jne 0x413ec4
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jb 0x413ec2
cmp dword [rsp + 0x38], 1
jbe 0x413eb6
cmp dword [rsp + 0x38], 1
jbe 0x413ec2
cmp dword [rsp + 0x38], 3
jbe 0x413ebd
jmp 0x413ec2
mov byte [rsp + 0x34], 2
jmp 0x413ec2
mov byte [rsp + 0x34], 4
jmp 0x413ed0
cmp dword [rsp + 0x30], 5
jb 0x413ed0
mov byte [rsp + 0x34], 1
movzx eax, byte [rsp + 0x34]
test eax, eax
jle 0x413efb
xor eax, eax
test eax, eax
je 0x413eed
movzx eax, byte [rsp + 0x34]
or eax, 0x40
mov byte [rsp + 0x34], al
jmp 0x413efb
movzx eax, byte [rsp + 0x34]
or eax, 0x80
mov byte [rsp + 0x34], al
mov al, byte [rsp + 0x34]
add rsp, 0x48
ret

Function at 0x414d90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov ecx, 0x208
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x414dc2
mov eax, dword [rsp + 0x20]
jmp 0x414e93
mov edx, 0x104
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x414de2
jmp 0x414e7c
mov eax, dword [rsp + 0x30]
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x414e7c
mov dword [rsp + 0x34], 0
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x50
lea rcx, str._system32drivers_ndis.sys
movzx eax, word [rcx + rax]
test eax, eax
je 0x414e7c
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x50
lea rcx, str._system32drivers_ndis.sys
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x50
lea rdx, str._system32drivers_ndis.sys
add rdx, rcx
mov rcx, rdx
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.00417580
test eax, eax
jne 0x414e70
mov dword [rsp + 0x20], 1
jmp 0x414e7c
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x414e05
cmp qword [rsp + 0x28], 0
je 0x414e8f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_free]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x414fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x414fe1
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x414fe1
mov eax, 1
jmp 0x414fe3
xor eax, eax
add rsp, 0x38
ret

Function at 0x415a70
Capabilities:
Hash data with md5

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov dword [rax + 4], 0
mov rax, qword [rsp + 8]
mov dword [rax], 0
mov eax, dword [rsp + 0x10]
imul eax, eax, 0xb
add eax, 0x67452301
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
mov eax, dword [rsp + 0x10]
imul eax, eax, 0x47
add eax, 0xefcdab89
mov rcx, qword [rsp + 8]
mov dword [rcx + 0xc], eax
mov eax, dword [rsp + 0x10]
imul eax, eax, 0x25
add eax, 0x98badcfe
mov rcx, qword [rsp + 8]
mov dword [rcx + 0x10], eax
mov eax, dword [rsp + 0x10]
imul eax, eax, 0x61
add eax, 0x10325476
mov rcx, qword [rsp + 8]
mov dword [rcx + 0x14], eax
ret

Function at 0x4183b0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x00425e90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00425f88]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x418431
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00425f88]
jmp 0x41844d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00425f88], r11
mov qword [0x00425f28], rax
mov rax, qword [0x00423d58]
mov qword [0x00425e00], r11
mov qword [0x00425f10], rdi
mov dword [0x00425df0], 0xc0000409
mov dword [0x00425df4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00423d50]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0041e560]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00423d58]
jne 0x418779
rol rcx, 0x10
test cx, 0xffff
jne 0x418775
ret
ror rcx, 0x10
jmp 0x4183b0
Function at 0x418540
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x418561
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4185dd
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x418582
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4185dd
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4185c0
cmp ecx, 0x20b
je 0x41859e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4185dd
cmp dword [rax + 0x84], 0xe
ja 0x4185af
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4185dd
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x4185dd
cmp dword [rax + 0x74], 0xe
ja 0x4185ce
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x4185dd
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x00426378], 0xffffffffffffffff
mov qword [0x00426380], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x0042636c]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00426368]
mov dword [rcx], eax
call fcn.00418740
cmp dword [0x00423d70], 0
jne 0x418637
lea rcx, [fcn.00418740]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00419480]
lea rcx, [0x00419478]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00426364]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00426360]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___wgetmainargs]
lea rdx, [0x00419470]
lea rcx, [0x00419450]
call fcn.004b5000
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___winitenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0040a1c0
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x4186c3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x4186e4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x40a590
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 0x40d8f8
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp 0x40a590

Function at 0x40a5e0
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 0x40a682
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 0x40a695
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 0x40a690
movsxd rdx, dword [rsp + 0x34]
sub ebx, edx
add rsi, rdx
test ebx, ebx
jg 0x40a628
mov eax, 1
jmp 0x40a697
cmp eax, 0x51
je 0x40a628
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 0x40bd00
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 0x40c040
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, [0x0040a4c0]
mov edx, 0x4e2b
mov rcx, r12
call rbx
lea r8, [rsp + 0x20]
mov edx, 0x2711
mov rcx, r12
call rbx
mov rax, qword [0x005fd840]
mov r8, qword [rax]
test r8, r8
je 0x40bfd0
mov edx, 0x2714
mov rcx, r12
call rbx
mov rax, qword [0x005fd850]
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 0x40c020
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x40bf8b
cmp qword [rsp + 0x28], 0
jne 0x40bfc0
lea rdx, str.Empty_data_received_for_config
mov ecx, 1
xor r13d, r13d
call fcn.0040a6b0
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.0056c0b0
mov r13, rax
jmp 0x40bf9f
lea rcx, str.http_proxy
call sub.msvcrt.dll_getenv
test rax, rax
je 0x40bf68
lea rcx, str.all_proxy
call sub.msvcrt.dll_getenv
lea rcx, str.all_proxy
test rax, rax
je 0x40c060
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 0x40bf79
nop dword [rax]
mov r8, rsi
mov ecx, 1
xor r13d, r13d
lea rdx, str.Remote_config_read_failed:__s
call fcn.0040a6b0
jmp 0x40bf9f
lea rdx, str.Remote_config_init_failed_
mov ecx, 1
xor r13d, r13d
call fcn.0040a6b0
jmp 0x40bfa8
lea rcx, str.ALL_PROXY
call sub.msvcrt.dll_getenv
test rax, rax
je 0x40c080
lea rcx, str.ALL_PROXY
jmp 0x40bff9
lea r8, [0x005abc03]
mov edx, 0x2714
mov rcx, r12
call rbx
jmp 0x40bf68
Function at 0x40d8e0
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 0x40d8f8
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp 0x40a590