joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be490
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0xffffffff
jne 0x4be4de
mov ecx, dword [ebp - 0x30]
add ecx, 4
call fcn.004be530
mov ecx, eax
call fcn.00401430
push eax
lea ecx, [ebp - 0x2c]
call fcn.004be890
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004bdf80
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x2c]
call fcn.004be590
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x4be51d
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4be517
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4be517
or eax, 0xffffffff
or edx, 0xffffffff
jmp 0x4be51d
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401417
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
call fcn.004043b2
lea eax, [ebp - 0x118]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 0x118], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push str._user_path
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], ebx
mov esi, eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], 7
call fcn.00401d93
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x130]
push eax
lea eax, [esi + ecx*4]
push eax
push esi
call fcn.004044e7
add esp, 0xc
lea ecx, [ebp - 0x130]
mov esi, eax
call fcn.00401d65
push esi
call fcn.004056b0
push ebx
push ebx
push ebx
push 0x401550
push ebx
push ebx
call fcn.0041383c
mov edi, str.ZoomCptService
mov esi, eax
push edi
call fcn.00405fa7
push edi
mov dword [0x4320c4], eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.004141f9
add esp, 0x2c
mov dword [ebp - 0x110], 0x401910
lea eax, [ebp - 0x104]
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x108], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, dword [0x4320bc]
test eax, eax
je 0x401521
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [0x4320bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8eb
leave
ret 0x10
Function at 0x4046a7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x404770
test eax, eax
je 0x404770
cmp dword [ebp + 0x10], 0
je 0x404770
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40476b
push edi
push eax
call fcn.0040cd9f
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x14]
push dword [ebp - 8]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404763
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x424e24
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404763
cmp dword [ebp - 0xc], ebx
je 0x404763
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], 0xfeef04bd
jne 0x404763
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._04d
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.00405476
add esp, 0x1c
mov bl, 1
push edi
call fcn.0040c8f9
pop ecx
pop edi
mov al, bl
pop ebx
jmp 0x404772
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c8eb
leave
ret
Function at 0x40477f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4048da
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4048da
xor eax, eax
mov byte [ebp - 0x15], al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4048da
push esi
push eax
call fcn.0040cd9f
pop ecx
mov esi, eax
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4048cd
test bl, 1
je 0x404849
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x424e24
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404849
cmp dword [ebp - 8], 0
mov edi, dword [ebp - 0x10]
je 0x40484c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0xfeef04bd
jne 0x40484c
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._04d
push 0x40
push edi
call fcn.00405476
add esp, 0x1c
mov byte [ebp - 0x15], 1
jmp 0x40484c
mov edi, dword [ebp - 0x10]
test bl, 6
je 0x4048cd
lea eax, [edi + 0x80]
add edi, 0x40
mov dword [ebp - 0x1c], eax
mov byte [eax], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
mov byte [edi], 0
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4048cd
cmp dword [ebp - 8], 4
jb 0x4048cd
test bl, 2
je 0x4048a7
mov ecx, dword [ebp - 0x10]
push 0x100
push dword [ebp - 0x1c]
movzx eax, word [ecx + 2]
push 0x4256e0
push eax
movzx eax, word [ecx]
push eax
push esi
call fcn.0040458d
add esp, 0x18
test bl, 4
je 0x4048c9
mov ecx, dword [ebp - 0x10]
push 0x40
push edi
push 0x4256f0
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push esi
call fcn.0040458d
add esp, 0x18
mov byte [ebp - 0x15], 1
push esi
call fcn.0040c8f9
mov al, byte [ebp - 0x15]
pop ecx
pop esi
jmp 0x4048dc
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040c8eb
leave
ret
Function at 0x404fe0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x405008
xor al, al
jmp 0x4050b6
push ebx
xor bl, bl
mov byte [ebp - 9], bl
test eax, eax
je 0x4050b3
push esi
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x405040
push dword [ebp - 0x10]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4050b2
and dword [ebp - 0x14], 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 9]
push eax
push str.QueryFullProcessImageNameW
push str.kernel32.dll
call fcn.00404290
mov bl, byte [ebp - 9]
add esp, 0x1c
test bl, bl
jne 0x4050ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push edi
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
setne bl
test eax, eax
jne 0x4050ab
push dword [ebp + 0x10]
push edi
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040c8eb
leave
ret

Function at 0x4050c3
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40517c
xor eax, eax
cmp ax, word [esi]
je 0x40517c
push 0x410
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0040f720
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40517c
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405178
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.downlevel
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40517c
mov al, 1
jmp 0x40517e
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c8eb
leave
ret
Function at 0x40520d
Capabilities:
Enumerate processes
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x33c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x405244
xor al, al
jmp 0x405330
lea eax, [ebp - 0x338]
mov dword [ebp - 0x338], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x405327
lea eax, [ebp - 0x314]
push edi
push eax
call fcn.00414ce6
pop ecx
pop ecx
test eax, eax
jne 0x405310
push dword [ebp - 0x330]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405325
cmp dword [ebp + 0xc], ebx
jl 0x4052c4
or dword [ebp - 0x10c], 0xffffffff
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4052c4
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10c], eax
jne 0x40530a
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040f720
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
push 0x3e7
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x33c]
lea eax, [ebp - 0x338]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405263
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8eb
leave
ret
Function at 0x405d7a
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx], 0
je 0x405db0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x405db0
mov eax, dword [ebp - 0x10]
jmp 0x405db2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c8eb
leave
ret

Function at 0x406062
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x210], ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
push eax
push str.WTSQueryUserToken
push str.Wtsapi32.dll
call fcn.00405909
add esp, 0x14
cmp dword [ebp - 0x214], ebx
je 0x40619c
test esi, esi
je 0x40619c
mov ecx, str.Zoom
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4060f1
test dx, dx
je 0x4060ed
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4060f1
add eax, 4
add ecx, 4
test dx, dx
jne 0x4060cb
mov eax, ebx
jmp 0x4060f6
sbb eax, eax
or eax, 1
test eax, eax
je 0x406130
mov ecx, str.ZoomRooms
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406127
test dx, dx
je 0x406123
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406127
add eax, 4
add ecx, 4
test dx, dx
jne 0x406101
mov eax, ebx
jmp 0x40612c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40619c
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0040f720
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x210]
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40619c
test edi, edi
je 0x40619c
push 0x424e24
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00414bf5
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00414bf5
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call fcn.004141f9
add esp, 0x24
mov bl, 1
cmp dword [ebp - 0x210], 0
je 0x4061b1
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8eb
leave
ret 0xc

Function at 0x4062e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jbe 0x40630a
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
je 0x40630a
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x40630c
xor al, al
pop esi
pop ebp
ret 4
Function at 0x406630
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.0040f720
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040f720
push 1
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
push esi
push edi
push ebx
call fcn.00406980
add esp, 0x30
test eax, eax
je 0x40674e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040f720
lea eax, [ebp - 0x414]
mov esi, 0x104
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004141f9
push str..tmp
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00414bf5
add esp, 0x24
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
call fcn.004012ac
test esi, esi
je 0x40674a
xor ecx, ecx
inc ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, eax
call fcn.00403e41
test al, al
jne 0x406725
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x40675c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x406721
mov eax, esi
jmp 0x40675c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x406721
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8eb
leave
ret

Function at 0x40694b
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40697c
cmp dword [ebp + 0xc], 0
je 0x40697c
push dword [ebp + 8]
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40697c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406980
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
xor eax, eax
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f720
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040f720
add esp, 0x18
test ebx, ebx
je 0x4069ff
xor eax, eax
cmp word [ebx], ax
je 0x4069ff
push ebx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004141f9
add esp, 0xc
xor ebx, ebx
jmp 0x406a18
lea eax, [ebp - 0x414]
xor ebx, ebx
push eax
push ebx
call fcn.004068cf
pop ecx
pop ecx
test eax, eax
je 0x406b07
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test esi, esi
je 0x406a46
cmp word [esi], bx
je 0x406a46
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004141f9
add esp, 0xc
jmp 0x406a70
lea eax, [ebp - 0x20c]
push eax
call fcn.004068fc
pop ecx
test eax, eax
je 0x406b07
cmp byte [ebp + 0x1c], 0
je 0x406a70
push ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x406a9d
lea ecx, [ebp - 0x414]
push ecx
push 0x104
push eax
call fcn.004141f9
add esp, 0xc
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x406abc
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
push eax
call fcn.004141f9
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406b02
push edi
push 0x425950
call fcn.00414ce6
pop ecx
test eax, eax
lea eax, [ebp - 0x20c]
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
jne 0x406afb
call fcn.004063df
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
jmp 0x406b11
call fcn.00406465
jmp 0x406af1
xor eax, eax
inc eax
jmp 0x406b11
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8eb
leave
ret
Function at 0x407790
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x42da20
call fcn.0040d150
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x4077b2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x407817
mov edi, ebx
cmp dword [esi], edi
je 0x4077d7
push dword [ebp + 8]
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
je 0x407817
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 1
mov al, byte [ecx + edi]
mov byte [ecx + edi], al
mov al, byte [edi + edx - 1]
mov byte [edi + edx - 1], al
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], 1
jmp 0x407817
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x40782d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407bca
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x407cea
xor eax, eax
cmp ax, word [edi]
je 0x407cea
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x407bf5
call fcn.00407b05
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x407cea
test eax, eax
je 0x407cea
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x407cea
push ebx
push edi
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x407cea
test eax, eax
je 0x407cea
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x407cea
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x407cea
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x407cea
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407cea
cmp dword [edi], 0x4550
jne 0x407cea
movzx eax, word [edi + 4]
mov edx, 0x14c
mov ecx, eax
cmp cx, dx
je 0x407cca
mov edx, 0x8664
cmp cx, dx
je 0x407cc1
mov ecx, 0xaa64
cmp ax, cx
jne 0x407cea
mov bl, 1
mov eax, 0x108
jmp 0x407ccf
mov eax, 0xf8
lea edx, [edi + eax]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edx
movzx ecx, word [edi + 6]
imul ecx, ecx, 0x28
add ecx, edx
cmp dword [ebp - 4], ecx
jb 0x407cea
mov al, 1
jmp 0x407cf3
mov ecx, esi
call fcn.00407b05
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409956
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x409964
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14

Function at 0x40c444
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00414b06
add esp, 0x10
cmp byte [ebp + 0x10], 0
je 0x40c46c
push dword [esi + 0xc]
call fcn.00415545
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x40c51d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4300c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0x10], xmm0
call fcn.0040c500
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40c592
cmp dword [edi + 4], 0
je 0x40c592
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c57b
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x431518], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40c595
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0040c5b1
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x40c595
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40c5a1
call fcn.0040b8df
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040c8eb
leave
ret

Function at 0x40c653
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 8]
push eax
push 4
push edx
push 0x40c6c0
push 0
push 0
call fcn.0041383c
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x40c67d
xor al, al
jmp 0x40c6ae
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.0040c4df
mov eax, dword [esi]
mov ecx, 0x431408
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0040c4a5
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4