joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180040120
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x1800402b3
mov dword [rsp + 0x20], 0
jmp 0x180040173
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x1800402b3
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009bbd4]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
je 0x1800401c8
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009bbe4]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
jne 0x1800401ca
jmp 0x180040168
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x180040219
jmp 0x18004021e
call fcn.180033f70
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x180040246
xor eax, eax
jmp 0x1800402b5
lea rcx, [rsp + 0x40]
call fcn.180076de0
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.180065930
test eax, eax
jne 0x1800402ae
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d10
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076c70
mov eax, 1
jmp 0x1800402b5
jmp 0x180040168
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180033640
add rsp, 0x2c8
ret

Function at 0x1800402e0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18004033c
xor eax, eax
jmp 0x180040399
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x180040364
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180040399
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.180040120
test eax, eax
jne 0x180040389
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180040399
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180033640
add rsp, 0x150
pop rdi
ret
Function at 0x180040f40
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x58]
and ax, 1
movzx eax, ax
test eax, eax
je 0x180040f90
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30c]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30e]
imul eax, ecx
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30d]
add eax, ecx
jmp 0x18004112a
mov cl, 4
call fcn.18003d030
test eax, eax
jne 0x180040fa5
mov eax, 0xfffffff6
jmp 0x18004112a
lea rdx, [0x1800b98d8]
mov rcx, qword [rsp + 0x48]
call fcn.18003ffc0
test eax, eax
jne 0x180040fc4
mov eax, 0xfffffff5
jmp 0x18004112a
mov eax, dword [0x1800b98d8]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x20]
mov word [rax + 0x31c], cx
mov rax, qword [rsp + 0x40]
movzx ecx, word [rsp + 0x22]
mov word [rax + 0x31e], cx
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180043200
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180044f20
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30e]
test eax, eax
je 0x180041036
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30f]
test eax, eax
jne 0x180041053
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180043270
mov eax, 0xfffffff4
jmp 0x18004112a
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call fcn.1800432f0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, 0x1388
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xf0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180041112
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x58]
or ax, 1
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0x58], ax
cmp qword [0x1800b72b8], 0xffffffffffffffff
jne 0x1800410e7
mov r8, qword [rsp + 0x40]
xor edx, edx
lea rcx, [0x180041520]
call fcn.180077ec0
mov qword [0x1800b72b8], rax
mov edx, 0xffffffff
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xf0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x30c]
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30e]
imul eax, ecx
mov rcx, qword [rsp + 0x40]
movzx ecx, byte [rcx + 0x30d]
add eax, ecx
jmp 0x18004112a
mov rax, qword [rsp + 0x40]
add rax, 0x28c
mov rcx, rax
call fcn.180043270
mov eax, 0xffffff9c
add rsp, 0x38
ret
Function at 0x180042610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x90], 0
je 0x180042694
movzx eax, byte [0x1800b72b8]
mov byte [rsp], al
mov dword [rsp + 4], 0
jmp 0x180042651
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
movzx eax, word [rsp + 0x30]
cmp dword [rsp + 4], eax
jge 0x180042686
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp]
xor eax, ecx
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 0x90]
mov byte [rdx + rcx], al
jmp 0x180042647
mov rax, qword [rsp + 0x20]
movzx ecx, word [rsp + 0x30]
mov word [rax + 0x2a], cx
add rsp, 0x18
ret

Function at 0x180043200
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0xffffffffffffffff
je 0x180043217
jmp 0x180043262
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x10], rax
mov r8, qword [rsp + 0x30]
xor edx, edx
lea rcx, [0x1800433c0]
call fcn.180077ec0
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 0
jne 0x180043262
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18004324c
add rsp, 0x28
ret
Function at 0x1800440f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x180044283
mov dword [rsp + 0x20], 0
jmp 0x180044143
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x180044283
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009c4a0]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
je 0x180044198
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009c4a4]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
jne 0x18004419a
jmp 0x180044138
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x1800441e9
jmp 0x1800441ee
call fcn.180033f70
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x180044216
xor eax, eax
jmp 0x180044285
lea rcx, [rsp + 0x40]
call fcn.180076de0
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.180065930
test eax, eax
jne 0x18004427e
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d10
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076c70
mov eax, 1
jmp 0x180044285
jmp 0x180044138
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180033640
add rsp, 0x2c8
ret

Function at 0x1800442b0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18004430c
xor eax, eax
jmp 0x180044369
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x180044334
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180044369
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.1800440f0
test eax, eax
jne 0x180044359
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180044369
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180033640
add rsp, 0x150
pop rdi
ret
Function at 0x180044430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x328
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x300], 0x19db
mov dword [rsp + 0x304], 0x4eb
mov dword [rsp + 0x308], 0x23dd
mov dword [rsp + 0x30c], 0xb47
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x40]
call fcn.180036c00
nop
lea rax, [rsp + 0x30]
lea rcx, [0x18009c470]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180037d80
mov rcx, qword [rsp + 0x340]
call fcn.1800443d0
mov rcx, qword [rsp + 0x340]
call fcn.180076de0
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f5a0
mov rcx, qword [rsp + 0x340]
call fcn.180044390
test eax, eax
jne 0x1800445ba
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fc40
mov rdx, qword [rsp + 0x340]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsp + 0x340]
call fcn.180076de0
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
mov byte [rcx + rax], 0x5c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f5a0
mov rcx, qword [rsp + 0x340]
call fcn.180044390
test eax, eax
jne 0x1800445ba
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fc40
nop
lea rcx, [rsp + 0x40]
call fcn.180037bb0
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.180033640
add rsp, 0x328
pop rdi
pop rsi
ret
Function at 0x180044f20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x140
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0xff
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call fcn.180044430
lea rax, [rsp + 0x30]
test rax, rax
je 0x180045023
lea rdx, [0x18009c468]
lea rcx, [rsp + 0x30]
call fcn.1800651e8
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180045023
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1800671c0
mov rcx, qword [rsp + 0x20]
call fcn.180067884
mov rcx, qword [rsp + 0x150]
mov dword [rcx + 0x8c], eax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x18]
add rax, 0x100
mov rcx, qword [rsp + 0x150]
mov qword [rcx + 0x84], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1800671c0
mov rax, qword [rsp + 0x150]
movsxd rax, dword [rax + 0x8c]
mov r9, qword [rsp + 0x20]
mov r8, rax
mov edx, 1
mov rax, qword [rsp + 0x150]
mov rcx, qword [rax + 0x84]
call fcn.1800654ac
mov rcx, qword [rsp + 0x20]
call fcn.180064c44
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x84], 0
je 0x180045042
mov rcx, qword [rsp + 0x150]
call fcn.180044cd0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180033640
add rsp, 0x140
pop rdi
ret
Function at 0x180047570
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x180047703
mov dword [rsp + 0x20], 0
jmp 0x1800475c3
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x180047703
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009c73c]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
je 0x180047618
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009c740]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
jne 0x18004761a
jmp 0x1800475b8
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x180047669
jmp 0x18004766e
call fcn.180033f70
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x180047696
xor eax, eax
jmp 0x180047705
lea rcx, [rsp + 0x40]
call fcn.180076de0
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.180065930
test eax, eax
jne 0x1800476fe
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d10
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076c70
mov eax, 1
jmp 0x180047705
jmp 0x1800475b8
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180033640
add rsp, 0x2c8
ret

Function at 0x180047730
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18004778c
xor eax, eax
jmp 0x1800477e9
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x1800477b4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800477e9
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.180047570
test eax, eax
jne 0x1800477d9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800477e9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180033640
add rsp, 0x150
pop rdi
ret
Function at 0x1800510b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0
mov eax, dword [rsp + 0x28]
bts eax, 8
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
shr eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 4]
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov dword [rsp], eax
cmp dword [rsp + 0x28], 2
jae 0x1800510d5
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x180051140
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0
mov dword [rsp], 0x100
mov eax, dword [rsp + 0x28]
bts eax, 8
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
shl eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x30]
and ecx, eax
mov eax, ecx
mov ecx, dword [rsp]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x28]
shr ecx, 8
add eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x20]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x28]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
shr eax, 4
mov eax, eax
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax*4]
mov ecx, dword [rsp + 4]
add ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x28]
shl eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
xor ecx, eax
mov eax, ecx
not eax
mov ecx, dword [rsp]
and ecx, eax
mov eax, ecx
mov dword [rsp], eax
cmp dword [rsp + 0x28], 0x10000
jb 0x180051172
mov eax, dword [rsp + 4]
add rsp, 0x18
ret
Function at 0x180058c00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x40], 0
mov rax, qword [rsp + 0x40]
mov byte [rax + 0x23], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x480], 0xffffffffffffffff
mov rcx, qword [rsp + 0x40]
call fcn.180059d70
mov dword [rsp + 0x20], 0
jmp 0x180058c5a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x100
jae 0x180058cbb
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x28], 0
jmp 0x180058c80
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 8
jae 0x180058ca8
mov eax, dword [rsp + 0x24]
shr eax, 1
mov ecx, dword [rsp + 0x24]
and ecx, 1
xor edx, edx
sub edx, ecx
mov ecx, edx
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x24], eax
jmp 0x180058c76
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax*4 + 0x78], edx
jmp 0x180058c50
add rsp, 0x38
ret
Function at 0x180067604
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.1800335e0
sub rsp, rax
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180073168
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180067653
mov rax, rbp
jmp 0x18006775b
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 + 0xba330]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007fd20
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xba330]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180067757
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 0x180067757
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007fd20
test rax, rax
js 0x180067757
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180067757
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180067749
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180067749
cmp byte [rcx], 0xd
jne 0x18006772f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18006773e
cmp byte [rcx + 1], 0xa
jne 0x18006773e
inc rcx
jmp 0x18006773e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb7700]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180067711
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006775b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180033640
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 0x180071810
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 0x18007187f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18007187f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18007187f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18007187f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18007187f
cmp dword [rcx + 0x84], 0xe
jbe 0x18007187f
cmp dword [rcx + 0xf8], 0
je 0x18007187f
mov ecx, ebx
call fcn.180071930
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.18007170c
nop
cmp dword [rbp + 0x20], 0
je 0x1800718cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800718d8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180071810