joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68a251d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x418], edx
push 0x104
mov eax, esi
mov ebx, ecx
push eax
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jne 0x68a2522c
push 0x10000
call fcn.68a3fe40
mov esi, eax
add esp, 4
test esi, esi
je 0x68a25295
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x68a2529d
cmp byte [ebp + 8], 0
je 0x68a25266
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x68a25266
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x68a25260
push esi
call fcn.68a3fe50
add esp, 4
lea esi, [ebp - 0x414]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x68a2529d
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x68a25277
sub edx, ecx
mov ecx, dword [ebp - 0x418]
sar edx, 1
push edx
push esi
call fcn.68a25890
jmp 0x68a252a5
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea eax, [ebp - 0x20c]
cmp esi, eax
je 0x68a252c2
lea eax, [ebp - 0x414]
cmp esi, eax
je 0x68a252c2
push esi
call fcn.68a3fe50
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
Function at 0x68a25570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x68a256e0
test eax, eax
je 0x68a256e0
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x68a255b1
mov ecx, dword [edi]
push ebx
push esi
xor esi, esi
mov dword [edi + 0x10], 0
mov word [ecx], si
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push ecx
push esi
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x68a2569b
mov eax, dword [ebp - 0x210]
add eax, 2
push 0x68a5835c
push eax
mov dword [ebp - 0x214], eax
call fcn.68a39888
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x68a25683
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x68a25667
mov eax, dword [ebp - 0x214]
shr eax, 1
je 0x68a2565e
lea edx, [eax - 1]
lea edx, [ebx + edx*2]
nop
cmp word [edx], 0
jne 0x68a2565e
sub edx, 2
sub eax, 1
jne 0x68a25650
push eax
push ebx
mov ecx, edi
call fcn.68a25890
push ebx
call fcn.68a39891
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
mov esi, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x68a256cd
mov eax, dword [ebp - 0x210]
shr eax, 1
je 0x68a256be
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0
jne 0x68a256be
sub ecx, 2
sub eax, 1
jne 0x68a256b0
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.68a25890
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop edi
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
Function at 0x68a29150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x68a2916e
mov dword [edi], 0
test ecx, ecx
je 0x68a29206
mov eax, dword [ecx]
test edx, edx
je 0x68a29206
cmp byte [ecx + 5], 0
push esi
mov dword [ebp - 8], 0
je 0x68a2919f
lea ecx, [ebp - 8]
push ecx
push ecx
mov ecx, eax
call fcn.68a2a480
add esp, 8
jmp 0x68a291bf
cmp eax, 0xffffffff
je 0x68a291ef
xor esi, esi
lea ecx, [ebp - 8]
push esi
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x68a291c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x68a291f4
mov eax, dword [ebp - 8]
test edi, edi
je 0x68a291ce
mov dword [edi], eax
cmp eax, 1
je 0x68a291f4
test edi, edi
mov eax, 0x103
cmove esi, eax
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
mov esi, 0x57
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop edi
call fcn.68a3943b
mov esp, ebp
pop ebp
ret

Function at 0x68a29660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov dword [ebx], 0
cmp word [esi], 0x2a
jne 0x68a296e3
push 5
lea eax, [esi + 2]
push str.FILE:
push eax
call fcn.68a40140
add esp, 0xc
test eax, eax
jne 0x68a296e3
push 0x10
push eax
lea eax, [esi + 0xc]
push eax
call fcn.68a41185
add esp, 0xc
cmp eax, 0xffffffff
je 0x68a296e3
push ecx
lea edx, [ebp - 0x40]
mov dword [ebp - 8], 0x10002
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
call fcn.68a294b0
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmove ecx, dword [ebp - 0x40]
mov dword [ebx], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
cmp word [esi], 0x2a
lea eax, [esi + 2]
jne 0x68a2972c
push 4
push str.RAW:
push eax
call fcn.68a40140
add esp, 0xc
test eax, eax
jne 0x68a2972c
lea edi, [esi + 0xa]
test edi, edi
je 0x68a2972c
push ecx
mov edx, ebx
mov ecx, edi
call fcn.68a2a530
add esp, 4
cmp eax, 0xb
je 0x68a2972a
cmp eax, 0x78
je 0x68a2972a
cmp eax, 0x13
je 0x68a2972a
cmp eax, 0x49a
jne 0x68a2977f
mov esi, edi
mov eax, dword [0x68ab32d8]
xor edi, edi
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], eax
test eax, eax
je 0x68a29750
push edi
mov ecx, eax
call dword [0x68a57338]
call dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x68a29766
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x68ab32d8]
test esi, esi
je 0x68a2977d
push dword [ebp - 0x44]
mov ecx, esi
call dword [0x68a57338]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
Function at 0x68a29c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.68a53f50
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x68ab32d8]
push edi
xor edi, edi
mov dword [ebp - 0x10008], ecx
lea ebx, [edi + 1]
test esi, esi
je 0x68a29c3c
push edi
mov ecx, esi
call dword [0x68a57338]
call esi
mov ebx, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x68a29c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x68a29c87
lea edx, [ebp - 0x10004]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x68a29c65
mov ecx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.68a25890
mov esi, dword [0x68ab32d8]
test esi, esi
je 0x68a29c9c
push ebx
mov ecx, esi
call dword [0x68a57338]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret

Function at 0x68a2a710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x210], edi
test ebx, ebx
je 0x68a2a858
cmp word [ebx], 0
je 0x68a2a858
push esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x68a2a83f
cmp esi, 0x104
jae 0x68a2a789
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.68a25890
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.68a3fe40
mov edi, eax
add esp, 4
test edi, edi
je 0x68a2a827
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x68a2a803
cmp eax, esi
jae 0x68a2a7e2
mov ecx, dword [ebp - 0x210]
push esi
push edi
call fcn.68a25890
push edi
call fcn.68a3fe50
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
push edi
mov esi, 0x7a
call fcn.68a3fe50
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.68a3fe50
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
mov esi, 8
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
pop edi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
Function at 0x68a2bac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x68a2bb00
test esi, esi
je 0x68a2baeb
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push edi
push eax
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push dword [ebx + 0x10]
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ntdll.dll_ZwReadFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x68a2bb41
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.ntdll.dll_ZwWaitForSingleObject]
mov ecx, eax
test ecx, ecx
js 0x68a2bb81
mov ecx, dword [ebp - 0x14]
test ecx, ecx
js 0x68a2bb81
test esi, esi
jne 0x68a2bb7c
mov esi, dword [ebp - 0x10]
cmp esi, edi
jae 0x68a2bb81
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov eax, edi
mov ecx, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
call fcn.68a2bac0
mov ecx, eax
test ecx, ecx
js 0x68a2bb81
add esi, dword [ebp - 0xc]
cmp esi, edi
jb 0x68a2bb50
jmp 0x68a2bb81
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x68a2bda0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0
push edi
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push dword [ebx + 0x10]
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ntdll.dll_ZwWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x68a2be00
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.ntdll.dll_ZwWaitForSingleObject]
test eax, eax
js 0x68a2be52
mov ecx, dword [ebp - 0x14]
test ecx, ecx
js 0x68a2be50
test esi, esi
jne 0x68a2be4b
mov esi, dword [ebp - 0x10]
cmp esi, edi
jae 0x68a2be50
nop
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
mov eax, edi
mov ecx, ebx
sub eax, esi
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
call fcn.68a2bda0
test eax, eax
js 0x68a2be52
add esi, dword [ebp - 0xc]
cmp esi, edi
jb 0x68a2be10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x68a2be70
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a55aed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
test byte [ecx + 9], 1
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
jne 0x68a2bed3
mov eax, 0xc00000bb
jmp 0x68a2bfee
mov eax, dword [ecx + 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
push ecx
mov dword [ebp - 4], 0
push dword [ecx + 0x10]
lea ecx, [ebp - 0x20]
call fcn.68a2b990
mov edi, eax
test edi, edi
js 0x68a2bf77
mov ecx, dword [ebp - 0x24]
push 0
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov dword [eax + 0x18], 0x103
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x20]
lea edx, [ecx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov ecx, dword [ecx + 0x28]
test cl, 1
push eax
push dword [ebx + 0xc]
mov eax, 0
push dword [ebp - 0x28]
cmove eax, edx
push edx
push eax
mov eax, dword [ebp - 0x2c]
push 0
push ecx
push dword [eax + 0x10]
call dword [sym.imp.ntdll.dll_ZwWriteFile]
mov edi, eax
test edi, edi
js 0x68a2bf80
cmp edi, 0x103
je 0x68a2bf80
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x68a2bf80
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x68a2bf80
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test esi, esi
je 0x68a2bfec
mov eax, dword [esi + 0x10]
test eax, eax
je 0x68a2bfa5
cmp eax, 0xffffffff
je 0x68a2bfa5
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x68a2bfbf
cmp eax, 0xffffffff
je 0x68a2bfbf
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov dword [esi + 0x14], 0
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x18], xmm0
mov dword [esi + 0x28], 0
mov eax, dword [eax]
push 0x2c
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x68a57338]
mov ecx, dword [ebp - 0x24]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
Function at 0x68a2e6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
xor esi, esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x68a2e748
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x68a2e761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x68a2e721
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
neg eax
sbb esi, esi
and esi, 0x7fffbffc
add esi, 0x80004004
jmp 0x68a2e75d
cmp eax, 0xea
jne 0x68a2e761
push 0
push ebx
push dword [ebp - 0x10]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x68a2e761
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x68a2e761
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x68a2e75f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x68a2e76d
test ebx, ebx
je 0x68a2e76d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
Function at 0x68a2e780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [0x68ab13e4]
mov dword [ebp - 0x10], eax
mov eax, dword fs:[0x2c]
push edi
mov dword [ebp - 8], edx
mov edi, ecx
mov esi, dword [eax + esi*4]
mov eax, dword [0x68ab351c]
cmp eax, dword [esi + 4]
jle 0x68a2e7fc
push 0x68ab351c
call fcn.68a39824
add esp, 4
cmp dword [0x68ab351c], 0xffffffff
jne 0x68a2e7fc
push 0x68aa8770
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x68ab351c
mov dword [0x68ab3520], eax
call fcn.68a397d3
add esp, 4
mov eax, dword [0x68ab3524]
cmp eax, dword [esi + 4]
jle 0x68a2e848
push 0x68ab3524
call fcn.68a39824
add esp, 4
cmp dword [0x68ab3524], 0xffffffff
jne 0x68a2e848
push 0x68aa877c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x68ab3524
mov dword [0x68ab3528], eax
call fcn.68a397d3
add esp, 4
push dword [edi + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x68a2e92d
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x68a2e942
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x68a2e8f4
mov eax, dword [edi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0xc]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x68a2e8f4
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x68a2e8ee
mov esi, dword [0x68ab3520]
mov eax, dword [edi + 8]
test esi, esi
je 0x68a2e8d9
push ebx
push eax
mov ecx, esi
call dword [0x68a57338]
call esi
test eax, eax
je 0x68a2e8ee
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x68a2e8f4
mov esi, dword [0x68ab3528]
mov ecx, esi
push eax
call dword [0x68a57338]
call esi
test eax, eax
jne 0x68a2e8f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x68a2e90b
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x68a2e942
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x68a2e92d
push 0
push dword [ebp - 0x10]
push ebx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x68a2e942
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x68a2e942
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
Function at 0x68a30890
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.68a3b750
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 1
push eax
push str.mojo
push str._s._d._d.971151191159711010098111120112105112101951
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.68a09db0
add esp, 0x18
test eax, eax
js 0x68a309d2
push 0x10c
lea eax, [ebp - 0x318]
mov dword [ebp - 0x320], 0x114
push 0
push eax
mov dword [ebp - 0x31c], 0
call fcn.68a3b750
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x68a30940
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x68a3093a
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x68a309d2
cmp dword [ebp - 0x31c], 6
mov ecx, str.D:_A__GA___WD__A__GA___AN__A__GA___S_1_15_2_1_S:_ML__NW___LW_
jae 0x68a30955
mov ecx, str.D:_A__GA___WD__A__GA___AN_
jmp 0x68a30968
jne 0x68a30968
cmp dword [ebp - 0x318], 2
mov eax, str.D:_A__GA___WD__A__GA___AN_S:_ML__NW___LW_
cmovae eax, ecx
mov ecx, eax
push esi
xor esi, esi
mov dword [ebp - 0x324], 0
push esi
lea eax, [ebp - 0x324]
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x68a30992
mov esi, dword [ebp - 0x324]
jmp 0x68a309a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x68a309a6
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x68a309d1
push ecx
push esi
sub esp, 0x20
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.68a2b150
test eax, eax
js 0x68a309d1
mov ecx, dword [ebp + 8]
movq xmm0, qword [ecx]
mov ecx, dword [ecx + 8]
movq qword [edi + 8], xmm0
mov dword [edi + 0x10], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.68a3943b
mov esp, ebp
pop ebp
ret 4
Function at 0x68a31b00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x68aaf040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x68a31be8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x68a31be8
push edi
call fcn.68a398f5
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x68a31bdf
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x68a5ff9c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x68a31bdf
mov ecx, dword [ebp - 0x214]
push esi
movzx eax, word [ecx + 0xa]
mov word [ebx], ax
movzx eax, word [ecx + 8]
mov word [ebx + 2], ax
movzx eax, word [ecx + 0xe]
mov word [ebx + 4], ax
movzx eax, word [ecx + 0xc]
mov word [ebx + 6], ax
call fcn.68a39891
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.68a3943b
mov esp, ebp
pop ebp
ret
push esi
call fcn.68a39891
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x68a31bfa
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.68a3943b
mov esp, ebp
pop ebp
ret