joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e040
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x4a0
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r9, rdx
mov r8, rcx
lea rdx, [0x140047fb8]
lea rcx, [rsp + 0x280]
call fcn.14001c9d4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e1a3
mov qword [rsp + 0x4c0], rsi
mov qword [rsp + 0x4c8], rdi
lea rdi, [0x140063e90]
xor esi, esi
nop
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x270]
mov r8d, 3
mov qword [rsp + 0x270], rsi
call qword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea rcx, [rsp + 0x270]
call fcn.14000eef0
test rax, rax
je 0x14000e174
or rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rdi + rcx*2], si
jne 0x14000e0f0
test rcx, rcx
jne 0x14000e123
mov rdx, rdi
mov dword [0x140064d5c], 1
sub rdx, rax
nop
movzx ecx, word [rax]
lea rax, [rax + 2]
mov word [rdx + rax - 2], cx
test cx, cx
jne 0x14000e110
jmp 0x14000e174
inc dword [0x140064d5c]
lea rdx, [rdi - 2]
nop dword [rax]
cmp word [rdx + 2], si
lea rdx, [rdx + 2]
jne 0x14000e130
mov ecx, dword [0x140047c4c]
mov dword [rdx], ecx
lea rdx, [rdi - 2]
cmp word [rdx + 2], si
lea rdx, [rdx + 2]
jne 0x14000e146
xor r8d, r8d
nop word [rax + rax]
movzx ecx, word [rax + r8*2]
lea r8, [r8 + 1]
mov word [rdx + r8*2 - 2], cx
test cx, cx
jne 0x14000e160
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000e0b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x4c8]
mov rsi, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x4a0
pop rbx
ret

Function at 0x14000e340
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x200
call fcn.14001a650
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x14000e41d
lea rax, [0x140065980]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r8, [0x1400476d0]
lea rdx, str.Source
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call fcn.14000e830
lea rdx, [rsp + 0x40]
lea rcx, str._nExpanding_file_in_from__s
call fcn.14000b8c0
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000e3d1
test rax, rax
jne 0x14000e3ee
lea rcx, str._nSource_not_specified
call fcn.14001c2d0
jmp 0x14000e41d
cmp word [rsp + rax*2 + 0x3e], 0x5c
jne 0x14000e3fd
xor ecx, ecx
mov word [rsp + rax*2 + 0x3e], cx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x40]
test al, 0x10
je 0x14000e418
call fcn.14000e4b0
jmp 0x14000e41d
call fcn.14000e440
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x250
pop rbx
ret
Function at 0x14000e4b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x6a0
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rdi, rcx
mov r8, rcx
lea rdx, str._s.
lea rcx, [rsp + 0x480]
call fcn.14001c9d4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e58c
nop dword [rax]
lea rdx, [0x140049c08]
lea rcx, [rsp + 0x4c]
call fcn.14001b25c
test eax, eax
je 0x14000e571
lea rdx, [0x140049c0c]
lea rcx, [rsp + 0x4c]
call fcn.14001b25c
test eax, eax
je 0x14000e571
lea r9, [rsp + 0x4c]
lea rdx, [0x140047fb8]
lea rcx, [rsp + 0x270]
mov r8, rdi
call fcn.14001c9d4
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x270]
je 0x14000e56c
call fcn.14000e4b0
jmp 0x14000e571
call fcn.14000e440
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000e510
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14001a120
mov rbx, qword [rsp + 0x6b8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x14000e830
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1048
call fcn.14001d860
sub rsp, rax
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ebx, dword [rsp + 0x10a0]
mov rdi, qword [rsp + 0x10a8]
mov r14, r8
mov rbp, rdx
mov rsi, rcx
mov r8d, ebx
add r8, r8
xor edx, edx
mov rcx, r9
mov r15, r9
call fcn.14001a650
lea r9, [rsp + 0x830]
mov r8, r14
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x14000e922
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x830]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x30]
mov edx, 0x3a
call fcn.14001ad74
test rax, rax
jne 0x14000e8fa
cmp dword [rsp + 0x10b0], eax
je 0x14000e8fa
lea r9, [rsp + 0x30]
lea r8, [0x140065180]
lea rdx, str._s_s
mov rcx, r15
call fcn.14001c9d4
jmp 0x14000e922
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub r15, rcx
nop word [rax + rax]
movzx ecx, word [rax]
lea rax, [rax + 2]
mov word [r15 + rax - 2], cx
test cx, cx
jne 0x14000e910
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x1048
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010250
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x448
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r14, rcx
mov ecx, 0x200
mov r15, rdx
call fcn.140017d00
xor ebp, ebp
lea ecx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea r8, [rsp + 0x30]
lea edx, [rbp + 8]
mov r9d, 0x100
mov ecx, ebx
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
lea edx, [rbp + 0x18]
lea ecx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x1400102c9
xor eax, eax
jmp 0x1400103c6
mov r8, rax
mov edx, 0x10004
xor ecx, ecx
mov dword [rax], 0x18
call sub.TAPI32.dll_lineGetCountryW
test eax, eax
jne 0x1400102c2
mov qword [rsp + 0x440], rdi
mov edi, dword [rbx + 4]
cmp edi, dword [rbx]
jbe 0x14001032b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140010324
mov r8, rax
mov edx, 0x10004
xor ecx, ecx
mov dword [rax], edi
call sub.TAPI32.dll_lineGetCountryW
test eax, eax
je 0x14001032b
xor eax, eax
jmp 0x1400103be
mov qword [rsp + 0x480], rsi
mov esi, dword [rbx + 0x14]
mov edi, ebp
add rsi, rbx
cmp dword [rbx + 0xc], ebp
jbe 0x1400103ab
mov eax, edi
lea rdx, [rsp + 0x230]
imul rax, rax, 0x2c
mov eax, dword [rax + rsi + 0x10]
add rax, rbx
nop word [rax + rax]
movzx ecx, word [rax]
lea rdx, [rdx + 2]
lea rax, [rax + 2]
mov word [rdx - 2], cx
test cx, cx
jne 0x140010360
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x230]
call fcn.14001b25c
test eax, eax
je 0x140010393
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x140010340
jmp 0x1400103ab
mov ecx, edi
mov ebp, 1
imul rcx, rcx, 0x2c
mov eax, dword [rcx + rsi]
mov dword [r14], eax
mov eax, dword [rcx + rsi + 4]
mov dword [r15], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x480]
mov eax, ebp
mov rdi, qword [rsp + 0x440]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x448
pop r15
pop r14
pop rbp
pop rbx
ret
Function at 0x140011260
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set environment variable

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edx, edx
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x30], 0
lea r8d, [rdx + 0x7c]
call fcn.14001a650
lea rbx, str.C:Info.bom
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400112d2
lea rbx, str.C:System.savInfo.bom
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400112d2
lea rbx, str.C:System.savUtilInfo.bom
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400112ff
lea r9, [rsp + 0x30]
lea r8, str.1234567_001_Rev_1
lea rdx, str.SkuNumber
lea rcx, str.Info
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x30]
mov edx, 0x2d
call qword [sym.imp.SHLWAPI.dll_StrChrW]
lea rcx, [0x140064be0]
test rax, rax
je 0x14001132d
lea rdx, [rax + 2]
mov r8d, 3
call qword [sym.imp.SHLWAPI.dll_StrCpyNW]
jmp 0x14001133a
lea rdx, [0x140048408]
call qword [sym.imp.SHLWAPI.dll_StrCpyW]
lea rdx, [0x140064be0]
lea rcx, str.BuildType
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14001a120
add rsp, 0xc0
pop rbx
ret
Function at 0x140011860
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x2160]
mov eax, 0x2260
call fcn.14001d860
sub rsp, rax
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0x2150], rax
mov rdi, rcx
xor esi, esi
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x1fc
mov ebx, esi
mov dword [rsp + 0x50], esi
call fcn.14001a650
lea rcx, [rbp + 0x154]
xor edx, edx
mov r8d, 0xffc
mov dword [rbp + 0x150], esi
call fcn.14001a650
lea rcx, [rbp + 0x1154]
xor edx, edx
mov r8d, 0xffc
mov dword [rbp + 0x1150], esi
call fcn.14001a650
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x150]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x44], 0x100
mov dword [rsp + 0x40], 0x800
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140011a1f
nop word [rax + rax]
lea rdx, [rbp + 0x1150]
lea rcx, [rbp + 0x150]
mov r8d, 0x800
inc ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, str.Path
lea rcx, [rsp + 0x50]
call fcn.14001b25c
test eax, eax
je 0x140011998
lea rdx, str.UserName
lea rcx, [rsp + 0x50]
call fcn.14001b25c
test eax, eax
je 0x140011998
lea rdx, [rbp + 0x1150]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x200
mov dword [rsp + 0x44], 0x100
mov dword [rsp + 0x40], 0x800
call fcn.14001a650
lea rcx, [rbp + 0x150]
xor edx, edx
mov r8d, 0x1000
call fcn.14001a650
lea rcx, [rbp + 0x1150]
xor edx, edx
mov r8d, 0x1000
call fcn.14001a650
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x150]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140011940
mov rcx, qword [rbp + 0x2150]
xor rcx, rsp
call fcn.14001a120
lea r11, [rsp + 0x2260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140012450
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
lea rcx, [rsp + 0x240]
xor edx, edx
mov r8d, 0x200
call fcn.14001a650
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x200
call fcn.14001a650
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x14001254b
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x468], rsi
lea rsi, [0x140065980]
lea r9, [rsp + 0x240]
lea r8, [0x1400476d0]
lea rdx, [0x14004cda8]
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x100
call fcn.14000e830
mov dword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
lea r8, [0x1400476d0]
lea rdx, str.Value
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x100
call fcn.14000e830
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x240]
lea rcx, str._nSetting_Environment_Variable__s_s
call fcn.14000b8c0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rsi, qword [rsp + 0x468]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x450
pop rbx
ret

Function at 0x140012570
Capabilities:
Get geographical location
Query environment variable
Set environment variable

Disassembly:
push rdi
sub rsp, 0xa80
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0xa70], rax
lea rcx, [rsp + 0x274]
xor edi, edi
xor edx, edx
mov r8d, 0x7fc
mov dword [rsp + 0x270], edi
call fcn.14001a650
lea rdx, [rsp + 0x270]
lea rcx, str.CtryListEnv
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rdi + 0x2c]
lea rcx, [rsp + 0x270]
call fcn.140016f30
test rax, rax
je 0x140012651
mov qword [rsp + 0xa90], rbx
mov rcx, rax
call fcn.14001bbec
mov ebx, eax
test eax, eax
je 0x140012638
mov r9d, 0x20
lea r8, [rsp + 0x30]
mov ecx, eax
lea edx, [r9 - 0x1b]
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
lea r8, [rsp + 0x70]
mov r9d, 0x100
mov edx, 8
mov ecx, ebx
mov word [rsp + 0x20], di
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov edx, 0x2c
xor ecx, ecx
call fcn.140016f30
test rax, rax
jne 0x1400125e1
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.14001a120
add rsp, 0xa80
pop rdi
ret
Function at 0x140012670
Capabilities:
Query environment variable
Read .ini file
Set environment variable

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x648
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x630], rax
mov rbx, rcx
mov ecx, 0x200000
mov r14d, r8d
mov rdi, rdx
call fcn.140017d00
mov r9, rbx
mov r8d, 0x100000
mov rcx, rdi
mov rdx, rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
jne 0x1400126ce
mov rcx, r15
call fcn.14001961c
xor eax, eax
jmp 0x140012835
cmp word [r15], 0
mov rdi, r15
je 0x140012828
mov qword [rsp + 0x688], rsi
mov qword [rsp + 0x640], r12
xor r12d, r12d
mov qword [rsp + 0x680], rbp
nop word [rax + rax]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x140012704
mov edx, 0x3d
mov rcx, rdi
inc ebx
call fcn.14001ad74
test rax, rax
je 0x1400127ff
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x20], r12d
call fcn.14001a650
lea rdx, [rsp + 0x20]
sub rdx, rdi
mov rax, rdi
nop dword [rax + rax]
movzx ecx, word [rax]
lea rax, [rax + 2]
mov word [rdx + rax - 2], cx
test cx, cx
jne 0x140012750
lea rdx, [0x1400486e8]
lea rcx, [rsp + 0x20]
call fcn.14001b0f4
or rcx, 0xffffffffffffffff
mov rsi, rax
nop dword [rax]
cmp word [rax + rcx*2 + 2], r12w
lea rcx, [rcx + 1]
jne 0x140012780
lea rbp, [rsp + 0x22]
lea rdx, str.ISO_COUNTRY
lea rbp, [rbp + rcx*2]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1400127ff
test rbp, rbp
je 0x1400127ff
cmp r14d, 1
jne 0x1400127ba
mov rdx, rbp
jmp 0x1400127f6
lea rdx, [rsp + 0x230]
mov r8d, 0x200
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x230]
mov edx, 0x2525
call fcn.14001ad74
test rax, rax
je 0x1400127ee
cmp r14d, 5
jne 0x1400127ff
lea rdx, [rsp + 0x230]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movsxd rax, ebx
lea rdi, [rdi + rax*2]
cmp word [rdi], r12w
jne 0x140012700
mov r12, qword [rsp + 0x640]
mov rsi, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x680]
mov rcx, r15
call fcn.14001961c
mov eax, 1
mov rcx, qword [rsp + 0x630]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x648
pop r15
pop r14
pop rdi
pop rbx
ret
Function at 0x1400143b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, str.C:Program_FilesOnline_Services
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014413
lea rdx, [rsp + 0x20]
lea rcx, str.C:Program_FilesOnline_Services
mov r8d, 0x69
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
lea rcx, str.C:Program_FilesOnline_Services
call qword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
lea rcx, str.C:Program_Files__x86_Online_Services
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001444a
lea rdx, [rsp + 0x20]
lea rcx, str.C:Program_Files__x86_Online_Services
mov r8d, 0x69
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
lea rcx, str.C:Program_Files__x86_Online_Services
call qword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
lea rcx, str.C:ProgramDataMicrosoftWindowsStart_MenuProgramsOnline_Services
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014481
lea rdx, [rsp + 0x20]
lea rcx, str.C:ProgramDataMicrosoftWindowsStart_MenuProgramsOnline_Services
mov r8d, 0x69
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
lea rcx, str.C:ProgramDataMicrosoftWindowsStart_MenuProgramsOnline_Services
call qword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001a120
add rsp, 0x248
ret
Function at 0x6dadcee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dafe5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dadd068
mov rax, qword [0x6dafe5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dadcf2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dadcfb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dadcf10
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dadd09d
mov rax, qword [0x6dafe5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dafe5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dadd080
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dadcfae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dadd010
add dword [0x6dafe5e4], 1
cmp edi, 8
jae 0x6dadcfe3
test dil, 4
jne 0x6dadd054
test edi, edi
je 0x6dadcfd8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dadd06f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dadcfd8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dadcffc
jmp 0x6dadcfd8
add rsi, qword [0x6dafe5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dadcfae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dadcfd8
xor esi, esi
jmp 0x6dadcf37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dadcfd8
mov rax, qword [0x6dafe5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dadd7f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dafe8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dafe8a0]
test rbx, rbx
je 0x6dadd844
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6dadd83b
test rsi, rsi
je 0x6dadd83b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dadd820
lea rcx, [0x6dafe8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6dadda80
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6dadda90
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6daddaa0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6daddae1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6daddad8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6daddae3
add rax, 0x28
cmp rax, r9
jne 0x6daddac4
xor eax, eax
ret

Function at 0x6daddb80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dafb1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6daddbed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daddbed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daddbed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daddbe4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daddbef
add rax, 0x28
cmp rax, r9
jne 0x6daddbd0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6daddcf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dafb1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6daddd10
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6daddd08
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6daddd6d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6daddd64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6daddd74
add rax, 0x28
cmp rax, r9
jne 0x6daddd50
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6daddd90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dafb1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dadddfe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dadddfe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dadddfe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dadddfe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dadddf5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6dadde05
add rcx, 0x28
cmp rcx, rax
jne 0x6daddde0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6dadde18
jmp 0x6dadddfe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6dadde26
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dadddfe
test r9d, r9d
jg 0x6dadde10
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dade160
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop