joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414486
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042ff60
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4142d3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4142e2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414305
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414315
cmp rbx, 0x1000
jae 0x4142d9
nop
jmp 0x414398
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41432d
xor esi, esi
jmp 0x41438a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042ff60
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41430b
jmp 0x4142f6
call fcn.0045e460
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414420
nop dword [rax + rax]
call fcn.004342e0
lea rax, [0x004a257b]
mov ebx, 0x19
call fcn.00434b60
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.004348a0
lea rax, [0x004a2562]
mov ebx, 0x19
call fcn.00434b60
mov eax, dword [rsp + 0x34]
call fcn.004348a0
nop
call fcn.00434520
call fcn.00434340
lea rax, [0x0049fc4f]
mov ebx, 0xd
call fcn.00432940
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4143c0
call fcn.004342e0
lea rax, [0x004a257b]
mov ebx, 0x19
call fcn.00434b60
mov rax, qword [rsp + 0x38]
call fcn.004348a0
lea rax, [0x004a2562]
mov ebx, 0x19
call fcn.00434b60
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.004348a0
call fcn.00434520
call fcn.00434340
lea rax, [0x004a3a1f]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00432940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ada0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414260
Function at 0x41c1a0
Capabilities:
Hash data using murmur3

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
cmp byte [0x005832d2], 0
jne 0x41c287
sub rbx, qword [rax + 0x18]
mov rdx, qword [rax + 0x50]
test byte [rdx], al
mov esi, dword [rax + 0x64]
imul rbx, rsi
mov rsi, rbx
shr rbx, 0x20
shr rsi, 0x23
and ebx, 7
mov rdi, rcx
mov rcx, rbx
mov r8d, 1
shl r8d, cl
add rdx, rsi
nop
nop
nop
nop
lock or byte [rdx], r8b
mov rcx, qword [rax + 0x18]
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rdx, 0x2a
nop
nop
nop
cmp rdx, 0x40
jae 0x41c27a
lea rbx, [0x005556b8]
mov rdx, qword [rbx + rdx*8]
test byte [rdx], al
mov rbx, rcx
shr rbx, 0x10
and ebx, 0x3f
shr rcx, 0xd
and ecx, 7
mov esi, 1
shl esi, cl
shr rax, 0x16
and eax, 0xfffff
mov rax, qword [rdx + rax*8]
test byte [rax], al
movzx edx, byte [rax + rbx + 0x11440]
lea rax, [rax + rbx]
lea rax, [rax + 0x11440]
test sil, dl
jne 0x41c260
lock or byte [rax], sil
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x1250], rdi
add rsp, 0x10
pop rbp
ret
mov rax, rdx
mov ecx, 0x40
call fcn.0045d040
lea rax, [0x004a5afd]
mov ebx, 0x2c
call fcn.00432940
nop
int3

Function at 0x41e560
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41e666
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x17], dil
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x18], 0
jmp 0x41e5a3
mov rax, qword [rsp + 0x60]
mov rcx, rdx
mov rbx, qword [rsp + 0x68]
movzx edi, byte [rsp + 0x17]
cmp qword [rsp + 0x18], rbx
jae 0x41e65b
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov ebx, edi
mov rax, rcx
nop dword [rax]
call fcn.0041f340
test rax, rax
je 0x41e65b
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x30], xmm15
movups xmmword [rsp + 0x40], xmm15
lea rcx, [0x0041e6a0]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x20]
mov qword [rsp], rbx
nop dword [rax]
call fcn.0045ac60
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x70]
nop dword [rax]
test rdx, rdx
jne 0x41e649
xor eax, eax
jmp 0x41e653
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x70]
test al, al
je 0x41e591
mov rax, qword [rsp + 0x18]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
call fcn.0045ada0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
jmp fcn.0041e560
Function at 0x441400
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x441567
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x441412
cmp edx, ecx
jne 0x441555
nop word [rax + rax]
test rsi, rsi
jne 0x441555
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x441474
nop
call fcn.0045e880
xorps xmm15, xmm15
mov r14, qword [0x005834e8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00441320
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x441550
mov rdx, qword [0x005304e8]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x441545
mov rcx, qword [0x005304e0]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00530f50]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00530f50], rax
nop
mov edx, 1
lea rsi, [0x00530f58]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x441533
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x004a5342]
mov ebx, 0x28
nop
call fcn.00432940
mov rax, rsi
mov rcx, rdx
call fcn.0045d020
call fcn.00430fe0
lea rax, [0x004a46f2]
mov ebx, 0x23
call fcn.00432940
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045ada0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00441400
Function at 0x140588058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405881df
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 0x140588089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058806f
add dl, dl
jne 0x140588096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405880f6
xor eax, eax
add dl, dl
jne 0x1405880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405881ad
add dl, dl
jne 0x1405880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14058807e
mov eax, 1
add dl, dl
jne 0x140588106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140588113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405880fb
sub eax, ebx
mov ebx, 1
jne 0x14058814c
mov ecx, 1
add dl, dl
jne 0x14058812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140588123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140588168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140588175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058815d
cmp eax, 0x7d00
jae 0x14058819b
cmp eax, 0x500
jb 0x140588196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058807e
cmp eax, 0x7f
ja 0x14058819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405881d2
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 0x14058807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc553b80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc554582
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc577108]
test eax, eax
je 0x2fc55461a
lea rax, [0x2fc5770e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc577110]
mov qword [rbp - 8], rax
jmp 0x2fc5545fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5545f2
cmp qword [rbp - 0x10], 0
je 0x2fc5545f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5545b8
lea rax, [0x2fc5770e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55461b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc554720
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc554748
mov eax, 0
jmp 0x2fc554796
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc554771
mov eax, 0
jmp 0x2fc554796
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc554791
mov eax, 0
jmp 0x2fc554796
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55479c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55481a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc554811
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc554811
mov rax, qword [rbp - 8]
jmp 0x2fc55482f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5547e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002940
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x200
movzx ebx, dx
mov rdi, rcx
lea rdx, [rsp + 0x60]
mov ecx, 0x202
mov rbp, r9
mov rsi, r8
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180002a46
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
movzx eax, bx
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x3c], 0x11
mov dword [rsp + 0x34], eax
mov rax, qword [0x180058448]
test rax, rax
jne 0x1800029cc
xor ecx, ecx
call fcn.180003120
mov qword [0x180058448], rax
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call rax
mov ecx, eax
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x28]
test edi, edi
jne 0x180002a1e
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x1800029ff
cmp ecx, 0x17
je 0x180002a12
jmp 0x180002a1e
mov rax, qword [rbx + 0x20]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x20]
mov qword [rsi], rax
mov rax, qword [rbx + 0x20]
movups xmm0, xmmword [rax + 8]
movups xmmword [rbp], xmm0
mov rax, qword [0x180058450]
test rax, rax
jne 0x180002a39
lea ecx, [rax + 2]
call fcn.180003120
mov qword [0x180058450], rax
mov rcx, rbx
call rax
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, edi
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180003120
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x270
cmp dword [0x180058440], 0
lea rax, [0x180002bb0]
lea rbx, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x180002eb0]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [fcn.180002b60]
mov qword [rsp + 0x48], rax
jne 0x1800032da
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1800032d0
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x280], rsi
call fcn.18002a77c
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.18002a7e0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180003202
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180003262
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.18002a77c
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.18002a7e0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1800032c8
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180003262
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800032c8
mov qword [rsp + 0x288], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x1800032b7
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x180003271
mov rax, qword [rsp + 0x28]
mov qword [0x1800510d8], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1800510e8], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1800510f8], rax
jmp 0x1800032c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x280]
mov dword [0x180058440], 1
mov rbx, qword [rsp + 0x290]
movzx eax, bp
lea rcx, [0x1800510d0]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
add rsp, 0x270
pop rbp
ret
Function at 0x180003540
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
movzx ebp, r9w
mov qword [rdi], 0
mov r14d, r8d
mov r15d, edx
mov byte [r12], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x180003618
cmp word [rax + 0x10], 2
mov qword [rsp + 0x40], rbx
jne 0x1800035db
cmp word [rax + 0x12], 4
jne 0x1800035db
mov rbx, qword [rax + 0x18]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800035db
nop word [rax + rax]
mov r9d, dword [rcx]
movzx r8d, bp
mov edx, r14d
mov ecx, r15d
call fcn.1800034a0
mov qword [rdi], rax
test rax, rax
je 0x180003611
mov rcx, qword [rbx + 8]
add rbx, 8
lea rdi, [rax + 0x28]
test rcx, rcx
jne 0x1800035b0
mov r8, qword [rsi]
mov r9d, 0x400
mov rcx, r12
lea edx, [r9 + 1]
call fcn.18002a234
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov eax, 8
jmp 0x1800035f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x18000362f
dec eax
je 0x18000363d
dec eax
je 0x180003636
dec eax
mov eax, 0x2af9
jmp 0x1800035f7
mov eax, 0x2afb
jmp 0x1800035f7
mov eax, 0x2afa
jmp 0x1800035f7
Function at 0x180004b50
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x180058460]
xor ebx, ebx
call qword [rax + 0x2d8]
mov rdi, rax
test rax, rax
je 0x180004b7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x180004b86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1800297b8
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180004c00
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x180058460]
xor edi, edi
call qword [rax + 0x2d8]
mov rbx, rax
test rax, rax
je 0x180004c4e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180004c41
test al, 1
je 0x180004c41
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180004c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call fcn.1800297b8
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x180004c80
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x10020
call fcn.18002b3a0
sub rsp, rax
mov rax, qword [0x180058460]
call qword [rax + 0x2d8]
mov rbx, rax
test rax, rax
je 0x180004cc4
lea rdx, [rsp + 0x20]
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
test eax, eax
jne 0x180004ccf
call fcn.1800297b8
xor eax, eax
add rsp, 0x10020
pop rbx
ret
call fcn.1800297b8
mov rax, qword [0x180058460]
lea rcx, [rsp + 0x20]
call qword [rax + 0x2e0]
add rsp, 0x10020
pop rbx
ret
Function at 0x180004e10
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x10290
call fcn.18002b3a0
sub rsp, rax
mov r13, r8
mov rbx, rcx
mov r9, rcx
lea r8, [0x180040c44]
lea rcx, [rsp + 0x280]
xor esi, esi
mov edx, 0x8000
mov edi, esi
call fcn.18002b3f0
lea edx, [rsi + 0x2a]
mov rcx, rbx
call fcn.18002b600
test rax, rax
jne 0x180004e9d
lea r8, str._s
lea rcx, [rsp + 0x280]
mov r9, rbx
mov edx, 0x8000
call fcn.18002b3f0
mov rcx, rbx
call fcn.18002b590
mov rdi, rax
test rax, rax
jne 0x180004ec9
mov r14, qword [rsp + 0x102d8]
mov esi, 8
jmp 0x18000502f
mov edx, 0x5c
mov rcx, rbx
call fcn.18002b600
mov r14, rax
test rax, rax
je 0x180004ec9
mov rcx, rbx
mov byte [rax], sil
call fcn.18002b590
mov rdi, rax
test rax, rax
je 0x180004e8b
mov byte [r14], 0x5c
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x10288], r12
call fcn.180004c80
mov r12, rax
test rax, rax
jne 0x180004ef6
mov r14, qword [rsp + 0x102d8]
lea esi, [rax + 8]
jmp 0x180005027
mov rcx, rax
mov rax, qword [0x180058460]
call qword [rax + 0x2d8]
mov r14, rax
test rax, rax
jne 0x180004f1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x180005027
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x102c0], rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
test rax, rax
jne 0x180004f46
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x18000501f
mov qword [rsp + 0x10280], r15
nop
cmp rbp, 0xffffffffffffffff
je 0x180004ffe
mov rax, qword [0x180058460]
lea rcx, [rsp + 0x5c]
call qword [rax + 0x2e0]
mov rdx, qword [0x180058460]
lea rcx, [rsp + 0x264]
mov rbx, rax
call qword [rdx + 0x2e0]
mov edx, 0x8000
lea rcx, [rsp + 0x8280]
mov r15, rax
test rdi, rdi
je 0x180004faf
lea r8, str._s_s
mov r9, rdi
mov qword [rsp + 0x20], rbx
call fcn.18002b3f0
jmp 0x180004fbe
lea r8, [0x180040c44]
mov r9, rbx
call fcn.18002b3f0
lea r9, [rsp + 0x8280]
mov r8, r15
mov rdx, rbx
mov rcx, r13
call qword [rsp + 0x102c8]
mov rcx, rbx
call fcn.1800297b8
mov rcx, r15
call fcn.1800297b8
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180004f50
jmp 0x180005006
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r12
call fcn.1800297b8
mov r15, qword [rsp + 0x10280]
mov rbp, qword [rsp + 0x102c0]
mov r12, qword [rsp + 0x10288]
mov rcx, rdi
call fcn.1800297b8
mov rcx, r14
call fcn.1800297b8
mov eax, esi
add rsp, 0x10290
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret

Function at 0x180005060
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10020
call fcn.18002b3a0
sub rsp, rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x180005095
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x10020
pop rbx
ret
mov rax, qword [0x180058460]
lea rcx, [rsp + 0x20]
call qword [rax + 0x2e0]
mov qword [rbx], rax
test rax, rax
je 0x180005086
xor eax, eax
add rsp, 0x10020
pop rbx
ret