joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002849c
Capabilities:
Hash data via bcrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400537d8]
xor rax, rsp
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea ebx, [rdx - 1]
add ebx, r8d
mov rsi, rcx
neg r8d
and ebx, r8d
sub ebx, edx
cmp ebx, 8
jb 0x1400284fa
mov edi, ebx
shr rdi, 3
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 8]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
add ebx, 0xfffffff8
sub rdi, 1
jne 0x1400284d5
test ebx, ebx
je 0x140028519
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140039fa0
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x140028610
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov ebx, dword [r8 + 0x2c]
mov rbp, r8
mov esi, dword [rsp + 0x70]
mov r15, rcx
mov edi, r9d
cmp r9d, ebx
ja 0x14002866c
sub ebx, edi
cmp esi, ebx
cmovb ebx, esi
test ebx, ebx
je 0x140028668
mov rcx, qword [rcx + 8]
mov edx, edi
add rdx, qword [r8]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
sub esi, ebx
add edi, ebx
test esi, esi
je 0x1400286e3
cmp qword [rbp + 0x40], 0
jne 0x14002867a
mov eax, 0xc000000d
jmp 0x1400286e5
test esi, esi
je 0x1400286e3
lea r14, [rbp + 0x38]
mov ebx, dword [r14]
test ebx, ebx
je 0x1400286c0
cmp edi, dword [rbp + 0x3c]
jb 0x1400286c0
mov eax, edi
sub eax, dword [rbp + 0x3c]
cmp eax, ebx
jae 0x1400286c0
mov rcx, qword [r15 + 8]
sub ebx, eax
mov edx, eax
cmp esi, ebx
cmovb ebx, esi
add rdx, qword [rbp + 0x30]
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
sub esi, ebx
je 0x1400286e3
add edi, ebx
mov rcx, qword [rbp + 0x48]
lea r9, [rbp + 0x30]
mov rax, qword [rbp + 0x40]
lea r8, [rbp + 0x3c]
mov edx, edi
mov qword [rsp + 0x20], r14
call qword [case.0x140036da7.0]
test eax, eax
jns 0x140028682
jmp 0x1400286e5
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14002b608
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub rsp, 0x48
and qword [rsp + 0x30], 0
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov r8, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
nop dword [rax + rax]
test eax, eax
jne 0x14002b64f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14002b65e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x14002b66c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor r8d, r8d
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov ecx, eax
add rcx, rcx
mov esi, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14002b6bf
mov ecx, 0x8007000e
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
jmp 0x14002b6ec
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x14002b6e9
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14002b6bb
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14002b7f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov r14, rdx
and dword [rax + 0x18], ebx
xor esi, esi
call fcn.14002b66c
mov r15, rax
test rax, rax
jne 0x14002b83e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002b982
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r15
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002b896
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002b973
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
nop dword [rax + rax]
cmp eax, 1
je 0x14002b8b4
mov ebx, 0x80070057
jmp 0x14002b94b
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14002b928
cmp dword [rsp + 0x70], ebx
je 0x14002b8dc
mov ebx, 0x80004005
jmp 0x14002b94b
and qword [rsp + 0x28], rbx
xor r9d, r9d
and dword [rsp + 0x20], ebx
xor edx, edx
mov rcx, rdi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14002b928
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
test rax, rax
jne 0x14002b944
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002b94b
mov dword [r14], ebp
mov qword [r14 + 8], rax
test rdi, rdi
je 0x14002b95f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14002b973
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002b9a4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, rdx
and dword [rsp + 0x70], ebx
call fcn.14002b66c
mov rsi, rax
test rax, rax
jne 0x14002b9eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002bacb
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002ba3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002babc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
nop dword [rax + rax]
cmp eax, 1
je 0x14002ba5a
mov ebx, 0x80070057
jmp 0x14002baa8
mov ebp, dword [r14]
lea r9, [rsp + 0x70]
mov rdx, qword [r14 + 8]
mov r8d, ebp
and qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14002ba9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002baa8
cmp dword [rsp + 0x70], ebp
je 0x14002baa8
mov ebx, 0x80004005
test rdi, rdi
je 0x14002babc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14002be9c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, r8
mov edi, edx
mov rsi, rcx
and dword [rax + 0x20], 0
lea rax, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x40000001
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
nop dword [rax + rax]
test eax, eax
jne 0x14002bf06
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14002bfb9
mov edx, dword [rsp + 0x88]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x38]
call fcn.14002c6e4
nop
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x38]
mov r9, rbx
mov r8d, 0x40000001
mov edx, edi
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
nop dword [rax + rax]
test eax, eax
jne 0x14002bf89
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test rbx, rbx
je 0x14002bf85
mov rcx, rbx
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
mov eax, edi
jmp 0x14002bfb9
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x14002bf8d
mov rdx, rbx
mov rcx, rbp
call fcn.1400093c4
nop
test rbx, rbx
je 0x14002bfb7
mov rcx, rbx
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002c0b4
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x70
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rbx, r8
mov esi, edx
mov rbp, rcx
mov rax, qword [r8]
cmp rax, qword [r8 + 8]
je 0x14002c0e1
mov qword [r8 + 8], rax
test esi, esi
je 0x14002c1f9
and dword [rsp + 0x88], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop dword [rax + rax]
test eax, eax
jne 0x14002c141
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14002c1fb
mov edx, dword [rsp + 0x88]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
call fcn.14002c6e4
nop
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8d, 1
mov edx, esi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop dword [rax + rax]
test eax, eax
jne 0x14002c1d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp qword [rsp + 0x48], 0
je 0x14002c1ce
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14002c1fb
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14002c588
nop
cmp qword [rsp + 0x48], 0
je 0x14002c1f9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x14002c350
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r14
sub rsp, 0xb0
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r14, r8
mov rsi, rdx
xor edi, edi
and dword [rax - 0x78], edi
and dword [rax + 8], edi
and dword [rax + 0x20], edi
xorps xmm0, xmm0
movdqu xmmword [rax - 0x38], xmm0
and qword [rax - 0x28], rdi
movdqu xmmword [rax - 0x58], xmm0
and qword [rax - 0x48], rdi
and qword [rax - 0x68], rdi
and qword [rax - 0x70], rdi
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA256
lea rcx, [rax - 0x70]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
test eax, eax
je 0x14002c3c8
jmp 0x14002c4eb
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0xc0]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
test eax, eax
je 0x14002c406
jmp 0x14002c4eb
mov edx, dword [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call fcn.1400040c4
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0xc0]
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
nop dword [rax + rax]
test eax, eax
je 0x14002c459
jmp 0x14002c4eb
xor r9d, r9d
mov r8d, dword [rsi]
mov rdx, qword [rsi + 8]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
nop dword [rax + rax]
test eax, eax
je 0x14002c47a
jmp 0x14002c4eb
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0xd8]
lea rdx, str.HashDigestLength
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
test eax, eax
je 0x14002c4b5
jmp 0x14002c4eb
mov edx, dword [rsp + 0xd8]
lea rcx, [rsp + 0x60]
call fcn.1400040c4
xor r9d, r9d
mov r8d, dword [rsp + 0xd8]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
nop dword [rax + rax]
test eax, eax
je 0x14002c4f3
mov edi, eax
bts edi, 0x1c
jmp 0x14002c507
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.140004194
nop
jmp 0x14002c507
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002c51d
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002c536
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002c54d
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002c566
call qword [sym.imp.MFC42.dll_CListCtrl::SetColumnOrderArray]
nop dword [rax + rax]
mov eax, edi
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x1400348d8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
test rdx, rdx
je 0x140034979
test r8, r8
je 0x140034979
or qword [rcx + 0x10], 0xffffffffffffffff
mov rax, qword [rcx + 0x30]
mov dword [rcx], 0x80
mov qword [rcx + 8], rdx
mov qword [rcx + 0x18], r8
mov dword [rcx + 0x54], 0x10001
mov dword [rcx + 0x68], ebx
test rax, rax
jne 0x14003497e
lea r9d, [rbx + 0x18]
mov qword [rsp + 0x48], rbx
lea r8, str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
nop dword [rax + rax]
neg eax
sbb rax, rax
and rax, qword [rsp + 0x48]
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x14003497e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14003497e
mov ebx, 0x80070057
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140035a5c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400537d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x80], rbx
je 0x140035bc6
cmp byte [rcx + 0x8a], bl
je 0x140035bc6
mov rax, qword [rcx]
mov esi, 0xffff
mov edx, esi
mov rax, qword [rax + 0x18]
call qword [case.0x140036da7.0]
cmp si, ax
jne 0x140035acb
xor al, al
jmp 0x140035bcb
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
mov byte [rax + 8], bl
lea esi, [rdx - 0xe]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x80]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x30]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x8c]
call qword [case.0x140036da7.0]
mov ecx, eax
test eax, eax
je 0x140035b3c
sub ecx, esi
je 0x140035b42
cmp ecx, 2
jne 0x140035bb2
jmp 0x140035baf
mov byte [rdi + 0x8a], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x140035b83
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x98]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x140035bac
cmp byte [rdi + 0x8a], bl
je 0x140035ba9
test r14, r14
jne 0x140035aec
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400062c8
jmp 0x140035aec
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x140035bc2
mov rcx, qword [rbp - 0x30]
call sub.MFC42.dll_CListCtrl::SetColumnOrderArray
mov al, bl
jmp 0x140035bcb
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140039fa0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140037784
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400537d8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x80], rbx
je 0x1400378ea
cmp byte [rcx + 0x89], bl
je 0x1400378ea
mov rax, qword [rcx]
or edx, 0xffffffff
mov rax, qword [rax + 0x18]
call qword [case.0x140036da7.0]
cmp eax, 0xffffffff
jne 0x1400377ef
xor al, al
jmp 0x1400378ef
mov edx, 0xf
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
mov byte [rax + 8], bl
lea esi, [rdx - 0xe]
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x80]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x30]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x8c]
call qword [case.0x140036da7.0]
mov ecx, eax
test eax, eax
je 0x140037860
sub ecx, esi
je 0x140037866
cmp ecx, 2
jne 0x1400378d6
jmp 0x1400378d3
mov byte [rdi + 0x89], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x1400378a7
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x98]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
cmp r14, rax
jne 0x1400378d0
cmp byte [rdi + 0x89], bl
je 0x1400378cd
test r14, r14
jne 0x140037810
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400062c8
jmp 0x140037810
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x1400378e6
mov rcx, qword [rbp - 0x30]
call sub.MFC42.dll_CListCtrl::SetColumnOrderArray
mov al, bl
jmp 0x1400378ef
mov eax, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140039fa0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140039da0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140058300], rbx
je 0x140039dec
cmp rax, rbx
jne 0x140039ddf
mov ebx, 1
mov esi, ebx
jmp 0x140039df1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140039dc4
mov ebx, 1
mov eax, dword [0x140058308]
cmp eax, ebx
jne 0x140039e07
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140039e6c
mov eax, dword [0x140058308]
test eax, eax
jne 0x140039e66
mov dword [0x140058308], ebx
lea r15, [0x1400402d8]
lea rdi, [0x1400402c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140039e58
test eax, eax
jne 0x140039e5c
cmp qword [rdi], 0
je 0x140039e4d
mov rax, qword [rdi]
mov rcx, qword [case.0x140036da7.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140039e2e
test eax, eax
je 0x140039e6c
mov eax, 0xff
jmp 0x140039f48
mov dword [0x140053c08], ebx
mov eax, dword [0x140058308]
cmp eax, ebx
jne 0x140039e93
lea rdx, [0x1400402b8]
lea rcx, [0x140040228]
call sub.msvcrt.dll__initterm
mov dword [0x140058308], 2
test esi, esi
jne 0x140039ea0
xor eax, eax
xchg qword [0x140058300], rax
cmp qword [0x140058320], 0
je 0x140039ed4
lea rcx, [0x140058320]
call fcn.14003a790
test eax, eax
je 0x140039ed4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140058320]
mov r9, qword [case.0x140036da7.0]
call r9
mov r8, qword [0x140053c20]
mov rdx, qword [0x140053c18]
mov ecx, dword [0x140053c10]
call fcn.140027958
mov dword [0x140053c04], eax
cmp dword [0x140053c28], 0
jne 0x140039f04
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140053c08], 0
jne 0x140039f19
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140053c04]
jmp 0x140039f48
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14017f000
add rsp, 0x28
jmp 0x140039da0

Function at 0x14003a68c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003a6d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a6d0
cmp dword [rcx + 0x3c], edx
jl 0x14003a6d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003a6d0
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 0x14003a6d8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000ef60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebx, ecx
mov r14, r8
xor ecx, ecx
mov qword [r8], 0
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000f071
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
mov rcx, rsi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14000f071
mov edx, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, ebp
mov rdx, rdi
mov rcx, rax
call fcn.1400627a0
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov rbp, qword [rsp + 0x58]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x14000f04b
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rbp
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov rcx, qword [rsp + 0x50]
mov qword [rbx + 8], rcx
mov dword [rbx + 0x10], eax
jmp 0x14000f04d
xor ebx, ebx
mov rcx, rsi
mov qword [r14], rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov al, 1
jmp 0x14000f073
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret