joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000505c8
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, qword [rsp + 0xa0]
mov r13, rcx
mov r14d, 0x2028
mov rcx, r14
mov rbp, r9
mov rsi, r8
mov rbx, rdx
call fcn.1000a1c84
mov r8, r14
mov rcx, rax
xor edx, edx
mov rdi, rax
call sub.msvcrt.dll_memset
mov dword [rdi], 0x484d4752
mov dword [rdi + 4], 1
mov dword [rdi + 8], r14d
movdqu xmm0, xmmword [rbx]
xor ebx, ebx
movdqu xmmword [rdi + 0x18], xmm0
cmp rsi, rbx
je 0x100050633
mov qword [rdi + 0xc], rbx
mov eax, dword [rsi]
mov dword [rdi + 0x14], eax
mov r14d, 0x3ff
cmp rbp, rbx
je 0x10005064d
lea rcx, [rdi + 0x28]
mov r8, rbp
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
cmp r12, rbx
je 0x100050664
lea rcx, [rdi + 0x828]
mov r8, r12
mov rdx, r14
call sub.msvcrt.dll_wcscpy_s
lea r9, [rsp + 0x30]
mov r8d, 0x2028
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x100050694
mov rcx, rdi
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1000506ca
cmp rsi, rbx
je 0x1000506bb
mov r8d, dword [rsi]
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x30]
mov rcx, r13
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
je 0x1000506c0
mov ebx, 1
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1000506e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov r12, rcx
mov ecx, 0x2028
call fcn.1000a1c84
mov rbx, rax
jmp 0x10005071a
xor edi, edi
cmp rbx, rdi
jne 0x100050728
xor eax, eax
jmp 0x10005081d
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, 0x2028
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x100050813
cmp dword [rsp + 0x58], 0x2028
jne 0x100050813
cmp dword [rbx], 0x484d4752
jne 0x100050807
cmp dword [rbx + 4], 1
jne 0x100050779
cmp dword [rbx + 8], 0x2028
je 0x1000507ce
cmp dword [rbx + 8], 0x2030
jne 0x100050807
lea rdx, [rbx + 0x10]
lea rcx, [rbx + 0xc]
mov r8d, 0x2018
call sub.msvcrt.dll_memmove
mov dword [rbx + 8], 0x2028
mov word [rbx + 0x2024], di
mov r9d, 1
xor r8d, r8d
lea edx, [r9 + 7]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000507ce
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10005081d
mov edx, dword [rbx + 0x14]
cmp edx, edi
je 0x1000507f8
mov r9d, 1
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000507f8
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10005081d
mov rcx, rbx
call sub.msvcrt.dll_free
mov eax, 1
jmp 0x10005081d
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10005081d
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x100050f74
Capabilities:
Get common file path
Set current directory
Write file on windows

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 r13
sub rsp, 0x20
mov rbx, qword [0x1000bb0e8]
mov r13d, 4
lea rdx, [0x1000206d0]
mov ecx, r13d
call fcn.1000660b0
xor esi, esi
cmp dword [rbx + 0x18], esi
jbe 0x10005101a
xor ebp, ebp
mov rax, qword [rbx + 0x10]
mov rdi, qword [rax + rbp]
cmp dword [rdi + 0x18], 1
je 0x100050fc6
cmp dword [rdi + 0x18], 3
jne 0x10005100f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
test al, al
je 0x10005100f
cmp dword [rdi + 0x18], 1
jne 0x100050fe6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
test al, al
jne 0x10005100f
cmp byte [rdi + 0x14], 0
mov r9, qword [rdi + 0x20]
lea rax, [0x100020750]
lea r8, [0x10000295c]
lea rdx, [0x100017fa0]
mov ecx, r13d
cmovne r8, rax
call fcn.1000660b0
inc esi
add rbp, 8
cmp esi, dword [rbx + 0x18]
jb 0x100050fb2
lea rdx, [0x100020770]
mov ecx, r13d
call fcn.1000660b0
xor edi, edi
cmp dword [rbx + 0x18], edi
jbe 0x100051072
xor esi, esi
mov rax, qword [rbx + 0x10]
mov rbp, qword [rsi + rax]
cmp dword [rbp + 0x18], 1
je 0x100051046
cmp dword [rbp + 0x18], 3
jne 0x100051067
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 8]
test al, al
jne 0x100051067
mov r8, qword [rbp + 0x20]
lea rdx, [0x1000207ec]
mov ecx, r13d
call fcn.1000660b0
inc edi
add rsi, 8
cmp edi, dword [rbx + 0x18]
jb 0x100051032
lea rdx, [0x100020800]
mov ecx, r13d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r13
jmp fcn.1000660b0
Function at 0x100055f30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov r12b, r9b
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov dword [rcx + 0x10], edi
mov dword [rcx + 8], 1
mov dword [rcx + 0xc], edi
mov dword [rcx + 0x28], edi
mov qword [rcx + 0x20], rdi
mov byte [rcx + 0x14], dil
mov dword [rcx + 0x18], 3
lea rax, [0x100021d80]
mov qword [rcx], rax
lea eax, [rdi + 2]
mul r13
lea r14, [rdi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.1000a1d24
mov qword [rbx + 0x68], rax
cmp rax, rdi
je 0x100055fb8
mov r8, rbp
mov rdx, r13
mov rcx, rax
call sub.msvcrt.dll_wcscpy_s
mov dword [rbx + 0x70], r13d
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x88], rdi
mov qword [rbx + 0x80], rdi
mov qword [rbx + 0x98], rdi
mov byte [rbx + 0x34], r12b
mov qword [rbx + 0x78], rdi
mov byte [rbx + 0x90], dil
mov qword [rbx + 0x50], rdi
mov dword [rbx + 0x3c], edi
mov dword [rbx + 0x38], edi
mov dword [rbx + 0x40], edi
movzx ecx, r12b
mov eax, 4
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1000a1d24
mov qword [rbx + 0x48], rax
cmp rax, rdi
je 0x100056034
cmp byte [rbx + 0x34], dil
jbe 0x100056034
mov rcx, rdi
mov rax, qword [rbx + 0x48]
mov dword [rcx + rax], 0x64
inc edi
add rcx, 4
movzx eax, byte [rbx + 0x34]
cmp edi, eax
jb 0x10005601b
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x100057f2c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x20
mov rbx, rcx
mov r13d, 0x40
mov rcx, r13
call fcn.1000a1c84
xor edi, edi
lea r12, [0x100024248]
cmp rax, rdi
je 0x100057f88
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
mov qword [rax], r12
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
jmp 0x100057f8b
mov rax, rdi
mov rcx, r13
mov qword [rbx + 0x60], rax
call fcn.1000a1c84
cmp rax, rdi
je 0x100057fc4
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], edi
mov qword [rax], r12
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
jmp 0x100057fc7
mov rax, rdi
mov rcx, rax
mov qword [rbx + 0x68], rax
call fcn.1000677fc
mov rcx, r13
call fcn.1000a1c84
cmp rax, rdi
je 0x10005800f
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], 0x10
mov qword [rax + 0x18], rdi
lea rcx, [0x100024270]
mov dword [rax + 0x20], edi
mov qword [rax + 0x28], rdi
mov qword [rax + 0x30], rdi
mov dword [rax + 0x38], 0x3e8
mov qword [rax], rcx
jmp 0x100058012
mov rax, rdi
mov rcx, rax
mov qword [rbx + 0x70], rax
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
add rsp, 0x20
pop r13
jmp fcn.1000677fc
Function at 0x1000663d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1000af140]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov bpl, r8b
mov edi, edx
mov rsi, rcx
lea rbx, [rsp + 0x60]
cmp edx, 0x40
ja 0x100066485
je 0x100066479
mov eax, edx
sub eax, 1
je 0x10006646d
sub eax, 1
je 0x100066461
sub eax, 2
je 0x100066455
sub eax, 4
je 0x100066449
sub eax, 8
je 0x10006643d
cmp eax, 0x10
jne 0x1000664b1
lea rbx, [0x100024950]
jmp 0x100066518
lea rbx, [0x100024928]
jmp 0x100066518
lea rbx, [0x100024908]
jmp 0x100066518
lea rbx, [0x100024938]
jmp 0x100066518
lea rbx, [0x1000248f0]
jmp 0x100066518
lea rbx, [0x1000248e0]
jmp 0x100066518
lea rbx, [0x100024978]
jmp 0x100066518
cmp edx, 0x80
je 0x100066511
cmp edx, 0x100
je 0x100066508
cmp edx, 0x200
je 0x1000664ff
cmp edx, 0x400
je 0x1000664f6
cmp edx, 0x800
je 0x1000664ed
mov rax, qword [0x1000b8928]
test rax, rax
je 0x1000664ce
mov ecx, edx
call rax
mov rbx, rax
test rax, rax
jne 0x100066518
lea rbx, [rsp + 0x60]
or r8, 0xffffffffffffffff
lea r9, [0x1000249e8]
lea rcx, [rsp + 0x60]
lea edx, [r8 + 0x11]
mov dword [rsp + 0x20], edi
call sub.msvcrt.dll__snwprintf_s
jmp 0x100066518
lea rbx, [0x1000249d8]
jmp 0x100066518
lea rbx, [0x1000249c8]
jmp 0x100066518
lea rbx, [0x1000249b0]
jmp 0x100066518
lea rbx, [0x1000249a0]
jmp 0x100066518
lea rbx, [0x100024988]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
test bpl, bpl
je 0x1000665d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x1000665b8
and qword [rsp + 0x30], 0
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x48]
lea rcx, [0x1000248d0]
mov edx, 0xc0000000
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x48], 0x18
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1000665ef
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000665ef
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1000665ef
and qword [rsp + 0x20], rax
lea r8d, [rcx + rcx - 2]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000a2150
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x1000677fc
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
test rcx, rcx
jne 0x10006783c
lea rax, [0x100024d30]
mov byte [rsp + 0x30], 1
lea r8d, [rcx + 1]
mov qword [rsp + 0x28], rax
lea rax, [0x100024d50]
xor edx, edx
mov r9d, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.100068ab8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret
Function at 0x100067cc4
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
and dword [rax + 0x18], 0
lea rdx, [0x10000295c]
lea rcx, [rax - 0x30]
call fcn.100064160
nop
mov esi, 0x80
mov dword [rsp + 0x68], esi
lea eax, [rsi - 0x7e]
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1000a1c84
mov rbx, rax
test rax, rax
jne 0x100067d44
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1000640ec
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
jmp 0x100067db6
lea r8, [rsp + 0x68]
mov rdx, rax
mov ecx, 3
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x100067d69
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.100064394
jmp 0x100067d8c
mov dword [rsp + 0x68], esi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100067d8c
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.100064394
mov rcx, rbx
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.1000640ec
mov dword [rsp + 0x70], 1
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x100067fdc
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1000af140]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebx, ebx
cmp byte [0x1000bb01d], bl
jne 0x100068008
xor al, al
jmp 0x10006808a
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x70], bx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
lea rdx, [0x100024d70]
mov r8d, 0x3e
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
je 0x100068001
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
je 0x100068001
lea r8, [rsp + 0x70]
lea rdx, [0x100002950]
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
setg al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000a2150
add rsp, 0x290
pop rbx
ret

Function at 0x10006837c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x11
movzx ebx, ax
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x10
movzx edi, ax
shr edi, 0xf
and edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [rsp + 0x30]
movzx eax, ax
shr eax, 0xf
and eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x10006864c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, 1
cmp dword [rsp + 0x38], ebx
mov r8d, ebx
jle 0x1000686a8
lea rdx, [rax + 8]
mov rsi, qword [rdx]
lea rdi, [0x10001a3a8]
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
je 0x1000686aa
add r8d, ebx
add rdx, 8
cmp r8d, dword [rsp + 0x38]
jl 0x100068686
xor bl, bl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x40]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1000686cc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, 1
cmp dword [rsp + 0x40], r8d
mov rbx, rax
jle 0x10006872b
lea rdx, [rax + 8]
mov rcx, qword [rdx]
cmp word [rcx], 0x2f
je 0x10006871d
cmp word [rcx], 0x2d
jne 0x10006873d
inc r8d
add rdx, 8
cmp r8d, dword [rsp + 0x40]
jl 0x10006870e
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x100068754
movsxd r8, r8d
mov rdx, rsi
mov rcx, rdi
mov r8, qword [rax + r8*8]
call sub.msvcrt.dll_wcscpy_s
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
jmp 0x10006872d
Function at 0x100068800
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1000af140]
xor rax, rsp
mov qword [rsp + 0x150], rax
test rcx, rcx
jne 0x100068825
xor al, al
jmp 0x10006894d
cmp qword [0x1000bb458], 0
mov qword [0x1000bb430], rcx
mov qword [0x1000bb428], rdx
mov byte [0x1000bb126], r8b
jne 0x10006894b
lea rcx, [0x100024db0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1000bb458], rax
test rax, rax
je 0x100068906
lea rdx, [0x100024dc8]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1000bb458]
lea rdx, [0x100024dd8]
mov qword [0x1000bb438], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1000bb438], 0
mov qword [0x1000bb448], rax
jne 0x1000688a4
test rax, rax
je 0x100068906
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100068906
cmp dword [rsp + 0x34], 6
jb 0x100068906
cmp dword [rsp + 0x38], 0
jne 0x100068906
cmp dword [rsp + 0x40], 2
jne 0x100068906
cmp dword [rsp + 0x3c], 0x147c
jae 0x100068906
mov rax, qword [0x1000bb438]
and qword [0x1000bb438], 0
mov qword [0x1000bb440], rax
mov rax, qword [0x1000bb448]
and qword [0x1000bb448], 0
mov qword [0x1000bb450], rax
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetProcessDefaultLayout]
mov r11b, byte [rsp + 0x20]
mov edx, 0xbb8
and r11b, 1
mov ecx, 0x40
mov dword [0x1000bb4e8], edx
mov byte [0x1000b8866], r11b
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
and qword [0x1000b8998], 0
mov qword [0x1000bb4e0], rax
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000a2150
add rsp, 0x168
ret
Function at 0x1000697cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x1000bb430]
mov rdi, rdx
mov rdx, r8
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x100069854
mov rcx, qword [0x1000bb430]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100069854
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x100069854
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x100069854
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x100069869
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rdi], 0
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rdi]
and qword [rsp + 0x68], 0
mov esi, 1
lea r8, [rsp + 0x68]
mov edx, esi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1000698e7
mov r12, qword [rsp + 0x68]
lea ecx, [rsi + 0x17]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x1000698d6
and qword [rsp + 0x20], 0
lea rax, [0x100023e68]
lea rdx, [rsp + 0x20]
mov rcx, r12
mov qword [rbx], rax
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov rcx, qword [rsp + 0x20]
mov qword [rbx + 8], rcx
mov dword [rbx + 0x10], eax
jmp 0x1000698d8
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
mov qword [rbp], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r11, qword [rbp]
test r11, r11
je 0x100069906
mov eax, dword [r11 + 0x10]
and dword [r11 + 0x10], 0
test eax, eax
je 0x100069908
xor esi, esi
mov al, sil
jmp 0x100069856
Function at 0x10006cdc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r12, rcx
mov rbp, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
mov r14, rdx
repne scasw ax, word [rdi]
mov eax, 0x40000000
not rcx
dec rcx
cmp ecx, eax
mov rsi, rcx
cmova esi, eax
xor r13d, r13d
cmp esi, 1
jb 0x10006cee2
cmp word [r12], 0x7c
jne 0x10006cee2
lea rcx, [r12 + 2]
lea r8d, [r13 + 0xa]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstoul]
mov ebx, eax
cmp eax, r13d
je 0x10006cee2
shr eax, 4
xor ecx, ecx
inc eax
movzx r13d, ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8, r13
mov rcx, rax
xor eax, eax
lea edx, [rax + 6]
movzx r9d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
xor eax, eax
cmp rdi, rax
jne 0x10006ce98
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
xor ecx, ecx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx r9d, di
mov r8, r13
mov edx, 6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor r13d, r13d
mov rdi, rax
cmp rax, r13
je 0x10006cee2
jmp 0x10006ce9b
xor r13d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x10006cee2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
cmp rax, r13
je 0x10006cee2
and ebx, 0xf
jbe 0x10006cedb
mov edi, ebx
movzx ecx, word [rdx]
inc ecx
sub rdi, 1
lea rdx, [rdx + rcx*2]
jne 0x10006cecc
movzx esi, word [rdx]
lea r12, [rdx + 2]
lea ecx, [rsi + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1000a1c84
mov rbx, rax
cmp rax, r13
jne 0x10006cf0f
xor eax, eax
jmp 0x10006cfb6
lea rdi, [rsi + rsi]
mov rdx, r12
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov word [rdi + rbx], r13w
or rsi, 0xffffffffffffffff
xor eax, eax
mov rcx, rsi
mov rdi, rbx
mov qword [rsp + 0x70], r13
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x10006cf7e
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
mov edi, ecx
lea rdx, [rcx + rcx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x70], rax
call sub.msvcrt.dll_wcscpy_s
jmp 0x10006cfb1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov ecx, 0x500
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, rbx
call sub.msvcrt.dll_free
mov rax, qword [rsp + 0x70]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret