joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180054100
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1a8]
cmp dword [rax + 0x10], 0
je 0x180054138
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0xa90], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180054250
cmp byte [rcx + 0xf66], 0
je 0x180054150
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180054c40
cmp byte [rcx + 0xf69], 0
je 0x1800541f1
mov r8, qword [rbx + 0xa60]
test r8, r8
jne 0x1800541ab
mov r8, qword [rcx + 0xc30]
test r8, r8
jne 0x18005418e
cmp byte [rcx + 0xf65], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x9d8]
lea rdx, str.PRET__s
call fcn.18006bec0
test eax, eax
je 0x1800541e1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xf75], 0
lea rcx, [rbx + 0x9d8]
je 0x1800541d1
lea rdx, str.PRET_STOR__s
call fcn.18006bec0
test eax, eax
je 0x1800541e1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.18006bec0
test eax, eax
jne 0x1800541fe
mov dword [rbx + 0xa90], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180054bb0
add rsp, 0x20
pop rbx
ret

Function at 0x180054540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 0
je 0x18005458d
cmp qword [rcx + 0xa60], 0
je 0x18005458d
add rcx, 0x9d8
lea rdx, str.REST__d
xor r8d, r8d
call fcn.18006bec0
test eax, eax
jne 0x180054597
mov dword [rbx + 0xa90], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.180054100
add rsp, 0x20
pop rbx
ret

Function at 0x180054720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x9d8
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 1
jne 0x18005476c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x18005476c
lea rdx, str.SIZE__s
call fcn.18006bec0
test eax, eax
jne 0x180054779
mov dword [rbx + 0xa90], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180054540
add rsp, 0x20
pop rbx
ret

Function at 0x180054780
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf74], 0
je 0x1800547d8
cmp qword [rcx + 0xa60], 0
je 0x1800547d8
cmp byte [r9 + 0xf63], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xa80]
cmp eax, edx
je 0x1800547d8
mov rax, qword [r9 + 0x1a8]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf63]
jmp fcn.180053020
jmp fcn.180054720
Function at 0x1800547e0
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x180054815
lea rdx, str.Couldnt_set_desired_mode
call fcn.1800360b0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x18005482c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.180036230
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x180054848
mov rcx, rdi
call fcn.180054720
jmp 0x180054982
cmp esi, 0x14
jne 0x180054964
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xbc8], 2
jne 0x1800548cc
mov rax, qword [rsi + 0x1a8]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800548cc
mov dword [rsp + 0x28], 3
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.18004c2b0
test eax, eax
jne 0x180054982
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.18007188c
test rax, rax
je 0x1800548c1
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1800548cc
mov rcx, qword [rsp + 0x50]
call qword [fcn.180080cc8]
mov rdx, qword [rsi + 0xc30]
test rdx, rdx
jne 0x1800548f0
cmp byte [rsi + 0xf65], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1800bf638]
test rbp, rbp
mov r9, r8
lea rax, [0x1800a5234]
cmovne r9, rbp
lea rcx, [0x1800a5908]
cmovne r8, rax
call fcn.180045f50
mov rcx, rbp
mov r14, rax
call qword [fcn.180080cc8]
test r14, r14
jne 0x18005492f
lea ebx, [r14 + 0x1b]
jmp 0x180054984
lea rcx, [rdi + 0x9d8]
mov r8, r14
lea rdx, [0x1800aa0f0]
call fcn.18006bec0
mov rcx, r14
mov esi, eax
call qword [fcn.180080cc8]
test esi, esi
je 0x180054958
mov ebx, esi
jmp 0x180054984
mov dword [rdi + 0xa90], 0x1f
jmp 0x180054984
cmp esi, 0x15
jne 0x18005496f
lea r8d, [rsi - 8]
jmp 0x180054978
cmp esi, 0x16
jne 0x180054984
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.180054250
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18005a71f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800360b0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.18005a250
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18005a8d0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x18005aa78
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1a8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x18005a935
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x18005a935
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x18005a935
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x18005a96c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x18005a9c2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18005a9c2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18005a9c2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18005a9c2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x18005a9c2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.18005a380
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x18005aa24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800360b0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.18005a750
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18005aa70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800360b0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x18005c1e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1800cc010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x9d8]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x18005c275
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.180072050
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x18005c2d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800360b0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18000b1f0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x18005c391
sub ecx, 1
je 0x18005c404
sub ecx, 1
je 0x18005c340
cmp ecx, 1
je 0x18005c323
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800aa0f0]
call fcn.1800360b0
jmp 0x18005c404
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.18005bf10
test eax, eax
je 0x18005c404
jmp 0x18005c2aa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.1800727c0
test rax, rax
je 0x18005c404
sub rax, rsi
cmp rax, rbp
jae 0x18005c404
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.180036230
jmp 0x18005c404
cmp r8d, 4
jle 0x18005c404
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x18005c404
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.180035fd0
mov esi, eax
test eax, eax
je 0x18005c3e3
mov edx, 5
mov rcx, rbx
call fcn.18005ced0
mov eax, esi
jmp 0x18005c2aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.180043770
mov rcx, r14
call fcn.180043a50
test eax, eax
je 0x18005c2a8
mov edx, 5
mov rcx, rbx
call fcn.18005ced0
mov eax, Ordinal_45
jmp 0x18005c2aa
Function at 0x180070620
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.180081bf4]
mov rdi, rax
test rax, rax
jne 0x180070662
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1800706a9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x180070702
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1800706c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x180070743
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800b144a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800b144b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180070710
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x18007e188
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x18007e165
call fcn.180080ca8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.180080adc
or eax, 0xffffffff
jmp 0x18007e182
sub dword [rcx + 0x10], 1
jns 0x18007e174
add rsp, 0x28
jmp fcn.1800901b8
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x18007e144
Function at 0x18008c218
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18009ddf0
sub rsp, rax
mov rax, qword [0x1800cc010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008eca4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18008c267
mov rax, rbp
jmp 0x18008c36f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd01d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008e6c0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd01d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18008c36b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008c36b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008e6c0
test rax, rax
js 0x18008c36b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18008c36b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18008c35d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18008c35d
cmp byte [rcx], 0xd
jne 0x18008c343
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18008c352
cmp byte [rcx + 1], 0xa
jne 0x18008c352
inc rcx
jmp 0x18008c352
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xccac0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18008c325
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18008c36f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000b1f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18008daec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1800cc010]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1800b53d0]
mov rbp, rcx
call fcn.180097688
xor edi, edi
test rax, rax
je 0x18008dbd2
mov ebx, edi
call fcn.180080ca8
mov r14d, dword [rax]
call fcn.180080ca8
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.1800975d4
mov rsi, rax
test rax, rax
je 0x18008db63
call fcn.180080ca8
mov dword [rax], r14d
jmp 0x18008db8d
call fcn.180080ca8
cmp dword [rax], 0x22
jne 0x18008dbca
call fcn.180080ca8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1800975d4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18008dbca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x18008db91
cmp rax, 3
je 0x18008dbac
mov rcx, rsi
call fcn.18008da48
test al, al
je 0x18008dbbd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x18008dbbd
mov dil, 1
mov rcx, rbx
call fcn.180080cc8
mov al, dil
jmp 0x18008dbd4
mov rcx, rbx
call fcn.180080cc8
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18000b1f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800901b8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1800901ea
call fcn.180080ca8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.180080adc
jmp 0x180090309
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180090309
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x180090309
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x180090219
lock or dword [rcx + 0x14], 0x10
jmp 0x180090309
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18009022d
call fcn.180097fc4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18008eca4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180095d88
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800902f7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800902c2
mov rcx, rsi
call fcn.18008eca4
cmp eax, edi
je 0x1800902ad
mov rcx, rsi
call fcn.18008eca4
cmp eax, 0xfffffffe
je 0x1800902ad
mov rcx, rsi
call fcn.18008eca4
movsxd rbx, eax
lea r14, [0x1800d01d0]
mov rcx, rsi
sar rbx, 6
call fcn.18008eca4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800902b4
lea rdx, [0x1800cc520]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800902c2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800902e6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800902e6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800902e6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18009030c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1800936b8
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 0x1800936e8
xor eax, eax
jmp 0x1800937ab
mov rbp, rbx
cmp word [rax], si
je 0x18009370d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800936f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800936f0
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.180093608
movsxd r14, eax
test eax, eax
jne 0x18009374b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800936e1
mov rcx, r14
call fcn.180090324
mov rdi, rax
test rax, rax
jne 0x180093764
xor ecx, ecx
call fcn.18008fe00
jmp 0x180093740
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.180093608
test eax, eax
jne 0x180093795
mov rcx, rdi
call fcn.18008fe00
jmp 0x18009379f
xor ecx, ecx
call fcn.18008fe00
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 0x1800937c8
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 0x18009384f
mov rsi, rbx
cmp word [rax], bp
je 0x18009380e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800937f8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800937f4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180090324
mov rdi, rax
test rax, rax
je 0x18009383c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180072050
mov rbp, rdi
xor ecx, ecx
call fcn.18008fe00
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 0x1800958dc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800d01d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18009593a
cmp word [rdx], r12w
jne 0x18009593a
or byte [rax + r8*8 + 0x38], cl
jmp 0x180095940
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180095a9b
mov r9d, reloc.WLDAP32.dll_Ordinal_26
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180095a76
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180095979
mov rcx, r9
jmp 0x18009599c
cmp r9, rdx
jae 0x1800959b3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, reloc.WLDAP32.dll_Ordinal_26
add rbx, 2
cmp rcx, rdx
jb 0x18009595d
jmp 0x180095a9b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180095a70
cmp dword [rsp + 0x80], edi
je 0x180095a70
mov rdx, r14
lea r11, [0x1800d01d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180095a49
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180095a1c
mov word [rbx], r12w
jmp 0x180095a97
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180095a25
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180095a97
cmp word [rsp + 0x70], r12w
jne 0x180095a56
cmp rbx, rsi
je 0x180095a16
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18008e6c8
cmp word [rsp + 0x70], r12w
je 0x180095a9b
mov word [rbx], r13w
jmp 0x180095a97
lea r11, [0x1800d01d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180095a93
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180095a9b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret