joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x140001a59
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001a59
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140001a59
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14000198a
cmp rdi, r11
jae 0x140001a59
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140001974
cmp rdi, r11
jae 0x140001a59
movzx eax, word [rdi]
test ax, ax
je 0x140001a59
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x140038590]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x1400019fa
mov edx, esi
mov rcx, rbp
call fcn.1400015c0
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x140038590]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x140001a4e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x140001a4e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x140001a5b
mov ecx, 0x80070057
call fcn.140001290
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140002e40
Capabilities:
Acquire debug privileges
Check if file exists
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x190
mov rax, qword [0x140036c80]
xor rax, rsp
mov qword [rsp + 0x180], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140002ed2
lea r8, [rsp + 0x3c]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
lea rdx, [rsp + 0x70]
xor ecx, ecx
lea r8d, [r9 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x140002fa3
lea r9, str.Microsoft
lea r8, [rsp + 0x70]
lea rdx, str._s_s
lea rcx, [0x14003d5c8]
call fcn.140001340
mov r8, qword [0x14003d5c8]
lea r9, str.Temp
lea rdx, str._s_s
lea rcx, [0x14003d5c0]
call fcn.140001340
mov rcx, qword [0x14003d5c8]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140002f52
mov rcx, qword [0x14003d5c8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140002fa3
mov rcx, qword [0x14003d5c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140002f76
mov rcx, qword [0x14003d5c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140002fa3
lea rax, str.TimerSvr_Update
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x48], rax
lea rax, [0x140002d50]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140011c60
add rsp, 0x190
pop rbx
ret

Function at 0x140003770
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
test r8d, r8d
mov rbx, rcx
jne 0x140003782
xor eax, eax
jmp 0x1400037b3
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400037af
mov rbx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.14000748c
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
Function at 0x140015f67
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140036c80]
jne 0x140011c7a
rol rcx, 0x10
test cx, 0xffff
jne 0x140011c76
repz ret
ror rcx, 0x10
jmp 0x140015ec0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003c020]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003c118]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140015f45
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003c020]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140015f67
mov rax, qword [rsp + 0x88]
mov qword [0x14003c118], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003c0b8], rax
mov rax, qword [0x14003c118]
mov qword [0x14003bf90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003c0a0], rax
mov dword [0x14003bf80], 0xc0000409
mov dword [0x14003bf84], 1
mov rax, qword [0x140036c80]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140036c88]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003c018], eax
mov ecx, 1
call fcn.1400217f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14002c088]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003c018], 0
jne 0x140015fee
mov ecx, 1
call fcn.1400217f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400160c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14003c4f0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140019dd0
test rax, rax
je 0x140016114
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x1400161a9
mov ecx, 2
call fcn.1400217f0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140014060
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140016195
test ebx, ebx
jne 0x140016195
lea ecx, [rax + 2]
call fcn.1400217f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140018a20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140036e40]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140018a5e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140018a40
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140018c45
mov ecx, 3
call fcn.1400223e0
cmp eax, 1
je 0x140018bfc
mov ecx, 3
call fcn.1400223e0
test eax, eax
jne 0x140018a95
cmp dword [0x140036c78], 1
je 0x140018bfc
cmp edi, 0xfc
je 0x140018c45
mov qword [rsp + 0x50], rbp
lea rbp, [0x14003c520]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140013de0
test eax, eax
je 0x140018ad9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016020
lea rdx, [0x14003c539]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14003c63d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140018b29
lea r8, str._program_name_unknown_
lea rcx, [0x14003c539]
mov edx, 0x2fb
call fcn.140013de0
test eax, eax
je 0x140018b29
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016020
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14003c539]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140018b78
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14003c834]
lea r9d, [rax + 3]
lea r8, [0x14002c714]
sub rdx, rcx
call fcn.140015970
test eax, eax
je 0x140018b78
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016020
lea r8, [0x14002c710]
mov edx, 0x314
mov rcx, rbp
call fcn.140014960
test eax, eax
je 0x140018ba4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016020
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140014960
test eax, eax
je 0x140018bd4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140016020
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140022180
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140018c45
cmp rax, 0xffffffffffffffff
je 0x140018c45
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140018c60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1400223e0
cmp eax, 1
je 0x140018c92
mov ecx, 3
call fcn.1400223e0
test eax, eax
jne 0x140018d46
cmp dword [0x140036c78], 1
jne 0x140018d46
mov qword [rsp + 0x48], rbx
lea rbx, [0x140036e40]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140018cbe
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140018ca8
jmp 0x140018d32
cmp edi, 0x17
jae 0x140018d32
mov ecx, 3
call fcn.1400223e0
cmp eax, 1
je 0x140018ce9
mov ecx, 3
call fcn.1400223e0
test eax, eax
jne 0x140018d32
cmp dword [0x140036c78], 1
jne 0x140018d32
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140018d32
cmp rax, 0xffffffffffffffff
je 0x140018d32
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140018a20
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14001b610
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14003c998]
test eax, eax
jne 0x14001b663
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001b643
mov dword [0x14003c998], 1
jmp 0x14001b67e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001b65d
mov dword [0x14003c998], 2
jmp 0x14001b759
mov eax, dword [0x14003c998]
cmp eax, 1
jne 0x14001b750
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001b7a3
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x14001b6a5
add rbx, 2
cmp word [rbx], 0
jne 0x14001b691
add rbx, 2
cmp word [rbx], 0
jne 0x14001b691
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x14001b743
mov rcx, rbp
call fcn.14001ac70
test rax, rax
mov rsi, rax
je 0x14001b743
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14001b71d
mov rcx, rsi
call fcn.140011ff0
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001b729
cmp eax, 2
je 0x14001b759
test eax, eax
jne 0x14001b7a3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x14001b7a3
cmp byte [rax], 0
je 0x14001b782
nop
add rax, 1
cmp byte [rax], 0
jne 0x14001b770
add rax, 1
cmp byte [rax], 0
jne 0x14001b770
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14001ac70
test rax, rax
mov rdi, rax
jne 0x14001b7b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140015160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140022180
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140019ce0
xor ebx, ebx
cmp qword [0x14003cd78], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400222ac
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400223bf
lea rdx, [0x14002d240]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400223bf
mov rcx, rax
call fcn.140019c10
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14003cd78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019c10
lea rdx, [0x14002d218]
mov rcx, rsi
mov qword [0x14003cd80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019c10
lea rcx, [rsp + 0x98]
mov qword [0x14003cd88], rax
call fcn.140015b60
test eax, eax
je 0x14002225f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140016020
cmp dword [rsp + 0x98], 2
jne 0x1400222ac
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019c10
test rax, rax
mov qword [0x14003cd98], rax
je 0x1400222ac
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140019c10
mov qword [0x14003cd90], rax
mov rcx, qword [0x14003cd90]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140022358
cmp qword [0x14003cd98], rbp
je 0x140022358
call fcn.140019dd0
mov rcx, qword [0x14003cd98]
mov rsi, rax
call fcn.140019dd0
test rsi, rsi
mov r12, rax
je 0x140022358
test rax, rax
je 0x140022358
call rsi
test rax, rax
je 0x140022323
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140022323
test byte [rsp + 0x40], 1
jne 0x140022358
lea rcx, [rsp + 0x30]
call fcn.140015bb0
test eax, eax
je 0x140022345
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140016020
cmp dword [rsp + 0x30], 4
jb 0x140022352
bts edi, 0x15
jmp 0x140022396
bts edi, 0x12
jmp 0x140022396
mov rcx, qword [0x14003cd80]
cmp rcx, rbp
je 0x140022396
call fcn.140019dd0
test rax, rax
je 0x140022396
call rax
test rax, rax
mov rbx, rax
je 0x140022396
mov rcx, qword [0x14003cd88]
cmp rcx, rbp
je 0x140022396
call fcn.140019dd0
test rax, rax
je 0x140022396
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003cd78]
call fcn.140019dd0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400223bf
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400223c1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022be0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140036c80]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140022c27
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140011c60
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140011de0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140011c60
add rsp, 0x38
ret
Function at 0x140001db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov word [r11 + 0x18], r8w
mov qword [r11 + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov eax, dword [rcx + 0x20]
lea rdx, [r11 + 0x20]
mov r8d, dword [rcx + 0x24]
mov r14, rcx
lea rcx, [r11 + 8]
mov dword [r11 + 8], eax
call fcn.140002334
mov r8d, dword [r14 + 0x24]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
mov esi, dword [rax]
mov eax, dword [r14 + 0x20]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xb8], esi
call fcn.140002334
mov rcx, rax
lea rdx, [rsp + 0x34]
mov r8d, 1
call fcn.140002334
xor edi, edi
mov ebx, edi
movsxd rcx, dword [rax]
mov rax, qword [r14 + 0x30]
lea r12, [rax + rcx*8]
mov rax, qword [r14 + 0x38]
lea r13, [rax + rcx*8]
mov rax, qword [r14 + 0x40]
lea rax, [rax + rcx*8]
cmp esi, ebx
jle 0x140001ea7
mov rsi, qword [r12]
sub r12, 8
mov rbp, qword [rax]
sub rax, 8
mov r15, qword [r13]
sub r13, 8
mov qword [rsp + 0x40], rax
cmp rsi, rbp
jae 0x140001e90
movzx eax, word [r15]
cmp word [rsi], ax
je 0x140001fa9
movsx rax, word [r14 + 0x112]
add rax, rax
add rsi, rax
add r15, rax
cmp rsi, rbp
jb 0x140001e68
mov rax, qword [rsp + 0x40]
cmp ebx, 0x7fffffff
je 0x140002011
mov esi, dword [rsp + 0xb8]
inc ebx
jmp 0x140001e43
mov eax, dword [r14 + 0x1c]
lea rdx, [rsp + 0xb8]
mov r8d, dword [r14 + 0x18]
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], eax
call fcn.140002334
mov r15, qword [r14 + 0x70]
mov r12, qword [r14 + 0x80]
mov r13, qword [r14 + 0x88]
mov eax, dword [rax]
mov dword [rsp + 0xa0], eax
cmp edi, eax
jge 0x140001f95
mov rbx, qword [r12]
add r12, 8
mov rsi, qword [r13]
add r13, 8
mov rbp, qword [r15]
add r15, 8
movsx rax, word [r14 + 0x112]
add rax, rax
sub rbx, rax
sub rsi, rax
cmp rbx, rbp
jb 0x140001f39
movzx eax, word [rsi]
cmp word [rbx], ax
je 0x140001f50
movsx rax, word [r14 + 0x112]
add rax, rax
sub rbx, rax
sub rsi, rax
cmp rbx, rbp
jae 0x140001f1b
cmp edi, 0x7fffffff
je 0x140002011
mov eax, dword [rsp + 0xa0]
inc edi
jmp 0x140001ee6
mov edx, dword [r14 + 0x18]
lea rcx, [rsp + 0xb8]
mov r8d, edi
call fcn.1400018d4
movzx ecx, word [rsp + 0xb0]
mov r8, rsi
mov word [rsp + 0x28], cx
mov rdx, rbx
mov rcx, qword [rsp + 0xa8]
mov r9d, dword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call fcn.140001b00
test eax, eax
je 0x140001f23
jmp 0x140001f97
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14 + 0x20]
lea rdx, [rsp + 0x38]
mov r8d, ebx
mov dword [rsp + 0xa0], eax
lea rcx, [rsp + 0xa0]
call fcn.140026188
mov rcx, rax
lea rdx, [rsp + 0x3c]
mov r8d, 1
call fcn.140002334
movzx ecx, word [rsp + 0xb0]
mov r8, r15
mov word [rsp + 0x28], cx
mov rdx, rsi
mov rcx, qword [rsp + 0xa8]
mov r9d, dword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, r14
call fcn.14001c708
test eax, eax
je 0x140001e75
jmp 0x140001f97
call fcn.140033b04
int3
Function at 0x140005d44
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

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 rax, qword [rcx + 0xb0]
mov r15d, 1
mov r10d, r9d
mov r11d, r8d
mov rbx, rcx
mov ebp, r15d
movzx edi, word [rax + 0xd0]
movzx eax, di
and ax, 3
cmp ax, r15w
je 0x140005e2e
xor esi, esi
cmp ax, 3
sete sil
mov rax, qword [rcx + 8]
mov r9d, dword [rsp + 0x70]
shr edi, 5
and edi, r15d
cmp qword [rax + 0x20], rbx
jne 0x140005de9
cmp esi, r10d
jne 0x140005de9
cmp word [rcx + 0x192], dx
jne 0x140005de9
cmp edi, r9d
jne 0x140005de9
mov eax, dword [rcx + 0x74]
shr eax, 7
and eax, r15d
cmp r11d, eax
jne 0x140005de9
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov r14d, dword [rsp + 0x78]
mov r8d, r10d
mov word [rcx + 0x192], dx
mov edx, r11d
mov dword [rsp + 0x20], r14d
call fcn.140015138
mov rdx, qword [rbx + 8]
mov ebp, eax
mov rcx, qword [rdx + 0x20]
test eax, eax
je 0x140034eaf
cmp rcx, rbx
je 0x140005e28
test dword [rdx + 0x1e8], 0x10000000
jne 0x140005e36
mov qword [rdx + 0x20], rbx
jmp 0x140005dcd
or esi, 0xffffffff
jmp 0x140005d97
movsx eax, word [rdx + 0x204]
imul eax, dword [rbx + 0x50]
cmp dword [rbx + 0x50], 0
jle 0x140034e9e
sar eax, 0xf
add eax, r15d
sar eax, 1
mov dword [rbx + 0x194], eax
jmp 0x140005e28
add byte [rax], al
inc esi
test byte [rdx + rbp*4], ah
add dword [rax], eax
add byte [rax - 0x3a], dl
test byte [rbx + rbp*4], ah
add dword [rax], eax
add byte [rdx - 0x3a], dh
test byte [rsp + rbp*4], ah
add dword [rax], eax
add byte [rdi - 0x3a], ch
test byte [rbp*4 + 0x63000001], ah
Function at 0x14001d034
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
mov r10d, 2
mov r11, r9
mov ebx, 2
mov r8d, dword [r11]
mov eax, r8d
cdq
shr r8d, 0x1f
xor eax, edx
sub eax, edx
mov ecx, eax
sar ecx, 0x10
imul edx, ecx, 0x51e
mov ecx, eax
and edx, 0xffff0000
sub ecx, edx
sub edx, eax
test r8b, r8b
cmove edx, ecx
mov dword [r11], edx
lea r11, [r11 + 4]
sub rbx, 1
jne 0x14001d04a
add r9, 0xc
sub r10, 1
jne 0x14001d042
mov rbx, qword [rsp + 8]
ret