joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002cf0
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.1400047c0
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.1400047c0
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 0x140002d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002e90
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d90
mov rcx, rbx
call fcn.1400037b0
mov rdi, rax
test rax, rax
je 0x140002eb2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e40
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cf0
nop dword [rax]
xor esi, esi
jmp 0x140002db8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cf0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cf0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000347c
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 0x140003473
test rsi, rsi
je 0x140003473
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003458
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 0x1400037b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003830
Capabilities:
Parse pe header

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

Function at 0x1400038f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006630]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000390f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003918
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x141bcc948
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141bccacf
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 0x141bcc979
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bcc95f
add dl, dl
jne 0x141bcc986
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bcc9e6
xor eax, eax
add dl, dl
jne 0x141bcc995
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bcca9d
add dl, dl
jne 0x141bcc9a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bcc9b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bcc9c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bcc9cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141bcc9da
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141bcc96e
mov eax, 1
add dl, dl
jne 0x141bcc9f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bcca03
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bcc9eb
sub eax, ebx
mov ebx, 1
jne 0x141bcca3c
mov ecx, 1
add dl, dl
jne 0x141bcca1e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bcca2b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bcca13
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bcc96e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141bcca58
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bcca65
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bcca4d
cmp eax, 0x7d00
jae 0x141bcca8b
cmp eax, 0x500
jb 0x141bcca86
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bcc96e
cmp eax, 0x7f
ja 0x141bcca8e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bcc96e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141bccac2
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 0x141bcc96e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180013150
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x280
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, r9
mov rdi, r8
mov r14, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1800131aa
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.180016d90
lea rdx, [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1800131bd
xor al, al
jmp 0x1800132b4
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1800132b4
lea rax, [rsp + 0x5c]
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x290], rax
call fcn.18001a640
mov rax, qword [r14]
mov rcx, qword [rsp + 0x20]
mov qword [r14], rcx
lea rcx, [rax - 0x10]
lea rax, [0x1802bccb0]
cmp rcx, rax
je 0x18001320a
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18001320a
call fcn.1800a0c6c
mov ecx, dword [rsp + 0x30]
test rdi, rdi
je 0x18001321c
mov eax, ecx
shr eax, 4
and al, 1
mov byte [rdi], al
test rbx, rbx
je 0x180013229
mov eax, ecx
shr eax, 1
and al, 1
mov byte [rbx], al
mov rax, qword [rsp + 0x2c8]
test rax, rax
je 0x18001323b
and cl, 1
mov byte [rax], cl
mov rdx, qword [rsp + 0x2b0]
test rdx, rdx
je 0x18001325a
mov ecx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
add rcx, rax
mov qword [rdx], rcx
mov r8, qword [rsp + 0x2b8]
movabs r10, 0xfe624e212ac18000
movabs r9, 0x346dc5d63886594b
test r8, r8
je 0x180013290
mov rcx, qword [rsp + 0x44]
mov rax, r9
add rcx, r10
mul rcx
shr rdx, 0xb
mov qword [r8], rdx
mov r8, qword [rsp + 0x2c0]
test r8, r8
je 0x1800132b2
mov rdx, qword [rsp + 0x34]
mov rax, r9
add rdx, r10
mul rdx
shr rdx, 0xb
mov qword [r8], rdx
mov al, 1
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1800135d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x60
mov rbp, rdx
or edi, 0xffffffff
mov esi, r8d
mov edx, edi
mov rbx, rcx
call fcn.180013360
test al, al
je 0x180013725
test esi, esi
jle 0x180013766
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x88]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180013752
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800136cc
cmp byte [rbx + 0x1a], 0
jne 0x180013759
mov rax, qword [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rbx + 0x10]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 8]
test eax, eax
jne 0x18001373f
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x180013752
cmp byte [rbx + 0x19], 0
je 0x180013759
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x1800136ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x180013759
cmp byte [rbx + 0x19], 0
je 0x180013708
cmp byte [rbx + 0x18], 0
je 0x180013708
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [rbx + 0x18], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
mov rcx, rbx
call fcn.180013360
test al, al
jne 0x180013604
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180013725
mov edi, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180013725
xor eax, eax
jmp 0x180013727
Function at 0x180013770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbp, rdx
mov edx, r9d
mov edi, r9d
mov esi, r8d
mov rbx, rcx
call fcn.180013360
test al, al
je 0x1800138c1
test esi, esi
jg 0x1800137ab
xor eax, eax
jmp 0x1800138c4
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x48]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180013810
mov rcx, qword [rsp + 0x60]
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800138c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1800138b6
cmp byte [rbx + 0x1a], 0
jne 0x180013864
mov rax, qword [rsp + 0x60]
or r9d, 0xffffffff
test edi, edi
cmovns r9d, edi
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rax, qword [rbx + 0x10]
lea ecx, [r8 + 2]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 8]
test eax, eax
je 0x180013876
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rcx, qword [rsp + 0x60]
or ebx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1800138c4
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1800137fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1800138b6
cmp byte [rbx + 0x19], 0
je 0x1800138b6
cmp byte [rbx + 0x18], 0
je 0x1800138b6
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov byte [rbx + 0x18], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180014420
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 0x78]
mov rdi, rdx
test rcx, rcx
jne 0x180014446
xor al, al
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp rdx, qword [rsi + 0x98]
je 0x180014513
xor r9d, r9d
xor r8d, r8d
mov byte [rsi + 0xa0], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetSetFilePointer]
mov eax, eax
mov qword [rsi + 0x98], rax
cmp rdi, rax
je 0x180014513
jl 0x180014439
sub rdi, rax
mov ecx, 0x4000
mov qword [rsp + 0x48], rbx
cmp rdi, rcx
mov eax, edi
mov qword [rsp + 0x50], rbp
cmovg eax, ecx
movsxd rbp, eax
mov rcx, rbp
call fcn.1800a0a4c
mov rbx, rax
test rdi, rdi
jle 0x180014501
cmp byte [rsi + 0xa0], 0
jne 0x180014501
mov rcx, qword [rsi + 0x78]
xor edx, edx
mov dword [rsp + 0x40], edx
test rcx, rcx
je 0x1800144f6
mov r8d, edi
cmp rbp, rdi
lea r9, [rsp + 0x40]
cmovl r8d, ebp
mov rdx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [rsp + 0x40]
add qword [rsi + 0x98], rdx
test edx, edx
jne 0x1800144f6
mov byte [rsi + 0xa0], 1
movsxd rax, edx
sub rdi, rax
test rdi, rdi
jg 0x1800144b0
mov rcx, rbx
call fcn.1800a09c8
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
jmp 0x180014420
Function at 0x180014520
Capabilities:
Create http request
Parse url

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov r12, r8
mov r15, rdx
mov r14, rcx
mov eax, dword [0x18042801c]
xor ebx, ebx
test al, 1
jne 0x180014581
or eax, 1
mov dword [0x18042801c], eax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.juce
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [0x180427fd8], rax
mov rcx, qword [r14 + 0x78]
mov qword [r14 + 0x78], rbx
test rcx, rcx
je 0x180014594
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [r14 + 0x70]
test rcx, rcx
je 0x1800145a7
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r14 + 0x70], rbx
cmp qword [0x180427fd8], rbx
je 0x1800146db
mov ecx, 0x20000
call fcn.1800a0a4c
mov rbx, rax
mov qword [rsp + 0xf0], rax
mov ecx, 0x1000
call fcn.1800a0a4c
mov rdi, rax
mov qword [rsp + 0x108], rax
mov ecx, 0x800
call fcn.1800a0a4c
mov rsi, rax
mov qword [rsp + 0x48], rax
mov ecx, 0x800
call fcn.1800a0a4c
mov rbp, rax
mov qword [rsp + 0x30], rax
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x58]
call fcn.1800a7360
mov dword [rsp + 0x50], 0x68
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa0], 0x10000
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], 0x800
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], 0x400
mov qword [rsp + 0x88], rbp
mov dword [rsp + 0x90], 0x400
cmp byte [r14 + 0xa1], 0
je 0x18001467e
lea r8, [r14 + 0x88]
lea rdx, [r14 + 0x80]
lea rcx, [r14 + 0x10]
call fcn.1800c0ba0
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.180016d90
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x1800146b8
mov qword [rsp + 0x20], r12
mov r9, r15
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.180014700
nop
mov rcx, rbp
call fcn.1800a09c8
nop
mov rcx, rsi
call fcn.1800a09c8
nop
mov rcx, rdi
call fcn.1800a09c8
nop
mov rcx, rbx
call fcn.1800a09c8
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180014700
Capabilities:
Connect to http server

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, qword [0x180427fd8]
mov r13d, 1
mov r15, r9
mov rdi, rdx
mov rbx, rcx
lea r8, [rax + 0x18]
lea r9d, [r13 + 3]
lea edx, [r13 + 0x45]
mov rcx, rbp
mov dword [rax + 0x18], r13d
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rsi, [rbx + 0xa4]
mov eax, dword [rsi]
test eax, eax
jne 0x18001475e
mov dword [rsi], 0x7530
jmp 0x180014766
jns 0x180014766
mov dword [rsi], 0xffffffff
mov r9d, 4
mov r8, rsi
mov rcx, rbp
lea edx, [r9 - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
lea edx, [r9 + 2]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
lea edx, [r9 + 1]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
lea edx, [r9 + 4]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, 4
mov r8, rsi
lea edx, [r9 + 3]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea rax, str.ftp:
lea rdx, [rsp + 0x80]
mov rcx, r15
mov qword [rsp + 0x80], rax
call fcn.1800ebd90
lea rcx, [rbx + 0xf0]
movzx r14d, al
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rbx + 0x11c], 0
je 0x180014813
xor esi, esi
mov eax, esi
jmp 0x18001484d
mov r9, qword [rdi + 0x28]
movzx r8d, word [rdi + 0x24]
mov rdx, qword [rdi + 0x18]
mov eax, 3
test r14b, r14b
mov rcx, rbp
cmovne eax, r13d
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WININET.dll_InternetConnectW]
lea rcx, [rbx + 0xf0]
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1800148a3
test r14b, r14b
je 0x18001488d
mov rdx, qword [rdi + 0x48]
mov r9d, reloc.WS2_32.dll_select
mov r8d, 0x80000000
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_FtpOpenFileW]
mov qword [rbx + 0x78], rax
jmp 0x1800148a3
mov r9, qword [rsp + 0xa0]
mov r8, r15
mov rdx, rdi
mov rcx, rbx
call fcn.1800148c0
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800150d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rcx]
lea rsi, [0x1802bccb0]
mov rbx, r9
lea rcx, [rax - 0x10]
mov rdi, r8
mov qword [rsp + 0x60], rax
cmp rcx, rsi
je 0x180015106
mov eax, 1
lock xadd dword [rcx], eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
mov r8b, 1
call fcn.180014d30
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18001514c
mov rdx, qword [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x18001514c
mov bl, 1
jmp 0x18001514e
xor bl, bl
test rcx, rcx
je 0x180015159
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x40]
lea rcx, [rax - 0x10]
cmp rcx, rsi
je 0x18001517a
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, 0xffffffff
jne 0x18001517a
call fcn.1800a0c6c
mov rsi, qword [rsp + 0x70]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1800154c0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rcx], 0
mov dword [rcx + 8], 1
mov r9d, 0x2f
lea r8d, [r9 + 0x2d]
lea rdx, [rsp + 0x80]
mov rcx, r14
call fcn.1800d77a0
mov rdx, qword [r14]
mov rcx, qword [rax]
mov qword [r14], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff0
lea rbp, [0x1802bccb0]
or edi, 0xffffffff
cmp rcx, rbp
je 0x180015541
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, edi
jne 0x180015541
call fcn.1800a0c6c
mov r8, r14
lea rdx, str.Global_
lea rcx, [rsp + 0x98]
call fcn.1800ec3a0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180016d90
mov r8, qword [rax]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x98]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x18001559c
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x18001559c
call fcn.1800a0c6c
cmp qword [rbx], 0
jne 0x1800155fd
mov r8, r14
lea rdx, str.Local_
lea rcx, [rsp + 0x20]
call fcn.1800ec3a0
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.180016d90
mov r8, qword [rax]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, rbp
je 0x1800155f7
mov eax, edi
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1800155f7
call fcn.1800a0c6c
cmp qword [rbx], 0
je 0x18001564e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18001564e
mov rcx, qword [rbx]
test esi, esi
jne 0x18001562e
test rcx, rcx
je 0x18001564e
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
jmp 0x18001564e
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x18001564e
mov rcx, rbx
call fcn.180015680
nop
mov rax, qword [r14]
mov qword [rsp + 0x40], rax
lea rcx, [rax - 0x10]
cmp rcx, rbp
je 0x180015670
lock xadd dword [rcx], edi
lea eax, [rdi - 1]
cmp eax, 0xffffffff
jne 0x180015670
call fcn.1800a0c6c
mov rax, rbx
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret