joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40412d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call fcn.00403ce9
test eax, eax
je 0x4041dc
push edi
push dword [ebp + 0xc]
call fcn.00404258
pop ecx
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x4041dc
mov eax, dword [esi + 8]
push ebx
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push edi
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
push dword [esi + 8]
push ebx
push dword [esi]
call fcn.00404b48
add esp, 0x10
test eax, eax
je 0x4041a7
push edi
push dword [esi + 8]
push ebx
push dword [ebp + 8]
call fcn.00404b73
add esp, 0x10
test eax, eax
je 0x4041a7
mov dword [ebp - 4], 1
jmp 0x4041b6
mov ecx, esi
call fcn.00403cbc
push eax
mov ecx, esi
call fcn.00403cdf
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, esi
call fcn.00403e14
cmp dword [ebp - 4], edi
pop ebx
jne 0x4041dc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x4044ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406d72
Capabilities:
Read .ini file

Disassembly:
push 0x412b84
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x412c8c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
ret

Function at 0x406d8b
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x412b84
push dword [esp + 0x14]
and byte [esi], 0
push esi
push 0x412a30
push dword [esp + 0x18]
push 0x412c8c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
pop esi
ret
Function at 0x4072fe
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
lea eax, [ebp - 4]
push esi
push eax
push 0x40f3e0
xor ebx, ebx
push 1
push ebx
push 0x40f3f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x4073fa
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x14], ebx
je 0x407355
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov al, byte [0x412a30]
push edi
push 0x41
mov byte [ebp - 0x110], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call fcn.0040468f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
lea edx, [ebp - 0x110]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x18], ebx
pop edi
jl 0x4073a4
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40f400
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x4073f1
lea eax, [ebp - 0x318]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x318]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x407664
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
call fcn.0040468f
lea eax, [ebp - 0x10c]
push eax
call fcn.004044ca
add esp, 0xc
test eax, eax
jne 0x40769c
lea eax, [ebp - 0x10c]
push eax
call fcn.00401bcf
pop ecx
push ebx
push 0
push dword [ebp + 0xc]
call fcn.00404258
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x4076b8
push 1
pop eax
jmp 0x40773c
push dword [ebp + 8]
call fcn.0040c5f3
test eax, eax
pop ecx
mov dword [ebp + 0xc], eax
jne 0x407721
push esi
push edi
push 0x2001
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push 0x2000
push edi
push dword [ebp + 8]
call fcn.0040c892
mov esi, eax
add esp, 0xc
test esi, esi
jle 0x4076ff
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test esi, esi
jl 0x40770c
call fcn.00401366
test esi, esi
jle 0x40770f
jmp 0x4076d7
mov dword [ebp + 0xc], esi
push dword [ebp + 8]
call fcn.0040ca01
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
cmp dword [ebp + 0x10], 0
je 0x407732
push dword [ebp + 0x10]
push ebx
call fcn.0040760b
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
pop ebx
leave
ret
Function at 0x408632
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, 0x40d1a3
call fcn.0040ce00
sub esp, 0x238
push ebx
xor ebx, ebx
cmp dword [0x412d20], 3
push esi
mov dword [ebp - 0x10], ebx
jl 0x40876b
push str._selfexe
push 0x412d24
call dword [sym.imp.MSVCRT.dll__strcmpi]
pop ecx
test eax, eax
pop ecx
jne 0x40876b
mov al, byte [0x412a30]
push edi
push 0x41
mov byte [ebp - 0x244], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x243]
mov dword [ebp - 0x10], 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x244]
push eax
call fcn.0040463e
pop ecx
mov esi, 0x412f34
push ebx
lea eax, [ebp - 0x244]
push esi
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x408756
lea ecx, [ebp - 0x13c]
call fcn.00403ca8
push 1
push esi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], ebx
call fcn.00403ce9
test eax, eax
je 0x40873c
lea ecx, [ebp - 0x13c]
call fcn.00403e2a
mov eax, 0x412e2c
lea ecx, [ebp - 0x13c]
push eax
push eax
call fcn.00403f2a
test eax, eax
je 0x40873c
cmp dword [0x412d20], 3
jle 0x408722
mov edi, 0x41303c
push edi
call fcn.004044ca
test eax, eax
pop ecx
je 0x408722
push edi
push edi
lea ecx, [ebp - 0x13c]
call fcn.00403f2a
lea ecx, [ebp - 0x13c]
call fcn.00403f71
lea ecx, [ebp - 0x13c]
call fcn.00403f99
mov edi, eax
jmp 0x408745
push ebx
push ebx
call fcn.0040429c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00403cb7
jmp 0x40875f
push ebx
push ebx
call fcn.0040429c
pop ecx
pop ecx
cmp edi, ebx
pop edi
jne 0x40876b
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4087a3
Capabilities:
Delete file

Disassembly:
mov eax, 0x40d1bb
call fcn.0040ce00
sub esp, 0x550
and dword [ebp - 0x10], 0
push esi
push edi
lea ecx, [ebp - 0x13c]
call fcn.00403ca8
mov al, byte [0x412a30]
push 0x41
and dword [ebp - 4], 0
pop esi
mov byte [ebp - 0x55c], al
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x55b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x55c]
push eax
call fcn.0040463e
pop ecx
lea eax, [ebp - 0x55c]
push 0
push eax
lea ecx, [ebp - 0x13c]
call fcn.00403ce9
test eax, eax
je 0x408980
push ebx
push 1
pop ebx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x10], ebx
call fcn.00403fea
test eax, eax
je 0x408967
mov dl, byte [0x412a30]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x243]
mov byte [ebp - 0x244], dl
mov byte [ebp - 0x34c], dl
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x34b]
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [ebp - 0x453]
mov byte [ebp - 0x454], dl
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x13c]
call fcn.0040405e
test eax, eax
je 0x408974
lea eax, [ebp - 0x34c]
push 0x412594
push eax
call fcn.004043f9
pop ecx
lea eax, [ebp - 0x34c]
pop ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.004040e7
test eax, eax
je 0x408937
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x454]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp - 0x13c]
call fcn.00403fea
test eax, eax
je 0x408937
lea ecx, [ebp - 0x13c]
call fcn.0040405e
test eax, eax
je 0x40890e
lea eax, [ebp - 0x244]
push 0x412590
push eax
call fcn.004043f9
pop ecx
lea eax, [ebp - 0x244]
pop ecx
push eax
lea ecx, [ebp - 0x13c]
call fcn.004040e7
test eax, eax
je 0x40890e
lea eax, [ebp - 0x244]
push eax
call fcn.004071a3
pop ecx
call fcn.00401fc7
mov dword [eax + 0x10], ebx
lea ecx, [ebp - 0x13c]
call fcn.00403e14
call fcn.00401fc7
mov dword [eax + 0xc], ebx
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.004085ca
pop ecx
jmp 0x408943
lea eax, [ebp - 0x13c]
push eax
call fcn.0040877c
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop ecx
lea eax, [ebp - 0x34c]
push eax
call esi
cmp byte [ebp - 0x244], 0
je 0x408974
lea eax, [ebp - 0x244]
push eax
call esi
jmp 0x408974
lea eax, [ebp - 0x13c]
push eax
call fcn.0040877c
pop ecx
lea ecx, [ebp - 0x13c]
call fcn.00403e14
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00403cb7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x408df7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040ce20
cmp dword [ebp + 8], 0
mov al, byte [0x412a30]
push edi
je 0x408e59
mov byte [ebp - 0x2004], al
mov ecx, 0x800
xor eax, eax
lea edi, [ebp - 0x2003]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2004]
push 0x2000
push eax
mov eax, dword [ebp + 0x18]
push dword [eax]
push dword [ebp + 0x14]
call fcn.004048b5
add esp, 0x10
lea eax, [ebp - 0x2004]
push dword [ebp + 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x408ea3
push dword [ebp + 0x1c]
mov byte [ebp - 0x2004], al
mov ecx, 0x800
xor eax, eax
lea edi, [ebp - 0x2003]
push 0x2000
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2004]
push eax
push 0x412a30
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2004]
push dword [ebp + 0x18]
push eax
call fcn.00404937
add esp, 0xc
pop edi
leave
ret

Function at 0x408ea6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x1c]
je 0x408ec7
mov eax, dword [ebp + 0x18]
push dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00408d77
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
pop ebp
ret

Function at 0x409008
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40902b
Capabilities:
Set registry value

Disassembly:
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x409373
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
and byte [esi], 0
push 0x20019
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00408f17
add esp, 0x10
mov edi, 0x104
test eax, eax
jne 0x4093bd
push edi
push esi
push str.ProgramFilesDir
push dword [ebp + 8]
call fcn.00408f7d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
jne 0x4093db
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
and byte [esi + 1], 0
push str.:Program_Files
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x40949c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
cmp dword [0x413260], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x4094d9
call fcn.00404861
test eax, eax
je 0x4094c6
push esi
call fcn.00409400
test eax, eax
pop ecx
jne 0x4094d9
push 0
push esi
push dword [ebp + 8]
push 0
call dword [0x413260]
jmp 0x40956e
mov al, byte [0x412a30]
push edi
push 0x40
mov byte [ebp - 0x124], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x123]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00409400
pop ecx
pop edi
test eax, eax
lea eax, [ebp + 0xc]
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x409516
push 0x80000002
jmp 0x40951b
push 0x80000001
call fcn.00408f17
add esp, 0x10
test eax, eax
jne 0x409555
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00409441
lea eax, [ebp - 0x124]
push 0x104
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call fcn.00408f7d
add esp, 0x18
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
push esi
call sub.MSVCRT.dll_strcpy
xor eax, eax
pop ecx
cmp byte [esi], al
pop ecx
setne al
pop esi
leave
ret
Function at 0x40c00a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 1
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40c035
movzx eax, byte [ebp + 0xb]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x40c03e
mov eax, dword [esi + 0xc]
and al, 0x20
neg al
sbb eax, eax
pop esi
pop ebp
ret

Function at 0x40c0b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
and dword [ebp - 0xc], 0
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov esi, 0xffff
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40c105
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_ftell]
cmp eax, esi
pop ecx
mov dword [ebp - 0x10], eax
jae 0x40c0f2
mov dword [ebp - 4], eax
mov edi, 0x404
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40c10c
xor eax, eax
jmp 0x40c1b1
push 4
pop eax
cmp dword [ebp - 4], eax
jbe 0x40c1a6
jmp 0x40c122
mov eax, dword [ebp - 8]
mov edi, 0x404
mov ecx, dword [ebp - 4]
add eax, 0x400
cmp eax, ecx
mov dword [ebp - 8], ecx
ja 0x40c134
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov esi, eax
sub esi, dword [ebp - 8]
sub eax, esi
cmp eax, edi
ja 0x40c144
mov edi, eax
push 0
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40c1a6
push dword [ebp + 8]
push 1
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40c1a6
lea eax, [edi - 3]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x40c19a
cmp byte [eax + ebx], 0x50
jne 0x40c16f
cmp byte [eax + ebx + 1], 0x4b
jne 0x40c16f
cmp byte [eax + ebx + 2], 5
jne 0x40c16f
cmp byte [eax + ebx + 3], 6
jne 0x40c16f
add eax, esi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x40c1a6
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
jb 0x40c11a
push ebx
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c892
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
jne 0x40c8ad
push 0xffffffffffffff9a
jmp 0x40c8ba
mov esi, dword [eax + 0x7c]
cmp esi, ebx
je 0x40c8a9
cmp dword [esi], ebx
jne 0x40c8c0
push 0xffffffffffffff9c
pop eax
jmp 0x40c9fc
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x40c9f0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
jbe 0x40c8de
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], ebx
jbe 0x40c9eb
cmp dword [esi + 8], ebx
jne 0x40c94a
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x40c94a
mov edi, 0x4000
cmp eax, edi
jae 0x40c906
mov edi, eax
cmp edi, ebx
je 0x40c9f0
mov eax, dword [esi + 0x68]
push ebx
add eax, dword [esi + 0x3c]
push eax
push dword [esi + 0x60]
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40c9f4
push dword [esi + 0x60]
push 1
push edi
push dword [esi]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40c9f4
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x64], ebx
jne 0x40c99b
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x40c95b
mov edi, eax
xor eax, eax
cmp edi, ebx
jbe 0x40c972
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc eax
cmp eax, edi
jb 0x40c961
push edi
push dword [esi + 0x10]
push dword [esi + 0x50]
call fcn.004024b5
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 0x10], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add esp, 0xc
add dword [ebp - 4], edi
mov dword [esi + 0x50], eax
jmp 0x40c9dd
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x18]
mov dword [ebp + 8], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.00405efd
mov edi, dword [esi + 0x18]
mov dword [ebp - 8], eax
sub edi, ebx
push edi
push dword [ebp + 8]
push dword [esi + 0x50]
call fcn.004024b5
sub dword [esi + 0x5c], edi
add dword [ebp - 4], edi
add esp, 0x14
cmp dword [ebp - 8], 1
mov dword [esi + 0x50], eax
je 0x40c9eb
cmp dword [ebp - 8], 0
jne 0x40c9f9
xor ebx, ebx
cmp dword [esi + 0x14], ebx
ja 0x40c8e7
cmp dword [ebp - 8], ebx
jne 0x40c9f9
mov eax, dword [ebp - 4]
jmp 0x40c9fc
xor eax, eax
jmp 0x40c9fc
or eax, 0xffffffff
jmp 0x40c9fc
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cb06
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
lea eax, [ebp - 0x20]
push edi
push eax
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 4], eax
jbe 0x40ccc3
mov esi, dword [ebp + 0xc]
push 0x218
push ebx
push esi
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov edi, eax
push edi
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x411328
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40cb9c
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x30]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [esi + 8], eax
je 0x40cba5
push 1
push edi
call fcn.0040caf7
pop ecx
pop ecx
jmp 0x40ccc5
cmp dword [ebp + 0x10], ebx
jne 0x40ccbd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40ccbd
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x18]
push str._4.4X_4.4X
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push 0x412a30
push eax
push edi
call fcn.0040ca6a
add esp, 0x20
test eax, eax
jne 0x40cc08
lea eax, [ebp - 0x18]
push str.040904E4
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x4111f8
push eax
push edi
call fcn.0040ca6a
lea eax, [esi + 0x51]
push eax
lea eax, [ebp - 0x18]
push 0x4128b0
push eax
push edi
call fcn.0040ca6a
lea eax, [esi + 0x92]
push eax
lea eax, [ebp - 0x18]
push 0x4128a4
push eax
push edi
call fcn.0040ca6a
lea eax, [esi + 0xd3]
push eax
lea eax, [ebp - 0x18]
push 0x4111e8
push eax
push edi
call fcn.0040ca6a
add esp, 0x40
lea eax, [esi + 0x114]
push eax
lea eax, [ebp - 0x18]
push 0x411204
push eax
push edi
call fcn.0040ca6a
lea eax, [esi + 0x155]
push eax
lea eax, [ebp - 0x18]
push 0x412894
push eax
push edi
call fcn.0040ca6a
lea eax, [esi + 0x196]
push eax
lea eax, [ebp - 0x18]
push 0x412884
push eax
push edi
call fcn.0040ca6a
add esi, 0x1d7
lea eax, [ebp - 0x18]
push esi
push str.OriginalFileName
push eax
push edi
call fcn.0040ca6a
add esp, 0x40
jmp 0x40cb8d
push ebx
jmp 0x40cb8f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x19e9930
Capabilities:
Encode data using xor

Disassembly:
jmp 0x19e993a
pushal
call 0x19e9940
pop ebp
sub ebp, 0x10
sub ebp, 0x15e9930
jmp 0x19e9956
mov eax, 0x15e9930
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ce
mov edx, 0x3a45beca
xor byte [eax], dl
inc eax
dec ecx
jne 0x19e996d
jmp 0x19e9980
inc ecx
pop es
inc ecx
inc ebx
test dl, 0xca
retf 0xb4b
Function at 0x406bd8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406c1a
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryW
test bl, bl
je 0x406c3a
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a47c
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406e90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409834
test esi, esi
jne 0x406ec6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004099bc
jmp 0x406ee4
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406d74
mov edi, eax
test esi, esi
je 0x406ee4
cmp dword [ebx], 0
je 0x406ee4
dec esi
jmp 0x406ecd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret