joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002fd40
Capabilities:
Encrypt data using des

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r11d, r11d
lea r10, [rcx + 2]
lea r9, [0x1800d9b91]
lea ebx, [r11 + 8]
lea rdi, [0x1800a8620]
nop word [rax + rax]
movzx eax, byte [r9]
movzx ecx, byte [r9 + 1]
movzx edx, byte [r9 - 1]
add al, al
add dl, dl
add r10, 4
add dl, byte [r9 + 4]
add cl, al
add r9, 6
add cl, cl
movsx r8, dl
add cl, byte [r9 - 4]
add r8, r11
add r11, 4
add cl, cl
shl r8, 4
add cl, byte [r9 - 3]
movsx rax, cl
add r8, rax
movzx eax, byte [r8 + rdi]
and al, 1
mov byte [r10 - 6], al
movzx eax, byte [r8 + rdi]
sar al, 1
and al, 1
mov byte [r10 - 5], al
movzx eax, byte [r8 + rdi]
sar al, 2
and al, 1
mov byte [r10 - 4], al
movzx eax, byte [r8 + rdi]
sar al, 3
and al, 1
dec rbx
mov byte [r10 - 3], al
jne 0x18002fd70
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1800300a0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov r13, rdx
xor r14d, r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 4]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
mov ecx, dword [rax]
lea rbp, [rax + 4]
test ecx, ecx
je 0x1800301e1
lea rbx, [rsp + 0x90]
sub rbx, rbp
mov esi, ecx
nop word [rax + rax]
mov byte [rsp + 0x90], 0
xor edx, edx
mov r8d, 0xff
lea rcx, [rsp + 0x91]
call fcn.18007e840
mov rdx, rbp
movzx eax, byte [rdx]
mov byte [rbx + rdx], al
inc rdx
test al, al
jne 0x180030140
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
mov qword [rsp + 0x48], send
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x30], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.180004b90
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.180028b80
lea rdx, [rsp + 0x60]
mov rcx, r13
call fcn.18000b980
add rbp, 0x100
sub rbx, 0x100
cmp qword [rsp + 0x78], 8
jb 0x1800301d8
mov rcx, qword [rsp + 0x60]
call fcn.18007a7a4
dec rsi
jne 0x180030120
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180030220
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
xor ebx, ebx
call fcn.18007e840
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18003027d
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800302a9
mov eax, dword [rsp + 0x30]
dec eax
je 0x1800302a2
dec eax
jne 0x1800302a7
cmp dword [rsp + 0x24], 5
jne 0x18003029b
cmp dword [rsp + 0x28], ebx
jne 0x18003029b
lea ebx, [rax + 2]
jmp 0x1800302a7
mov ebx, 1
jmp 0x1800302a7
mov ebx, 3
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18007a7c0
add rsp, 0x150
pop rbx
ret
Function at 0x180030b90
Capabilities:
Get local ipv4 addresses

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov edi, ecx
mov ecx, 0x1b8
call fcn.18007b11c
mov rbx, rax
xor r15d, r15d
mov dword [rbp - 0x69], r15d
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x180030c14
mov rcx, rbx
call fcn.18007a7a4
mov ecx, dword [rbp - 0x69]
call fcn.18007e730
mov rbx, rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x180030d8c
test rbx, rbx
je 0x180030d8c
or eax, 0xffffffff
lea esi, [rax + 0x10]
cmp dword [rbx + 0x58], 0
jbe 0x180030c5d
inc eax
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x49], r15
mov byte [rbp - 0x59], 0
cmp eax, edi
je 0x180030c6c
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x180030d8c
jmp 0x180030c45
mov r12d, r15d
cmp dword [rbx + 0x58], r15d
jbe 0x180030d5b
lea r13, [rbx + 0x50]
nop dword [rax]
movzx r9d, byte [r13]
lea r8, str._02X
mov edx, 5
lea rcx, [rbp + 0x1f]
call fcn.18007b760
cmp qword [rbp - 0x49], 0
jne 0x180030cc3
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1f]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x59]
call fcn.180004b90
jmp 0x180030d38
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x21], r15
mov byte [rbp - 0x31], 0
mov r8d, 1
lea rdx, [0x1800ab748]
lea rcx, [rbp - 0x31]
call fcn.180004b90
nop
lea r8, [rbp + 0x1f]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.1800082f0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.180008110
nop
cmp qword [rbp + 0xf], 0x10
jb 0x180030d1c
mov rcx, qword [rbp - 9]
call fcn.18007a7a4
mov qword [rbp + 0xf], rsi
mov qword [rbp + 7], r15
mov byte [rbp - 9], 0
cmp qword [rbp - 0x19], 0x10
jb 0x180030d38
mov rcx, qword [rbp - 0x31]
call fcn.18007a7a4
inc r12d
inc r13
cmp r12d, dword [rbx + 0x58]
jb 0x180030c80
mov rsi, qword [rbp - 0x41]
cmp rsi, 0x10
jb 0x180030d5b
mov rdx, qword [rbp - 0x59]
mov rcx, rdx
jmp 0x180030d63
lea rcx, [rbp - 0x59]
mov rdx, qword [rbp - 0x59]
sub r14, rcx
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r14 + rcx], al
inc rcx
test al, al
jne 0x180030d70
cmp rsi, 0x10
jb 0x180030d8c
mov rcx, rdx
call fcn.18007a7a4
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180031c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x68], rcx
mov qword [rcx + 0x18], 7
xor r14d, r14d
mov qword [rcx + 0x10], r14
mov word [rcx], r14w
mov qword [rcx + 0x40], 7
mov qword [rcx + 0x38], r14
mov word [rcx + 0x28], r14w
add rcx, 0x50
mov qword [r11 - 0x78], rcx
mov qword [rcx], r14
mov qword [rcx + 8], r14
mov qword [rcx + 0x10], r14
add rcx, 0x20
call fcn.180039ef0
nop
mov qword [rbx + 0x2170], 7
mov qword [rbx + 0x2168], r14
mov word [rbx + 0x2158], r14w
mov qword [rbx + 0x2198], 7
mov qword [rbx + 0x2190], r14
mov word [rbx + 0x2180], r14w
mov rcx, rdi
mov rdx, rbx
sub rdx, rdi
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + rdx + 0x90], ax
add rcx, 2
test ax, ax
jne 0x180031d40
lea rcx, str.Identify.idn
mov r8, rbx
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rcx + r8 + 0x1090], ax
add rcx, 2
test ax, ax
jne 0x180031d70
nop word [rax + rax]
movzx eax, word [rdi]
mov word [rdi + rdx + 0x1158], ax
add rdi, 2
test ax, ax
jne 0x180031d90
lea rdi, [rbx + 0x1158]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx + 0x1090]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x180031dc0
mov qword [rbx + 0x21a8], r14
xor r8d, r8d
lea rdx, [0x1800a4614]
lea rcx, [rbx + 0x2158]
call fcn.180004cc0
xor r8d, r8d
lea rdx, [0x1800a4614]
lea rcx, [rbx + 0x2180]
call fcn.180004cc0
lea rcx, [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180031ee5
and eax, 0x10
je 0x180031ee5
lea rcx, [rbx + 0x1158]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180031ee5
shr eax, 4
not eax
and eax, 1
je 0x180031ee5
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r14
mov word [rsp + 0x38], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x1158]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 0x1158]
lea rcx, [rsp + 0x38]
call fcn.180004cc0
nop
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.18002d880
movzx edi, al
cmp qword [rsp + 0x50], 8
jb 0x180031eab
mov rcx, qword [rsp + 0x38]
call fcn.18007a7a4
test edi, edi
je 0x180031ee5
lea rdx, [rbx + 0x2158]
mov rcx, rbx
call fcn.180031f90
test eax, eax
je 0x180031ee5
lea rdx, [rbx + 0x2180]
mov rcx, rbx
call fcn.180032090
mov dword [rbx + 0x21ac], eax
mov rcx, rbx
call fcn.180032190
mov dword [rbx + 0x21a8], eax
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x180032810
Capabilities:
Get disk information via ioctl
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rax, qword [str._C:]
xor edi, edi
mov r12, rdx
mov qword [rsp + 0x60], rax
mov eax, dword [0x1800ab768]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x68], eax
movzx eax, word [0x1800ab76c]
lea r8d, [rdi + 3]
mov word [rsp + 0x6c], ax
movzx eax, word [rcx + 0x90]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], edi
mov word [rsp + 0x68], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180032a4b
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov dword [rsp + 0x28], send
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180032a42
mov r8d, dword [rsp + 0x54]
xor eax, eax
lea rdx, [0x1800a99cc]
lea rcx, [rsp + 0x70]
mov word [rsp + 0x70], di
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rbp - 0x7e], rax
mov qword [rbp - 0x76], rax
mov dword [rbp - 0x6e], eax
mov word [rbp - 0x6a], ax
call fcn.180007290
lea rcx, [rbp + 2]
xor edx, edx
mov r8d, 0x206
mov word [rbp], di
call fcn.18007e840
movzx eax, word [0x1800ab7c8]
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetServicesDiskEnum_]
movaps xmm1, xmmword [0x1800ab780]
mov word [rbp - 8], ax
lea rax, [rsp + 0x48]
lea rdx, [rbp - 0x60]
movaps xmmword [rbp - 0x60], xmm0
movaps xmm0, xmmword [0x1800ab790]
movaps xmmword [rbp - 0x50], xmm1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
movaps xmm1, xmmword [0x1800ab7a0]
movaps xmmword [rbp - 0x40], xmm0
movaps xmm0, xmmword [0x1800ab7b0]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x20], rax
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x20], xmm0
movsd xmm1, qword [0x1800ab7c0]
movsd qword [rbp - 0x10], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180032a42
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180032a42
lea edx, [rdi + 0x5c]
lea rcx, [rbp]
mov qword [rsp + 0x350], rbx
call fcn.18007b694
lea edx, [rdi + 0x26]
lea rcx, [rbp]
mov rbx, rax
call fcn.18007b694
or rcx, 0xffffffffffffffff
mov word [rax], di
xor eax, eax
lea rdi, [rbx + 2]
repne scasw ax, word [rdi]
lea rdx, [rbx + 2]
not rcx
lea r8, [rcx - 1]
mov rcx, r12
call fcn.180004cc0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x350]
mov eax, 1
jmp 0x180032a4d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.18007a7c0
mov rsi, qword [rsp + 0x358]
add rsp, 0x320
pop r12
pop rdi
pop rbp
ret
Function at 0x180033710
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x7d8]
sub rsp, 0x8d0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rdi, rcx
lea rbx, [rcx + 0x50]
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rcx, [rsp + 0x70]
call fcn.1800112e0
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov rdx, rbx
call fcn.180028930
mov rax, qword [rbx]
mov qword [rdi + 0x13c], rax
mov rax, qword [rbx + 8]
mov qword [rdi + 0x144], rax
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x14c], rax
lea rax, vtable.CEnc.0
mov qword [rbp - 0x60], rax
xor esi, esi
mov dword [rbp + 0x7b0], esi
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov dword [rbp + 0x7a8], esi
mov dword [rbp + 0x7b8], esi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18003f2f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x68]
shl ecx, 5
mov dword [rbp + 0x7bc], ecx
mov dword [rsp + 0x30], esi
lea rcx, [rsp + 0x30]
call fcn.180013330
mov ecx, dword [rsp + 0x30]
mov dword [rbp + 0x7b0], ecx
mov edx, dword [rdi + 0x4c]
lea rcx, [rbp - 0x60]
call fcn.18003f2f0
mov edx, dword [rbp + 0x7b0]
test edx, edx
jne 0x18003385b
lea rax, vtable.piy::CRijndaelEnc.0
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x20], dl
lea r9, [rbp - 0x58]
lea r8d, [rsi + 0x20]
mov rdx, rbx
mov rcx, rbx
call fcn.18006e010
nop
jmp 0x180033892
cmp edx, 1
jne 0x180033892
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x58]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x20
mov r9, rbx
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call fcn.18006c910
nop
cmp qword [rbp - 0x78], 8
jb 0x1800338a3
mov rcx, qword [rsp + 0x70]
call fcn.18007a7a4
mov al, 1
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180035450
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp dword [0x1800d9b80], 0
jne 0x18003546c
call fcn.180034ce0
mov dword [0x1800d9b80], 1
mov rax, qword [0x1800d9580]
test rax, rax
jne 0x180035491
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1800d9580], rax
test rax, rax
je 0x1800354d1
lea rdx, str.connect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d9580]
lea rdx, str.send
mov qword [0x1800d6f48], rax
mov qword [0x1800d6f50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6f58], rax
mov qword [0x1800d6f60], rax
mov rax, qword [0x1800d9588]
test rax, rax
jne 0x1800354f6
lea rcx, str.odbc32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1800d9588], rax
test rax, rax
je 0x180035514
lea rdx, str.SQLDrivers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d97b8], rax
mov qword [0x1800d97c0], rax
mov rax, qword [0x1800d9590]
test rax, rax
jne 0x180035539
lea rcx, str.dbnetlib.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1800d9590], rax
test rax, rax
je 0x180035579
lea rdx, str.ConnectionObjectSize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d9590]
lea rdx, str.ConnectionOpen
mov qword [0x1800d6f68], rax
mov qword [0x1800d97c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6f70], rax
mov qword [0x1800d97d0], rax
call fcn.1800355d0
mov rax, qword [0x1800d95a0]
test rax, rax
jne 0x1800355a3
lea rcx, [0x1800abab8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x1800d95a0], rax
test rax, rax
je 0x1800355c1
lea rdx, [0x1800ac178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d6fa0], rax
mov qword [0x1800d6fa8], rax
add rsp, 0x28
ret
Function at 0x180035670
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1800d95b8]
test rax, rax
jne 0x18003569d
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1800d95b8], rax
test rax, rax
je 0x180035795
cmp qword [0x1800d6fc0], 0
jne 0x180035795
lea rdx, str.InternetReadFileExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d95b8]
lea rdx, str.InternetReadFile
mov qword [0x1800d6fc0], rax
mov qword [0x1800d6fc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d95b8]
lea rdx, str.InternetOpenUrlW
mov qword [0x1800d6fd0], rax
mov qword [0x1800d6fd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d95b8]
lea rdx, str.HttpOpenRequestW
mov qword [0x1800d6fe0], rax
mov qword [0x1800d6fe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d95b8]
lea rdx, str.InternetCloseHandle
mov qword [0x1800d6ff0], rax
mov qword [0x1800d6ff8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d95b8]
lea rdx, str.InternetQueryDataAvailable
mov qword [0x1800d7000], rax
mov qword [0x1800d7008], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800d95b8]
lea rdx, str.InternetOpenW
mov qword [0x1800d7010], rax
mov qword [0x1800d7018], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d7020], rax
mov qword [0x1800d7028], rax
add rsp, 0x28
ret
Function at 0x1800380f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18003810c
cmp edx, 2
jbe 0x180038142
cmp edx, 3
je 0x18003810c
cmp edx, 4
je 0x180038113
cmp edx, 5
je 0x180038142
xor eax, eax
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x18003812e
mov eax, ecx
test ecx, ecx
sete cl
mov eax, ecx
add rsp, 0x28
ret
shr eax, 4
not eax
and eax, 1
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x18003a2e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r10, qword [rcx + rdx*8]
mov r13, r8
lea rbx, [r8*8]
mov rbp, rdx
mov edx, 8
mov r12, r9
mov rdi, rcx
mov dword [rsp + 0x40], 0
mov rsi, qword [r10 + rbx]
shl r13, 6
lea r9, [rsp + 0x40]
lea r8d, [rdx - 4]
lea rcx, [r10 + r13]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r11, qword [rdi + rbp*8]
lea r9, [rsp + 0x40]
mov qword [rbx + r11], r12
mov rcx, qword [rdi + rbp*8]
mov r8d, dword [rsp + 0x40]
add rcx, r13
mov edx, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x18003aba0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor edi, edi
lea rax, vtable.CEnc.0
xor edx, edx
mov qword [rcx], rax
mov dword [rcx + 0x810], edi
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov rbx, rcx
mov dword [rcx + 0x808], edi
mov dword [rcx + 0x818], edi
call fcn.18003f2f0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x48]
lea rcx, [rsp + 0x60]
shl r11d, 5
mov dword [rsp + 0x60], edi
mov dword [rbx + 0x81c], r11d
call fcn.180013330
mov r11d, dword [rsp + 0x60]
mov dword [rbx + 0x810], r11d
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x18003ff80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x120], rax
movsxd rax, dword [rcx + 0x3c]
mov rdi, rcx
mov r11, rdx
mov ecx, dword [rax + rcx + 0x88]
mov eax, dword [rax + rdi + 0x8c]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], rcx
add rcx, rdi
mov eax, dword [rcx + 0x24]
mov ebp, dword [rcx + 0x1c]
mov r10d, dword [rcx + 0x20]
mov ebx, dword [rcx + 0x18]
mov esi, dword [rcx + 0x10]
add rax, rdi
add rbp, rdi
add r10, rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rcx
test edx, 0xffff0000
je 0x18004003c
xor r9d, r9d
test ebx, ebx
jle 0x18004003c
nop word [rax + rax]
mov eax, dword [r10]
mov r8, r11
add rax, rdi
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180040023
inc rax
test ecx, ecx
jne 0x180040010
test edx, edx
je 0x18004011f
inc r9d
add r10, 4
cmp r9d, ebx
jl 0x180040000
mov rcx, qword [rsp + 0x38]
cmp r11d, esi
jb 0x180040139
mov eax, dword [rcx + 0x14]
lea ecx, [rax + rsi - 1]
cmp r11d, ecx
ja 0x180040139
sub r11d, esi
mov ebx, dword [rbp + r11*4]
mov ecx, dword [rsp + 0x30]
add rbx, rdi
lea rax, [rcx + rdi]
cmp rbx, rax
jb 0x180040134
mov eax, dword [rsp + 0x20]
add rax, rcx
add rax, rdi
cmp rbx, rax
ja 0x180040134
xor edx, edx
lea rcx, [rsp + 0x41]
mov byte [rsp + 0x40], 0
lea r8d, [rdx + 0x63]
call fcn.18007e840
xor edx, edx
lea rcx, [rsp + 0xb1]
lea r8d, [rdx + 0x63]
mov byte [rsp + 0xb0], 0
call fcn.18007e840
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x40]
mov edx, 0x2e
call fcn.180080744
test rax, rax
je 0x180040134
lea rdx, [rax + 1]
lea rcx, [rsp + 0xb0]
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, str..dll
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x180040134
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.18003ff80
jmp 0x18004013b
mov rcx, qword [rsp + 0x28]
movsxd rax, r9d
movzx ecx, word [rcx + rax*2]
mov ebx, dword [rbp + rcx*4]
jmp 0x18004005d
mov rax, rbx
jmp 0x18004013b
xor eax, eax
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18007a7c0
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop rdi
pop rsi
pop rbp
ret