joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4295b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508c46
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x82c], ebx
cmp word [0x556918], 0
jne 0x4296ff
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push 0x20219
lea ecx, [ebp - 0x811]
mov dword [ebp - 4], 0
call fcn.00426fd0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x828]
call fcn.0041b8e0
mov edi, dword [ebp - 0x828]
test eax, eax
jne 0x4296ed
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x81c]
push eax
push 0
push 0x514958
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4296ed
mov eax, dword [ebp - 0x81c]
cmp eax, 1
je 0x42968a
cmp eax, 2
jne 0x4296ed
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x4296a7
test al, 1
jne 0x4296ed
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x4296b0
jmp 0x4296ed
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x556918
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4296e0
movzx eax, word [esi + ecx]
test ax, ax
je 0x4296e0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4296c2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4296ff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x556918
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x42974b
mov ecx, 0x556918
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42973e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42973e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x429720
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.0041f5a0
mov ecx, eax
test ecx, ecx
je 0x4297ba
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x556918
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00407c80
test al, al
jne 0x42979c
mov ecx, 0x556918
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429780
sub ecx, edx
sar ecx, 1
push ecx
push 0x556918
mov ecx, ebx
call fcn.00409b60
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402ae0
int3
Function at 0x431200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x80], 0x4f0053
push ebx
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x80]
mov eax, 0x5595a0
mov dword [ebp - 0x7c], 0x540046
push edi
mov dword [ebp - 0x78], 0x410057
mov edx, 0x3d
mov dword [ebp - 0x74], 0x450052
sub esi, eax
mov dword [ebp - 0x70], 0x4d005c
mov dword [ebp - 0x6c], 0x630069
mov dword [ebp - 0x68], 0x6f0072
mov dword [ebp - 0x64], 0x6f0073
mov dword [ebp - 0x60], 0x740066
mov dword [ebp - 0x5c], 0x57005c
mov dword [ebp - 0x58], 0x6e0069
mov dword [ebp - 0x54], 0x6f0064
mov dword [ebp - 0x50], 0x730077
mov dword [ebp - 0x4c], 0x43005c
mov dword [ebp - 0x48], 0x720075
mov dword [ebp - 0x44], 0x650072
mov dword [ebp - 0x40], 0x74006e
mov dword [ebp - 0x3c], 0x650056
mov dword [ebp - 0x38], 0x730072
mov dword [ebp - 0x34], 0x6f0069
mov dword [ebp - 0x30], 0x5c006e
mov dword [ebp - 0x2c], 0x6e0055
mov dword [ebp - 0x28], 0x6e0069
mov dword [ebp - 0x24], 0x740073
mov dword [ebp - 0x20], 0x6c0061
mov dword [ebp - 0x1c], 0x5c006c
mov dword [ebp - 0x18], 0x61004d
mov dword [ebp - 0x14], 0x690067
mov dword [ebp - 0x10], 0x500063
mov dword [ebp - 0xc], 0x6e0065
nop dword [eax]
lea ecx, [edx + 0x7fffffc1]
test ecx, ecx
je 0x43131e
movzx ecx, word [esi + eax]
test cx, cx
je 0x43131e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x431300
test edx, edx
lea ecx, [eax - 2]
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret

Function at 0x4323f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a100
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x550204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041f5a0
mov ecx, eax
test ecx, ecx
je 0x4324d1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
push 0x519d94
push eax
mov dword [ebp - 4], 0
call fcn.00408160
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, 0x64
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov eax, 0x63
mov dword [ebp - 0x1c], 0x4324f0
cmovl eax, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
call fcn.0041f8d0
add esp, 4
mov dword [ebp - 0x20], vtable.mf_bind_t_1_class_CUninstaller__class_CUninstaller___void__int_.0
mov dword [ebp - 0x1c], 0
add esi, 0xfffffff0
mov dword [ebp - 0x18], 0
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4324bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402ae0
int3
Function at 0x4341b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0044d7b0
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4341e0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.004720f0
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004a434c
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
Function at 0x434270
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x434483
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434483
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4342a3
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x434483
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.004720f0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004720f0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push str..
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x434324
test al, 1
je 0x434324
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x434469
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x43445d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x4343d8
cmp word [ebp - 0x638], 0x2e
jne 0x434397
mov ax, word [ebp - 0x636]
test ax, ax
je 0x434442
cmp ax, 0x2e
jne 0x434397
cmp word [ebp - 0x634], 0
je 0x434442
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004720f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00434270
add esp, 4
jmp 0x434440
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004720f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43442f
test al, 1
je 0x43442f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x434360
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
Function at 0x4344a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4344f8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4344f8
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4344d8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4344f8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4344f3
test al, 0x10
je 0x4344f3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4344f8
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x4347f0
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x43481f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.00426260
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x434817
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x434845
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x434802
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x434860
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a3f6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x43489c
xor eax, eax
jmp 0x434aa2
cmp word [ebx], 0
je 0x434895
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4348a7
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x434895
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004720f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x518fd0
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x434902
test al, 1
je 0x434902
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00431880
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x434a52
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x4349b1
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x4349b1
cmp word [ebp - 0x858], 0x2e
jne 0x4349b1
mov ax, word [ebp - 0x856]
test ax, ax
je 0x43498c
cmp ax, 0x2e
jne 0x4349b1
cmp word [ebp - 0x854], 0
jne 0x4349b1
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x434abe
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x434a44
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.004220e0
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x4349ec
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x4349ec
mov esi, dword [ebp - 0x888]
push esi
call fcn.00434860
jmp 0x4349f8
mov esi, dword [ebp - 0x888]
push esi
call fcn.004347f0
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x434a09
xor edi, edi
jmp 0x434a28
cmp dword [ebp - 0x424], 0
jne 0x434a16
xor edi, edi
jmp 0x434a28
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x434a44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x434949
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x434a78
cmp eax, 0xffffffff
je 0x434a78
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.004341b0
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x434a9d
cmp eax, 0xffffffff
je 0x434a9d
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x434a78
Function at 0x434de0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
or esi, 0xffffffff
cmp dword [edi], 0
jne 0x434ed7
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004720f0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x434ec0
push ebx
push 0x104
lea ebx, [edi + 4]
push 0
push ebx
call fcn.004720f0
add esp, 0xc
lea eax, [ebp - 0x318]
lea ecx, [ebp - 0x311]
push eax
call fcn.00434ba0
push ebx
push 0
push dword [eax]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp - 0x318]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x434e89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call esi
push str..bat
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push ebx
call esi
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi], eax
or esi, 0xffffffff
pop ebx
cmp dword [edi], 0
jne 0x434ed7
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004720f0
add esp, 0xc
mov dword [ebp - 0x31c], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00403100
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00495b55
add esp, 0x1c
test eax, eax
cmovs eax, esi
test eax, eax
js 0x434f34
cmp eax, 0x207
ja 0x434f34
jne 0x434f3b
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x434f44
push 0
lea eax, [ebp - 0x31c]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
Function at 0x435130
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.0044d7b0
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.004720f0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.004720f0
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.004720f0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.004720f0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.00433cb0
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435260
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004a3548
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.004aa81f
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x4352e5
inc esi
cmp esi, 0xa
jl 0x4351b2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4352f0
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00409b60
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d79a
mov esp, ebp
pop ebp
ret
Function at 0x435370
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0044d7b0
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4353cb
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x43549c
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x43549c
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x435405
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x43546a
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00471b70
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43549c
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x435420
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x43549c
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00471b70
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d79a
mov esp, ebp
pop ebp
ret 4
Function at 0x437f40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a778
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x550204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5556c4]
mov esi, dword [ebp + 8]
test al, 1
jne 0x437fac
or eax, 1
mov dword [0x5556c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x5118e0
mov dword [0x5556b8], 0x514838
mov dword [0x5556bc], eax
mov byte [0x5556c0], 0
call fcn.0044d785
mov eax, dword [0x5556c4]
add esp, 4
test al, 2
jne 0x438008
or eax, 2
mov dword [0x5556c8], 0x514850
mov dword [0x5556c4], eax
xor eax, eax
push 0x511910
mov dword [0x5556cc], 0x5556b8
mov dword [0x5556dc], 2
mov dword [0x5556d4], 0
mov dword [0x5556d8], 0
mov dword [0x5556e0], eax
mov dword [0x5556d0], 0x5556c8
call fcn.0044d785
add esp, 4
mov eax, dword [0x5556c8]
mov ecx, 0x5556c8
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push str.._s
push eax
call fcn.00408160
mov esi, dword [ebp - 0x24]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x438065
xor edi, edi
jmp 0x438118
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push 0x10
lea ecx, [ebp - 0x20]
xorps xmm0, xmm0
push ecx
push 0
push 0
push 0x8000c010
push eax
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test edi, edi
jne 0x43809c
push str.AUTH_fail__n
jmp 0x438108
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
push 0x24
push str.6804FACB_33CC_48a8_99B1_4E2A487F9638
push 0x10
lea eax, [ebp - 0x20]
push eax
call fcn.004382c0
mov edi, eax
test edi, edi
jne 0x4380d1
push str.Base64_fail__n
jmp 0x438108
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push 0
push eax
push 0
push 0
push dword [ebp - 0x2c]
push edi
push 0x8000c014
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov dword [ebp - 0x28], eax
call fcn.004a442b
mov edi, dword [ebp - 0x28]
add esp, 4
test edi, edi
jne 0x43810f
push str.Enable_fail__n
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x438137
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044d79a
mov esp, ebp
pop ebp
ret 4