joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eaa0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400b7040]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000eaf2
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [0x1400b8078]
mov qword [rsp + 0x70], rbx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [0x1400b8058]
lea rdx, [0x1400b8080]
call qword [sym.imp.USER32.dll_GetWindowRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, qword [0x1400b8058]
jne 0x14000ecc4
cmp dword [0x1400b8094], 0
jne 0x14000eb91
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000eb91
cmp dword [0x1400b8b9c], 0
jne 0x14000eb9e
cmp dword [0x1400b8c20], 0
je 0x14000eb82
mov eax, dword [0x1400b807c]
sub eax, dword [0x1400b8084]
mov ecx, dword [0x1400b8078]
sub ecx, dword [0x1400b8080]
mov dword [0x1400b82e4], eax
xor eax, eax
mov dword [0x1400b8c20], eax
mov dword [0x1400b82e0], ecx
mov dword [0x1400b8b9c], 1
jmp 0x14000eccf
cmp dword [0x1400b8b9c], 0
je 0x14000ec71
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000ec71
mov eax, dword [0x1400b808c]
mov r9d, dword [0x1400b8088]
mov r8d, dword [0x1400b807c]
mov edx, dword [0x1400b8078]
sub eax, dword [0x1400b8084]
sub r9d, dword [0x1400b8080]
sub r8d, dword [0x1400b82e4]
sub edx, dword [0x1400b82e0]
mov rcx, qword [0x1400b8058]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
mov dword [0x1400b8094], 1
call qword [sym.imp.USER32.dll_MoveWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword gs:[0x58]
mov rbx, rax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400b8c24], ecx
jle 0x14000ec55
lea rcx, [0x1400b8c24]
call fcn.1400aafa4
cmp dword [0x1400b8c24], 0xffffffff
jne 0x14000ec55
lea rcx, [0x1400b8c24]
mov dword [0x1400b8c0c], ebx
call fcn.1400aaf38
mov eax, ebx
sub eax, dword [0x1400b8c0c]
cmp eax, 0x64
jl 0x14000ec6a
mov dword [0x1400b8c0c], ebx
jmp 0x14000eccf
mov eax, 1
jmp 0x14000ecd1
xor eax, eax
mov dword [0x1400b8c20], 1
cmp dword [0x1400b8098], eax
mov dword [0x1400b8b9c], eax
mov dword [0x1400b8094], eax
jne 0x14000ecaf
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000eca8
mov ecx, 1
jmp 0x14000ecc9
mov ecx, 3
jmp 0x14000ecc9
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0x50
call fcn.140041220
jmp 0x14000eccf
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400aaf10
add rsp, 0x78
ret
Function at 0x14003ea90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14003eab8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14003eade
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003eae0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003eb39
test ecx, ecx
jle 0x14003eb19
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14003eb39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14003eb39
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14003eb60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14003eb82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14003eb98
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14003ebb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003ebb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003ebf2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003ec8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003ec2d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14003ec6e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14003ec8e
cmp rbx, rax
ja 0x14003ec40
test rbx, rbx
je 0x14003ec8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14003f0f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b7040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003f11d
xor eax, eax
jmp 0x14003f289
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14003f157
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14003f157
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14003f289
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003f27c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003f19a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14003f1c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f281
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14003f234
sub eax, 1
je 0x14003f234
cmp eax, 2
jne 0x14003f27c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f281
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003f262
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14003f27c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14003f281
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400aaf10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140040490
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b7040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140040563
cmp byte [rcx + 0x71], 0
je 0x140040563
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004055f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140040524
sub eax, 1
je 0x140040528
cmp eax, 2
jne 0x14004055f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aaf10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140040556
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004055f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004050c
xor al, al
jmp 0x14004050c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aaf10
add rsp, 0x60
pop rbx
ret
Function at 0x1400abc14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400abc5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400abc5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400abc5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400abc5e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400abc5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400abc60
xor al, al
add rsp, 0x28
ret
Function at 0x180014a18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180014a2e
mov al, 1
jmp 0x180014a8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180014a3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180014a8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180012b10
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180014a8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180014a8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180014a8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180014a8e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180016e90
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180016f09
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180016f09
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x180016f09
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180016efd
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180016f1b
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180016eeb
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180016f0b

Function at 0x180017490
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800174b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800174b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14003139c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140031414
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031414
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140031414
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031408
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031426
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400313f6
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140031416

Function at 0x140032f60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140032faa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140032faa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140032faa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140032faa
cmp dword [rcx + 0x84], 0xe
jbe 0x140032faa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140032fac
xor al, al
add rsp, 0x28
ret

Function at 0x14003bcf4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003ba58

Function at 0x140045c10
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100093000
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
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 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140007570
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x1400ce2e8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.1400042b0
lea r8, [0x1400ab198]
lea rcx, [rsp + 0x30]
call fcn.14000433c
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x1400ab0bc]
mov rbx, rax
test rax, rax
jne 0x140007628
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140007728
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xc9
call fcn.140005da8
mov esi, eax
jmp 0x140007709
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.1400062bc
mov esi, eax
test eax, eax
jns 0x140007669
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.140005d70
mov rcx, rbx
call fcn.140005fd4
jmp 0x140007709
lea r8, [0x1400ab1a0]
lea rcx, [rsp + 0x30]
call fcn.14000433c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400076af
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xd5
call fcn.140005da8
mov esi, eax
jmp 0x14000765c
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400062bc
mov esi, eax
test eax, eax
jns 0x1400076e6
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xd7
call fcn.140005d70
mov rcx, rdi
call fcn.140005fd4
jmp 0x14000765c
mov rcx, rdi
call fcn.140005fd4
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.140005fd4
xor esi, esi
test esi, esi
jns 0x140007728
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.140005d70
mov eax, esi
jmp 0x14000772d
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140097f60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14000c224
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor edx, edx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x14000c3eb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x14000c3c5
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchSkipRoot]
nop dword [rax + rax]
test eax, eax
js 0x14000c39a
mov rax, qword [rsp + 0x58]
cmp word [rax], r14w
je 0x14000c39a
or r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp word [rdi + rax*2], r14w
jne 0x14000c29f
lea rbx, [rax + rax]
test rax, rax
je 0x14000c2bd
cmp word [rbx + rdi - 2], 0x5c
jne 0x14000c2bd
dec rax
mov ecx, 1
lea r9, [0x1400aaf0c]
mov dword [rsp + 0x28], ecx
mov r8d, eax
mov dword [rsp + 0x20], ecx
mov rdx, rdi
mov ecx, 0x800000
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindStringOrdinal]
nop dword [rax + rax]
cmp eax, r15d
jne 0x14000c2f3
lea rsi, [rbx + rdi]
jmp 0x14000c2fd
movsxd rsi, eax
inc rsi
lea rsi, [rdi + rsi*2]
sub rsi, rdi
sar rsi, 1
je 0x14000c39a
lea rbp, [rsi + 1]
mov eax, 2
mul rbp
lea rdx, [0x1400cf278]
cmovo rax, r15
mov rcx, rax
call fcn.14009856c
mov rbx, rax
test rax, rax
jne 0x14000c34e
mov rcx, qword [rsp + 0x48]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov esi, 0x8007000e
lea edx, [rax + 0x79]
mov r9d, esi
call fcn.140005d70
jmp 0x14000c386
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140011308
mov esi, eax
test eax, eax
jns 0x14000c38a
mov rcx, qword [rsp + 0x48]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
mov edx, 0x7a
call fcn.140005d70
mov rcx, rbx
call fcn.14009852c
mov eax, esi
jmp 0x14000c3ed
mov rcx, rbx
call fcn.14000c224
mov rcx, rbx
call fcn.14009852c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c3eb
mov rcx, qword [rsp + 0x48]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
lea edx, [rax + 0x7d]
call fcn.140005da8
jmp 0x14000c3ed
cmp eax, 0xb7
je 0x14000c3eb
test eax, eax
je 0x14000c3eb
mov rcx, qword [rsp + 0x48]
lea r8, str.onecoreinternal_sdkincwilopensourcewil_filesystem.h
mov r9d, eax
mov edx, 0x81
call fcn.1400112dc
jmp 0x14000c3ed
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret