joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030f98
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140127800]
test rcx, rcx
jne 0x140030fbe
call fcn.140031080
test eax, eax
je 0x140031005
mov rcx, qword [0x140127800]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x140030fe3
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
mov word [rax + 0x14], cx
jmp 0x14003106b
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140031009
xor eax, eax
jmp 0x14003106b
mov eax, dword [rax]
mov rcx, qword [0x140127800]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140031042
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax + rax]
mov rax, rdi
jmp 0x14003106b
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140127800]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
nop dword [rax + rax]
add rbx, 0x20
cmp rbx, rdi
jb 0x140031049
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400316d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 8]
mov rdi, rcx
mov dword [rcx], eax
mov rbx, rdx
movups xmm0, xmmword [rdx + 0xc]
xor r8d, r8d
movdqu xmmword [rcx + 4], xmm0
xor ecx, ecx
mov dword [rdi + 0x14], ecx
mov eax, dword [rdx + 0x60]
mov dword [rdi + 0x18], eax
mov rax, qword [rdx + 0x64]
mov qword [rdi + 0x1c], rax
mov eax, dword [rdx + 0x6c]
mov dword [rdi + 0x24], eax
mov eax, dword [rdx + 0x70]
mov dword [rdi + 0x28], eax
mov eax, dword [rdx + 0x74]
mov dword [rdi + 0x2c], eax
mov eax, dword [rdx + 0x78]
mov dword [rdi + 0x30], eax
mov eax, dword [rdx + 0x7c]
mov dword [rdi + 0x34], eax
mov eax, dword [rdx + 0x80]
mov qword [rdi + 0x3c], rcx
mov qword [rdi + 0x44], rcx
mov rcx, rdi
mov dword [rdi + 0x38], eax
mov al, byte [rdx]
add rdx, 0x20
mov byte [rdi + 0x4c], al
call fcn.14003182c
lea rdx, [rbx + 0x40]
mov word [rdi + 0x14], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0x88]
mov word [rdi + 0x16], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0xa8]
mov word [rdi + 0x3c], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0xc8]
mov word [rdi + 0x3e], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0xe8]
mov word [rdi + 0x40], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0x108]
mov word [rdi + 0x42], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0x148]
mov word [rdi + 0x44], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0x168]
mov word [rdi + 0x46], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
lea rdx, [rbx + 0x128]
mov word [rdi + 0x48], ax
movzx r8d, ax
mov rcx, rdi
call fcn.14003182c
mov rbx, qword [rsp + 0x30]
mov word [rdi + 0x4a], ax
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140031884
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
sub rsp, 0x50
xor ebx, ebx
lea r9, [r11 + 0x20]
mov qword [r11 - 0x28], rbx
mov rax, r8
mov qword [r11 - 0x20], rbx
mov r8d, 0x800
mov qword [r11 - 0x10], rbx
mov dword [rsp + 0x40], edx
shr rdx, 0x20
mov dword [rsp + 0x44], edx
lea rdx, [r11 - 0x28]
mov qword [r11 - 0x38], rdx
mov rdx, rax
mov dword [rsp + 0x78], ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x1400318e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov dword [rcx], eax
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x140031c64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x58
cmp byte [rcx + 0x58], 0
mov r11, r9
mov edx, dword [rcx + 0x54]
mov r10, rcx
je 0x140031c9a
sub r8d, edx
mov rcx, r11
mov edx, r8d
mov r8d, 0x800
shl rdx, 0xb
add rdx, qword [r10 + 0x18]
call sub.msvcrt.dll_memcpy
jmp 0x140031d15
cmp r8d, edx
jb 0x140031ca9
mov ecx, dword [rcx + 0x50]
add ecx, edx
cmp r8d, ecx
jb 0x140031c7c
cmp r8d, dword [r10 + 0x48]
jae 0x140031d19
mov rcx, qword [r10 + 8]
lea r9, [rsp + 0x68]
and qword [rsp + 0x30], 0
mov rdx, r11
and qword [rsp + 0x38], 0
and qword [rsp + 0x48], 0
and dword [rsp + 0x68], 0
mov eax, r8d
mov r8d, 0x800
shl rax, 0xb
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x140031d15
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140031d19
mov al, 1
jmp 0x140031d1b
xor al, al
add rsp, 0x58
ret
Function at 0x140031d94
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x30
mov r10d, dword [rcx + 0x54]
mov rbx, rcx
cmp r8d, r10d
jb 0x140031dc1
mov ecx, dword [rcx + 0x50]
add ecx, r10d
cmp r8d, ecx
ja 0x140031dc1
lea eax, [r8 + r9]
cmp eax, ecx
jbe 0x140031f0f
mov r9d, dword [rbx + 0x50]
xor edx, edx
mov r11d, dword [rbx + 0x4c]
mov eax, r8d
add r11d, dword [rbx + 0x48]
div r9d
sub r8d, edx
lea eax, [r9 + r8]
cmp eax, r11d
jbe 0x140031df2
xor edx, edx
mov eax, r11d
div r9d
mov r8d, r11d
sub r8d, edx
sub r8d, r9d
cmp r8d, r10d
je 0x140031f0f
cmp byte [rbx + 0x58], 0
jne 0x140031f0b
mov dword [rbx + 0x54], r8d
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x18], 0
test rcx, rcx
je 0x140031e23
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
and qword [rbx + 0x10], 0
lea rax, [rcx + 1]
cmp rax, 1
jbe 0x140031e42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140031f0b
mov eax, dword [rsp + 0x48]
xor edx, edx
and qword [rsp + 0x28], 0
mov r8d, 0x8000004
mov r9d, dword [rsp + 0x4c]
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x10], rax
lea rax, [rcx + 1]
cmp rax, 1
jbe 0x140031ea8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rax, [rcx + 1]
cmp rax, 1
jbe 0x140031f0b
mov eax, dword [rbx + 0x54]
mov r8d, dword [rbx + 0x50]
shl rax, 0xb
shl r8, 0xb
mov rdx, rax
shr rdx, 0x20
mov r9d, eax
mov qword [rsp + 0x20], r8
mov r8d, edx
mov edx, 0xf001f
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x18], rax
test rcx, rcx
je 0x140031f01
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 0
setne al
jmp 0x140031f11
xor al, al
jmp 0x140031f11
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x14003626c
Capabilities:
Read .ini file

Disassembly:
push rbx
push rdi
sub rsp, 0x258
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x240], rax
add rcx, 0x18
mov qword [rsp + 0x38], rdx
xor ebx, ebx
mov r10, r9
mov rax, r8
mov rdi, rdx
cmp qword [rcx + 0x18], 8
jb 0x1400362a6
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, r10
mov dword [rsp + 0x20], 0xff
lea r8, [0x140073518]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x40], bx
je 0x1400362fc
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400362f0
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140004eb0
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140062a30
add rsp, 0x258
pop rdi
pop rbx
ret
Function at 0x140036330
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x248
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x230], rax
add rcx, 0x18
mov rax, r8
cmp qword [rcx + 0x18], 8
jb 0x14003635a
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x20], 0xff
lea r8, [0x140073518]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wtol]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140062a30
add rsp, 0x248
ret

Function at 0x1400363b4
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x248
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x230], rax
add rcx, 0x18
mov rax, r8
cmp qword [rcx + 0x18], 8
jb 0x1400363de
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x20], 0xff
lea r8, [0x140073518]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
lea rdx, str.TRUE
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_wcscmp
test eax, eax
sete al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140062a30
add rsp, 0x248
ret

Function at 0x14003643c
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x118
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rsp + 0x100], rax
add rcx, 0x18
mov rax, rdx
cmp qword [rcx + 0x18], 8
jb 0x140036466
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x20], 0x64
lea r8, [0x140073518]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
nop dword [rax + rax]
test eax, eax
setg al
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140062a30
add rsp, 0x118
ret
Function at 0x1400364b4
Capabilities:
Read .ini file

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0xf00]
mov eax, 0x1000
call fcn.140063af0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x1028], rbx
mov qword [rsp + 0x1030], rsi
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rbp + 0xef0], rax
mov rdi, rcx
call fcn.14000fd18
lea r8, [rdi + 0x18]
cmp qword [r8 + 0x18], 8
jb 0x14003650e
mov r8, qword [r8]
mov edx, 0x7d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
nop dword [rax + rax]
mov qword [rsp + 0x48], 7
xor r14d, r14d
mov ecx, r14d
mov qword [rsp + 0x40], rcx
mov word [rsp + 0x30], r14w
movsxd rsi, eax
test eax, eax
jle 0x1400365c3
mov ebx, r14d
movzx r8d, word [rsp + rbx*2 + 0x50]
test r8w, r8w
je 0x140036565
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140002394
jmp 0x1400365b4
test rcx, rcx
je 0x14003659a
mov eax, 0x24
mov word [rsp + 0x20], ax
lea r9d, [rax - 0x23]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14000c518
cmp rax, 0xffffffffffffffff
jne 0x14003659a
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140036664
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], r14
mov word [rax], r14w
inc rbx
cmp rbx, rsi
jge 0x1400365c3
mov rcx, qword [rsp + 0x40]
jmp 0x140036548
cmp qword [rsp + 0x48], 8
jb 0x1400365dc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rax, rdi
mov rcx, qword [rbp + 0xef0]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x1000]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140036794
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x10]
xor esi, esi
mov rbx, rcx
cmp qword [rdi], rsi
je 0x1400367c7
cmp qword [rcx + 0x18], 8
jb 0x1400367bb
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
cmp qword [rbx + 0x18], 8
jb 0x1400367d1
mov rbx, qword [rbx]
mov qword [rdi], rsi
mov word [rbx], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400374fc
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140126510]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov qword [rsp + 0x40], 7
xor esi, esi
mov qword [rsp + 0x38], rsi
mov word [rsp + 0x28], si
mov rbx, qword [rcx + 8]
lea rdx, [rbx + 0x3c]
cmp rdx, 7
je 0x140037584
mov r8b, 1
lea rcx, [rsp + 0x28]
call fcn.14000278c
test al, al
je 0x140037584
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rsi
mov word [rax], si
or qword [rsp + 0x50], 0xffffffffffffffff
movaps xmm1, xmmword [rdi]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r8, xmm0
movq rdx, xmm1
lea rcx, [rsp + 0x28]
call fcn.14000254c
mov r8d, 3
lea rdx, [0x140073538]
lea rcx, [rsp + 0x28]
call fcn.14000254c
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.140043404
test al, al
je 0x140037682
cmp rbx, qword [rsp + 0x38]
ja 0x140037607
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rbx
mov word [rax + rbx*2], si
jmp 0x14003761c
xor r8d, r8d
mov rdx, rbx
sub rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.140002394
cmp word [rbp - 0x7c], si
jne 0x140037627
mov r8, rsi
jmp 0x140037639
lea rax, [rbp - 0x7c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14003762f
lea rdx, [rbp - 0x7c]
lea rcx, [rsp + 0x28]
call fcn.14000254c
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400375e4
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14003769a
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
nop
cmp qword [rsp + 0x40], 8
jb 0x1400376b3
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140062a30
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400378ac
Capabilities:
Delete directory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor edi, edi
test rcx, rcx
je 0x14003791c
cmp qword [rbx + 0x18], 8
jb 0x1400378df
mov rax, qword [rbx]
jmp 0x1400378e2
mov rax, rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.1400374fc
cmp qword [rbx + 0x18], 8
jb 0x14003790d
mov rcx, qword [rbx]
jmp 0x140037910
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop dword [rax + rax]
cmp qword [rbx + 0xc8], 8
jb 0x140037939
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov esi, 7
mov qword [rbx + 0xc8], rsi
mov qword [rbx + 0xc0], rdi
mov word [rbx + 0xb0], di
lea rcx, [rbx + 0x98]
call fcn.14000c48c
cmp qword [rbx + 0x90], 8
jb 0x140037979
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], rdi
mov word [rbx + 0x78], di
lea rcx, [rbx + 0x60]
call fcn.14000c48c
cmp qword [rbx + 0x58], 8
jb 0x1400379ab
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x50], rdi
mov word [rbx + 0x40], di
cmp qword [rbx + 0x38], 8
jb 0x1400379ce
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x30], rdi
mov word [rbx + 0x20], di
cmp qword [rbx + 0x18], 8
jb 0x1400379f0
mov rcx, qword [rbx]
call qword [sym.imp.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek]
nop dword [rax + rax]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rdi
mov word [rbx], di
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140042838
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140042884
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004287c
cmp dword [rcx + 0x3c], edx
jl 0x14004287c
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14004287c
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 0x140042884
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140046168
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx]
lea r15, [rcx + 0x10]
xor r13d, r13d
mov qword [rcx + 8], rax
mov r14, rcx
mov word [rax], r13w
mov rbx, qword [rcx + 8]
lea edi, [r13 + 7]
sub rbx, qword [rcx]
sar rbx, 1
mov rax, qword [r14]
mov ecx, 0xffffffff
cmp rax, r15
jne 0x1400461b9
mov rsi, rdi
jmp 0x1400461c2
mov rsi, qword [r15]
sub rsi, rax
sar rsi, 1
sub rsi, rbx
lea rdx, [rax + rbx*2]
cmp rsi, rcx
mov r12d, esi
cmova r12d, ecx
lea rcx, str.TRACE_FORMAT_PREFIX
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
jne 0x140046220
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
je 0x140046210
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140046215
mov eax, 0x80004005
mov rcx, rbp
test eax, eax
je 0x140046257
js 0x14004625a
jmp 0x140046228
mov rcx, rbp
cmp ebp, r12d
jb 0x140046254
cmp rcx, rsi
jbe 0x14004624d
lea rdx, [rcx + rbx]
cmp rdx, rcx
jb 0x140046246
mov rcx, r14
call fcn.140045d7c
test al, al
jne 0x1400461a7
mov eax, 0x8007000e
jmp 0x14004625a
mov eax, 0x8000ffff
jmp 0x14004625a
mov eax, r13d
add rbx, rcx
mov rcx, qword [r14]
cmp rcx, r15
je 0x14004626b
mov rdi, qword [r15]
sub rdi, rcx
sar rdi, 1
cmp rbx, rdi
jbe 0x140046272
int 0x2c
mov rbp, qword [rsp + 0x58]
lea rcx, [rcx + rbx*2]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov qword [r14 + 8], rcx
mov word [rcx], r13w
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140046718
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
mov rax, rdx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov rbx, rcx
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov rcx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
jne 0x140046770
add rsp, 0x40
pop rbx
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x14004675f
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14004675f
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rbx + 0x18], eax
cmp eax, 0xffffffff
je 0x14004675f
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x1400467ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rcx
call fcn.140047138
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x140046823
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400468ad
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14004685d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call fcn.1400468c4
mov eax, ebx
jmp 0x1400468ad
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140046843
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov dword [rdi + 0x18], eax
test eax, eax
je 0x140046843
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x140046843
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140051014
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
cmp qword [0x140129c18], rbx
jne 0x140051185
xor r8d, r8d
lea rcx, str.TRACE_FORMAT_SEARCH_PATH
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov edi, eax
jmp 0x1400510b8
mov edx, edi
sub edx, esi
test edx, edx
jle 0x14005109b
test rbx, rbx
je 0x14005106c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
lea eax, [rdi + 1]
movsxd rsi, eax
add rsi, rsi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400510bc
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov esi, edi
mov r8d, esi
lea rcx, str.TRACE_FORMAT_SEARCH_PATH
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
mov edi, eax
sub eax, esi
test eax, eax
jg 0x140051050
xor eax, eax
lock cmpxchg qword [0x140129c18], rbx
je 0x1400510d8
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
cmp qword [0x140129c18], 0
jne 0x140051185
mov ecx, 0x208
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140051169
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14005111e
cmp eax, 0x103
jle 0x140051169
mov rax, qword [0x140129c08]
test rax, rax
je 0x140051158
cmp dword [0x140129c00], 0
jne 0x14005114c
movabs r10, 0xa67c1eeb5c5dcb70
lea rcx, str.Could_Not_get_current_dir_n
call qword [0x140070c80]
jmp 0x140051158
lea rcx, str.Could_Not_get_current_dir_n
call fcn.140055e8c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
xor ebx, ebx
xor eax, eax
lock cmpxchg qword [0x140129c18], rbx
je 0x140051185
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov rax, qword [0x140129c18]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140051b34
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x10], rcx
jne 0x140051b60
mov rdi, rcx
jmp 0x140051bbe
mov rbp, qword [rcx]
mov r15, rbx
lea rcx, [rbp + 0x18]
mov r8d, InitCommonControls
mov rdx, r14
call sub.msvcrt.dll_memcmp
test eax, eax
mov rdi, rbp
setns al
test al, al
movzx eax, al
cmove rdi, r15
xor rax, 1
mov r15, rdi
mov rbp, qword [rbp + rax*8 + 8]
lea rax, [0x140126590]
cmp rbp, rax
jne 0x140051b66
cmp rdi, rbx
je 0x140051bbe
lea rdx, [rdi + 0x18]
mov r8d, InitCommonControls
mov rcx, r14
call sub.msvcrt.dll_memcmp
test eax, eax
cmovs rdi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rbp, qword [rsp + 0x48]
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret