joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f3b2
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov dword [ebp - 4], 1
push 0x4a92e0
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4a92e4
lea ecx, [ebp - 0x24c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48f423
mov eax, 1
jmp 0x48f52d
push 0x4a92e8
lea ecx, [ebp - 0x11c]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x48f453
push 0x4a92ec
lea edx, [ebp - 0x11c]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x48f458
jmp 0x48f4f2
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov ecx, 0x104
sub ecx, eax
sub ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x4a92f0
lea ecx, [ebp - 0x24c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x24c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
test ecx, ecx
je 0x48f4da
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048f3b2
add esp, 8
test eax, eax
jne 0x48f4d8
mov dword [ebp - 4], 0
jmp 0x48f4f2
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x48f4f2
mov dword [ebp - 4], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48f423
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x48f52a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x48fa80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0xffffffff
mov dword [0x4b0b70], 1
call sub.WINDCS32.dll_Ordinal_52_2
push eax
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._sTEXTE._1.1iMENUAPPL.INI
push 0x4b0b74
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x48facc
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x16
jge 0x48fb11
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x4a931c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b0b74
push 0xffffffffffffffff
push 0x4a9328
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x14]
mov dword [edx*4 + 0x4b0bc4], eax
jmp 0x48fac3
mov eax, dword [ebp - 0x14]
mov dword [0x4b0c1c], eax
mov esp, ebp
pop ebp
ret
Function at 0x48fb1d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x4a932c
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x48fb50
cmp dword [0x4b0b70], 0
jne 0x48fb4e
push 0x4a9330
call fcn.0048fa80
add esp, 4
jmp 0x48fb66
cmp dword [0x4b0b70], 0
jne 0x48fb66
push 0x4a9334
call fcn.0048fa80
add esp, 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
jmp 0x48fb95
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [0x4b0c1c]
jge 0x48fca6
mov ecx, dword [ebp - 0x58]
cmp dword [ecx*4 + 0x4b0bc4], 0xffffffff
jne 0x48fbb3
jmp 0x48fb8c
mov edx, dword [ebp - 0x58]
add edx, 1
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x4a9338
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b0b74
push 0x1e
lea edx, [ebp - 0x30]
push edx
push 0x4b0c20
push 0x4a9344
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b0b74
push 0x1e
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x4a934c
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b0b74
push 0xffffffffffffffff
push 0x4a9354
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
push edx
call sub.WINDCS32.dll_Ordinal_53_1
push eax
call sub.PROD32.DLL_Ordinal_1_2
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
je 0x48fc52
cmp dword [ebp - 0x54], 0
jne 0x48fc76
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax*4 + 0x4b0bc4]
push ecx
push 0x401
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InsertMenuA]
jmp 0x48fc98
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx*4 + 0x4b0bc4]
push eax
push 0x400
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_InsertMenuA]
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
jmp 0x48fb8c
mov esp, ebp
pop ebp
ret
Function at 0x48fcaa
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
mov al, byte [0x4b0c24]
mov byte [ebp - 0x90], al
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x94], 0
jmp 0x48fcf3
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
cmp edx, dword [0x4b0c1c]
jge 0x48fd8c
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov dx, word [ecx*4 + 0x4b0bc4]
cmp eax, edx
jne 0x48fd87
mov eax, dword [ebp - 0x94]
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4a935c
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b0b74
push 0x81
lea eax, [ebp - 0x90]
push eax
push 0x4b0c28
push 0x4a9368
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0
push 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x48fd8c
jmp 0x48fce4
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x48fd91
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x4a9370
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x48fdc4
cmp dword [0x4b0b70], 0
jne 0x48fdc2
push 0x4a9374
call fcn.0048fa80
add esp, 4
jmp 0x48fdda
cmp dword [0x4b0b70], 0
jne 0x48fdda
push 0x4a9378
call fcn.0048fa80
add esp, 4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x5c], 0
jmp 0x48fdf3
mov ecx, dword [ebp - 0x54]
add ecx, 1
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [0x4b0c1c]
jge 0x48ff04
mov eax, dword [ebp - 0x54]
cmp dword [eax*4 + 0x4b0bc4], 0xffffffff
jne 0x48fe11
jmp 0x48fdea
mov ecx, dword [ebp - 0x54]
add ecx, 1
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.MENU_s_3.3i
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4b0b74
push 0x1e
lea ecx, [ebp - 0x2c]
push ecx
push 0x4b0c2c
push str.Appl
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b0b74
push 0x1e
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push str.Name
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4b0b74
push 0xffffffffffffffff
push str.ProdID
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call sub.WINDCS32.dll_Ordinal_53_1
push eax
call sub.PROD32.DLL_Ordinal_1_2
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
je 0x48feb0
cmp dword [ebp - 0x50], 0
jne 0x48fed4
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x54]
mov eax, dword [edx*4 + 0x4b0bc4]
push eax
push 0x401
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InsertMenuA]
jmp 0x48fef6
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx*4 + 0x4b0bc4]
push edx
push 0x400
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InsertMenuA]
mov edx, dword [ebp - 0x5c]
add edx, 1
mov dword [ebp - 0x5c], edx
jmp 0x48fdea
mov esp, ebp
pop ebp
ret
Function at 0x49094b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push 0x4b0c9c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x49096b
xor eax, eax
jmp 0x490af9
push 0x4a93fc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
push str.FUNCKEYS
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x24], 0
jne 0x4909ba
xor eax, eax
jmp 0x490af9
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, 1
test eax, eax
je 0x490adb
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0xc]
jge 0x4909f5
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4909fa
jmp 0x490adb
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
push edx
push 0x4a9414
push 0x4b0c9c
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x4b0c9c
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xc]
jge 0x490a63
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0x20
jl 0x490a63
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [eax + 0x4b0c9c], dl
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x490a2a
mov edx, dword [ebp - 0x28]
mov byte [edx + 0x4b0c9c], 0
cmp dword [ebp - 4], 1
jl 0x490ad6
cmp dword [ebp - 4], 0xa
jg 0x490ad6
push 0x4b0c9c
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4b0c70]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4b0c70]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 1
mov dword [ebp - 0x10], ecx
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4b0c70]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4909cd
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
push eax
push 0x4b0c9c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4066a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005467f5

Function at 0x406940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x406969
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40697f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406976
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x4069b2
nop
cmp esi, ecx
jae 0x406976
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x4069a0
cmp esi, ecx
jae 0x406976
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40ae70
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d89c5
mov eax, dword fs:[0]
push eax
sub esp, 0xa34
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00690e10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00690e10
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00690e10
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0069fbc3
add esp, 0x44
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x40b042
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa3c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xa3c]
push str._s_sLog
push eax
call fcn.00407190
mov esi, dword [ebp - 0xa3c]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x40afa3
push dword [esi - 0xc]
lea ecx, [ebp - 0xa3c]
call fcn.00406e20
mov esi, dword [ebp - 0xa3c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x40afd2
cmp dword [esi - 4], 1
jle 0x40afc9
push dword [esi - 0xc]
lea ecx, [ebp - 0xa3c]
call fcn.00406e20
mov esi, dword [ebp - 0xa3c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [0x7adb48], 0
jne 0x40b009
push 0x4014
call fcn.00553993
add esp, 4
mov dword [ebp - 0xa40], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40b002
sub esp, 0x10
mov ecx, eax
call fcn.0041cc40
jmp 0x40b004
xor eax, eax
mov dword [0x7adb48], eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b028
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407310
int3
Function at 0x4153d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d89f0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x79a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CDnPatchDownloadThread.1.0
mov dword [esi + 4], vtable.CDnPatchDownloadThread.0
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x415416
mov dword [esi + 0x50], eax
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
cmp ecx, edx
je 0x41542f
push ecx
call fcn.00408f00
mov eax, dword [esi + 0x58]
add esp, 4
mov dword [esi + 0x5c], eax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
cmp ecx, edx
je 0x415448
push ecx
call fcn.00408f00
mov eax, dword [esi + 0x64]
add esp, 4
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x70]
lea ecx, [esi + 0x70]
mov edx, dword [ecx + 4]
cmp eax, edx
je 0x415466
push ecx
mov ecx, eax
call fcn.00408f00
mov eax, dword [esi + 0x70]
add esp, 4
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x7c]
cmp ecx, dword [esi + 0x80]
je 0x415477
mov dword [esi + 0x80], ecx
push 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x41549f
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esi + 0x7c]
mov dword [0x7adb44], 0
call fcn.0041a340
lea ecx, [esi + 0x70]
call fcn.00408e80
lea ecx, [esi + 0x64]
call fcn.00408e80
lea ecx, [esi + 0x58]
call fcn.00408e80
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x415515
mov ecx, dword [esi + 0x54]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4154f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41559e
mov eax, edx
push ecx
push eax
call fcn.0068d77d
mov dword [esi + 0x4c], 0
add esp, 8
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov edx, dword [esi + 0x34]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415532
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x30]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41554c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x2c]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x415566
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 0x28]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41557e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi + 4], vtable.CThread.0
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.006944a3
int3
Function at 0x41a040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x79a200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.00419d60
test eax, eax
je 0x41a0a5
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x41a075
push dword [eax - 0xc]
mov ecx, esi
call fcn.00406e20
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41a0b8
push str.Save_Version_File_Failed_
push 0
call fcn.0041d690
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 8
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00690e10
call fcn.00408dc0
mov eax, dword [eax + 0x24]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push str.Version__d_r_nModule__d
push 0x100
push eax
call fcn.00414bd0
lea ecx, [ebp - 0x104]
add esp, 0x20
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a100
push 0
sub ecx, edx
lea eax, [ebp - 0x108]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0068d76f
mov esp, ebp
pop ebp
ret 8
Function at 0x41ac90
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d9cf6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x79a200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], 0
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ae3c
add ebx, 0x1388
call esi
cmp eax, ebx
ja 0x41ad12
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x41acfd
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41ae3c
call esi
cmp eax, ebx
jbe 0x41ace7
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x41ae53
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.0054592c
mov ecx, eax
test ecx, ecx
je 0x41ae5d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, 0x770a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x41ad6b
movzx eax, ax
push eax
call fcn.00406a60
jmp 0x41ad77
push 0
push 0x770a40
call fcn.00406bf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x3f9
mov dword [ebp - 0x18], 1
call fcn.00406a60
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push edi
push str._s__s
push eax
call fcn.00407190
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esp, 0x10
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41adc3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x14]
add ebx, 0xfffffff0
push ebx
call fcn.004066d0
add esp, 4
mov dword [ebp - 0x10], eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
push esi
push 0
mov byte [ebp - 4], 3
call fcn.0041d690
add esp, 8
push 0
push 0
push esi
call fcn.0054779e
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x10]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ae0f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x41ae28
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 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
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00407310
push 0x80004005
call fcn.00407310
int3
Function at 0x41c480
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x41c533
test ebx, ebx
je 0x41c533
push esi
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41c527
push eax
call fcn.00545633
mov esi, eax
add esp, 4
test esi, esi
jne 0x41c4ca
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 4]
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41c51e
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
push 0x772fe8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41c51e
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x41c51e
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0xc]
push esi
mov dword [ebx], eax
call fcn.0054562e
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0054562e
add esp, 4
pop esi
pop edi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret