joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038ed0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400c9310]
mov rsi, rcx
test rbx, rbx
je 0x140038f50
mov rax, qword [0x1400b8670]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140038f40
mov rdx, qword [0x1400c9548]
test rdx, rdx
je 0x140039040
mov rcx, rbx
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
jmp 0x140038f21
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.140019ea0
test rax, rax
je 0x140039060
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a4b72
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140038fee
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140038fe0
test rbx, rbx
je 0x1400a4b72
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140038fa0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140038d60
mov rbx, rax
mov qword [0x1400c9310], rbx
jmp 0x140038ef2
lea rcx, [0x1400b4bd2]
call qword [sym.imp.python312.dll_PyUnicode_FromString]
mov qword [0x1400c9548], rax
mov rdx, rax
jmp 0x140038f12
mov rbx, qword [0x1400c9328]
test rbx, rbx
jne 0x140039031
cmp byte [0x1400c9542], 0
je 0x1400390a3
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c9340]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [0x1400c9328], rax
mov rbx, rax
test rax, rax
je 0x1400390af
mov eax, dword [rax]
add eax, 1
je 0x140039031
mov dword [rbx], eax
jmp 0x140039031
mov ecx, 1
call fcn.14001ab20
jmp 0x140039075
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
call sub.msvcrt.dll_abort
nop
Function at 0x140039930
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140019ea0
test rax, rax
je 0x140039a80
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400a4b8a
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400399e6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400399d8
test rbx, rbx
je 0x1400a4b8a
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140039998
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400c9c80]
mov rsi, rax
mov rax, qword [0x1400b8670]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140039aed
mov rdx, rbx
call fcn.14000a570
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14002d4a0
mov rdx, qword [rbx]
test edx, edx
js 0x140039a62
sub rdx, 1
mov qword [rbx], rdx
je 0x140039ad5
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c9320]
lea rsi, [0x1400c9320]
test bl, bl
je 0x140039aa0
mov rax, qword [0x1400c9328]
lea rsi, [0x1400c9328]
test rax, rax
jne 0x140039a62
cmp byte [0x1400c9542], 0
je 0x140039b17
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c9340]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140039b21
mov edx, dword [rax]
add edx, 1
je 0x140039a62
mov dword [rax], edx
jmp 0x140039a62
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x140039a62
mov rcx, qword [0x1400c9bf8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x140039b2c
mov rdx, rdi
call fcn.14000a570
mov qword [0x1400c9c80], rax
mov rcx, rax
jmp 0x140039a39
movzx ecx, bl
call fcn.14001ab20
jmp 0x140039aae
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400af7b3]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400c9bf8], rax
mov rcx, rax
test rax, rax
je 0x1400a4b8a
jmp 0x140039b00
Function at 0x140090300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c9301], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400903a8
lea rdx, [0x1400b44aa]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140090410
mov rbx, qword [0x1400c91a0]
jmp 0x140090345
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140090340
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140090397
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140080300
mov r8, rax
cmp rdi, rbx
jne 0x140090380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c91a0], rax
mov ebx, dword [rax]
mov qword [0x1400c91a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c91a0], rdx
call fcn.14008f430
cmp eax, ebx
jne 0x140090478
mov byte [0x1400c9301], 1
jmp 0x140090320
cmp byte [0x1400c9300], 0
jne 0x140090337
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400c9ea8], rax
call rbx
mov qword [0x1400c9ea0], rax
call rbx
mov qword [0x1400c9e98], rax
call rbx
mov qword [0x1400c9e90], rax
call rbx
mov qword [0x1400c9e88], rax
call rbx
mov qword [0x1400c9e80], rax
call rbx
mov qword [0x1400c9e78], rax
call rbx
mov byte [0x1400c9300], 1
mov qword [0x1400c9e70], rax
jmp 0x140090337
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400928b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400a4030
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400a4030
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140093582
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ca368]
test eax, eax
je 0x14009361a
lea rax, [0x1400ca340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ca370]
mov qword [rbp - 8], rax
jmp 0x1400935fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400935f2
cmp qword [rbp - 0x10], 0
je 0x1400935f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400935b8
lea rax, [0x1400ca340]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009361b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140093720
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140093748
mov eax, 0
jmp 0x140093796
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140093771
mov eax, 0
jmp 0x140093796
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140093791
mov eax, 0
jmp 0x140093796
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009379c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14009381a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140093811
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140093811
mov rax, qword [rbp - 8]
jmp 0x14009382f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400937e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140794f64
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140794f6e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140794f97
pop rbp
sub rbp, 0x33
sub rbp, 0x794f64
sub rsp, 0x20
jmp 0x140794fb6
mov rax, 0x794f64
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffb7b32b16
xor byte [rax], dl
inc rax
dec rcx
jne 0x140794fd5
jmp 0x140794fec
pop rsi
lahf
call [rbp + 0x16162a9f]
invalid
Function at 0x1800016a4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x18002caa0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.180002982
mov ebx, eax
test eax, eax
jne 0x18002cbce
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18002cb91
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1800016a4
mov ebx, eax
test eax, eax
jne 0x18002cbce
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18002cb40
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002cba6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x50], ebp
test rcx, rcx
je 0x18002cbc0
mov rdx, qword [rdi]
mov r8, rsi
call fcn.180002590
jmp 0x18002cbcc
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18002cbde
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18003f5a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800017c6
Capabilities:
Write file on windows

Disassembly:
jmp 0x180018ea0
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x808]
sub rsp, 0x908
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rbp + 0x7f0], rax
xor ebx, ebx
mov rdi, rcx
mov rcx, qword [0x18009b500]
mov r15, r9
mov r14, r8
mov esi, ebx
test rcx, rcx
je 0x180018ef4
imul rdx, rdx, 0x3e8
mov rax, rdx
cqo
idiv rcx
mov rsi, rax
cmp dword [rdi + 0x138], ebx
je 0x180018f97
cmp dword [rdi + 0x18c], ebx
mov ecx, 9
mov eax, 0x2c
cmovne cx, ax
mov r8d, 0x800
xor edx, edx
mov word [rsp + 0x40], cx
lea rcx, [rbp - 0x10]
mov word [rsp + 0x42], bx
call fcn.18003f5d0
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
lea r8, str._s_s_d_s_s_n
lea rcx, [rbp - 0x10]
mov r9, r14
mov edx, 0x400
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.180002a45
cmp qword [rdi + 0x140], rbx
je 0x180018f97
lea rcx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi + 0x140]
lea r9, [rsp + 0x44]
add eax, eax
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rbx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rdi + 0x188], ebx
je 0x1800190f7
mov rcx, qword [rdi + 0x158]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9d, dword [rdi + 0x150]
lea r8, [0x180073ed0]
lea ecx, [r9 + 1]
mov edx, 8
mov rbx, rax
mov dword [rdi + 0x150], ecx
lea rcx, [rbp - 0x48]
call fcn.180002a45
xor eax, eax
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x48]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x4c], ebx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi + 0x158]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x68], eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x158]
mov qword [rbp - 0x68], r14
movsxd r14, ebx
lea r9, [rbp - 0x80]
mov edx, 0x1074
mov r8, r14
mov dword [rbp - 0x78], 1
call qword [sym.imp.USER32.dll_SendMessageW]
lea r8, [0x180073ed0]
lea rcx, [rbp - 0x38]
mov r9d, esi
mov edx, 0x10
call fcn.180002a45
mov rcx, qword [rdi + 0x158]
lea rax, [rbp - 0x38]
lea r9, [rbp - 0x80]
mov r8, r14
mov edx, 0x1074
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x78], 2
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x158]
lea r9, [rbp - 0x80]
mov r8, r14
mov edx, 0x1074
mov dword [rbp - 0x78], 3
mov qword [rbp - 0x68], r15
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, ebx
mov rcx, rdi
call fcn.1800013c0
test al, al
je 0x1800190f7
mov rcx, qword [rdi + 0x158]
xor r9d, r9d
mov r8, r14
mov edx, 0x1013
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
mov rcx, qword [rbp + 0x7f0]
xor rcx, rsp
call fcn.18003f5a0
add rsp, 0x908
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000183e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x180024e40
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx ebx, r9b
mov rsi, r8
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x28]
call fcn.180002653
test bl, bl
je 0x180024f42
xor edx, edx
lea rcx, str.COMCTL32.DLL
lea r8d, [rdx + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x180024f42
mov edx, 0x3ee
mov r8d, 5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180024f39
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180024f39
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.180001717
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x180024f39
movzx edx, word [rsp + 0x20]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.180002653
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsi]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsi + 4]
mov r8d, 8
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
mov dword [rsi + 4], eax
mov ecx, eax
jmp 0x180024f63
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsi]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [rsp + 0x2c]
mov ecx, dword [rsi + 4]
mov dword [rsi], eax
mov r8d, 8
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [rsi + 4], eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003f5a0
add rsp, 0x90
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001861
Capabilities:
Write file on windows

Disassembly:
jmp 0x1800191c0
push rbp
push rsi
push rdi
push r14
sub rsp, 0x8e8
mov rax, qword [0x1800998c0]
xor rax, rsp
mov qword [rsp + 0x8d0], rax
xor r14d, r14d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp dword [rcx + 0x138], r14d
je 0x1800192ae
cmp dword [rdi + 0x18c], r14d
mov eax, 9
mov ecx, 0x2c
cmovne ax, cx
lea rcx, [rsp + 0xd0]
mov r8d, 0x800
xor edx, edx
mov word [rsp + 0x50], ax
mov word [rsp + 0x52], r14w
call fcn.18003f5d0
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x50]
lea r8, str._s_s_s_s_s_s_n
lea rcx, [rsp + 0xd0]
mov edx, 0x400
mov qword [rsp + 0x20], rax
call fcn.180002a45
cmp qword [rdi + 0x140], r14
je 0x1800192ae
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rdi + 0x140]
lea r9, [rsp + 0x54]
add eax, eax
lea rdx, [rsp + 0xd0]
mov qword [rsp + 0x20], r14
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rdi + 0x188], r14d
je 0x1800193ae
mov rcx, qword [rdi + 0x158]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov qword [rsp + 0x8e0], rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x158]
lea r9, [rsp + 0x58]
mov rbx, rax
mov dword [rsp + 0x5c], eax
lea rax, [0x180071364]
xor r8d, r8d
mov edx, 0x104d
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x60], r14d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x158]
mov qword [rsp + 0xa8], rsi
movsxd rsi, eax
lea r9, [rsp + 0x90]
mov edx, 0x1074
mov r8, rsi
mov dword [rsp + 0x98], 4
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x158]
lea r9, [rsp + 0x90]
mov r8, rsi
mov edx, 0x1074
mov dword [rsp + 0x98], 5
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, ebx
mov rcx, rdi
call fcn.1800013c0
mov rbx, qword [rsp + 0x8e0]
test al, al
je 0x1800193ae
mov rcx, qword [rdi + 0x158]
xor r9d, r9d
mov r8, rsi
mov edx, 0x1013
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.18003f5a0
add rsp, 0x8e8
pop r14
pop rdi
pop rsi
pop rbp
ret