joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472fb0
Capabilities:
Get common file path

Disassembly:
push rbp
mov byte [rsp - 0x60], 0
mov byte [rsp - 0x1060], 0
mov byte [rsp - 0x2060], 0
sub rsp, 0x2060
mov rbp, rsp
mov qword [rbp + 0x30], rcx
mov dword [rbp + 0x3c], edx
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
nop
mov eax, 1
movsxd rcx, eax
mov word [rbp + rcx*2 + 0x5e], 0x20
add eax, 1
cmp eax, 0x1001
jne 0x472ffe
nop
mov eax, dword [rbp + 0x3c]
sub eax, 1
cmp eax, 0xffffffff
je 0x473030
test eax, eax
je 0x473062
sub eax, 1
test eax, eax
jne 0x4730bb
jmp 0x4730a2
mov ecx, 0x1000
lea rdx, [rbp + 0x60]
call sub.kernel32.dll_GetTempPathW
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x60]
mov r8d, 0x1000
call fcn.0040a4e0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x58]
call fcn.0041c670
jmp 0x4730bb
xor rcx, rcx
mov edx, 0x1c
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call sub.SHFolder.dll_SHGetFolderPathW
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x60]
mov r8d, 0x1000
call fcn.0040a4e0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x50]
call fcn.0041c670
jmp 0x4730bb
lea rcx, [rbp + 0x48]
xor rdx, rdx
call fcn.004058f0
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x48]
call fcn.0041d760
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
call fcn.00427580
mov rcx, qword [rbp + 0x30]
mov rdx, qword [rbp + 0x40]
call fcn.0040a850
nop
lea rcx, [rbp + 0x40]
mov edx, 4
call fcn.0040a350
mov rax, qword [rbp + 0x30]
lea rsp, [rbp + 0x2060]
pop rbp
ret
Function at 0x140003060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x1400031c2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400031c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x1400031c2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140003106
nop
cmp rdi, r11
jae 0x1400031c2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400030f0
cmp rdi, r11
jae 0x1400031c2
movzx eax, word [rdi]
test ax, ax
je 0x1400031c2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000313c
mov edx, ebx
mov rcx, rsi
call fcn.140003380
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140003159
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1400525a0
test eax, eax
je 0x140003198
cmp eax, 0xc
je 0x140003192
cmp eax, 0x16
je 0x14000318c
cmp eax, 0x22
je 0x14000318c
cmp eax, 0x50
je 0x140003198
call fcn.140027e38
int3
call fcn.140027e38
int3
call fcn.140027df0
int3
test ebx, ebx
js 0x1400031b7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x1400031b7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x1400031c4
mov ecx, 0x80070057
call fcn.140003280
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x1400031e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003213
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140003257
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140003252
cmp rbx, r11
jae 0x140003257
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140003240
cmp rbx, r11
jb 0x14000325b
xor eax, eax
jmp 0x140003267
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003d60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x68], edi
call fcn.1400280cc
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x140003dab
mov ecx, 0x80004005
call fcn.140003280
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov r13d, 1
mov dword [rsp + 0x68], r13d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rdi, rax
test rax, rax
je 0x140003e9d
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140003e9d
mov r8, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_HeapSize]
mov r8, rax
xor edx, edx
mov rcx, rsi
call fcn.140056260
mov r9d, r13d
lea r8d, [r13 + 0x22]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, r13d
jne 0x140003e66
mov edx, 0x105
mov rcx, rdx
mov rax, rsi
nop
cmp word [rax], 0
je 0x140003e41
add rax, 2
sub rcx, r13
jne 0x140003e30
jmp 0x140003e4b
test rcx, rcx
je 0x140003e4b
cmp rdx, rcx
jne 0x140003e66
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140003e9d
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003e9d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
mov rcx, rbx
call fcn.1400036f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140003e9d
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, qword [rbx]
mov esi, dword [rdx - 0x10]
test esi, esi
je 0x140003f33
xor eax, eax
or rcx, 0xffffffffffffffff
lea r12, str.EPSONRYOGA
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
mov rbp, r12
sub rbp, rdx
sar rbp, 1
lea edi, [rsi + rcx - 1]
sub r13d, dword [rdx - 8]
mov eax, dword [rdx - 0xc]
sub eax, edi
or eax, r13d
jge 0x140003eea
mov edx, edi
mov rcx, rbx
call fcn.140003380
mov rax, qword [rbx]
cmp rbp, rsi
ja 0x140003ef6
lea r12, [rax + rbp*2]
movsxd rdx, r14d
add rdx, rdx
lea rcx, [rax + rsi*2]
mov r9, rdx
mov r8, r12
call fcn.1400525a0
test edi, edi
js 0x140003f28
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x140003f28
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov word [rax + rcx*2], 0
jmp 0x140003f33
mov ecx, 0x80070057
call fcn.140003280
int3
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140006050
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov r14, rcx
mov r12, rdx
xor esi, esi
lea ecx, [rsi + 0x40]
mov edx, 0x800
mov edi, 0x400
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x1400060f7
nop
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalSize]
xor edx, edx
mov rcx, rbx
mov r8, rax
call fcn.140056260
mov r8, qword [r12]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [rdi - 2]
cmp ecx, eax
mov ebp, eax
jne 0x1400060ea
mov rcx, rbx
add edi, 0x400
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
jne 0x140006090
jmp 0x1400061eb
test eax, eax
jne 0x1400060fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x1400061eb
mov qword [rsp + 0x40], r13
mov r13d, edi
mov ecx, 0x40
lea rdx, [r13 + r13]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov r12, rax
jne 0x14000612e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x1400061e6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalSize]
xor edx, edx
mov rcx, r12
mov r8, rax
call fcn.140056260
test ebp, ebp
jle 0x1400061c7
mov rax, rbx
nop
nop
cmp word [rax], 0
jne 0x140006160
add esi, 1
cmp word [rax + 2], 0
je 0x140006166
add rax, 2
jmp 0x140006150
test esi, esi
jle 0x1400061c7
mov rdi, rbx
mov rbp, rbx
cmp word [rdi], 0
jne 0x1400061c1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalSize]
xor edx, edx
mov rcx, r12
mov r8, rax
call fcn.140056260
mov r9, rdi
mov r8, rbp
sub r9, rbp
mov rdx, r13
mov rcx, r12
sar r9, 1
add r9, 1
call fcn.1400539e0
mov rdx, qword [r14 + 0x10]
mov r8, r12
mov rcx, r14
lea rbp, [rdi + 2]
call fcn.1400297a8
cmp word [rbp], 0
je 0x1400061c7
add rdi, 2
jmp 0x140006170
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
movsxd r11, esi
cmp r11, qword [r14 + 0x10]
cmove eax, esi
mov r13, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
Function at 0x140006670
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x160
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140098b90]
xor rax, rsp
mov qword [rsp + 0x150], rax
or ebx, 0xffffffff
mov dword [rsp + 0x20], ebx
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x30]
call fcn.140056260
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400066f2
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400066f2
xor ebx, ebx
mov dword [rsp + 0x24], ebx
lea rdx, [0x140093ad0]
lea rcx, [rsp + 0x24]
call fcn.1400551c0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140006768
sub eax, 1
je 0x140006738
cmp eax, 1
je 0x14000670a
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x14000672d
cmp eax, 3
jbe 0x140006727
cmp eax, 4
jne 0x14000672d
mov ebx, 3
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
mov ebx, 4
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140006760
cmp eax, 0xa
je 0x140006755
cmp eax, 0x5a
jne 0x14000676c
mov ebx, 2
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
mov ebx, 1
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x14000676c
mov dword [rsp + 0x20], ebx
jmp 0x140006772
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140052690
add rsp, 0x160
pop rbx
ret
Function at 0x140007890
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140098b90]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x11c
call fcn.140056260
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140007912
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x80], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140007912
xor ebx, ebx
lea rdx, [0x140093ad0]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
call fcn.1400551c0
int3
mov ecx, dword [rsp + 0x84]
mov eax, 6
cmp ecx, eax
cmovge ecx, eax
sub ecx, 5
je 0x14000793e
cmp ecx, 1
je 0x140007934
xor ebx, ebx
jmp 0x1400079cf
call fcn.1400079f0
jmp 0x1400079cd
xor ebx, ebx
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
mov dword [rsp + 0x60], eax
je 0x1400079cd
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140052690
add rsp, 0x1b0
pop rbx
ret
Function at 0x1400079f0
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x14a8
call fcn.140072430
sub rsp, rax
mov rax, qword [0x140098b90]
xor rax, rsp
mov qword [rsp + 0x1490], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x70]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140007a44
mov rcx, qword [rsp + 0x1490]
xor rcx, rsp
call fcn.140052690
add rsp, 0x14a8
ret
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x14b8], rbp
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 2]
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140007a86
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140007a86
xor eax, eax
jmp 0x140007c3d
mov edx, dword [rsp + 0x60]
mov ecx, 0x40
mov qword [rsp + 0x14c0], rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov rsi, rax
lea rax, [rsp + 0x60]
mov edx, 2
mov r8, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140007b36
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x7c]
mov r9d, 0x220
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x68]
mov r8d, 0x20
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x30], ebp
mov dl, 2
mov dword [rsp + 0x28], ebp
mov byte [rsp + 0x7c], bpl
mov byte [rsp + 0x7d], bpl
mov dword [rsp + 0x20], ebp
mov byte [rsp + 0x7e], bpl
mov byte [rsp + 0x7f], bpl
mov byte [rsp + 0x80], bpl
mov byte [rsp + 0x81], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140007b46
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x140007c35
mov qword [rsp + 0x14b0], rbx
mov ebx, ebp
cmp dword [rsi], ebx
jbe 0x140007c17
mov qword [rsp + 0x14a0], rdi
lea rdi, [rsi + 8]
nop
nop
nop
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140007bf9
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], 0x400
mov rdx, qword [rdi]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x490]
lea r8, [rsp + 0xc90]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x140007c0f
lea rdx, [rsp + 0x490]
lea rcx, str.BUILTIN
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140007bf9
lea rdx, [rsp + 0xc90]
lea rcx, str.Administrators
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140007c0a
add ebx, 1
add rdi, 0x10
cmp ebx, dword [rsi]
jb 0x140007b70
jmp 0x140007c0f
mov ebp, 1
mov rdi, qword [rsp + 0x14a0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x14b0]
mov eax, ebp
mov rsi, qword [rsp + 0x14c0]
mov rbp, qword [rsp + 0x14b8]
mov rcx, qword [rsp + 0x1490]
xor rcx, rsp
call fcn.140052690
add rsp, 0x14a8
ret
Function at 0x140007c60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x70], edi
call fcn.1400280cc
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140007cae
mov ecx, 0x80004005
call fcn.140003280
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov r13d, 1
mov dword [rsp + 0x70], r13d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, eax
or rsi, 0xffffffffffffffff
test eax, eax
jle 0x140007d4f
mov rcx, qword [rbx]
sub r13d, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, eax
or ecx, r13d
jge 0x140007cfb
mov edx, eax
mov rcx, rbx
call fcn.140003380
mov r8d, r12d
mov rdx, qword [rbx]
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r11, qword [rbx]
test r11, r11
je 0x140007d2c
xor eax, eax
mov rcx, rsi
mov rdi, r11
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
js 0x140007d44
cmp edi, dword [r11 - 0xc]
jg 0x140007d44
mov dword [r11 - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov word [rax + rcx*2], 0
jmp 0x140007d4f
mov ecx, 0x80070057
call fcn.140003280
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140007d6c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007de0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x140098b90]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x20], rdx
mov rbx, qword [rsp + 0x220]
xor edi, edi
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0xb0]
call fcn.140056260
mov dword [rsp + 0xb0], 0x11c
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea r8d, [rdi + 0x6c]
lea rcx, [rsp + 0x34]
call fcn.140056260
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x38], rdi
lea rax, str.open
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x34], 0x440
mov rax, qword [rbp]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140007eaf
xor edx, edx
mov rcx, rbp
call fcn.140003380
mov rax, qword [rbp]
mov qword [rsp + 0x48], rax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140007ed4
xor edx, edx
mov rcx, rsi
call fcn.140003380
mov rax, qword [rsi]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140007f46
cmp dword [rsp + 0x68], 0x20
jle 0x140007f46
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140007f46
mov dword [rbx], 0x103
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdx, rbx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rbx], 0x103
jne 0x140007f33
mov rcx, qword [rsp + 0x98]
jmp 0x140007f05
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
mov rdx, qword [rbp]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007f68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140007f89
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
jmp 0x140007f8b
mov eax, edi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140052690
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007ff0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbp, rcx
xor esi, esi
mov rbx, qword [rcx]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], esi
jl 0x140008035
cmp rax, qword [rbx - 0x18]
jne 0x140008035
lea rdi, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x140008073
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x140008051
call fcn.140003050
int3
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1400525a0
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140004c50
mov r11, qword [rsp + 0x58]
cmp dword [r11 - 0x10], esi
je 0x1400080c0
mov r9, r11
xor r8d, r8d
lea rdx, str.Category
lea rcx, str.PrnterInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, 1
cmp eax, 5
cmove esi, ecx
mov r11, qword [rsp + 0x58]
lea rdx, [r11 - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400080de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400080fc
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008130
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rbp, rcx
xor si, si
mov rbx, qword [rcx]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140008177
cmp rax, qword [rbx - 0x18]
jne 0x140008177
lea rdi, [rbx - 0x18]
lock add dword [rbx - 8], 1
jmp 0x1400081b5
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x140008193
call fcn.140003050
int3
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1400525a0
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140004c50
mov r11, qword [rsp + 0x58]
cmp dword [r11 - 0x10], 0
je 0x1400081fa
mov r9, r11
xor r8d, r8d
lea rdx, str.LangIDI
lea rcx, str.User_Mode_Printer_Driver_Information
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov r11, qword [rsp + 0x58]
lea rdx, [r11 - 0x18]
or ebx, 0xffffffff
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140008218
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140008235
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ax, si
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret