joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032c00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101737db
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x101d5024]
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 edi, ecx
cmp dword [edi + 0x48], 8
lea eax, [edi + 0x34]
jb 0x10032c3b
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.Seeve.exe
push str.1167f
push str.MuBanSV
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x10032c6b
xor ecx, ecx
jmp 0x10032c83
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032c74
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
lea esi, [edi + 0x64]
push eax
mov ecx, esi
call fcn.10025730
cmp dword [edi + 0x74], 0
je 0x10032cb6
cmp dword [esi + 0x14], 8
jb 0x10032ca5
mov eax, dword [esi]
jmp 0x10032ca7
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10032d83
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 4], 0
jb 0x10032ce6
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x224]
push ecx
push str..exe
push eax
call fcn.1003bb07
mov ebx, dword [ebp - 0x220]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x224]
mov ecx, ebx
sub ecx, edi
add esp, 0x10
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10032d3c
cmp esi, edi
je 0x10032d3c
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.10025950
mov ebx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x10032d83
push dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
push ecx
push ebx
push edi
call fcn.10029fb0
mov ecx, dword [ebp - 0x21c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x224]
add esp, 0x10
sub ecx, esi
imul ecx
lea ecx, [ebp - 0x224]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.1002cee0
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.1003357f
mov esp, ebp
pop ebp
ret

Function at 0x10032e30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.1004cec0
lea eax, [esi + 0x34]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10032e67
mov eax, dword [eax]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.NULL
push str.b0f65
push str.MuBanSV
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], 0
jne 0x10032e97
xor ecx, ecx
jmp 0x10032eaf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032ea0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x7c]
call fcn.10025730
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1003357f
mov esp, ebp
pop ebp
ret
Function at 0x10033110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x100
push dword [eax]
lea eax, [ebp - 0x204]
push eax
call fcn.100590ef
add esp, 0xc
lea eax, [ebp - 0x204]
push 0x10033060
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov dword [0x101e0358], eax
test eax, eax
je 0x1003323c
call dword [sym.imp.KERNEL32.dll_FreeConsole]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x10
push eax
push dword [0x101e0358]
mov dword [0x101e0354], 2
mov dword [ebp - 0x21c], 2
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 1
mov dword [ebp - 0x208], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x10
push eax
push dword [0x101e0358]
mov dword [0x101e0354], 4
mov dword [ebp - 0x21c], 4
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0xbb8
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
push 0
push 0
push 0
push 0x100332e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003357f
mov esp, ebp
pop ebp
ret 8

Function at 0x10033250
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100332e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret

Function at 0x10034400
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101738e3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101d5024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x101e06e8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x101e06e8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x1017653d
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.10037f60
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10038dc2
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x10173ddf
call fcn.1006e789
mov ebx, dword [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x14], 7
push edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x101cdff8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], ax
call fcn.10025730
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.100468c7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, edi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10038e8d
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
push 0x80
push 4
push edi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10038e89
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebx], eax
call fcn.10033571
mov esi, eax
pop ecx
test esi, esi
je 0x10038e89
push dword [ebx]
push 0
push esi
call fcn.1004cec0
add esp, 0xc
lea eax, [ebp - 0x98]
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x10038e8d
xor edi, edi
mov esi, edi
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.10025670
push edi
push 1
lea ecx, [ebp + 8]
call fcn.10025670
mov eax, esi
call fcn.1006e744
ret
Function at 0x10038eab
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xc8
mov eax, 0x10173e27
call fcn.1006e789
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xd0], ebx
push ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x101cdff8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.10025730
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.100468c7
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003901f
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ebx
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10038f49
push 0x101cdff8
mov ecx, esi
call fcn.100255d0
jmp 0x1003902a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.10033571
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x10038f88
push 0x101cdff8
mov ecx, esi
call fcn.100255d0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10025670
push ebx
jmp 0x10039036
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.1004cec0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.10047314
push ebx
call fcn.1003357a
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.10046b62
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.1003a468
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.10038763
cmp dword [ebp - 0x30], ebx
jbe 0x10039014
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.10025950
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10025670
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10027770
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10025670
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.10025670
mov eax, esi
call fcn.1006e744
ret

Function at 0x10039048
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push 0x80
push 2
push esi
inc edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10039077
xor eax, eax
jmp 0x100390a5
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100390a1
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 4]
je 0x100390a3
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003ac90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1003ad0f
push ebx
push edi
xor edi, edi
push str.7de7df1962f4855e0d1d0a09e97013e1
mov dword [ebp + 8], edi
call fcn.1005b7e0
mov ebx, dword [ebp + 0xc]
mov edx, edi
pop ecx
test ebx, ebx
je 0x1003accc
mov cl, byte [edi + str.7de7df1962f4855e0d1d0a09e97013e1]
xor byte [edx + esi], cl
inc edi
xor ecx, ecx
cmp edi, eax
cmovge edi, ecx
inc edx
cmp edx, ebx
jb 0x1003acb6
cmp ebx, 1
jle 0x1003ad03
cmp byte [esi], 0x37
jne 0x1003ad03
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x1003ace1
cmp al, 0x5a
jne 0x1003ad03
lea eax, [ebp + 8]
push eax
push ebx
push esi
call fcn.10001090
test eax, eax
je 0x1003ad03
mov edx, dword [ebp + 8]
test edx, edx
je 0x1003ad03
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x1003ad0d
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x1003aea1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1004cec0
push 0x101768c4
lea eax, [ebp - 0x20c]
push str.C:log_s.log
push eax
call fcn.10032f50
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.1003357f
mov esp, ebp
pop ebp
ret
Function at 0x1003af01
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.100335c0
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.1004cec0
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.1005c167
push 0x800
lea eax, [ebp - 0x1028]
push esi
push eax
call fcn.1004cec0
push 0x101768c4
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.1003ad9a
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.1004cec0
add esp, 0x40
lea eax, [ebp - 0x20c]
push edi
push esi
push eax
call fcn.1004cec0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.1005b6b8
pop ecx
test eax, eax
je 0x1003b160
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1004d0cd
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x1003b160
lea eax, [ebp - 0x20c]
push eax
call fcn.1005b6b8
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.1005c167
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.1003ad9a
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.10027fd0
push esi
call fcn.10050afc
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.1005c6e5
add esp, 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test edi, edi
je 0x1003b160
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.1003adb8
xor eax, eax
add esp, 0x28
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x101791f0
push eax
cmovne esi, ebx
call fcn.1005a550
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003b160
test esi, esi
jne 0x1003b106
push edi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push ebx
push eax
call fcn.1005c403
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.1005b6b8
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push ebx
push eax
call fcn.1005c403
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push ebx
push eax
call fcn.1005c403
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push ebx
push eax
call fcn.1005c403
push edi
call fcn.1005a34e
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003357f
mov esp, ebp
pop ebp
ret
Function at 0x1003b171
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.100335c0
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
call fcn.10050afc
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.1005c6e5
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.1003adb8
add esp, 0x28
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
xor ecx, ecx
pop edi
inc ecx
test eax, eax
push 0x101791f0
push ebx
cmovne edi, ecx
call fcn.1005a550
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003b28d
test edi, edi
jne 0x1003b230
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.1005c403
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call fcn.1005b6b8
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.1005c403
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.1005c403
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.1005c403
push esi
call fcn.1005a34e
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003357f
mov esp, ebp
pop ebp
ret

Function at 0x1003b5f2
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.1005b6b8
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10033571
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.1005b8ab
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x1003b66c
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x1003b663
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003b659
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1003b66a
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x1003b636
jmp 0x1003b66c
xor edi, edi
push esi
call fcn.1003357a
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003b67c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.1003bdc4
lea eax, [ebp - 0x20c]
push eax
call fcn.1005b6b8
add esp, 0x14
test eax, eax
je 0x1003b734
lea eax, [ebp - 0x20c]
push 0x101ce09c
push eax
call fcn.1005bec3
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1005bec3
lea eax, [ebp - 0x20c]
push 0x101ce09c
push eax
call fcn.1005bec3
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003b70d
lea eax, [ebp - 0x20c]
push eax
call fcn.1003b5f2
pop ecx
cmp word [ebp - 0x20c], si
je 0x1003b725
lea eax, [ebp - 0x20c]
push eax
call fcn.1005b6b8
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.10025730
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003357f
mov esp, ebp
pop ebp
ret

Function at 0x1003b7e8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x101d5024]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x101e09c0]
test al, al
jne 0x1003b881
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1004cec0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1003b878
lea eax, [ebp - 0x20c]
push eax
call fcn.1005ba76
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.1004ed4b
pop ecx
pop ecx
test eax, eax
jne 0x1003b870
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.1004ed4b
pop ecx
pop ecx
test eax, eax
je 0x1003b878
mov byte [0x101e09c0], bl
jmp 0x1003b87e
mov bl, byte [0x101e09c0]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003357f
mov esp, ebp
pop ebp
ret
Function at 0x1003b88f
Capabilities:
Check if file exists

Disassembly:
push 0xc54
mov eax, 0x101741fe
call fcn.1006e789
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
and dword [ebp - 0xc60], 0
push esi
push 0
push eax
call fcn.1004cec0
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1004cec0
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1004cec0
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.1004cec0
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1004cec0
push esi
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.1004cec0
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0x48
mov dword [ebp - 0xc48], esi
mov word [ebp - 0xc58], ax
push esi
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], esi
push eax
push esi
call fcn.1003bdc4
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1005b8ab
lea eax, [ebp - 0x218]
push eax
call fcn.1005b6b8
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.1004d0cd
add esp, 0x24
test eax, eax
jne 0x1003b993
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.1003b67c
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.10027770
push esi
push 1
jmp 0x1003baf4
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.1005b8ab
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.1005bec3
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.1005b8ab
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.1005bec3
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.1005b8ab
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.1005bec3
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x1003bad1
cmp dword [ebp - 0xc5c], 0
je 0x1003bad1
test ecx, ecx
je 0x1003bad1
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push 0x10177440
push eax
call fcn.10032f50
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003baa1
lea eax, [ebp - 0x420]
push eax
call fcn.1003b5f2
pop ecx
cmp word [ebp - 0x420], 0
jne 0x1003baaf
xor eax, eax
jmp 0x1003babc
lea eax, [ebp - 0x420]
push eax
call fcn.1005b6b8
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.10025730
jmp 0x1003bae0
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.1003b67c
pop ecx
pop ecx
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.10027770
xor eax, eax
push 0
inc eax
push eax
lea ecx, [ebp - 0xc58]
call fcn.10025670
mov eax, edi
call fcn.1006e744
ret
Function at 0x1003be73
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push esi
xor ecx, ecx
xor edx, edx
xor esi, esi
push edi
cmp dword [ebp + 0xc], ecx
jle 0x1003bf54
mov edi, dword [ebp + 8]
mov al, byte [esi + edi]
cmp al, 0x3d
jne 0x1003be97
inc edx
cmp edx, 2
jg 0x1003bed5
cmp al, 0x7f
ja 0x1003bed5
movzx eax, al
mov al, byte [eax + 0x101793a8]
cmp al, 0x7f
je 0x1003bed5
cmp al, 0x40
jae 0x1003beb0
test edx, edx
jne 0x1003bed5
inc ecx
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x1003be8a
test ecx, ecx
je 0x1003bf54
mov edi, dword [ebp + 0x14]
imul eax, ecx, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x1003beda
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x1003bed7
push 0xffffffffffffffee
pop eax
jmp 0x1003bf56
mov edx, dword [ebp + 0x10]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x1003bf4e
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x101793a8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x1003bf3f
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x1003bf2a
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x1003bf37
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x1003bf3f
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x1003beef
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
pop ebx
xor eax, eax
pop edi
pop esi
pop ebp
ret