joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c0f0
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov byte [rbp + 0x80], r8b
mov byte [rbp + 0x5f], 0
mov rcx, qword [rbp + 0x78]
mov edx, 8
xor r8, r8
call fcn.00405b70
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, rax
lea rdx, [rbp + 0x3c]
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x58], 0
jbe 0x41c24f
mov ecx, dword [rbp + 0x58]
call fcn.00404d90
mov qword [rbp + 0x50], rax
mov rcx, qword [rbp + 0x70]
call fcn.0040b4d0
mov rcx, rax
xor edx, edx
mov r8d, dword [rbp + 0x58]
mov r9, qword [rbp + 0x50]
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x41c243
mov rcx, qword [rbp + 0x50]
lea rdx, [0x0041c25c]
lea r8, [rbp + 0x40]
lea r9, [rbp + 0x4c]
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x41c243
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x5f], 1
cmp byte [rbp + 0x80], 0
je 0x41c1f2
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 8]
shr ecx, 0x10
mov word [rax], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 8]
and cx, 0xffff
mov word [rax + 2], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 0xc]
shr ecx, 0x10
mov word [rax + 4], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 0xc]
and cx, 0xffff
mov word [rax + 6], cx
jmp 0x41c243
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 8]
mov word [rax], cx
mov rax, qword [rbp + 0x30]
mov eax, dword [rax + 8]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x78]
mov ecx, dword [rbp + 0x2c]
shr ecx, 0x10
mov word [rax + 2], cx
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x30]
movzx rcx, word [rcx + 0xc]
mov word [rax + 4], cx
mov rax, qword [rbp + 0x30]
mov eax, dword [rax + 0xc]
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x78]
mov ecx, dword [rbp + 0x28]
shr ecx, 0x10
mov word [rax + 6], cx
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x58]
call fcn.00404dc0
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x41db70
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbp, rsp
mov rbx, rdx
xor esi, esi
call fcn.0040b280
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov ecx, eax
cmp rcx, 0xffffffffffffffff
je 0x41dc4c
mov edi, eax
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
call sub.KERNEL32.DLL_SetFilePointer
mov rcx, rdi
lea rdx, [rbp + 0x4c]
mov r8d, pe_nt_image_headers64
lea r9, [rbp + 0x8c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
cmp word [rbp + 0x4c], 0x5a4d
jne 0x41dc44
mov rcx, rdi
mov edx, dword [rbp + 0x88]
xor r8, r8
xor r9, r9
call sub.KERNEL32.DLL_SetFilePointer
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x108
lea r9, [rbp + 0x8c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
cmp dword [rbx], 0x4550
jne 0x41dc44
mov sil, 1
mov rcx, rdi
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
lea rsp, [rbp + 0x98]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x41dc60
Capabilities:
Get file size

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebx, edx
xor esi, esi
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x41dcc4
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.DLL_GetFileSize
cmp eax, ebx
jne 0x41dcbc
mov sil, 1
mov rcx, rdi
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret

Function at 0x41dd00
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x68], 0
nop
xor eax, eax
mov byte [rbp + 0x57], al
mov rcx, qword [rbp + 0x40]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x41dde9
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.DLL_GetFileSize
mov ebx, eax
lea rcx, [rbp + 0x78]
mov edx, ebx
xor r8, r8
call fcn.0040b160
lea rcx, [rbp + 0x78]
call fcn.0040ad10
mov rcx, rsi
mov rdx, rax
mov r8d, ebx
lea r9, [rbp + 0x74]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x78]
call fcn.004166a0
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x58]
call fcn.0040b620
mov rcx, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x48]
call fcn.0040ba90
test eax, eax
jne 0x41dde1
mov al, 1
mov byte [rbp + 0x57], al
mov rcx, rsi
call sub.KERNEL32.DLL_CloseHandle
nop
lea rcx, [rbp + 0x58]
call fcn.0040a500
lea rcx, [rbp + 0x68]
call fcn.0040a4b0
lea rcx, [rbp + 0x78]
call fcn.0040a500
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rbp
ret
Function at 0x41e3b0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x2a8
mov rbp, rsp
mov rbx, rdx
xor esi, esi
call fcn.0040b4d0
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov ecx, eax
cmp rcx, 0xffffffffffffffff
je 0x41e513
mov edi, eax
mov rcx, rdi
xor edx, edx
xor r8, r8
xor r9, r9
call sub.KERNEL32.DLL_SetFilePointer
mov rcx, rdi
lea rdx, [rbp + 0x25c]
mov r8d, pe_nt_image_headers64
lea r9, [rbp + 0x29c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
cmp word [rbp + 0x25c], 0x5a4d
jne 0x41e50b
mov rcx, rdi
mov edx, dword [rbp + 0x298]
xor r8, r8
xor r9, r9
call sub.KERNEL32.DLL_SetFilePointer
mov rcx, rdi
lea rdx, [rbp + 0x154]
mov r8d, 0x108
lea r9, [rbp + 0x29c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_ReadFile
cmp dword [rbp + 0x154], 0x4550
jne 0x41e50b
mov sil, 1
movzx rax, word [rbp + 0x16c]
sub ax, 0x10b
test ax, ax
je 0x41e4b4
sub ax, 0x100
test ax, ax
jne 0x41e507
jmp 0x41e4df
mov byte [rbx + 1], 1
movzx rax, word [rbp + 0x16a]
mov ecx, eax
test cx, 0x2000
je 0x41e4ce
mov byte [rbx], 2
jmp 0x41e50b
test ax, 2
je 0x41e4da
mov byte [rbx], 1
jmp 0x41e50b
mov byte [rbx], 0
jmp 0x41e50b
mov byte [rbx + 1], 2
movzx rax, word [rbp + 0x62]
mov ecx, eax
test cx, 0x2000
je 0x41e4f6
mov byte [rbx], 2
jmp 0x41e50b
test ax, 2
je 0x41e502
mov byte [rbx], 1
jmp 0x41e50b
mov byte [rbx], 0
jmp 0x41e50b
mov byte [rbx + 1], 0
mov rcx, rdi
call sub.KERNEL32.DLL_CloseHandle
mov eax, esi
lea rsp, [rbp + 0x2a8]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x420190
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x40], rdx
mov dword [rbp + 0x48], r8d
mov qword [rbp + 0x80], rcx
mov rcx, qword [rbp + 0x80]
call fcn.0040a640
nop
xor eax, eax
mov byte [rbp + 0x4f], al
mov rcx, qword [rbp + 0x80]
call fcn.00413030
test al, al
je 0x42020c
mov rcx, qword [rbp + 0x80]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov rbx, rax
jmp 0x42024c
mov rcx, qword [rbp + 0x80]
call fcn.0040b4d0
mov rcx, rax
mov edx, 0xc0000000
mov r8d, 3
xor r9, r9
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x420280
mov rcx, rbx
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x48]
lea r9, [rbp + 0x5c]
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x420278
mov al, 1
mov byte [rbp + 0x4f], al
mov rcx, rbx
call sub.KERNEL32.DLL_CloseHandle
nop
lea rcx, [rbp + 0x80]
call fcn.0040a4b0
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x420aa0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x180
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
xor r13, r13
mov rcx, rbx
mov rdx, rsi
lea r8, [rbp + 0x140]
mov r9d, pe_nt_image_headers64
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.DLL_ReadProcessMemory
cmp word [rbp + 0x140], 0x5a4d
jne 0x420b2f
mov rcx, rbx
mov edx, esi
add edx, dword [rbp + 0x17c]
mov edx, edx
lea r8, [rbp + 0x38]
mov r9d, 0x108
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.DLL_ReadProcessMemory
cmp dword [rbp + 0x38], 0x4550
jne 0x420b2f
mov qword [rdi], rsi
mov eax, dword [rbp + 0x88]
mov dword [rdi + 8], eax
lea rax, [rbp + 0x60]
mov qword [rdi + 0x10], rax
mov r13b, 1
mov eax, r13d
lea rsp, [rbp + 0x180]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x420b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rbx
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
nop
mov rcx, qword [0x004311b0]
lea rdx, [0x00420d90]
mov r8d, 0xa
call sub.KERNEL32.DLL_FindResourceW
mov rcx, qword [0x004311b0]
mov rdx, rax
call sub.KERNEL32.DLL_LoadResource
mov rbx, rax
test rbx, rbx
je 0x420d52
mov rcx, rbx
call sub.KERNEL32.DLL_LockResource
mov rsi, rax
mov rcx, rsi
lea rdx, [rbp + 0x7b]
mov r8d, 5
call fcn.00405120
add rsi, 0xa
lea rcx, [rbp + 0x70]
movzx rdx, byte [rbp + 0x7b]
call fcn.0040b6d0
mov rcx, rsi
mov rdx, qword [rbp + 0x70]
movzx r8, byte [rbp + 0x7b]
call fcn.00405120
lea rcx, [rbp + 0x60]
xor edx, edx
call fcn.004053d0
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
call fcn.00412f50
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x70]
call fcn.0040b7b0
mov rcx, qword [rbp + 0x68]
call fcn.00413030
test al, al
jne 0x420c9d
lea rcx, [rbp + 0x58]
mov edx, 6
lea r8, [0x00420da4]
mov r9, qword [rbp + 0x70]
lea rax, [0x00420dbc]
mov qword [rsp + 0x20], rax
lea rax, [0x00420dcc]
mov qword [rsp + 0x28], rax
lea rax, [0x00420e0c]
mov qword [rsp + 0x30], rax
lea rax, [0x00420e20]
mov qword [rsp + 0x38], rax
call fcn.0040b9b0
mov rcx, qword [rbp + 0x58]
call fcn.0040b4d0
xor ecx, ecx
mov rdx, rax
lea r8, [0x00420e7e]
mov r9d, 0x30
call sub.USER32.DLL_MessageBoxW
xor ecx, ecx
call sub.KERNEL32.DLL_ExitProcess
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.004053d0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
call fcn.00412f50
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x70]
call fcn.0040b7b0
mov rcx, qword [rbp + 0x50]
mov edx, dword [rbp + 0x7c]
call fcn.0041dcd0
test al, al
jne 0x420d4a
cmp dword [rbp + 0x7c], 0
je 0x420d4a
lea rcx, [rbp + 0x40]
mov edx, 6
lea r8, [0x00420dbc]
mov r9, qword [rbp + 0x70]
lea rax, [0x00420dbc]
mov qword [rsp + 0x20], rax
lea rax, [0x00420e98]
mov qword [rsp + 0x28], rax
lea rax, [0x00420e0c]
mov qword [rsp + 0x30], rax
lea rax, [0x00420ec0]
mov qword [rsp + 0x38], rax
call fcn.0040b9b0
mov rcx, qword [rbp + 0x40]
call fcn.0040b4d0
xor ecx, ecx
mov rdx, rax
lea r8, [0x00420e7e]
mov r9d, 0x30
call sub.USER32.DLL_MessageBoxW
xor ecx, ecx
call sub.KERNEL32.DLL_ExitProcess
mov rcx, rbx
call sub.KERNEL32.DLL_FreeResource
nop
lea rcx, [rbp + 0x40]
mov edx, 7
call fcn.0040a590
lea rsp, [rbp + 0x80]
pop rbx
pop rsi
pop rbp
ret
Function at 0x420f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
lea rcx, [rbp + 0x2d]
mov rdx, qword [0x004150c0]
call fcn.0040bfc0
nop
mov rcx, qword [0x004311b0]
lea rdx, [0x00421070]
mov r8d, 0xa
call sub.KERNEL32.DLL_FindResourceW
mov rcx, qword [0x004311b0]
mov rdx, rax
call sub.KERNEL32.DLL_LoadResource
mov rbx, rax
test rbx, rbx
je 0x421034
mov rcx, rbx
call sub.KERNEL32.DLL_LockResource
mov rsi, rax
mov rcx, rsi
lea rdx, [rbp + 0x2d]
mov r8d, 0xb
call fcn.00405120
add rsi, 0xb
lea rcx, [rbp + 0x38]
mov rdx, rsi
call fcn.0040b540
mov rax, qword [rbp + 0x38]
test rax, rax
call fcn.00414390
mov word [rbp + 0x2b], ax
movzx rax, byte [rbp + 0x2e]
sub al, 1
cmp al, 0xff
je 0x420fc8
test al, al
je 0x420fd4
sub al, 1
test al, al
jne 0x420fec
jmp 0x420fe0
movzx rax, byte [rbp + 0x2b]
cmp al, byte [rbp + 0x2d]
je 0x420fec
jmp 0x421006
movzx rax, byte [rbp + 0x2b]
cmp al, byte [rbp + 0x2d]
jae 0x420fec
jmp 0x421006
movzx rax, byte [rbp + 0x2b]
cmp al, byte [rbp + 0x2d]
ja 0x420fec
jmp 0x421006
movzx rax, byte [rbp + 0x2f]
mov ecx, eax
cmp cl, 2
jb 0x421001
sub cl, 2
test cl, cl
jne 0x421006
jmp 0x421035
cmp al, byte [rbp + 0x2c]
je 0x421035
xor ecx, ecx
mov rdx, qword [rbp + 0x38]
lea r8, [0x00421078]
mov r9d, dword [rbp + 0x30]
add r9d, dword [rbp + 0x34]
call sub.USER32.DLL_MessageBoxA
cmp eax, 6
je 0x421035
xor ecx, ecx
call sub.KERNEL32.DLL_ExitProcess
mov rcx, rbx
call sub.KERNEL32.DLL_FreeResource
nop
lea rcx, [rbp + 0x2d]
mov rdx, qword [0x004150c0]
call fcn.0040c150
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rbp
ret

Function at 0x421080
Capabilities:
Read file via mapping

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], rdx
mov ebx, r8d
mov esi, r9d
call fcn.0040b4d0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.KERNEL32.DLL_CreateFileW
mov rdi, rax
cmp rdi, 0xffffffffffffffff
jne 0x4211b2
mov rcx, rdi
xor edx, edx
mov r8d, 2
xor r9, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call sub.KERNEL32.DLL_CreateFileMappingW
mov r13, rax
test r13, r13
je 0x4211aa
mov rcx, r13
mov edx, 4
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call sub.KERNEL32.DLL_MapViewOfFile
mov r14, rax
test r14, r14
je 0x4211a2
sub sil, 1
cmp sil, 0xff
je 0x421140
test sil, sil
jne 0x42119a
jmp 0x42116e
xor ecx, ecx
mov eax, ecx
cmp eax, ebx
jg 0x42116b
sub ebx, ecx
add ebx, 1
mov rsi, qword [rsp + 0x48]
mov rcx, r14
mov rdx, qword [rsi]
call fcn.00413be0
mov qword [rsi], rax
add rsi, 8
sub ebx, 1
test ebx, ebx
jne 0x421152
nop
jmp 0x42119a
xor ecx, ecx
mov eax, ecx
cmp eax, ebx
jg 0x421199
sub ebx, ecx
add ebx, 1
mov rsi, qword [rsp + 0x48]
mov rcx, r14
mov rdx, qword [rsi]
call fcn.00413ef0
mov qword [rsi], rax
add rsi, 8
sub ebx, 1
test ebx, ebx
jne 0x421180
nop
mov rcx, r14
call sub.KERNEL32.DLL_UnmapViewOfFile
mov rcx, r13
call sub.KERNEL32.DLL_CloseHandle
mov rcx, rdi
call sub.KERNEL32.DLL_CloseHandle
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x18093a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18093a1df
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 0x18093a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18093a06f
add dl, dl
jne 0x18093a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18093a0f6
xor eax, eax
add dl, dl
jne 0x18093a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18093a1ad
add dl, dl
jne 0x18093a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18093a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18093a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18093a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18093a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18093a07e
mov eax, 1
add dl, dl
jne 0x18093a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18093a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18093a0fb
sub eax, ebx
mov ebx, 1
jne 0x18093a14c
mov ecx, 1
add dl, dl
jne 0x18093a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18093a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18093a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18093a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18093a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18093a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18093a15d
cmp eax, 0x7d00
jae 0x18093a19b
cmp eax, 0x500
jb 0x18093a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18093a07e
cmp eax, 0x7f
ja 0x18093a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18093a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18093a1d2
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 0x18093a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call fcn.140186000
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1400087ec
add rsp, 0x28
jmp 0x140008188
Function at 0x101f3c730
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x101f3c73d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x101f3c74d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x101f3c735
lea eax, [rcx + 1]
jmp 0x101f3c75b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x101f3c76e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x101f3c754
sub eax, 3
jb 0x101f3c78e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x101f3c7dd
sar eax, 1
movsxd rbp, eax
jb 0x101f3c7c4
jmp 0x101f3c79c
add ebx, ebx
jne 0x101f3c79a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x101f3c7c4
inc ecx
add ebx, ebx
jne 0x101f3c7aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x101f3c7c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x101f3c7bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x101f3c7ac
add ecx, 2
jmp 0x101f3c7c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.101f3c6f2
jmp 0x101f3c73d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1cc570
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x101f3c829
cmp rsi, rcx
jae 0x101f3c831
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x101f3c810
cmp al, 0x8f
ja 0x101f3c810
cmp byte [rsi - 2], 0xf
je 0x101f3c816
sub al, 0xe8
cmp al, 1
ja 0x101f3c7fa
cmp rsi, rcx
jae 0x101f3c831
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x101f3c800
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x101f3c831
lodsb al, byte [rsi]
jmp 0x101f3c810
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f39000]
mov eax, dword [rdi]
or eax, eax
je 0x101f3c88e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1f427f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x101f3c83e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x101f3c888
mov qword [rbx], rax
add rbx, 8
jmp 0x101f3c85e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.101f3c911], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.101f3c911
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x101f3c901
sub rsp, 0xffffffffffffff80
jmp 0x100002df0