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

Disassembly:
push 0xffffffffffffffff
push 0x478948
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a670]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
call fcn.00402050
mov ecx, eax
call fcn.00415a70
xor esi, esi
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], esi
mov word [esp + 0x58], si
lea edi, [ecx + 2]
jmp 0x411710
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x411710
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x5c]
call fcn.00401850
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x88], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
mov word [esp + 0x2c], si
call fcn.00401760
mov ebx, 8
push ebx
push str.RiLi.exe
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 1
call fcn.00406100
cmp dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
jae 0x411779
lea eax, [esp + 0x20]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
test eax, eax
je 0x4117aa
cmp dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x58]
jae 0x411794
lea eax, [esp + 0x58]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00402a40
mov ecx, dword [esp + 0x18]
call fcn.004113f0
cmp dword [esp + 0x84], esi
je 0x41184b
call fcn.00402050
mov ecx, eax
call fcn.00415ab0
mov ecx, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], si
lea edi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, si
jne 0x4117e0
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x40]
call fcn.00401850
cmp dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x7c], 2
jae 0x41180d
lea eax, [esp + 0x3c]
push eax
call ebp
test eax, eax
je 0x411838
cmp dword [esp + 0x50], ebx
mov eax, dword [esp + 0x3c]
jae 0x411822
lea eax, [esp + 0x3c]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00402a40
mov ecx, dword [esp + 0x18]
call fcn.004113f0
cmp dword [esp + 0x50], ebx
jb 0x41184b
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0042397c
add esp, 4
cmp dword [esp + 0x34], ebx
jb 0x41185e
mov edx, dword [esp + 0x20]
push edx
call fcn.0042397c
add esp, 4
cmp dword [esp + 0x6c], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
jb 0x411882
mov eax, dword [esp + 0x58]
push eax
call fcn.0042397c
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0042caa2
add esp, 0x6c
ret 4
Function at 0x4148b0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x24
call fcn.00423951
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4148d6
mov dword [eax + 0x1c], 0xf
mov dword [eax + 0x18], ebx
mov byte [eax + 8], bl
mov edi, eax
jmp 0x4148d8
xor edi, edi
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4148e1
sub eax, esi
push eax
lea esi, [edi + 4]
push edx
mov ecx, esi
call fcn.00403f20
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push 0x414650
push ebx
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x18], 0x10
mov ebp, dword [edi]
jb 0x414936
mov ecx, dword [esi + 4]
push ecx
call fcn.0042397c
add esp, 4
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edi
mov byte [esi + 4], bl
call fcn.0042397c
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x415670
Capabilities:
Encode data using base64

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x41567f
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, ecx
lea ecx, [esi*8]
sub ecx, edx
sub ecx, 2
je 0x4156b3
sub ecx, 2
jne 0x4156b6
add eax, 2
jmp 0x4156b6
add eax, 3
push ebx
mov ebx, dword [esp + 0x1c]
add eax, 1
cmp dword [ebx], eax
jge 0x4156cd
mov dword [ebx], eax
pop ebx
mov eax, 0xfffffff0
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push edi
lea eax, [eax + eax*2]
xor edi, edi
test eax, eax
jle 0x41578a
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
jmp 0x415710
movzx esi, byte [eax]
movzx ebp, byte [eax + 1]
mov ebx, esi
sar ebx, 2
and ebx, 0x3f
movzx ebx, byte [ebx + 0x4816e8]
add eax, 1
movzx edi, byte [eax + 1]
mov byte [ecx], bl
add eax, 1
shl esi, 4
mov ebx, ebp
sar ebx, 4
add ebx, esi
and ebx, 0x3f
movzx ebx, byte [ebx + 0x4816e8]
mov esi, edi
sar esi, 6
add ecx, 1
mov byte [ecx], bl
lea esi, [esi + ebp*4]
and esi, 0x3f
movzx ebx, byte [esi + 0x4816e8]
add ecx, 1
mov byte [ecx], bl
and edi, 0x3f
movzx ebx, byte [edi + 0x4816e8]
add ecx, 1
mov byte [ecx], bl
add eax, 1
add ecx, 1
sub edx, 1
jne 0x415710
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x41578e
mov eax, dword [esp + 0x18]
cmp edi, esi
jge 0x4157ed
movzx edx, byte [eax]
lea ebp, [edi + 1]
cmp ebp, esi
jge 0x4157a2
movzx edi, byte [eax + 1]
jmp 0x4157a4
xor edi, edi
mov eax, edx
sar eax, 2
and eax, 0x3f
mov al, byte [eax + 0x4816e8]
mov byte [ecx], al
mov eax, edi
sar eax, 4
shl edx, 4
add eax, edx
and eax, 0x3f
mov dl, byte [eax + 0x4816e8]
add ecx, 1
mov byte [ecx], dl
add ecx, 1
cmp ebp, esi
jge 0x4157e1
and edi, 0xf
mov al, byte [edi*4 + 0x4816e8]
mov byte [ecx], al
jmp 0x4157e4
mov byte [ecx], 0x3d
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov edx, ecx
sub edx, dword [esp + 0x20]
pop edi
pop ebp
mov dword [ebx], edx
pop ebx
mov byte [ecx], 0
xor eax, eax
pop esi
pop ecx
ret

Function at 0x415830
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0041a480
mov dword [esi], eax
call fcn.0041a5e0
mov dword [esi + 8], eax
call fcn.0041a3e0
mov dword [esi + 0xc], eax
call fcn.0041a590
mov dword [esi + 0x10], eax
call fcn.0041a4f0
mov dword [esi + 0x14], eax
call fcn.0041a540
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esi + 0x18], eax
mov eax, dword [esi]
lea ecx, [esi + 0xf0]
push ecx
mov dword [esi + 4], eax
call edi
lea edx, [esi + 0x108]
push edx
call edi
lea eax, [esi + 0xf8]
push eax
call edi
lea ecx, [esi + 0x138]
push ecx
call edi
lea edx, [esi + 0x118]
push edx
call edi
lea eax, [esi + 0x128]
push eax
call edi
mov ecx, dword [0x49c288]
pop edi
mov dword [esi + 0xe4], ecx
pop esi
ret
Function at 0x4158c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.0042cac0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x415932
mov eax, dword [esp + 8]
test eax, eax
je 0x41590e
cmp eax, 1
jne 0x415932
cmp byte [esp + 0x11a], 1
jne 0x415932
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0042caa2
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.0042caa2
add esp, 0x120
ret

Function at 0x415950
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push eax
push ebx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41599b
push esi
push edi
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x415971
mov ecx, 9
mov esi, str.AppDataLocalLow
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
pop esi
setne al
pop ebx
ret 8
xor al, al
pop ebx
ret 8

Function at 0x4159b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x18
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4159e6
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042caa2
add esp, 0x18
ret 8
push esi
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x415a20
lea eax, [esp + 0xc]
push eax
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 8]
push ecx
push 0
push 0x400
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jge 0x415a35
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0042caa2
add esp, 0x18
ret 8
mov eax, dword [esp + 8]
mov edx, edi
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x415a40
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x1c]
test eax, eax
pop esi
setne al
pop edi
xor ecx, esp
call fcn.0042caa2
add esp, 0x18
ret 8
Function at 0x415ae0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push esi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x18], 0
call fcn.0042cac0
add esp, 0xc
xor eax, eax
jmp 0x415b20
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x415b20
push edi
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x415b40
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 8
cmp dword [ebx + 0x54], esi
pop edi
jb 0x415b6a
mov ecx, dword [ebx + 0x40]
jmp 0x415b6d
lea ecx, [ebx + 0x40]
lea edx, [esp + 0x214]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x415b74
cmp dword [ebx + 0x38], esi
jb 0x415b8f
mov ecx, dword [ebx + 0x24]
jmp 0x415b92
lea ecx, [ebx + 0x24]
lea edx, [esp + 0x41c]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x415ba0
lea ecx, [esp + 8]
push ecx
push 2
push 0
lea edx, [esp + 0x18]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415c0e
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
lea eax, [esp + 0x218]
push eax
push 1
push 0
push str.CfgRootPath
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x420]
push edx
push 1
push 0
push str.CfgUserPath
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x624]
pop esi
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x620
ret
Function at 0x416600
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x416622
mov eax, dword [esi + 0x40]
jmp 0x416625
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.0042cb6a
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416659
lea edx, [esp + 4]
push edx
call fcn.00417c90
add esp, 4
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x416660
mov ecx, dword [str.Config.ini]
mov edx, dword [0x48189c]
mov dword [eax], ecx
mov ecx, dword [0x4818a0]
mov dword [eax + 4], edx
mov edx, dword [0x4818a4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4818a8]
mov dword [eax + 0xc], edx
mov dx, word [0x4818ac]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4166b0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x58]
call fcn.00401850
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0042caa2
add esp, 0x20c
ret

Function at 0x4166f0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x416712
mov eax, dword [esi + 0x40]
jmp 0x416715
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push str._s_s_
push eax
call fcn.0042cb6a
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416749
lea edx, [esp + 4]
push edx
call fcn.00417c90
add esp, 4
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x416750
mov ecx, dword [str.Related.ini]
mov edx, dword [0x4818c4]
mov dword [eax], ecx
mov ecx, dword [0x4818c8]
mov dword [eax + 4], edx
mov edx, dword [0x4818cc]
mov dword [eax + 8], ecx
mov ecx, dword [0x4818d0]
mov dword [eax + 0xc], edx
mov edx, dword [0x4818d4]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x4167a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4167a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0xac]
call fcn.00401850
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0042caa2
add esp, 0x20c
ret
Function at 0x417360
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x14], 0
call fcn.0042cac0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.004159b0
test al, al
jne 0x4173e9
push 0x104
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.00415950
test al, al
jne 0x4173e9
push 0
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4173d4
sub eax, edx
sar eax, 1
je 0x417482
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4173f1
mov edx, dword [0x47fe18]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417410
push esi
mov ecx, 7
mov esi, str.PeopleCalendar
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
pop esi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417433
lea ecx, [esp + 0xc]
push ecx
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
jne 0x41745e
lea edx, [esp + 8]
push edx
call fcn.00417c90
add esp, 4
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417465
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x3c]
call fcn.00401850
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x210
ret
Function at 0x4174a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebx, ecx
mov word [esp + 0x14], 0
call fcn.0042cac0
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
mov ecx, ebx
call fcn.004159b0
test al, al
jne 0x417529
push 0x104
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.00415950
test al, al
jne 0x417529
push 0
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417514
sub eax, edx
sar eax, 1
je 0x4175c2
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417531
mov edx, dword [0x47fe18]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417550
push esi
mov ecx, 0xa
mov esi, str.PeopleCalendar.users
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
pop esi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x417573
lea ecx, [esp + 0xc]
push ecx
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
jne 0x41759e
lea edx, [esp + 8]
push edx
call fcn.00417c90
add esp, 4
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4175a5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [ebx + 0x20]
call fcn.00401850
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x210
ret
Function at 0x417c90
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417ca0
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423981
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417cd5
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x417d3c
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x417d1c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x417d16
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x417d36
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x417cf6
pop ebx
push esi
call fcn.0042397c
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.0042397c
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x417e60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0042cac0
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x47f870
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.0042cb6a
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x417ef2
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.0042caa2
add esp, 0x828
ret
Function at 0x4181b0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
sub esp, 0x620
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
mov ebx, dword [esp + 0x62c]
push esi
push edi
mov edi, dword [esp + 0x630]
xor esi, esi
push 0x206
lea eax, [esp + 0x426]
push esi
push eax
mov dword [esp + 0x18], edi
mov word [esp + 0x42c], si
call fcn.0042cac0
push 0x206
lea ecx, [esp + 0x22a]
push esi
push ecx
mov word [esp + 0x230], si
call fcn.0042cac0
lea edx, [esp + 0x438]
add esp, 0x18
mov eax, edi
sub edx, edi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x418220
lea edx, [esp + 0x218]
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, si
jne 0x418240
lea edx, [esp + 0x420]
push edx
call fcn.0042dd76
lea eax, [esp + 0x21c]
push eax
call fcn.0042dd76
add esp, 8
lea edx, [esp + 0x218]
lea ecx, [esp + 0x420]
lea ebx, [ebx]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4182a6
cmp ax, si
je 0x4182a2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4182a6
add ecx, 4
add edx, 4
cmp ax, si
jne 0x418280
xor eax, eax
jmp 0x4182ab
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x418370
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x206
lea ecx, [esp + 0x1a]
push 0
push ecx
mov word [esp + 0x20], 0
call fcn.0042cac0
add esp, 0xc
test esi, esi
jne 0x4182f4
push ebx
lea edx, [esp + 0x18]
push str._s.bak
push edx
call fcn.0042cb6a
add esp, 0xc
jmp 0x418308
push esi
push ebx
lea eax, [esp + 0x1c]
push str._s.bak_d
push eax
call fcn.0042cb6a
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41831e
lea edx, [esp + 0x14]
push edx
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0042e01e
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call ebp
mov edx, dword [esp + 0x10]
push 0
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
push 5
push 0
jne 0x41835d
lea eax, [esp + 0x1c]
push eax
call edi
cmp esi, 0xa
jge 0x41836f
add esi, 1
jmp 0x4182c0
lea ecx, [esp + 0x1c]
push ecx
call edi
mov edx, dword [esp + 0x10]
push 5
push 0
push edx
call edi
pop ebp
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0x620
ret
Function at 0x418390
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0xc14
mov eax, dword [0x49a670]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x21e]
push ebx
push eax
mov word [esp + 0x224], bx
call fcn.0042cac0
add esp, 0xc
xor eax, eax
jmp 0x4183d0
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x218], cx
add eax, 2
cmp cx, bx
jne 0x4183d0
push 0x3e6
lea ecx, [esp + 0x836]
push ebx
push ecx
mov word [esp + 0x83c], bx
call fcn.0042cac0
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x430]
push 0x47f870
push eax
call fcn.0042cb6a
push 0x206
lea ecx, [esp + 0x646]
push ebx
push ecx
mov word [esp + 0x64c], bx
call fcn.0042cac0
push 0x206
lea edx, [esp + 0x3a]
push ebx
push edx
mov word [esp + 0x40], bx
call fcn.0042cac0
add esp, 0x30
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.0042cb3a
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea edx, [esp + 0x420]
push edx
mov word [eax], bx
call esi
test eax, eax
je 0x4185ca
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418491
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4184b0
push edi
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x42c]
push str._s_s.txt
push edx
call fcn.0042cb6a
mov ecx, dword [esp + 0xc34]
lea eax, [esp + 0xc38]
push eax
push ecx
lea edx, [esp + 0x84c]
push 0x1f3
push edx
call fcn.0042faeb
add esp, 0x20
lea eax, [esp + 0x424]
push eax
mov word [esp + 0xc1e], bx
xor edi, edi
call esi
test eax, eax
je 0x418524
mov edi, 1
lea ecx, [esp + 0x424]
push 0x4830e0
push ecx
call fcn.0042ee75
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4185c9
cmp edi, ebx
jne 0x418561
push esi
push 2
lea edx, [esp + 0x18]
push 1
push edx
mov dword [esp + 0x20], 0xfeff
call fcn.0042f997
add esp, 0x10
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x418570
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418570
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x83c]
push 1
push ecx
call fcn.0042f997
push esi
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], 0xd
call fcn.0042f997
push esi
push 2
lea eax, [esp + 0x34]
push 1
push eax
mov dword [esp + 0x3c], 0xa
call fcn.0042f997
push esi
call fcn.0042e7d8
add esp, 0x34
pop edi
mov ecx, dword [esp + 0xc18]
pop esi
pop ebx
xor ecx, esp
call fcn.0042caa2
add esp, 0xc14
ret