joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400528c8
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.14005fc60
sub rsp, rax
mov rax, qword [0x14008a028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004f2c8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140052917
mov rax, rbp
jmp 0x140052a1f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xe2e90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400544a0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe2e90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140052a1b
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 0x140052a1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400544a0
test rax, rax
js 0x140052a1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140052a1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140052a0d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140052a0d
cmp byte [rcx], 0xd
jne 0x1400529f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140052a02
cmp byte [rcx + 1], 0xa
jne 0x140052a02
inc rcx
jmp 0x140052a02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8a470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400529d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140052a1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005fbb0
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 0x14005381c
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, [0x1400e2e90]
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 0x14005387a
cmp word [rdx], r12w
jne 0x14005387a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140053880
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400539db
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400539b6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400538b9
mov rcx, r9
jmp 0x1400538dc
cmp r9, rdx
jae 0x1400538f3
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, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14005389d
jmp 0x1400539db
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 0x1400539b0
cmp dword [rsp + 0x80], edi
je 0x1400539b0
mov rdx, r14
lea r11, [0x1400e2e90]
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 0x140053989
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14005395c
mov word [rbx], r12w
jmp 0x1400539d7
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 0x140053965
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400539d7
cmp word [rsp + 0x70], r12w
jne 0x140053996
cmp rbx, rsi
je 0x140053956
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400544a8
cmp word [rsp + 0x70], r12w
je 0x1400539db
mov word [rbx], r13w
jmp 0x1400539d7
lea r11, [0x1400e2e90]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400539d3
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400539db
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
Function at 0x140055ec8
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 0x140055ef8
xor eax, eax
jmp 0x140055fbb
mov rbp, rbx
cmp word [rax], si
je 0x140055f1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140055f04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140055f00
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.140055e18
movsxd r14, eax
test eax, eax
jne 0x140055f5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140055ef1
mov rcx, r14
call fcn.14004d6f0
mov rdi, rax
test rax, rax
jne 0x140055f74
xor ecx, ecx
call fcn.14004d6b4
jmp 0x140055f50
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.140055e18
test eax, eax
jne 0x140055fa5
mov rcx, rdi
call fcn.14004d6b4
jmp 0x140055faf
xor ecx, ecx
call fcn.14004d6b4
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 0x140055fd8
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 0x14005605f
mov rsi, rbx
cmp word [rax], bp
je 0x14005601e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140056008
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140056004
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004d6f0
mov rdi, rax
test rax, rax
je 0x14005604c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140037140
mov rbp, rdi
xor ecx, ecx
call fcn.14004d6b4
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 0x14005df78
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.14003b6e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005e002
cmp byte [rbp - 0x21], r15b
je 0x14005dffd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005e038
call fcn.14004e9d0
test eax, eax
jne 0x14005e024
cmp byte [rbp - 0x21], r15b
je 0x14005e01c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005e038
cmp byte [rbp - 0x21], r15b
je 0x14005e035
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.14004a7e8
test eax, eax
jne 0x14005e0d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003b6e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005e077
cmp byte [rbp - 0x21], r15b
je 0x14005e0ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005e0ac
call fcn.14004e9d0
test eax, eax
jne 0x14005e098
cmp byte [rbp - 0x21], r15b
je 0x14005e091
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005e0ac
cmp byte [rbp - 0x21], r15b
je 0x14005e0a9
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.14004a7e8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005e0d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005e0db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005e0e9
mov rcx, rdi
call fcn.14004d6b4
cmp byte [rbp + 0x3f], r15b
je 0x14005e0f8
mov rcx, qword [rbp + 0x27]
call fcn.14004d6b4
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 0x14005f590
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400544a8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400544a8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005f6e0
cmp rax, 0xffffffffffffffff
je 0x14005f6e0
xor edi, edi
test rbp, rbp
jle 0x14005f68b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004d63c
mov rbx, rax
test rax, rax
jne 0x14005f618
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005f681
mov edx, 0x8000
mov ecx, r14d
call fcn.140041e4c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400508a4
cmp eax, 0xffffffff
je 0x14005f661
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005f628
mov edx, r15d
mov ecx, r14d
call fcn.140041e4c
jmp 0x14005f681
cmp byte [rsi + 0x38], dil
je 0x14005f678
cmp dword [rsi + 0x34], 5
jne 0x14005f678
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005f681
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004d6b4
jmp 0x14005f6f4
jns 0x14005f6f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400544a8
cmp rax, 0xffffffffffffffff
jne 0x14005f6ac
cmp byte [rsi + 0x30], dil
je 0x14005f6f4
mov edi, dword [rsi + 0x2c]
jmp 0x14005f6f4
mov ecx, r14d
call fcn.140056e00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005f6f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005f6f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005f6ed
mov eax, dword [rsi + 0x2c]
jmp 0x14005f6f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400544a8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140066838
Capabilities:
Resolve function by parsing pe exports

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 r12
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x1400668ad
movzx eax, word [r12 + rbx*2]
lea rdx, str.Main
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400668ce
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140066882
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 rax, rbp
jmp 0x1400668af

Function at 0x140066f34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10, rdx
mov r9, rcx
test rcx, rcx
je 0x140066fb5
test rdx, rdx
je 0x140066fb5
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov edx, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rdx, rcx
mov ebp, dword [r8 + 0x18]
add rsi, rcx
xor ecx, ecx
test ebp, ebp
je 0x140066fb5
mov eax, dword [rdx]
mov rbx, r10
add rax, r9
sub rbx, rax
movzx r8d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r8d, r11d
jne 0x140066fa6
inc rax
test r11d, r11d
jne 0x140066f90
test r8d, r8d
je 0x140066fcc
inc ecx
add rdx, 4
cmp ecx, ebp
jb 0x140066f85
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x140066fb7

Function at 0x1400671d0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x14006720c
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14003679c
test rax, rax
jne 0x140067223
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400671f8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x140067213
Function at 0x1400692dc
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov rcx, rbx
mov dword [rbx + 0x50], 0x6a09e667
mov dword [rbx + 0x54], 0xbb67ae85
mov dword [rbx + 0x58], 0x3c6ef372
mov dword [rbx + 0x5c], 0xa54ff53a
mov dword [rbx + 0x60], 0x510e527f
mov dword [rbx + 0x64], 0x9b05688c
mov dword [rbx + 0x68], 0x1f83d9ab
mov dword [rbx + 0x6c], 0x5be0cd19
call fcn.140067534
mov rdx, rdi
mov rcx, rbx
call fcn.1400672c8
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140002520
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, r8
xor ebx, ebx
mov rbp, r9
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x30], rbx
mov r14d, 1
xor r9d, r9d
mov rcx, rax
mov edx, 0x80000000
mov r8d, r14d
mov dword [rsp + 0x28], 0x80
mov edi, ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002612
lea r9d, [rbx + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [rsp + 0x40]
xor edx, edx
call fcn.14000e210
mov rdi, rax
test rax, rax
je 0x140002612
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002612
mov rax, qword [rsp + 0x90]
mov r9d, dword [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x20], rbp
call fcn.140002660
test eax, eax
cmovne ebx, r14d
test rsi, rsi
je 0x140002620
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14000263a
mov rcx, qword [0x14001e780]
mov r8, rdi
mov edx, 8
call qword [0x14001e798]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140005260
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x850
mov r14, rcx
mov rcx, qword [str._YQ09LoK9Tc1]
xor ebp, ebp
lea rdx, [rsp + 0x50]
mov ebx, ebp
mov qword [rsp + 0x8a8], rbx
call fcn.14000deb0
movzx eax, byte [rsp + 0x50]
lea r11, [rsp + 0x50]
lea rdx, [rsp + 0x450]
test al, al
je 0x1400052c6
nop dword [rax + rax]
movsx eax, al
inc r11
add rdx, 2
mov word [rdx - 2], ax
movzx eax, byte [r11]
test al, al
jne 0x1400052b0
xor r9d, r9d
mov word [rdx], bp
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x450]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x898], ebp
mov rsi, rbp
mov r12d, ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
mov edi, 2
cmp rax, 0xffffffffffffffff
je 0x1400053ba
mov r9d, edi
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x898], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r11d, dword [rsp + 0x898]
test r11d, r11d
jne 0x140005353
lea r12d, [rdi - 1]
jmp 0x1400053b1
mov rcx, r11
xor edx, edx
call fcn.14000e210
mov rsi, rax
test rax, rax
je 0x1400053b1
mov r8d, dword [rsp + 0x898]
lea r9, [rsp + 0x898]
mov rdx, rax
mov rcx, r13
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005392
mov r12d, 1
jmp 0x1400053b1
mov rcx, qword [0x14001e780]
mov r8, rsi
mov edx, 8
call qword [0x14001e798]
mov rsi, rbp
mov dword [rsp + 0x898], ebp
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x898]
mov qword [rsp + 0x8a0], rsi
mov qword [rsp + 0x40], rax
test r12d, r12d
jne 0x140005465
lea rcx, [rsp + 0x8a8]
call fcn.14000bc60
mov rbx, qword [rsp + 0x8a8]
test rbx, rbx
je 0x140005498
mov rcx, rbx
cmp word [rbx], bp
je 0x140005408
nop dword [rax]
add rcx, rdi
cmp word [rcx], bp
jne 0x140005400
cmp rcx, rbx
jbe 0x140005498
test edi, edi
je 0x140005428
sub rcx, 2
cmp word [rcx], 0x5c
jne 0x140005421
dec edi
cmp rcx, rbx
ja 0x140005411
jmp 0x140005498
cmp rcx, rbx
jbe 0x140005498
lea rdx, [rsp + 0x450]
add rcx, 2
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x8a0]
mov rcx, rbx
call fcn.14000cc90
mov rsi, qword [rsp + 0x8a0]
test eax, eax
je 0x140005498
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x140005498
test rsi, rsi
je 0x1400054b2
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x140005493
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x14000548f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14 + 0x28], rdi
mov ebp, 1
test rsi, rsi
je 0x1400054b2
mov rcx, qword [0x14001e780]
mov r8, rsi
mov edx, 8
call qword [0x14001e798]
test rbx, rbx
je 0x1400054cc
mov rcx, qword [0x14001e780]
mov r8, rbx
mov edx, 8
call qword [0x14001e798]
mov eax, ebp
add rsp, 0x850
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006c50
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x2c0
xor edi, edi
lea rdx, [rsp + 0x120]
mov ecx, 0x202
lea ebx, [rdi + 1]
mov qword [rsp + 0x2d8], rdi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140006c93
mov r8, qword [rsp + 0x2d8]
mov ebx, 0x80004005
jmp 0x140006d50
lea rcx, [rsp + 0x20]
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140006cb9
mov r8, qword [rsp + 0x2d8]
mov ebx, 0x80004005
jmp 0x140006d50
lea r9, [rsp + 0x2d8]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r8, qword [rsp + 0x2d8]
test eax, eax
je 0x140006ce4
mov ebx, 0x80004005
jmp 0x140006d50
mov rdx, r8
test r8, r8
je 0x140006d5e
nop dword [rax]
cmp dword [rdx + 4], 2
jne 0x140006d47
mov rax, qword [rdx + 0x20]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x2d0], ecx
cmp cl, 0xa
jne 0x140006d0d
mov ebx, edi
jmp 0x140006d47
cmp cl, 0xac
jne 0x140006d24
movzx eax, byte [rsp + 0x2d1]
sub al, 0x10
cmp al, 0xf
ja 0x140006d47
mov ebx, edi
jmp 0x140006d47
cmp cl, 0xc0
jne 0x140006d37
cmp byte [rsp + 0x2d1], 0xa8
jne 0x140006d47
mov ebx, edi
jmp 0x140006d47
cmp cl, 0xa9
jne 0x140006d47
cmp byte [rsp + 0x2d1], 0xfe
cmove ebx, edi
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x140006cf0
test r8, r8
je 0x140006d5e
mov rcx, r8
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2c0
pop rdi
ret
Function at 0x140007000
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor edi, edi
mov r12, r9
mov rbp, rcx
mov r13, r8
mov esi, edx
lea rcx, [rax - 0x30]
lea r9d, [rdi + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], rdi
mov dword [rax + 0x18], edi
mov dword [rax + 0x20], edi
mov ebx, edi
mov dword [rax - 0x48], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000711b
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14000711b
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000711b
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x80]
lea edx, [rdi + 4]
mov dword [rsp + 0x88], 4
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000711b
mov ecx, dword [rsp + 0x80]
xor edx, edx
call fcn.14000e210
mov rbx, rax
test rax, rax
je 0x14000711b
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x80]
lea edx, [rdi + 2]
mov r8, rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140007106
mov edi, 1
jmp 0x14000711b
mov rcx, qword [0x14001e780]
mov r8, rbx
mov edx, 8
call qword [0x14001e798]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000712b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000713d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [rsp + 0x80]
mov qword [r13], rbx
mov rbx, qword [rsp + 0x70]
mov dword [r12], ecx
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007160
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor r13d, r13d
mov rsi, r8
lea rax, [r11 + 8]
mov qword [r11 - 0x28], r13
mov rdi, r9
mov dword [r9], r13d
mov qword [r11 - 0x30], r13
lea r8d, [r13 + 1]
xor r9d, r9d
mov ebp, edx
mov r12, rcx
mov dword [r11 + 8], r13d
mov qword [r11 - 0x38], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x140007218
mov ecx, dword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x68], rbx
call fcn.14000e210
mov rbx, rax
test rax, rax
je 0x140007201
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r13
mov r9, rbx
mov r8d, 7
mov edx, ebp
mov rcx, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
jne 0x140007205
mov rcx, qword [0x14001e780]
lea edx, [rax + 8]
mov r8, rbx
call qword [0x14001e798]
xor eax, eax
jmp 0x140007213
mov ecx, dword [rsp + 0x60]
mov qword [rsi], rbx
mov eax, 1
mov dword [rdi], ecx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret