joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a7a0
Capabilities:
Connect to http server
Create http request

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x2a8
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, qword [rsp + 0x308]
mov r13, rcx
mov r12, r9
mov rdi, r8
mov rbp, rdx
lea rcx, str.NetMou
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenW]
cmp qword [r12 + 0x20], 8
mov rbx, rax
jb 0x18000a805
mov rax, qword [r12 + 8]
jmp 0x18000a80a
lea rax, [r12 + 8]
cmp qword [rdi + 0x20], 8
jb 0x18000a817
mov r9, qword [rdi + 8]
jmp 0x18000a81b
lea r9, [rdi + 8]
cmp qword [rbp + 0x20], 8
jb 0x18000a828
mov rdx, qword [rbp + 8]
jmp 0x18000a82c
lea rdx, [rbp + 8]
movzx r8d, word [rsp + 0x300]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x8000000
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rdi, rax
test rax, rax
jne 0x18000a8ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x2eee
jne 0x18000a88b
test rbx, rbx
je 0x18000a881
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0xe0036003
jmp 0x18000a96d
test eax, eax
jle 0x18000a898
movzx edi, ax
or edi, 0x80070000
test rbx, rbx
je 0x18000a8a6
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
jmp 0x18000a96d
cmp qword [rsi + 0x20], 8
jb 0x18000a8ba
mov rdx, qword [rsi + 8]
jmp 0x18000a8be
lea rdx, [rsi + 8]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_FtpFindFirstFileW]
test rax, rax
jne 0x18000a8ff
call fcn.180003220
mov rcx, rdi
mov esi, eax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x18000a8fb
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
jmp 0x18000a96d
mov edx, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x60]
shl rdx, 0x20
or rdx, rcx
mov qword [r13 + 0x58], rdx
jne 0x18000a93b
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x18000a934
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0xe0036006
jmp 0x18000a96d
mov ecx, dword [rsp + 0x58]
mov dword [r13 + 0x64], ecx
mov ecx, dword [rsp + 0x54]
mov dword [r13 + 0x60], ecx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x18000a96b
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x2a8
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000a990
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov rcx, qword [rcx]
mov r12, r9
mov rbp, r8
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x18000a9cd
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rsi], 0xffffffffffffffff
xor r8d, r8d
mov r13d, 2
lea edx, [r8 + 1]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x18000a9f6
call fcn.180003220
jmp 0x18000aaec
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x30], 0x7530
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor r11d, r11d
cmp qword [rdi + 0x20], 0x10
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x3c], r11d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x44], r11d
jb 0x18000aa4c
mov rcx, qword [rdi + 8]
lea rbx, [rdi + 8]
jmp 0x18000aa53
lea rbx, [rdi + 8]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x18000aa9c
cmp qword [rdi + 0x20], 0x10
jb 0x18000aa68
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
je 0x18000aad2
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x3c]
mov rdx, qword [rdx]
call fcn.1800785c0
movzx r11d, word [rbx + 0x10]
mov word [rsp + 0x38], r11w
jmp 0x18000aaa6
mov word [rsp + 0x38], r13w
mov dword [rsp + 0x3c], eax
movzx ecx, word [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rsi]
lea rdx, [rsp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000aad9
call fcn.180003220
jmp 0x18000aae7
mov r8, r12
mov rdx, rbp
mov rcx, rsi
call fcn.18000ab10
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b070
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
lea rdx, str.TYPE_I__r_n
lea rcx, [rsp + 0x20]
mov r8d, 9
mov qword [rsp + 0x40], socket
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
call fcn.180002550
cmp qword [rsp + 0x40], 0x10
mov r8d, dword [rsp + 0x38]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x28]
cmovae rdx, qword [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b10b
call fcn.180003220
cmp qword [rsp + 0x40], 0x10
mov ebx, eax
jb 0x18000b0f6
mov rcx, qword [rsp + 0x28]
call fcn.180076a50
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, 0x1f4
mov qword [rsp + 0x68], rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000b151
call fcn.180003220
mov edi, eax
test eax, eax
js 0x18000b13b
cmp eax, 1
jne 0x18000b15c
cmp qword [rsp + 0x40], 0x10
jb 0x18000b14d
mov rcx, qword [rsp + 0x28]
call fcn.180076a50
mov eax, edi
jmp 0x18000b196
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18000b182
cmp byte [rcx], 0
je 0x18000b182
lea rdx, str._n226
call fcn.1800774dc
test rax, rax
je 0x18000b182
mov dword [rbx + 0x40], 1
cmp qword [rsp + 0x40], 0x10
jb 0x18000b194
mov rcx, qword [rsp + 0x28]
call fcn.180076a50
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x50
pop rbx
ret
Function at 0x18000b1b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
lea r8, [rcx + 0x10]
lea rdx, str.RETR
lea rcx, [rsp + 0x20]
call fcn.18000c000
nop
lea r8, [0x1800ef090]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.18000c0c0
nop
cmp qword [rsp + 0x40], 0x10
jb 0x18000b21e
mov rcx, qword [rsp + 0x28]
call fcn.180076a50
mov qword [rsp + 0x40], socket
xor esi, esi
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x28], sil
lea rdx, [rsp + 0x80]
cmp qword [rsp + 0x98], 0x10
cmovae rdx, qword [rsp + 0x80]
xor r9d, r9d
mov r8d, dword [rsp + 0x90]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b28c
call fcn.180003220
mov ebx, eax
cmp qword [rsp + 0x98], 0x10
jb 0x18000b285
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, ebx
jmp 0x18000b39e
xor r9d, r9d
mov r8d, 0x1f4
mov rdx, qword [rdi + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000b2d6
call fcn.180003220
mov ebx, eax
test eax, eax
js 0x18000b2b7
cmp eax, 1
jne 0x18000b2e1
cmp qword [rsp + 0x98], 0x10
jb 0x18000b2cf
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, ebx
jmp 0x18000b39e
movsxd rcx, eax
mov rax, qword [rdi + 0x38]
mov byte [rcx + rax], sil
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.18000bce0
nop
mov rbx, qword [rax + 0x18]
cmp rbx, rbx
cmovb rbx, rbx
cmp qword [rax + 0x20], 0x10
jb 0x18000b307
mov rcx, qword [rax + 8]
jmp 0x18000b30b
lea rcx, [rax + 8]
mov r8d, 3
cmp rbx, r8
cmovb r8, rbx
lea rdx, [0x1800ef0c4]
call fcn.180085890
movsxd rcx, eax
test eax, eax
jne 0x18000b340
cmp rbx, 3
jae 0x18000b336
or ecx, 0xffffffff
jmp 0x18000b340
cmp rbx, 3
setne sil
mov ecx, esi
test ecx, ecx
sete bl
cmp qword [rsp + 0x70], 0x10
jb 0x18000b357
mov rcx, qword [rsp + 0x58]
call fcn.180076a50
test bl, bl
je 0x18000b37a
cmp qword [rsp + 0x98], 0x10
jb 0x18000b373
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, 1
jmp 0x18000b39e
mov rcx, rdi
call fcn.18000bc50
mov ebx, eax
cmp qword [rsp + 0x98], 0x10
jb 0x18000b39c
mov rcx, qword [rsp + 0x80]
call fcn.180076a50
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180076a70
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000b3d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov byte [rsp + 0x20], 0
mov rbx, rcx
mov r8, rdx
mov qword [r11 - 0x47], rax
mov qword [r11 - 0x3f], rax
mov qword [r11 - 0x37], rax
mov qword [r11 - 0x2f], rax
mov qword [r11 - 0x27], rax
mov qword [r11 - 0x1f], rax
lea rdx, str.REST__I64d__r_n
lea rcx, [r11 - 0x48]
mov byte [rsp + 0x51], al
call fcn.18000c180
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasb al, byte [rdi]
xor r9d, r9d
not rcx
mov r8d, ecx
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x18000b454
call fcn.180003220
jmp 0x18000b4b2
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, 0x1f4
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000b47f
call fcn.180003220
test eax, eax
js 0x18000b4b2
cmp eax, 1
jne 0x18000b48a
jmp 0x18000b4b2
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], 0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x18000b4b0
cmp byte [rcx], 0
je 0x18000b4b0
lea rdx, str._n226
call fcn.1800774dc
test rax, rax
je 0x18000b4b0
mov dword [rbx + 0x40], 1
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180076a70
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x18000bc90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x38]
mov rbx, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov r8d, 0x1f4
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000bcbe
add rsp, 0x20
pop rbx
jmp fcn.180003220
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18000c480
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
xor r9d, r9d
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x48], 7
mov qword [rcx + 0x40], rsi
mov word [rcx + 0x30], si
mov qword [rcx + 0x70], 7
mov qword [rcx + 0x68], rsi
mov word [rcx + 0x58], si
mov qword [rcx + 0x98], 7
mov qword [rcx + 0x90], rsi
mov word [rcx + 0x80], si
lea rcx, str.Net__KuaiZip_
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rcx, qword [rbx]
mov rdi, rax
test rcx, rcx
je 0x18000c502
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbx + 0x20], esi
mov qword [rbx + 0xa0], rsi
mov dword [rbx + 0xac], esi
mov dword [rbx + 0xa8], esi
mov rsi, qword [rsp + 0x48]
mov qword [rbx], rdi
mov qword [rbx + 0x18], 0xffffffffffffffff
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000d6b0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x42]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bp
call fcn.1800795c0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x18000d721
cmp eax, 0x104
ja 0x18000d721
lea rdx, str.WMCache_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000d737
call fcn.180003220
test eax, eax
js 0x18000d7db
cmp eax, 1
je 0x18000d7db
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000d75f
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000d75f
call fcn.180003220
jmp 0x18000d7db
lea r9, [rdi + 0x10]
lea rdx, [0x1800ef288]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x278], rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18000d7ca
mov dword [rdi + 0x220], esi
mov qword [rsp + 0x30], rbp
neg esi
sbb eax, eax
lea rcx, [rdi + 0x10]
mov edx, 0xc0000000
and eax, 0x20000000
xor r9d, r9d
xor r8d, r8d
bts eax, 0x1a
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x218], rax
cmp rax, 0xffffffffffffffff
jne 0x18000d7d1
call fcn.180003220
jmp 0x18000d7d3
xor eax, eax
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180076a70
lea r11, [rsp + 0x260]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180013190
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov dword [rsp + 0x20], 0x38
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rsp + 0x30]
shr r11, 1
mov eax, 0x40000000
lea rcx, [rsi + 0xf0]
cmp r11, rax
cmova r11d, eax
mov rax, qword [rcx]
mov edx, r11d
call qword [rax + 0x18]
lea rcx, [rsi + 0x10]
mov rdx, rbx
call fcn.18000fc20
test eax, eax
js 0x180013258
cmp eax, 1
je 0x180013258
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x180013216
mov rax, qword [rax + 0xa0]
test rax, rax
jne 0x18001320d
mov eax, 0x80004005
jmp 0x180013238
mov qword [rsi + 0x188], rax
jmp 0x180013236
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x180013253
mov rcx, qword [rax + 0x58]
test rcx, rcx
jne 0x18001322f
mov eax, 0x80004005
jmp 0x180013238
mov qword [rsi + 0x188], rcx
xor eax, eax
test eax, eax
js 0x180013253
cmp eax, 1
je 0x180013253
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov eax, 0xe0036006
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180014120
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x180014211
cmp word [rdx], 0
je 0x180014211
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x180014168
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x1800141a6
call fcn.180003220
jmp 0x180014216
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001419f
mov rax, qword [rsp + 0x40]
cqo
and edx, 0x1ff
add rax, rdx
mov rcx, rax
and eax, 0x1ff
sar rcx, 9
cmp rax, rdx
je 0x1800141e0
mov eax, 0xe00e1001
jmp 0x180014216
mov qword [rsp + 0x40], rcx
mov dword [rdi + 0x80], ecx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x50], 0
call fcn.1800795c0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.180014240
jmp 0x180014216
mov eax, 0x80070057
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180076a70
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x180014240
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x70]
xor ebx, ebx
mov rdi, rdx
lea rsi, [rcx + 0x10]
cmp rbp, 0xffffffffffffffff
je 0x180014374
test rdx, rdx
je 0x180014374
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014321
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001432f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1800142d4
cmp eax, 0x3e6
je 0x1800142d4
test eax, eax
jle 0x180014328
movzx eax, ax
or eax, 0x80070000
jmp 0x180014326
mov edx, 0x200
mov rcx, rsi
call fcn.180003e00
test eax, eax
js 0x180014379
cmp eax, 1
je 0x180014326
mov rdx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180014321
mov rdx, qword [rsi]
mov r8d, 0x200
mov rcx, rdi
call fcn.1800785c0
jmp 0x18001432f
call fcn.180003220
test eax, eax
js 0x180014379
cmp eax, 1
je 0x180014379
cmp dword [rdi], 0x5120372
je 0x18001433e
mov eax, 0xe00e1001
jmp 0x180014379
cmp dword [rdi + 4], 2
jne 0x18001436d
test byte [rdi + 8], 1
je 0x18001436d
mov r11d, dword [rdi + 0xc]
mov edx, 0x200
mov rcx, rdi
mov dword [rdi + 0xc], ebx
call fcn.180018170
mov ecx, 0xe0037001
cmp r11d, eax
cmovne ebx, ecx
mov eax, ebx
jmp 0x180014379
mov eax, 0xe0037003
jmp 0x180014379
mov eax, 0x80070057
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800171a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
sub rsp, 0x278
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp dword [rcx + 0x88], 0
mov r12d, r8d
mov rbp, rcx
mov dword [rsp + 0x34], r8d
jne 0x180017234
mov r8d, dword [rcx + 0x378]
mov eax, edx
add rcx, 0x10
lea rdx, [r8 + rax*4]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rcx + 0x60]
cmp rdx, 0xffffffffffffffff
je 0x18001722a
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.180003fd0
test eax, eax
js 0x1800173ed
cmp eax, 1
je 0x1800173ed
xor eax, eax
jmp 0x1800173ed
mov eax, 0x80070057
jmp 0x1800173ed
mov qword [rsp + 0x270], rbx
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x260], rdi
mov edi, edx
mov rdx, qword [rcx + 0x380]
lea rcx, [rsp + 0x50]
shl rdi, 2
mov r8d, 0x200
mov rsi, rdi
and esi, 0xfffffe00
mov ebx, esi
add rdx, rbx
call fcn.1800785c0
sub rdi, rbx
shr rbx, 9
mov dword [rsp + rdi + 0x50], r12d
add rbx, qword [rbp + 0x368]
lea rcx, [rbp + 0x8c]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov r9, rbx
call fcn.180017df0
mov r10d, dword [rbp + 0x378]
mov rdi, qword [rbp + 0x70]
add r10d, esi
mov rsi, qword [rsp + 0x268]
mov qword [rsp + 0x40], r10
cmp rdi, 0xffffffffffffffff
je 0x1800173d6
mov rax, r10
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x180017310
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x10]
mov rdx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003fd0
mov ebx, eax
jmp 0x1800173db
xor r9d, r9d
xor r8d, r8d
mov rdx, r10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800173cd
xor ebx, ebx
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rdi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800173db
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180017379
cmp eax, 0x3e6
je 0x180017379
test eax, eax
jle 0x180017309
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1800173db
lea rcx, [rbp + 0x10]
mov edx, 0x200
call fcn.180003e00
test eax, eax
js 0x180017309
cmp eax, 1
je 0x180017309
mov rcx, qword [rbp + 0x10]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
call fcn.1800785c0
mov rdx, qword [rbp + 0x10]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800173db
call fcn.180003220
mov ebx, eax
jmp 0x1800173db
mov ebx, 0x80070057
mov rdi, qword [rsp + 0x260]
mov eax, ebx
mov rbx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180076a70
add rsp, 0x278
pop r12
pop rbp
ret
Function at 0x180017410
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rdi, r9
mov rax, rdx
test r9, r9
je 0x180017554
mov qword [rsp + 0x68], rsi
xor esi, esi
mov dword [r9], esi
test r8d, r8d
jne 0x180017476
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x180017466
lea rdx, str..wmt
mov rcx, rax
call fcn.180078364
test eax, eax
jne 0x180017466
mov dword [rdi], 8
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 0xe00e1001
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800174bf
call fcn.180003220
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001750b
call fcn.180003220
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x78], 0x5120372
jne 0x180017536
mov rcx, rbx
mov dword [rdi], 8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 0xe00e1001
add rsp, 0x50
pop rdi
ret
mov eax, 0x80070057
add rsp, 0x50
pop rdi
ret

Function at 0x180018170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r9d, 0xffffffff
lea r10, [0x180115370]
nop dword [rax + rax]
movzx r8d, byte [rcx]
mov eax, r9d
inc rcx
xor r8, rax
movzx eax, r8b
mov r8d, r9d
mov r9d, dword [r10 + rax*4]
shr r8d, 8
xor r9d, r8d
sub edx, 1
jne 0x180018180
not r9d
mov eax, r9d
ret
Function at 0x180018f70
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x18010f050]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rsi, rcx
lea rbx, [rcx + 1]
mov edi, 0xa
xor ebp, ebp
nop word [rax + rax]
mov rax, qword [0x1800de380]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
mov qword [rcx], rax
mov rax, qword [0x1800de388]
mov qword [rcx + 8], rax
mov rax, qword [0x1800de390]
lea r8, [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1800de398]
mov edx, 0x280
mov qword [rcx + 0x18], rax
mov rax, qword [0x1800de3a0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1800de3a8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1800de3b0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1800de3b8]
mov qword [rcx + 0x38], rax
mov rcx, rsi
call fcn.18001a560
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xf0]
mov r8d, 0x40
call fcn.18001a670
mov r11, rbp
movzx eax, byte [rsp + r11 + 0xf0]
add r11, 4
xor byte [rbx + r11 - 5], al
movzx eax, byte [rsp + r11 + 0xed]
xor byte [rbx + r11 - 4], al
movzx eax, byte [rsp + r11 + 0xee]
xor byte [rbx + r11 - 3], al
movzx eax, byte [rsp + r11 + 0xef]
xor byte [rbx + r11 - 2], al
cmp r11, 0x40
jl 0x180019043
add rbx, 0x40
sub rdi, 1
jne 0x180018fb0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180076a70
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret