joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aa070
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1400aa100
sub r8d, 1
je 0x1400aa0d1
cmp r8d, 1
jne 0x1400aa117
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400aa0f5
cmp ecx, r8d
jne 0x1400aa117
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.1400aa120
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400aa0f5
cmp ecx, 1
jne 0x1400aa117
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, VarUI2FromI4
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1400aa120
ret

Function at 0x1400aa120
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], VarUI2FromI4
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x238]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400aa17f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140088890
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400a9920
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aa330
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400aa4de
push rbp
push rdi
push r14
sub rsp, 0x30
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdi, qword [rbp + 0x1f8]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400aa379
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400aa387
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400aa395
mov byte [rax], Ordinal_33
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 + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1400aa3cf
mov byte [rcx], r15b
inc qword [rbx]
mov rdx, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x1400aa3e6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400aa3f4
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1400aa406
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400aa414
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400aa422
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400a9a60
mov rcx, qword [r14 + 0x238]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1400aa48a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140088890
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400aa1b0
mov rcx, qword [r14 + 0x238]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400aa4d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140088890
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

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

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x1f8]
cmp r8d, 1
jne 0x1400aa53e
mov r8d, dword [r9 + r11*4 + 8]
test r8d, r8d
je 0x1400aa527
sub r8d, 2
je 0x1400aa552
cmp r8d, 1
jne 0x1400aa585
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x1400aa585
mov dword [r9 + r11*4 + 0x408], 1
pop rbx
ret
mov edx, 0xfb
mov dword [r9 + r11*4 + 8], 2
mov r8d, r11d
pop rbx
jmp fcn.1400aa120
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x1400aa56b
sub ecx, 1
je 0x1400aa50e
cmp ecx, 1
jne 0x1400aa585
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x1400aa585
mov dword [r9 + r11*4 + 0x408], 0
pop rbx
ret
mov edx, 0xfc
mov dword [r9 + r11*4 + 8], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.1400aa120
pop rbx
ret
Function at 0x1400aa590
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
mov rax, qword [rcx]
mov rbx, rcx
movsxd r11, edx
mov r9, qword [rax + 0x1f8]
cmp r8d, 1
jne 0x1400aa5f8
mov r8d, dword [r9 + r11*4 + 0xc08]
test r8d, r8d
je 0x1400aa5de
sub r8d, 2
je 0x1400aa60f
cmp r8d, 1
jne 0x1400aa645
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1400aa645
mov dword [r9 + r11*4 + 0x1008], 1
pop rbx
ret
mov edx, 0xfd
mov dword [r9 + r11*4 + 0xc08], 2
mov r8d, r11d
pop rbx
jmp fcn.1400aa120
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x1400aa628
sub ecx, 1
je 0x1400aa5c5
cmp ecx, 1
jne 0x1400aa645
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x1400aa645
mov dword [r9 + r11*4 + 0x1008], 0
pop rbx
ret
mov edx, VarUI2FromI4
mov dword [r9 + r11*4 + 0xc08], 3
mov rcx, rbx
mov r8d, r11d
pop rbx
jmp fcn.1400aa120
pop rbx
ret
Function at 0x1400ab7e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1406e7d50]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x748]
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]
lea rsi, [rbx + 0x168]
mov rdx, qword [rsi]
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 0x1400ab884
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14011c9b0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x1400ab8d3
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140088890
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400ec520
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rsi
call fcn.1400ab320
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x1400ab962
sub r8d, 1
je 0x1400ab9d1
sub r8d, 1
je 0x1400ab93a
cmp r8d, 1
je 0x1400ab91a
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140248780]
call fcn.140088890
jmp 0x1400ab9d1
mov rdx, qword [rsi]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rbx
call fcn.1400ab530
test eax, eax
je 0x1400ab9d1
jmp 0x1400ab8a9
mov rcx, rsi
call fcn.1400ab300
movzx r8d, ax
lea rdx, [0x1403f5a7c]
mov dword [rbx + 8], r8d
mov rcx, rdi
mov r8, qword [rsi]
add r8, 4
call fcn.140088990
jmp 0x1400ab9d1
cmp r9d, 4
jle 0x1400ab9d1
mov rcx, rsi
call fcn.1400ab300
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x1400ab9d1
mov r8, qword [rsi]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r14
call fcn.140088760
mov esi, eax
test eax, eax
je 0x1400ab9b0
mov edx, 5
mov rcx, rbx
call fcn.1400ac280
mov eax, esi
jmp 0x1400ab8a9
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400961c0
mov rcx, r14
call fcn.1400964f0
test eax, eax
je 0x1400ab8a7
mov edx, 5
mov rcx, rbx
call fcn.1400ac280
mov eax, Ordinal_46
jmp 0x1400ab8a9
Function at 0x1400afab0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1406e7d50]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140162510
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400afb16
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400afb16
lea rcx, [rsp + 0x20]
call qword [case.0x14007ecb6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ec520
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ec520
add rsp, 0x148
ret
jmp 0x1400afab0

Function at 0x1400afb30
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1406e7d50]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140162510
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400afb16
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400afb16
lea rcx, [rsp + 0x20]
call qword [case.0x14007ecb6.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ec520
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ec520
add rsp, 0x148
ret
jmp 0x1400afab0

Function at 0x1400b8870
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400b8890
test rbx, rbx
je 0x1400b88aa
lea rcx, [rbx + rbx]
call qword [fcn.14015301c]
jmp 0x1400b88b7
lea rcx, [0x14069df3a]
call qword [case.0x14007ecb6.0]
mov rdi, rax
test rax, rax
jne 0x1400b88c7
lea eax, [rdi + 0x1b]
jmp 0x1400b8983
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.1400b89a0
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400b8970
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400b8963
mov rcx, qword [rsp + 0x30]
lea r8d, [rbx + rbx]
xor r9d, r9d
mov dword [rsp + 0x68], reloc.WS2_32.dll_recv
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
mov r8, rbp
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, rdi
mov dword [rbp + 0x10], eax
mov byte [rbp + 0x14], al
call qword [fcn.140153014]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400b89d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1406e7d50]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400b8aa1
xor eax, eax
lea rdx, [rsp + 0x64]
mov qword [rsp + 0x58], rax
mov rcx, rsi
mov qword [rsp + 0x60], rax
mov word [rsp + 0x58], 0x208
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x68], eax
call fcn.1400b8b20
lea rcx, [rsp + 0x64]
mov edx, 8
call fcn.1400bb280
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], 0
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1400b8aa5
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1400b8aef
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400ec520
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400bb350
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.14015301c]
mov rdi, rax
test rax, rax
jne 0x1400bb392
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 0x1400bb3d5
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 ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400bb432
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 0x1400bb3f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400bb473
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1404018fa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1404018fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400bb440
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 0x1400f1da8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400f1dbb
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400f2ea4
lea rdx, [0x1406e0d00]
lea rcx, [rsp + 0x20]
call fcn.14011cde8
int3

Function at 0x140100b48
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1406f6410]
xor edx, edx
jmp fcn.1400f1da8

Function at 0x140102658
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1406f6410]
jmp fcn.1400f1da8

Function at 0x140161018
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140161038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140129110
or eax, 0xffffffff
jmp 0x14016103a
xor eax, eax
add rsp, 0x28
ret
Function at 0x14016af34
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14016ac6c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016ac6c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016ac6c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016ac6c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016ac6c
cmp dword [rcx + 0x84], 0xe
jbe 0x14016ac6c
cmp dword [rcx + 0xf8], esi
je 0x14016ac6c
mov ecx, r14d
call fcn.14016ae3c
mov ecx, 2
call fcn.140164368
nop
cmp byte [0x1406f6970], 0
jne 0x14016ad36
mov r15d, 1
mov eax, r15d
xchg dword [0x1406f6960], eax
test ebx, ebx
jne 0x14016acdf
mov rdi, qword [0x1406e7d50]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1406f6968]
cmp rcx, rax
je 0x14016acd6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x1402461b0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1406f6cc0]
jmp 0x14016aceb
cmp ebx, r15d
jne 0x14016acf1
lea rcx, [0x1406f6cd8]
call fcn.14016ca24
nop
test ebx, ebx
jne 0x14016ad08
lea rdx, [0x140246570]
lea rcx, [0x140246548]
call fcn.14016d06c
lea rdx, [0x140246580]
lea rcx, [0x140246578]
call fcn.14016d06c
movzx eax, byte [0x1406f6970]
test esi, esi
cmove eax, r15d
mov byte [0x1406f6970], al
jmp 0x14016ad36
mov ecx, 2
call fcn.1401643bc
test esi, esi
jne 0x14016ad4d
mov ecx, r14d
call fcn.14016ad68
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14016abfc
Function at 0x140177a08
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140177630
call fcn.140129180
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140128fd4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140177618
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140177618
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140177662
lock or dword [rax + 0x14], 0x10
jmp 0x140177618
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14017767f
mov rcx, qword [rbp + 0x10]
call fcn.140178070
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140174308
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14016f94c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401776d6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140177618
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140177742
mov rcx, qword [rbp + 0x10]
call fcn.140174308
cmp eax, 0xffffffff
je 0x140177729
mov rcx, qword [rbp + 0x10]
call fcn.140174308
cmp eax, 0xfffffffe
je 0x140177729
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140174308
movsxd rdi, eax
lea rsi, [0x1406f73a0]
mov rcx, rbx
sar rdi, 6
call fcn.140174308
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140177730
lea rax, [0x1406e8330]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140177742
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140177778
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140177774
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140177774
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14017761b
jmp 0x1401775e8
Function at 0x140177a10
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401777e2
call fcn.140129180
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.140128fd4
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401777c4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401777c4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140177814
lock or dword [rax + 0x14], 0x10
jmp 0x1401777c4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140177831
mov rcx, qword [rbp + 0x20]
call fcn.140178070
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140177846
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14017784c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140174308
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14016f94c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14017789f
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1401777c4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14017790b
mov rcx, qword [rbp + 0x20]
call fcn.140174308
cmp eax, 0xffffffff
je 0x1401778f2
mov rcx, qword [rbp + 0x20]
call fcn.140174308
cmp eax, 0xfffffffe
je 0x1401778f2
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.140174308
movsxd rdi, eax
lea r15, [0x1406f73a0]
mov rcx, rbx
sar rdi, 6
call fcn.140174308
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1401778f9
lea rax, [0x1406e8330]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14017790b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140177941
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14017793d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14017793d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14017795f
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14017796a
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1401777c9
jmp 0x140177790