joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4056d0
Capabilities:
Delete file
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x16b0
call fcn.00407c70
push ebx
push esi
mov esi, dword [esp + 0x16bc]
push edi
push str.mingwm10.dll
push esi
lea eax, [esp + 0x1c]
push 0x41eaf4
push eax
call fcn.00407a78
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esi + 0x208]
lea eax, [esp + 0x14]
push edx
push esi
push 0x41eaf4
push eax
call fcn.00407a78
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call edi
push str.RaidAPTitle.bmp
push esi
lea edx, [esp + 0x1c]
push 0x41eaf4
push edx
call fcn.00407a78
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add esp, 0x10
lea eax, [esp + 0xa1c]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x405763
lea edx, [esp + 0x14]
push edx
call edi
push str.JM.cfg
push esi
lea eax, [esp + 0x1c]
push 0x41eaf4
push eax
call fcn.00407a78
add esp, 0x10
lea ecx, [esp + 0xc6c]
lea edx, [esp + 0x14]
push ecx
push edx
call ebx
cmp eax, 0xffffffff
je 0x405796
lea eax, [esp + 0x14]
push eax
call edi
mov eax, dword [0x4208f0]
test eax, eax
je 0x4057be
push str.XSrvSetup.exe
push esi
lea ecx, [esp + 0x1c]
push 0x41eaf4
push ecx
call fcn.00407a78
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call edi
mov ax, word [0x420904]
mov ecx, 0x1ff
mov word [esp + 0x21c], ax
xor eax, eax
lea edi, [esp + 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x4208ec]
test eax, eax
je 0x4057f6
lea ecx, [esp + 0x21c]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersion_
push ecx
jmp 0x405803
lea edx, [esp + 0x21c]
push str.SOFTWAREMicrosoftWindowsCurrentVersion_
push edx
call fcn.00407994
mov ax, word [0x420904]
mov ecx, 0x1ff
mov word [esp + 0xec4], ax
xor eax, eax
lea edi, [esp + 0xec6]
add esp, 8
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x21c]
lea edx, [esp + 0xebc]
push ecx
push str._sUninstall
push edx
stosw word es:[edi], ax
call fcn.00407a78
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0xebc]
push eax
push 0x20006
push 0
push ecx
push 0x80000002
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40588c
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x820]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov eax, dword [0x4208f0]
test eax, eax
jne 0x4058e2
lea edx, [esp + 0x21c]
push 0x41ee78
push edx
call fcn.0040796a
add esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp + 0x21c]
push eax
push 0x20006
push 0
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x4058e2
mov edx, dword [esp + 0xc]
add esi, 0x410
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0xc]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x16b0
ret
Function at 0x4059f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4176e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call fcn.004134fe
lea ecx, [esi + 0x490]
mov dword [esp + 0x14], 0
call fcn.00401a80
lea ecx, [esi + 0x5d0]
mov byte [esp + 0x14], 1
call fcn.00401a80
lea ecx, [esi + 0x710]
mov byte [esp + 0x14], 2
call fcn.00402b10
lea edi, [esi + 0x7fc]
mov byte [esp + 0x14], 3
mov ecx, edi
call fcn.0040f1a9
mov dword [edi], vtable.CProgressCtrl.0
lea ecx, [esi + 0x838]
mov byte [esp + 0x14], 4
call fcn.00402b10
lea ecx, [esi + 0x924]
mov byte [esp + 0x14], 5
call fcn.00401a80
lea ecx, [esi + 0xa64]
mov byte [esp + 0x14], 6
call fcn.00401a80
lea ecx, [esi + 0xba4]
mov byte [esp + 0x14], 7
call fcn.00402b10
lea ecx, [esi + 0xc90]
mov byte [esp + 0x14], 8
call fcn.00401a80
mov byte [esp + 0x14], 9
mov dword [esi], method.CDialog.virtual_0
call fcn.004158fb
call fcn.004158fb
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x78]
push ecx
push edx
mov dword [esi + 0xdd0], eax
call fcn.00407994
lea eax, [esi + 0x280]
push 0x420904
push eax
call fcn.00407994
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov dword [esi + 0x488], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48c], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x405e11
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esi + 0x78]
push eax
push 0x420908
call fcn.00407994
add esp, 8
test esi, esi
jne 0x405e31
mov dword [0x420b10], esi
jmp 0x405e3a
mov ecx, dword [esi + 0x1c]
mov dword [0x420b10], ecx
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0
push 0x420908
push 0x405d30
push 0
push 0
mov dword [0x420b14], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ecx
ret 4
Function at 0x40958d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41fde0
cmp edx, dword [eax]
je 0x4095af
add eax, 8
inc ecx
cmp eax, 0x41fe70
jl 0x4095a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41fde0]
jne 0x4096dd
mov eax, dword [0x422d20]
cmp eax, 1
je 0x4096b7
test eax, eax
jne 0x4095e0
cmp dword [0x41fb7c], 1
je 0x4096b7
cmp edx, 0xfc
je 0x4096dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409617
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040c270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c160
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40965a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c160
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a3b4
push edi
call fcn.0040c360
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040c270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c280
lea eax, [ebp - 0xa0]
push 0x41a394
push eax
call fcn.0040c280
push dword [esi + 0x41fde4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c1db
add esp, 0x2c
pop edi
jmp 0x4096dd
lea eax, [ebp + 8]
lea esi, [esi + 0x41fde4]
push 0
push eax
push dword [esi]
call fcn.0040c160
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40ff27
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40ff5f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041282e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00412805
jmp 0x40ff6b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x411477
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4114b9
call fcn.004158fb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4114b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4114b0
xor eax, eax
jmp 0x4114c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004114c7
pop edi
pop esi
pop ebx
ret 4
Function at 0x41683a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x416868
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x416886
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004167a0
jmp 0x416886
mov eax, dword [esi + 0x14]
test eax, eax
je 0x416886
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004167a0
test edi, edi
mov eax, edi
jne 0x416870
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402480
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
lea eax, [ebp - 0x124]
mov ecx, eax
lea eax, [ebp - 0x13c]
mov edx, eax
mov eax, 1
call fcn.004041b0
call fcn.004042b0
push eax
test eax, eax
jne 0x402665
mov eax, dword [ebp - 4]
test eax, eax
je 0x4024e4
jmp 0x40250c
push 0x105
lea eax, [ebp - 0x118]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x118]
lea eax, [ebp - 8]
call fcn.00404a70
jmp 0x402665
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402830
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00402890
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x402539
jmp 0x40253b
jmp 0x402552
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, 0
jl 0x402552
jmp 0x402548
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x402552
jmp 0x402514
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
mov ebx, dword [ebp - 0xc]
sub ebx, dword [ebp - 0x10]
mov esi, 1
lea edx, [ebp - 0x148]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x10]
call fcn.00404ab0
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov ecx, ebx
mov edx, esi
call fcn.00404b10
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
call fcn.00404bd0
lea edx, [ebp - 8]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x144]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4025dd
mov eax, dword [eax - 4]
cmp eax, 2
jge 0x4025e7
jmp 0x402665
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x22
je 0x4025f2
jmp 0x402665
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4025ff
mov eax, dword [eax - 4]
mov al, byte [edx + eax - 1]
cmp al, 0x22
je 0x402609
jmp 0x402665
lea edx, [ebp - 0x148]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x148], 0
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40262a
mov ecx, dword [ecx - 4]
sub ecx, 2
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00404b10
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
call fcn.00404bd0
lea edx, [ebp - 8]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 8], eax
call fcn.004043b0
lea edx, [ebp - 0x148]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x148], 0
lea edx, [ebp - 0x144]
mov eax, edx
call fcn.004042e0
mov dword [ebp - 0x144], 0
pop eax
test eax, eax
je 0x4026af
mov edx, str._t_nAnsiString
lea eax, [ebp - 8]
call fcn.00404640
call fcn.00404440
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x14c]
leave
ret
Function at 0x40be70
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
mov eax, dword [ebp - 0x88]
cmp eax, 2
je 0x40be9c
jmp 0x40bed9
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x94]
cmp eax, 6
jae 0x40bead
jmp 0x40beb3
mov byte [ebp - 4], 6
jmp 0x40bed7
mov eax, dword [ebp - 0x94]
cmp eax, 5
jae 0x40bec0
jmp 0x40bed7
mov eax, dword [ebp - 0x90]
cmp eax, 1
jae 0x40becd
jmp 0x40bed3
mov byte [ebp - 4], 5
jmp 0x40bed7
mov byte [ebp - 4], 4
jmp 0x40bf1b
mov eax, dword [ebp - 0x88]
cmp eax, 1
je 0x40bee6
jmp 0x40bf17
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x94]
cmp eax, 4
ja 0x40bf11
jmp 0x40bef7
mov eax, dword [ebp - 0x94]
cmp eax, 4
je 0x40bf04
jmp 0x40bf15
mov eax, dword [ebp - 0x90]
cmp eax, 0xa
jae 0x40bf11
jmp 0x40bf15
mov byte [ebp - 4], 2
jmp 0x40bf1b
mov byte [ebp - 4], 0
mov al, byte [ebp - 4]
leave
ret
Function at 0x416e30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
push 0x10
call sub.user32.dll_GetKeyState
movsx eax, ax
cmp eax, 0
jl 0x416e4e
jmp 0x416e57
mov eax, dword [ebp - 4]
or eax, 4
mov dword [ebp - 4], eax
push 0x11
call sub.user32.dll_GetKeyState
movsx eax, ax
cmp eax, 0
jl 0x416e68
jmp 0x416e71
mov eax, dword [ebp - 4]
or eax, 8
mov dword [ebp - 4], eax
push 0x12
call sub.user32.dll_GetKeyState
movsx eax, ax
cmp eax, 0
jl 0x416e82
jmp 0x416e8b
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x406840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x14], ebx
mov dword [ebp - 0xc], esi
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 1], bl
sete cl
cmp eax, ecx
jne 0x4068fb
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4068fa
cmp dword [esi + 0x78], ebx
jne 0x406895
mov byte [ebp - 1], 1
jmp 0x4068fa
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x4068fa
add eax, 2
push eax
call fcn.00426b30
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4068fa
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4068f3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0x10]
mov byte [esi + eax + 1], bl
cmp dword [ecx + 0x7c], 8
jb 0x4068dd
mov eax, dword [ecx + 0x68]
jmp 0x4068e0
lea eax, [ecx + 0x68]
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
call fcn.00406773
mov byte [ebp - 1], al
push esi
call fcn.004278a4
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x406904
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
push edi
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov esi, ecx
call fcn.00428300
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40699b
cmp dword [esi + 0x28], 8
jb 0x406956
mov eax, dword [esi + 0x14]
jmp 0x406959
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43eacc
push eax
call edi
test eax, eax
jne 0x406974
cmp dword [ebp - 0x7c], 5
sete al
jmp 0x40699d
cmp dword [esi + 0x28], 8
jb 0x40697f
mov esi, dword [esi + 0x14]
jmp 0x406982
add esi, 0x14
push 0x43eac4
push esi
call edi
test eax, eax
jne 0x406997
cmp dword [ebp - 0x7c], 5
setne al
jmp 0x40699d
mov al, 1
jmp 0x40699d
xor al, al
mov ecx, dword [ebp + 0x94]
pop edi
xor ecx, ebp
pop esi
call fcn.0042778b
add ebp, 0x98
leave
ret
Function at 0x4069b4
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
je 0x406a52
cmp dword [esi + 0x44], 8
jb 0x4069cd
mov eax, dword [esi + 0x30]
jmp 0x4069d0
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x43eae4
push eax
call edi
test eax, eax
jne 0x406a1b
cmp dword [esi + 0x60], 8
jb 0x4069ed
mov eax, dword [esi + 0x4c]
jmp 0x4069f0
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406a17
cmp dword [esi + 0x60], 8
jb 0x406a06
mov esi, dword [esi + 0x4c]
jmp 0x406a09
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x406a17
inc eax
jmp 0x406a54
xor eax, eax
jmp 0x406a54
cmp dword [esi + 0x44], 8
jb 0x406a26
mov eax, dword [esi + 0x30]
jmp 0x406a29
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x406a52
cmp dword [esi + 0x60], 8
jb 0x406a40
mov esi, dword [esi + 0x4c]
jmp 0x406a43
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x406a54
xor al, al
pop edi
pop esi
ret

Function at 0x407205
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0xc68
lea ebp, [esp - 4]
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0xc68], eax
push 0x1c
mov eax, 0x43a70a
call fcn.0042779a
mov edi, ecx
push 0x43eb28
lea ecx, [ebp + 0x1c]
call fcn.004059cf
and dword [ebp - 4], 0
push 0x43eb24
lea ecx, [ebp]
call fcn.004059cf
push 0
lea eax, [ebp + 0x1c]
lea ebx, [edi + 0x18]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040705f
mov esi, eax
lea eax, [ebp + 0x650]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp esi, 0xffffffff
je 0x4072ed
test eax, eax
je 0x407326
lea eax, [ebp + 0x650]
add edi, 0x54
push eax
mov ecx, edi
call fcn.004059ab
push esi
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.0040705f
cmp eax, 0xffffffff
je 0x4072bc
mov ecx, dword [ebp + 0x30]
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.004071e3
mov byte [ebp - 4], 2
jmp 0x4072d3
mov eax, dword [ebp + 0x30]
push 0xffffffffffffffff
add eax, esi
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.004071e3
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00405f03
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00405695
jmp 0x407326
test eax, eax
je 0x407326
lea eax, [ebp + 0x38]
push eax
push 0
push 0x43eb1c
lea eax, [ebp + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x407319
lea eax, [ebp + 0x38]
push eax
lea ecx, [edi + 0x54]
call fcn.004059ab
push 0x43eb10
lea ecx, [edi + 0x54]
call fcn.00406510
push 0
push 1
lea ecx, [ebp]
call fcn.00405695
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.00405695
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc68]
xor ecx, ebp
call fcn.0042778b
add ebp, 0xc6c
leave
ret
Function at 0x407808
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3dc], ebx
push edi
mov edi, edx
jle 0x407845
push 8
call fcn.00427187
pop ecx
cmp eax, ebx
je 0x40782c
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x40782e
xor eax, eax
push ebx
push ebx
push eax
push 0x4077cf
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret

Function at 0x407849
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x30b
lea eax, [ebp - 0x61c]
xor ebx, ebx
push eax
mov esi, ecx
push ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407935
push edi
push ebx
push ebx
push 3
push ebx
xor eax, eax
push 1
mov word [ebp - 6], ax
push 0x80000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407934
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi + 4], eax
jle 0x4078bb
mov dword [esi + 4], eax
cmp dword [esi + 8], eax
jle 0x4078c3
mov dword [esi + 8], eax
xor eax, eax
cmp byte [esi], bl
setne al
dec eax
and eax, 2
push eax
push ebx
push dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x407934
mov eax, dword [esi + 4]
cmp byte [esi + 0xc], bl
je 0x4078e8
inc eax
push eax
call fcn.00426b30
pop ecx
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x407934
push ebx
lea ecx, [ebp - 0x620]
push ecx
push dword [esi + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407926
mov eax, dword [ebp - 0x620]
cmp eax, dword [esi + 4]
jne 0x407926
push dword [esi + 0x10]
call fcn.004278a4
pop ecx
mov dword [esi + 0x10], ebx
jmp 0x407934
cmp byte [esi + 0xc], bl
je 0x407934
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov byte [eax + ecx], bl
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042778b
leave
ret

Function at 0x4079dc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44b4b4], 0
je 0x407a3a
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00428300
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov byte [0x44b4b4], 0
sbb al, al
inc al
mov byte [0x44d0d8], al
jmp 0x407a3f
mov al, byte [0x44d0d8]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0042778b
add ebp, 0x98
leave
ret
Function at 0x407ed9
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [edx + 0x10]
sub eax, dword [edx + 0xc]
mov dword [ebp - 0xc], edx
je 0x407f7a
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407f78
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00426b30
pop ecx
mov dword [ebp - 4], eax
cmp eax, esi
je 0x407f70
push esi
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407f67
cmp edi, dword [ebp - 8]
jne 0x407f67
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.00407cbd
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.004278a4
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret