joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add dword [rdx - 1], esi
add dword [rcx], eax
jp 0x14003f64f
jmp qword [rax]
and byte [rdi], bl
mov bh, bh
nop
nop
mov esi, 0xe3dadaff
push rbx
int1
invalid
loop 0x14003f649
jmp rcx
in eax, 0xe5
in eax, 0xff
in al, 0xe4
in al, 0xff
invalid
fdivp st(7)
jrcxz 0x14003f665
jrcxz 0x14003f683
jmp rsi
out 0xe6, al
out 0xff, al
out 0xe7, eax
out 0xff, eax
loop 0x14003f670
loop 0x14003f68f
invalid
fcmovu st(0), st(2)
invalid
invalid
adc bh, bh
xor dh, byte [rdx]
cmp bh, bh
cmpsd dword [rsi], dword [rdi]
cmpsd dword [rsi], dword [rdi]
stosb byte [rdi], al
push rax
invalid
hlt
hlt
cmc
push rbp
cmc
cmc
push rbp
cmc
cmc
push rbp
cmc
cmc
push rbp
cmc
cmc
push rbp
cmc
cmc
push rbp
cmc
cmc
push rsp
hlt
push rbx
push rdx
push rax
push rax
invalid
invalid
Function at 0x140017724
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400211b8], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1400211c8]
jne 0x140017771
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400211f0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400211b8], 1
mov ecx, dword [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140017846
mov rcx, qword [0x1400204cc]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140017871
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400211c0]
test rax, rax
je 0x1400177c1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400211c0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14001788c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400211f0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400204cc]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140017871
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x140001994
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019e0
xor al, al
add rsp, 0x28
ret
Function at 0x1800037c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov ebx, edx
mov dword [rax - 0x18], 0xf0000020
mov rdi, rcx
xor edx, edx
lea rcx, [rax + 0x18]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180003822
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x180003848
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x180003839
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180003894
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
lea r10d, [rdx + 2]
mov r11d, edx
mov edi, 0xaaaaaaab
mov rsi, r8
mov eax, edi
mov rbx, rcx
mul r10d
shr edx, 1
lea edx, [rdx*4 + 1]
cmp dword [r9], edx
jae 0x1800038d9
mov dword [r9], edx
mov eax, 6
jmp 0x1800039c1
mov eax, edi
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x18000395a
dec ecx
mov eax, edi
mul ecx
shr edx, 1
inc edx
mov r10d, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [rbx]
shr rax, 2
mov al, byte [rax + rbp]
mov byte [r8], al
movzx eax, byte [rbx + 1]
movzx ecx, byte [rbx]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbp]
mov byte [r8 + 2], al
movzx eax, byte [rbx + 2]
add rbx, 3
and eax, 0x3f
mov al, byte [rax + rbp]
mov byte [r8 + 3], al
add r8, 4
sub r10, 1
jne 0x180003900
cmp edx, r11d
jae 0x1800039b5
movzx r10d, byte [rbx]
lea edi, [rdx + 1]
cmp edi, r11d
jae 0x180003971
movzx edx, byte [rbx + 1]
jmp 0x180003973
xor edx, edx
mov ecx, edx
mov rax, r10
shr ecx, 4
shr rax, 2
shl r10d, 4
add ecx, r10d
and ecx, 0x3f
mov al, byte [rax + rbp]
mov byte [r8], al
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
cmp edi, r11d
jae 0x1800039a6
and edx, 0xf
shl edx, 2
mov cl, byte [rdx + rbp]
jmp 0x1800039a8
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, esi
mov dword [r9], r8d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x180003a78
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rbx, r9
mov ecx, dword [r9]
mov esi, r8d
mov rdi, rdx
call fcn.18000684c
test eax, eax
jne 0x180003ba6
mov r8d, dword [r9 + 4]
lea eax, [r8 - 1]
cmp eax, 0x7f
ja 0x180003ba1
xor edx, edx
mov eax, esi
div r8d
mov r11d, eax
test edx, edx
jne 0x180003ba1
test r8b, 3
jne 0x180003ba1
movsxd rcx, dword [r9]
lea r12, [0x18005aa60]
imul rdx, rcx, 0xb0
mov r10, qword [rdx + r12 + 0x60]
test r10, r10
je 0x180003b1a
lea rax, [r9 + 0x88]
mov r8d, r11d
add r9, 8
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbp
call r10
jmp 0x180003ba6
test esi, esi
je 0x180003b9d
xor edx, edx
test r8d, r8d
jle 0x180003b42
mov r8, rbp
lea rcx, [rbx + 8]
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x180003b2f
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
imul r9, rax, 0xb0
mov rdx, rdi
lea rcx, [rbx + 8]
call qword [r9 + r12 + 0x28]
test eax, eax
jne 0x180003ba6
mov r8d, dword [rbx + 4]
xor r9d, r9d
test r8d, r8d
jle 0x180003b8f
mov rdx, rbx
mov rcx, rdi
sub rdx, rdi
mov eax, dword [rcx]
add r9d, 4
mov dword [rdx + rcx + 8], eax
lea rcx, [rcx + 4]
mov r8d, dword [rbx + 4]
cmp r9d, r8d
jl 0x180003b78
movsxd rax, r8d
add rdi, rax
add rbp, rax
sub esi, r8d
jne 0x180003b1e
xor eax, eax
jmp 0x180003ba6
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x180003bc8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1800537c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rbx, r9
mov ecx, dword [r9]
mov edi, r8d
mov rbp, rdx
call fcn.18000684c
test eax, eax
jne 0x180003ce8
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180003ce3
xor edx, edx
mov eax, r8d
div ecx
mov r11d, eax
test edx, edx
jne 0x180003ce3
test cl, 3
jne 0x180003ce3
movsxd r8, dword [r9]
lea r15, [0x18005aa60]
imul r9, r8, 0xb0
mov r10, qword [r9 + r15 + 0x68]
test r10, r10
je 0x180003c67
lea rax, [rbx + 0x88]
mov r8d, r11d
lea r9, [rbx + 8]
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call r10
jmp 0x180003ce8
test edi, edi
je 0x180003cdf
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
imul r9, rax, 0xb0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [r9 + r15 + gethostbyname]
test eax, eax
jne 0x180003ce8
mov ecx, dword [rbx + 4]
xor r11d, r11d
test ecx, ecx
jle 0x180003cd2
lea r8, [rsp + 0x30]
mov r9, rsi
sub r8, rbx
lea rdx, [rbx + 8]
sub r9, rbx
mov r10, rbp
sub r10, rbx
mov ecx, dword [r8 + rdx - 8]
add r11d, 4
xor ecx, dword [rdx]
mov eax, dword [r9 + rdx - 8]
mov dword [rdx], eax
mov dword [r10 + rdx - 8], ecx
lea rdx, [rdx + 4]
mov ecx, dword [rbx + 4]
cmp r11d, ecx
jl 0x180003caf
movsxd rax, ecx
add rsi, rax
add rbp, rax
sub edi, ecx
jne 0x180003c6b
xor eax, eax
jmp 0x180003ce8
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18003c710
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000614c
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
xor eax, eax
and qword [rcx], 0
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x1800068c8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov r13, r8
mov ecx, dword [rcx + 0x70]
mov r15, rdx
call fcn.180006874
test eax, eax
jne 0x180006a39
movsxd rbp, dword [rsi + 0x70]
lea rbx, [0x18005c060]
shl rbp, 7
mov ecx, dword [rbx + rbp + 0x10]
mov r12d, dword [rbx + rbp + 0xc]
call fcn.180027894
mov ecx, r12d
mov r14, rax
call fcn.180027894
mov rdi, rax
test r14, r14
je 0x180006a27
test rax, rax
je 0x180006a22
mov rdx, rax
mov rcx, rsi
call qword [rbx + rbp + 0x68]
mov ebx, eax
test eax, eax
jne 0x180006a02
lea r9, [0x18005c060]
mov eax, dword [r9 + rbp + 0x10]
test eax, eax
je 0x18000697d
mov rdx, qword [rsi + 0xe8]
mov rcx, r14
mov r8d, eax
mov al, byte [rdx]
inc rdx
xor al, 0x5c
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x18000696b
mov rcx, rsi
call qword [r9 + rbp + 0x58]
mov ebx, eax
test eax, eax
jne 0x180006a02
lea rax, [0x18005c060]
mov rdx, r14
mov r8d, dword [rax + rbp + 0x10]
mov rcx, rsi
call qword [rax + rbp + 0x60]
mov ebx, eax
test eax, eax
jne 0x180006a02
mov r8d, r12d
lea rax, [0x18005c060]
mov rdx, rdi
mov rcx, rsi
call qword [rax + rbp + 0x60]
mov ebx, eax
test eax, eax
jne 0x180006a02
mov rdx, r14
lea rax, [0x18005c060]
mov rcx, rsi
call qword [rax + rbp + 0x68]
mov ebx, eax
test eax, eax
jne 0x180006a02
xor ecx, ecx
test r12d, r12d
je 0x1800069fc
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x1800069fc
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x1800069e5
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.180027880
mov rcx, rdi
call fcn.180027880
mov rcx, r14
call fcn.180027880
mov eax, ebx
jmp 0x180006a39
mov rcx, r14
jmp 0x180006a2f
test rdi, rdi
je 0x180006a34
mov rcx, rdi
call fcn.180027880
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180006a58
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
movsxd rbp, edx
mov ecx, ebp
mov ebx, r9d
mov r13, r8
call fcn.180006874
test eax, eax
jne 0x180006bc7
mov rdi, rbp
mov dword [rsi + 0x70], ebp
shl rdi, 7
lea rax, [0x18005c060]
mov r14d, dword [rdi + rax + 0xc]
test r9d, r9d
jne 0x180006ab3
lea eax, [r9 + 3]
jmp 0x180006bc7
mov r12d, dword [rdi + rax + 0x10]
mov ecx, r12d
call fcn.180027894
mov r15, rax
test rax, rax
jne 0x180006ad1
lea eax, [r15 + 0xd]
jmp 0x180006bc7
mov rcx, r12
call fcn.180027894
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180006aed
lea ebx, [rax + 0xd]
jmp 0x180006bbd
lea r12, [0x18005c060]
mov rdx, r13
mov ecx, dword [rdi + r12 + 0x10]
cmp ebx, ecx
jbe 0x180006b3e
mov dword [rsp + 0x30], ecx
mov r9, rax
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov qword [rsp + 0x20], rcx
mov ecx, ebp
call fcn.180003efc
mov ebx, eax
test eax, eax
jne 0x180006bb1
mov eax, dword [rdi + r12 + 0x10]
cmp r14d, eax
jae 0x180006b65
sub eax, r14d
mov rcx, r14
add rcx, qword [rsi + 0xe8]
jmp 0x180006b5e
mov r8, rbx
mov rcx, rax
call fcn.180024e40
mov eax, dword [rdi + r12 + 0x10]
cmp ebx, eax
jae 0x180006b65
mov rcx, qword [rsi + 0xe8]
sub eax, ebx
add rcx, rbx
mov edx, eax
call fcn.180006834
mov eax, dword [rdi + r12 + 0x10]
test eax, eax
je 0x180006b8d
mov rdx, qword [rsi + 0xe8]
mov rcx, r15
mov r8d, eax
mov al, byte [rdx]
inc rdx
xor al, 0x36
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x180006b7b
mov rcx, rsi
call qword [rdi + r12 + 0x58]
mov ebx, eax
test eax, eax
jne 0x180006bb1
mov r8d, dword [rdi + r12 + 0x10]
mov rdx, r15
mov rcx, rsi
call qword [rdi + r12 + 0x60]
mov ebx, eax
test eax, eax
je 0x180006bbd
mov rcx, qword [rsi + 0xe8]
call fcn.180027880
mov rcx, r15
call fcn.180027880
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001154c
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x48], 0x3a980
call fcn.180022c34
mov ecx, 0x65
call fcn.18002136c
movzx eax, ax
and eax, 8
cmp eax, 8
jne 0x18001158a
mov dword [rsp + 0x44], 0x84c03200
jmp 0x180011592
mov dword [rsp + 0x44], 0x84400200
mov eax, dword [rsp + 0x44]
mov dword [0x180054294], eax
mov ecx, gethostbyname
call fcn.18002136c
movzx eax, ax
cmp eax, 1
jne 0x1800115be
mov eax, dword [0x180054294]
bts eax, 0x13
mov dword [0x180054294], eax
mov ecx, 0x23
call fcn.18002136c
movzx eax, ax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180011641
cmp dword [rsp + 0x40], 1
je 0x180011617
cmp dword [rsp + 0x40], 2
je 0x1800115f0
cmp dword [rsp + 0x40], 4
je 0x180011641
jmp 0x180011673
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x180054298], rax
jmp 0x180011673
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x180054298], rax
jmp 0x180011673
mov ecx, 0x20
call fcn.180021328
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
mov edx, 3
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x180054298], rax
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, 5
mov rcx, qword [0x180054298]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, 6
mov rcx, qword [0x180054298]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea rax, [0x1800542b0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
movzx r8d, word [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [0x180054298]
call qword [sym.imp.WININET.dll_InternetConnectA]
mov qword [0x1800542a0], rax
mov ecx, 0x23
call fcn.18002136c
movzx eax, ax
cmp eax, 4
jne 0x18001176e
mov ecx, 0x21
call fcn.1800212e8
mov dword [rsp + 0x4c], eax
mov ecx, 0x21
call fcn.180021328
mov ecx, dword [rsp + 0x4c]
mov r9d, ecx
mov r8, rax
mov edx, 0x2b
mov rcx, qword [0x1800542a0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, 0x22
call fcn.1800212e8
mov dword [rsp + 0x50], eax
mov ecx, 0x22
call fcn.180021328
mov ecx, dword [rsp + 0x50]
mov r9d, ecx
mov r8, rax
mov edx, 0x2c
mov rcx, qword [0x1800542a0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180022c6c
add rsp, 0x68
ret
Function at 0x180011ba8
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, reloc.WS2_32.dll_send
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x180011bea
xor eax, eax
jmp 0x180011c0b
lea rcx, [rsp + 0x40]
call fcn.18002a1dc
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xc8
je 0x180011c06
xor eax, eax
jmp 0x180011c0b
mov eax, 1
add rsp, 0x148
ret

Function at 0x180011c14
Capabilities:
Create udp socket

Disassembly:
sub rsp, 0x678
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x54], 0
call fcn.180011d4c
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x180011c6a
xor eax, eax
jmp 0x180011d44
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x5f0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747f
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x180011cc7
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x4c
div rcx
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], 0
jmp 0x180011cdb
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x50], eax
jge 0x180011d35
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x4c
lea rax, [rsp + rax + 0x84]
mov qword [rsp + 0x70], rax
movsxd rax, dword [rsp + 0x50]
imul rax, rax, 0x4c
mov eax, dword [rsp + rax + 0x80]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
and eax, 4
test eax, eax
jne 0x180011d33
mov eax, dword [rsp + 0x58]
and eax, 1
test eax, eax
je 0x180011d33
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x5c], eax
jmp 0x180011d35
jmp 0x180011cd1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [rsp + 0x5c]
add rsp, 0x678
ret

Function at 0x180011d4c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
cmp dword [0x1800542b8], 1
jne 0x180011d61
jmp 0x180011dfd
mov eax, 0x202
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jge 0x180011d8f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18002a54c
mov dword [0x1800542b8], 1
mov ecx, socket
call fcn.1800212a4
mov dword [0x1800542bc], eax
mov ecx, reloc.WS2_32.dll_send
call fcn.1800212a4
mov dword [0x1800542c0], eax
mov ecx, 0x3d
call fcn.180021328
mov qword [0x18005def8], rax
mov ecx, 0x3e
call fcn.180021328
mov qword [0x18005def0], rax
mov ecx, 0x3f
call fcn.180021328
mov qword [0x18005dee8], rax
mov ecx, 0x42
call fcn.180021328
mov qword [0x18005dee0], rax
add rsp, 0x1d8
ret
Function at 0x180011e28
Capabilities:
Set current directory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x428
cmp dword [rsp + 0x438], 0x3ff
jle 0x180011e47
jmp 0x180011e7c
movsxd rax, dword [rsp + 0x438]
mov r8, rax
mov rdx, qword [rsp + 0x430]
lea rcx, [rsp + 0x20]
call fcn.18002ad30
movsxd rax, dword [rsp + 0x438]
mov byte [rsp + rax + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add rsp, 0x428
ret

Function at 0x1800121b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x830
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x800
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x18001220b
mov r8d, reloc.WS2_32.dll_send
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [rsp + 0x840]
add rsp, 0x830
pop rdi
ret

Function at 0x180012594
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180019c54
lea rcx, [rsp + 0x48]
call fcn.180019eb8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x48]
call fcn.180019c98
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x48]
call fcn.180019b40
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
call fcn.18000fbe0
mov dword [rsp + 0x28], eax
call fcn.180011d4c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rsp + 0x20]
jae 0x18001265b
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
call fcn.180012b20
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x180012640
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180012659
xor r9d, r9d
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.WS2_32.dll_send
jmp 0x180012665
jmp 0x18001260c
mov ecx, 0x46
call fcn.180010fb0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
call sub.WS2_32.dll_closesocket
add rsp, 0x68
ret