joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400083b8
Capabilities:
Create directory

Disassembly:
sub rsp, 0x138
test rcx, rcx
je 0x14000842b
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_strncpy
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x124], 0
call sub.msvcrt.dll_strlen
lea rcx, [rsp + rax + 0x20]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x140008417
lea rdx, [rcx - 1]
mov al, byte [rdx]
cmp al, 0x20
je 0x14000840a
cmp al, 0x5c
je 0x14000840a
cmp al, 0x2f
jne 0x140008417
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x1400083f8
mov byte [rcx], 0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cdqe
jmp 0x14000842d
xor eax, eax
add rsp, 0x138
ret

Function at 0x140008440
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x140008486
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11d, dword [rbx + 0x10]
movsxd rax, dword [rsp + 0x40]
mov dword [rbx + 0x14], r11d
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x140008890
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x140008921
cmp byte [rdx], bl
je 0x140008921
mov rdx, rcx
mov rcx, qword [0x14000edf0]
call fcn.140008ee4
mov r11, rax
test rax, rax
je 0x14000891d
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400088ff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.1400089d0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, qword [r11]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140008940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x1400089b8
test r8d, r8d
je 0x1400089b8
mov rdx, rcx
mov rcx, qword [0x14000edf0]
call fcn.140008ee4
test rax, rax
je 0x1400089b4
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400089a1
mov rcx, rax
call fcn.1400089d0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400089d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x1c], 1
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x50], 0
jne 0x140008a1a
mov edx, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov r9d, 1
neg edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x1c], 0
mov dword [rbx + 0x14], eax
mov ecx, dword [rbx + 0x14]
cmp ecx, edi
jle 0x140008a58
mov eax, dword [rbx + 0x10]
mov edx, edi
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rbx + 8]
sub edx, 1
je 0x140008a51
sub edx, 1
je 0x140008a49
cmp edx, 2
je 0x140008a43
mov rdx, rsi
jmp 0x140008aa6
mov eax, dword [rsi]
mov dword [rcx], eax
jmp 0x140008aae
movzx eax, word [rsi]
mov word [rcx], ax
jmp 0x140008aae
movzx eax, byte [rsi]
mov byte [rcx], al
jmp 0x140008aae
mov rcx, rbx
call fcn.140008440
mov r11d, dword [rbx + 0x10]
mov rdx, rsi
cmp edi, r11d
jl 0x140008a9b
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
sub r11d, dword [rbx + 0x14]
movsxd rcx, r11d
add rcx, qword [rbx + 8]
mov r8, rdi
call sub.msvcrt.dll_memcpy
sub dword [rbx + 0x14], edi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140009270
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
or ebx, 0xffffffff
test rcx, rcx
je 0x14000947f
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x40], r13
xor r13d, r13d
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140009475
mov rcx, qword [0x14000e69c]
xor edx, edx
mov r8d, 0x1000
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140009467
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
lea r12, [0x14000c920]
nop word [rax + rax]
lea r9, [rsp + 0x60]
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r10d, dword [rsp + 0x60]
mov r11, rsi
mov r9d, r10d
cmp r10d, 8
jb 0x14000940d
mov rdi, r10
shr rdi, 3
nop dword [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
shr ebx, 8
xor rcx, rax
add r11, 8
add r9d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [r12 + rax*4]
xor edx, ebx
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [r12 + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [r12 + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ebx, dword [r12 + rax*4]
xor ebx, edx
sub rdi, 1
jne 0x140009340
test r9d, r9d
je 0x14000943e
nop word [rax + rax]
movzx ecx, byte [r11]
mov eax, ebx
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov ebx, dword [r12 + rdx*4]
xor ebx, eax
add r9d, 0xffffffff
jne 0x140009420
cmp r10d, 0x1000
je 0x140009300
mov rcx, qword [0x14000e69c]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x40]
not ebx
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x10000a9b8
Capabilities:
Extract resource via kernel32 functions

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 r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x10000ab2e
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x10000ab2e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x10000ab2e
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x10000aa64
cmp rdi, r11
jae 0x10000ab2e
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x10000aa4e
cmp rdi, r11
jae 0x10000ab2e
cmp word [rdi], r13w
je 0x10000ab2e
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x10000aa96
mov edx, ebx
mov rcx, rsi
call fcn.10000ac78
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x10000aab7
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.10001902e
cmp eax, r13d
je 0x10000ab06
cmp eax, 0xc
je 0x10000aafb
cmp eax, 0x16
je 0x10000aaf0
cmp eax, 0x22
je 0x10000aaf0
cmp eax, 0x50
je 0x10000ab06
mov ecx, 0x80004005
call fcn.10000af7c
int3
mov ecx, 0x80070057
call fcn.10000af7c
int3
mov ecx, 0x8007000e
call fcn.10000af7c
int3
cmp ebx, r13d
jl 0x10000ab23
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x10000ab23
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x10000ab30
mov ecx, 0x80070057
call fcn.10000af7c
int3
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 r14
pop r13
pop r12
ret
Function at 0x10000e254
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10001c138]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rcx, qword [rcx + 0x38]
and qword [rsp + 0x30], 0
mov rsi, rdx
mov edi, 0x80004005
test rcx, rcx
je 0x10000e3f7
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x70]
and qword [rsp + 0x38], 0
mov edi, eax
test eax, eax
jne 0x10000e3dc
mov rdi, qword [rsp + 0x30]
lea rcx, [0x1000029e0]
or edx, 0xffffffff
call fcn.10000ecd8
mov rbx, rax
test rax, rax
jne 0x10000e2d5
mov ecx, 0x8007000e
call fcn.10000af7c
int3
mov rax, qword [rdi]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0xa0]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x10000e3dc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp eax, 1
jne 0x10000e3dc
and qword [rsp + 0x40], 0
mov rdi, qword [rsp + 0x30]
lea rcx, [0x1000029f0]
or edx, 0xffffffff
call fcn.10000ecd8
mov rbx, rax
test rax, rax
jne 0x10000e33d
mov ecx, 0x8007000e
call fcn.10000af7c
int3
mov rax, qword [rdi]
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0xa0]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jne 0x10000e3d1
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x38]
lea r8, [0x100002a08]
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.10000b1b4
mov edi, eax
test eax, eax
jne 0x10000e3d1
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x10000e3cc
lea rax, [rsp + 0x50]
cmp rax, qword [rsi]
je 0x10000e3d1
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x50]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
test rax, rax
jne 0x10000e3d1
mov ecx, 0x8007000e
call fcn.10000af7c
int3
mov edi, 0x80070002
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10000e3f7
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100018f20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100017bf4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x10001d9b8]
test rcx, rcx
jne 0x100017c1a
call fcn.100017ca8
test eax, eax
je 0x100017c41
mov rcx, qword [0x10001d9b8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x100017c95
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x100017c45
xor eax, eax
jmp 0x100017c95
mov eax, dword [rax]
mov rcx, qword [0x10001d9b8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x100017c72
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x100017c95
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x10001d9b8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x100017c79
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100018a60
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10001c138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1000190aa
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.1000190aa
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x100018af3
cmp dword [rsp + 0x24], 5
jb 0x100018b0d
jmp 0x100018b09
cmp dword [rsp + 0x30], esi
jne 0x100018b0d
cmp dword [rsp + 0x24], 4
ja 0x100018b09
jne 0x100018b0d
cmp dword [rsp + 0x28], 0
jbe 0x100018b0d
mov byte [rbx + 0x18], sil
lea rax, [0x1000017c8]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.100004a2c
movzx ecx, byte [0x10001e058]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x10001e058], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100018f20
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1000192bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100019309
cmp rcx, 0xffffffffffffffff
je 0x100019309
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100019301
cmp dword [rcx + 0x3c], edx
jl 0x100019301
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100019301
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100019309
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100019578
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x1000195e3
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x100019603
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001860]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140002c20
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
movzx esi, word [rdx + 6]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], rbp
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x30], rsi
test rsi, rsi
je 0x140002c7d
lea rdx, [rsp + 0x30]
call fcn.140002e30
movzx ecx, word [rdi + 0x14]
add rcx, 0x18
add rcx, rdi
mov qword [rsp + 0x30], rcx
cmp bp, si
jae 0x140002cd9
mov rax, rcx
mov rdi, rcx
nop dword [rax + rax]
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140002cb4
mov qword [rdx], rcx
add qword [rbx + 8], 8
jmp 0x140002cc4
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140002f30
mov rax, rdi
lea rcx, [rax + 0x28]
mov qword [rsp + 0x30], rcx
mov rax, rcx
mov rdi, rcx
sub rsi, 1
jne 0x140002ca0
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400040d0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400033c0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rbx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], rbx
lea ecx, [rbx + 8]
call fcn.1400040f8
mov rcx, rax
mov qword [rdi], rax
add rax, 8
mov qword [rdi + 0x10], rax
lea rax, [rcx + 8]
xor edx, edx
mov qword [rcx], rdx
mov qword [rdi + 8], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x40]
lea r8d, [rbx + 1]
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov ebx, dword [rsp + 0x40]
shr rbx, 3
mov rsi, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rsi
sub rcx, rdx
sar rcx, 3
cmp rbx, rcx
jae 0x140003472
lea rax, [rdx + rbx*8]
mov qword [rdi + 8], rax
jmp 0x1400034b1
jbe 0x1400034b1
mov rax, qword [rdi + 0x10]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jbe 0x140003491
mov rdx, rbx
mov rcx, rdi
call fcn.140003f60
jmp 0x1400034b1
sub rbx, rcx
lea rbx, [rbx*8]
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + rsi]
mov qword [rdi + 8], rdx
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rdi]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400040d0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140004a58
Capabilities:
Parse pe header

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

Function at 0x1419e5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1419e51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1419e5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419e506f
add dl, dl
jne 0x1419e5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419e50f6
xor eax, eax
add dl, dl
jne 0x1419e50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419e51ad
add dl, dl
jne 0x1419e50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419e50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419e50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419e50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419e50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1419e507e
mov eax, 1
add dl, dl
jne 0x1419e5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419e5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419e50fb
sub eax, ebx
mov ebx, 1
jne 0x1419e514c
mov ecx, 1
add dl, dl
jne 0x1419e512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419e513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419e5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419e507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1419e5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419e5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419e515d
cmp eax, 0x7d00
jae 0x1419e519b
cmp eax, 0x500
jb 0x1419e5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419e507e
cmp eax, 0x7f
ja 0x1419e519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419e507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419e51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1419e507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001210
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push r14
sub rsp, 0x48
lea rdx, [rsp + 0x30]
xor r14d, r14d
mov rcx, r8
mov dword [rsp + 0x30], r14d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
jne 0x140001241
lea eax, [rbx + 1]
add rsp, 0x48
pop r14
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov esi, dword [rsp + 0x30]
cmp esi, 1
mov qword [rsp + 0x70], rdi
mov edi, r14d
setle bpl
test esi, esi
jle 0x140001361
mov qword [rsp + 0x40], r15
lea r15, str.__directory
test bpl, bpl
jne 0x14000135c
mov r11, qword [rbx]
mov r10d, r14d
mov r9, r15
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [r9 - 0x10]
mov rax, r11
sub r8, r11
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400012b4
add rax, 2
test ecx, ecx
jne 0x1400012a0
test edx, edx
je 0x14000131e
mov r8, qword [r9 - 8]
mov rax, r11
sub r8, r11
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400012d6
add rax, 2
test ecx, ecx
jne 0x1400012c2
test edx, edx
je 0x14000131e
mov r8, qword [r9]
test r8, r8
je 0x140001308
mov rax, r11
sub r8, r11
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001304
add rax, 2
test ecx, ecx
jne 0x1400012f0
test edx, edx
je 0x14000131e
inc r10d
add r9, 0x30
movsxd rax, r10d
cmp rax, 0xb
jb 0x140001290
jmp 0x14000134b
mov rcx, r14
cmp byte [r9 + 0x18], cl
je 0x140001338
lea eax, [rsi - 1]
cmp edi, eax
jge 0x14000134b
mov rcx, qword [rbx + 8]
inc edi
add rbx, 8
mov rax, qword [r9 + 0x10]
test rax, rax
je 0x14000134b
call rax
mov esi, dword [rsp + 0x30]
test al, al
jne 0x14000134e
mov bpl, 1
inc edi
add rbx, 8
cmp edi, esi
jl 0x140001272
mov r15, qword [rsp + 0x40]
cmp word [0x140046f10], r14w
mov rsi, qword [rsp + 0x68]
je 0x140001468
test bpl, bpl
jne 0x140001468
cmp word [0x140046c80], r14w
lea rdx, [0x140046d00]
setne cl
call fcn.140006fb0
lea rdx, str.C:dvsp4_build_swgcomp_relgs_03_40_srcNvContainercontainerNvContainer.cpp
mov r9d, 3
mov rdi, rax
mov eax, dword [section..data]
mov r8d, 0x144
mov dword [rdi + 8], eax
lea rax, [0x140035b14]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, str.Container_main_v_s
mov qword [rsp + 0x20], rax
call fcn.140006d00
mov ecx, dword [0x140046f08]
lea rdx, [0x140046c80]
mov r8, rdi
call fcn.140002150
lea rdx, [0x140046f10]
mov rcx, rax
mov eax, dword [0x140046f0c]
mov dword [rcx + 0x360], eax
mov r8d, dword [0x140045004]
call fcn.140002600
lea rcx, str.error
lea rdx, str.C:dvsp4_build_swgcomp_relgs_03_40_srcNvContainercontainerNvContainer.cpp
movzx ebx, al
lea rax, str.success
mov r9d, 3
test bl, bl
mov r8d, 0x14d
cmovne rcx, rax
lea rax, str.Container_main_exited_with__s
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140006d00
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
test bl, bl
sete r14b
mov eax, r14d
add rsp, 0x48
pop r14
pop rbx
ret
call fcn.140001160
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov eax, 2
add rsp, 0x48
pop r14
pop rbx
ret