joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403209
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403244
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403240
lea ebx, [ebx]
cmp esi, eax
jae 0x403244
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403230
cmp esi, eax
jb 0x40324a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403ca0
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x437950
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x403e17
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403cf5
sub eax, edx
je 0x403e17
cmp esi, edi
je 0x403e17
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403d13
sub eax, edx
je 0x403e17
push 0x5c
push esi
call fcn.00422460
add esp, 8
mov edi, eax
test edi, edi
jne 0x403d4a
mov dword [ebp - 0x1c], 0x57
push 0x444850
lea eax, [ebp - 0x1c]
push eax
call fcn.004244c5
mov ecx, edi
sub ecx, esi
push ecx
push esi
push 0x104
lea edx, [ebp]
push edx
call fcn.00422aea
push 0x104
push 0
lea eax, [ebp + 0x104]
push eax
call fcn.00423cc0
add esp, 0x1c
lea ecx, [ebp + 0x104]
push ecx
push 0
push edi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x403da0
push esi
push str._s.tmp
lea edx, [ebp + 0x104]
call fcn.004048d0
add esp, 8
push 1
lea eax, [ebp + 0x104]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call edi
test eax, eax
je 0x403ddf
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x403dd3
push 4
push 0
lea ecx, [ebp + 0x104]
push ecx
call edi
jmp 0x403de8
push 1
push esi
lea edx, [ebp + 0x104]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00422383
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x403df2
Function at 0x403e50
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x437920
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x403fce
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403ea3
sub eax, edx
je 0x403fce
push 0x5c
push edi
call fcn.00422460
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x403fce
push 0x104
push ebx
lea eax, [ebp]
push eax
call fcn.00423cc0
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x403f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x444850
lea edx, [ebp - 0x1c]
push edx
call fcn.004244c5
push 0x104
push ebx
lea eax, [ebp + 0x104]
push eax
call fcn.00423cc0
add esp, 0xc
lea ecx, [ebp + 0x104]
push ecx
push ebx
add esi, 1
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x403f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x444850
lea eax, [ebp - 0x24]
push eax
call fcn.004244c5
push 3
lea ecx, [ebp + 0x104]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
test eax, eax
jne 0x403f78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x444850
lea edx, [ebp - 0x20]
push edx
call fcn.004244c5
push 4
push ebx
lea eax, [ebp + 0x104]
push eax
call esi
test eax, eax
jne 0x403f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x444850
lea ecx, [ebp - 0x18]
push ecx
call fcn.004244c5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00422383
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x403fa9
Function at 0x404000
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x437cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x5c
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp edx, ebx
je 0x40419f
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404060
sub eax, esi
je 0x40419f
push edx
push 0x104
lea eax, [ebp]
push eax
call fcn.00422999
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp]
push eax
call fcn.004229fe
add esp, 0x18
cmp eax, ebx
je 0x404170
push eax
push 0x104
lea ecx, [ebp + 0x104]
push ecx
call fcn.00422999
push 0x43eaf4
push 0x104
lea edx, [ebp + 0x104]
push edx
call fcn.00422b9d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
call fcn.004229fe
add esp, 0x24
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x4040e0
cmp eax, ebx
je 0x40416d
mov ecx, eax
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x4040f0
sub ecx, esi
je 0x40416d
push eax
push 0x104
lea edx, [ebp + 0x104]
push edx
call fcn.00422b9d
push 0x43eaf4
push 0x104
lea eax, [ebp + 0x104]
push eax
call fcn.00422b9d
add esp, 0x18
push ebx
lea ecx, [ebp + 0x104]
push ecx
call edi
test eax, eax
jne 0x404157
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x404157
mov dword [ebp - 0x20], eax
push 0x444850
lea edx, [ebp - 0x20]
push edx
call fcn.004244c5
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
call fcn.004229fe
add esp, 0xc
jmp 0x4040e0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00422383
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x40417a
Function at 0x404350
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4378e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4493b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40442b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404395
sub eax, edx
je 0x40442b
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jbe 0x40440d
push esi
call fcn.0040768a
add esp, 4
mov edi, eax
test edi, edi
je 0x40440d
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x404404
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x43eaf4
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
jne 0x404404
push 0x34
mov edx, dword [ebp - 0x1c]
push edx
push 0x34
mov eax, dword [ebp + 8]
push eax
call fcn.004223d7
add esp, 0x10
mov dword [ebp - 0x14], 1
push edi
call fcn.0040768f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x437cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
test esi, esi
je 0x4045e3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404510
sub eax, edx
je 0x4045e3
push 0x400
push 0
lea eax, [ebp]
push eax
call fcn.00423cc0
push esi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00422999
push 0x43e9c4
lea ecx, [ebp]
call fcn.00406420
add esp, 0x1c
mov ecx, 0x43e9c4
lea edx, [ebp]
call fcn.004065b0
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4045da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x40458b
mov dword [ebp - 0x18], edi
push 0x444850
lea eax, [ebp - 0x18]
push eax
call fcn.004244c5
sub eax, 2
je 0x4045d5
sub eax, 3
je 0x4045b0
sub eax, 0x1b
jne 0x4045da
lea ecx, [ebp]
call fcn.00403e50
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x404614
push 0x80
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp]
call fcn.00403e50
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x404614
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x404614
mov eax, 0x57
jmp 0x404616
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00422383
add ebp, 0x404
mov esp, ebp
pop ebp
ret
Function at 0x404640
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437e10
mov eax, dword fs:[0]
push eax
sub esp, 0xd5c
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xd60], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xd5c], 1
mov dword [ebp - 4], 0
test esi, esi
je 0x40488e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404698
sub eax, edx
je 0x40488e
push 0x400
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.00423cc0
add esp, 0xc
push esi
push 0x400
lea ecx, [ebp - 0x418]
push ecx
call fcn.00422999
add esp, 0xc
push 0x43e9c4
lea ecx, [ebp - 0x418]
call fcn.00406420
add esp, 4
mov ecx, 0x43f198
lea edx, [ebp - 0x418]
call fcn.004065b0
push 0x400
push 0
lea edx, [ebp - 0xc18]
push edx
call fcn.00423cc0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push str._s.
lea edx, [ebp - 0xc18]
call fcn.00402c20
add esp, 8
lea ecx, [ebp - 0xd58]
push ecx
lea edx, [ebp - 0xc18]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp esi, 0xffffffff
je 0x404823
lea eax, [ebp - 0xd2c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404758
sub eax, edx
cmp eax, 2
jne 0x40477e
cmp byte [ebp - 0xd2c], 0x2e
jne 0x40477e
cmp byte [ebp - 0xd2b], 0x2e
je 0x40480a
lea eax, [ebp - 0xd2c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404787
sub eax, edx
cmp eax, 1
jne 0x4047a0
cmp byte [ebp - 0xd2c], 0x2e
je 0x40480a
push 0x400
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.00423cc0
add esp, 0xc
lea ecx, [ebp - 0xd2c]
push ecx
lea edx, [ebp - 0x418]
push edx
push str._s_s
lea edx, [ebp - 0x818]
call fcn.00402c20
add esp, 0xc
test byte [ebp - 0xd58], 0x10
je 0x4047ff
test bl, bl
je 0x4047ff
push ebx
lea eax, [ebp - 0x818]
push eax
mov ecx, dword [ebp - 0xd60]
call fcn.00404640
mov dword [ebp - 0xd5c], eax
jmp 0x40480a
lea ecx, [ebp - 0x818]
call fcn.004044c0
lea ecx, [ebp - 0xd58]
push ecx
push esi
call edi
test eax, eax
jne 0x404746
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyA]
test eax, eax
je 0x404863
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404859
push 4
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x404863
mov dword [ebp - 0xd5c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xd5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422383
mov esp, ebp
pop ebp
ret 8
mov eax, 0x57
jmp 0x404870
Function at 0x404a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437c90
mov eax, dword fs:[0]
push eax
sub esp, 0xc24
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0xc28], ebx
mov edi, edx
or esi, 0xffffffff
push 0x400
push 0
lea eax, [ebp - 0xc18]
push eax
call fcn.00423cc0
add esp, 0xc
push 0x400
push 0
lea ecx, [ebp - 0x818]
push ecx
call fcn.00423cc0
add esp, 0xc
push 0x400
push 0
lea edx, [ebp - 0x418]
push edx
call fcn.00423cc0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebx + 0x1c], 0
je 0x404ae4
mov al, 1
jmp 0x404c87
push 0x400
lea eax, [ebp - 0xc18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404b12
mov byte [ebp - 0xc1b], al
push 0x444884
lea ecx, [ebp - 0xc1b]
push ecx
call fcn.004244c5
push 0x5c
lea edx, [ebp - 0xc18]
push edx
call fcn.00422460
add esp, 8
test eax, eax
je 0x404b32
add eax, 1
mov dword [ebp - 0xc20], eax
jmp 0x404b3c
mov dword [ebp - 0xc20], str.SSBootLog
lea eax, [ebp - 0x818]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor edi, edi
mov dword [ebp - 0xc24], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
lea esp, [esp]
cmp esi, 0xffffffff
jne 0x404c12
test edi, edi
jne 0x404b90
mov ecx, dword [ebp - 0xc20]
push ecx
lea edx, [ebp - 0x818]
push edx
push str._s_s.log
lea edx, [ebp - 0x418]
call fcn.00402c20
add esp, 0xc
jmp 0x404bb2
push edi
mov eax, dword [ebp - 0xc20]
push eax
lea ecx, [ebp - 0x818]
push ecx
push str._s_s_d.log
lea edx, [ebp - 0x418]
call fcn.00402c20
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea edx, [ebp - 0x418]
push edx
call ebx
mov esi, eax
mov dword [ebp - 0xc2c], esi
cmp esi, 0xffffffff
jne 0x404c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404c04
cmp eax, 0x50
je 0x404c04
mov byte [ebp - 0xc1a], 0
push 0x444884
lea eax, [ebp - 0xc1a]
push eax
call fcn.004244c5
add edi, 1
mov dword [ebp - 0xc24], edi
jmp 0x404b60
mov edi, dword [ebp - 0xc28]
mov dword [edi + 0x1c], esi
mov byte [edi + 0x124], 1
mov eax, str.Common_Installer_3
test eax, eax
je 0x404c3d
push eax
push 0x100
lea ecx, [edi + 0x24]
push ecx
call fcn.00422999
add esp, 0xc
mov ecx, edi
call fcn.00404ff0
xor al, al
je 0x404c64
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x404c64
push str.Set_Standard_Error_Handle_Success
mov ecx, edi
call fcn.00404e20
add esp, 4
lea edx, [ebp - 0x418]
push edx
call fcn.00401450
add esp, 4
mov byte [ebp - 0xc19], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0xc19]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422383
mov esp, ebp
pop ebp
ret
Function at 0x404ce0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437850
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2008
call fcn.00426260
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi + 0x1c], 0
je 0x404dee
mov dword [ebp - 4], 0
push 0x1000
push 0
lea eax, [ebp - 0x1014]
push eax
call fcn.00423cc0
push 0x1000
push 0
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00423cc0
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x1014]
push ecx
call fcn.004227e3
add esp, 0x28
test edi, edi
je 0x404dbf
push 0
push 0
lea edx, [ebp - 0x2018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x2018]
test eax, eax
je 0x404dbf
push eax
push edi
lea eax, [esi + 0x24]
push eax
push str.___s___Error_Code___d_:_s
lea edx, [ebp - 0x2014]
call fcn.00405380
add esp, 0x10
mov ecx, dword [ebp - 0x2018]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x1014]
mov ecx, esi
call fcn.00404f00
test edi, edi
je 0x404de7
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.00404f00
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422383
mov esp, ebp
pop ebp
ret

Function at 0x4052c0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4493b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov esi, dword [edi + 0x1c]
cmp esi, eax
jne 0x405323
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 0x1c], eax
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x405323
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test ebx, ebx
je 0x405353
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405336
sub eax, edx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405930
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x437c30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
push 0x400
push ebx
lea eax, [ebp]
push eax
call fcn.00423cc0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x405afd
cmp edi, ebx
je 0x405afd
push 0x400
push ebx
lea ecx, [ebp]
push ecx
call fcn.00423cc0
add esp, 0xc
push 0x400
lea edx, [ebp]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a5d
push str.Get_Module_File_Name_fail__
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x44d258
call fcn.00404ce0
add esp, 4
lea eax, [ebp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
lea eax, [ebp]
je 0x405a4a
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4059f7
sub eax, edx
cmp byte [ebp + eax - 1], 0x5c
jne 0x405a1f
lea eax, [ebp]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405a10
sub eax, edx
mov byte [ebp + eax - 1], bl
push 0x43eaf4
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00422b9d
push str.Setup.exe
push 0x400
lea edx, [ebp]
push edx
call fcn.00422b9d
add esp, 0x18
jmp 0x405a5d
push str.Setup.exe
push 0x400
push eax
call fcn.00422999
add esp, 0xc
push 0x2e
lea ecx, [ebp]
push ecx
call fcn.00422460
add esp, 8
cmp eax, ebx
je 0x405a71
mov byte [eax], bl
lea edx, [ebp]
push edx
push str._s.dat
push 0x400
push esi
call fcn.00422903
push esi
push str.Profile_Path_:___s_
mov ecx, 0x44d258
call fcn.00404e20
push 0x5c
lea eax, [ebp]
push eax
call fcn.00422460
add esp, 0x20
cmp eax, ebx
je 0x405abb
mov byte [eax], bl
lea ecx, [ebp]
push ecx
push 0x400
push edi
call fcn.00422999
add esp, 0xc
push edi
push str.Current_Directory_Path_:___s_
mov ecx, 0x44d258
call fcn.00404e20
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.00422383
add ebp, 0x404
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x405ad8
Function at 0x406b30
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0xa0
push 0xffffffffffffffff
push 0x437ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4493b4]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xac]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push 0x9c
push esi
lea edx, [ebp]
push edx
call fcn.00423cc0
add esp, 0xc
mov dword [ebp], 0x9c
lea eax, [ebp]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
call edi
mov ebx, eax
test ebx, ebx
jne 0x406bc0
mov dword [ebp], 0x94
lea ecx, [ebp]
push ecx
call edi
test eax, eax
je 0x406d12
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x406cda
sub eax, 1
je 0x406c65
sub eax, 1
jne 0x406cdf
mov eax, dword [ebp + 4]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x406be9
jmp dword [eax*4 + 0x406d3c]
mov esi, 0x20001
jmp 0x406cdc
mov esi, 0x20002
jmp 0x406cdc
mov eax, dword [ebp + 8]
sub eax, 0
je 0x406c57
sub eax, 1
je case.default.0x406be9
sub eax, 1
je 0x406c20
mov esi, 0x40002
jmp 0x406cdc
mov esi, 0x40003
mov dword [ebp - 0x14], esi
mov edx, dword [ebp + 0xa8]
cmp byte [edx + 0x18], 0
je 0x406cdf
test ebx, ebx
je 0x406cdf
cmp byte [ebp + 0x9a], 1
jne 0x406cdf
mov esi, 0x40002
jmp 0x406cdc
mov esi, 0x40001
jmp 0x406cdc
mov esi, 0x100001
jmp 0x406cdc
mov esi, dword [ebp + 8]
test esi, esi
je 0x406ca2
cmp esi, 0xa
je 0x406c83
sub esi, 0x5a
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x10005
jmp 0x406cdc
push 0x43f750
lea eax, [ebp + 0x14]
push eax
call fcn.00422d16
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
add esi, 0x10004
jmp 0x406cdc
push 0x43f7bc
lea ecx, [ebp + 0x14]
push ecx
call fcn.00422d16
add esp, 8
test eax, eax
je 0x406cd3
push 0x43f74c
lea edx, [ebp + 0x14]
push edx
call fcn.00422d16
add esp, 8
test eax, eax
je 0x406cd3
mov esi, 0x10001
jmp 0x406cdc
mov esi, 0x10002
jmp 0x406cdc
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406ceb
mov ecx, dword [ebp + 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406cf7
mov edx, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x406d10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00422383
add ebp, 0xa0
mov esp, ebp
pop ebp
ret 8