joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0053af20
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d349
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d349
push eax
push str.Installation_Error
push str.Failed_to_install_as_the_OS_version_could_not_be_determined.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 0x110], 1
jne 0x40d36e
push 0
push str.Installation_Error
push str.Sorry__Cannot_install_the_software_as_Windows_95__98_and_ME_are_not_supported.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539659
mov esp, ebp
pop ebp
ret

Function at 0x40d420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d933
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004157e7
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x40d465
push 0x80004005
call fcn.00401220
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov al, byte [ebp + 0x10]
mov byte [esi + 0xc], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0xd], al
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi], 1
mov byte [esi + 4], 0
push dword [0x5ef6d8]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040da10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d7c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0
push 0x587a04
lea ecx, [ebp - 0x24]
call fcn.0055c110
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
call fcn.0055cbe0
mov dword [ebp - 0x14], eax
cmp byte [esi + 0xc], 0
mov byte [ebp - 4], 2
jne 0x40d94a
push dword [0x5ef6d8]
lea ecx, [ebp - 0x14]
call fcn.0055cc60
test al, al
je 0x40d8fd
push dword [0x5ef6d8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040de40
push dword [ebp - 0x10]
mov byte [ebp - 4], 3
push str._CRunModule::GetResultFile__Result.txt_file____s_
push 3
call fcn.0055b030
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [eax - 0xc]
or ebx, 0xffffffff
test ecx, ecx
je 0x40d8ce
jns 0x40d880
push 0x80070057
call fcn.00401220
movzx eax, word [eax]
sub eax, 0x30
mov dword [esi], eax
push 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004097c0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040de70
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.00401f90
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d8dd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d8dd
lea edi, [esi + 8]
push str.The_Result.txt_file_is_empty_
mov ecx, edi
call fcn.00401110
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40d90e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d90e
push 0x1e
lea edi, [esi + 8]
push str.Failed_to_load_Result.txt_file
mov ecx, edi
call fcn.004015a0
cmp byte [esi + 0xd], 0
je 0x40d935
cmp dword [esi], 0
je 0x40d935
push str._CRunModule::GetResultFile__Ignoring_failure_setting_exit_code_to_0
push 0
call fcn.0055b030
add esp, 8
mov ecx, edi
call fcn.00401240
mov dword [esi], 0
push dword [edi]
push dword [esi]
push str._CRunModule::GetResultFile__ExitCode___d__Message__s_
push 0
call fcn.0055b030
add esp, 0x10
jmp 0x40d95f
push str._CRunModule::GetResultFile__Ignoring_result_file_ExitCode_set_to_0
push 0
call fcn.0055b030
add esp, 8
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0055c4b0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0055c180
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 0x40e0d0
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56dae8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.004157e7
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x40e118
push 0x80004005
call fcn.00401220
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.0055a2b0
push 0x587cc8
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00406210
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00401f90
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40e177
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e197
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e1e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e1e7
lea eax, [ebp - 0x14]
push eax
call fcn.0055a2b0
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00401f90
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e1e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40e22d
lea eax, [ebp - 0x14]
push eax
call fcn.0040e2d0
push dword [eax]
mov byte [ebp - 4], 4
push str._CSetExtractionDir::CSetExtractionDir__Error___s
call fcn.0055b0d0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40e22d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410950
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e0e6
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
push ebx
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5fa450], 0
jne 0x410a6d
call fcn.004096d0
mov al, byte [eax + 0x4e]
test al, al
mov al, byte [0x5fa415]
je 0x4109a8
test al, al
je 0x4109e3
cmp byte [0x5fa416], 0
jne 0x410a30
test al, al
jne 0x410a4b
push 0
lea ecx, [ebp - 0x160]
call fcn.00406bb0
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 1
call fcn.00422c33
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 0xffffffff
call fcn.00406be0
jmp 0x410a52
cmp byte [0x5fa416], 0
jne 0x410a30
push 0
push 1
lea ecx, [ebp - 0x2b8]
call fcn.0040bd20
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 4], 0
call fcn.00422c33
test eax, eax
lea ecx, [ebp - 0x2b8]
setne bl
mov dword [ebp - 4], 0xffffffff
call fcn.0040bd60
test bl, bl
jne 0x410a30
cmp byte [0x5fa416], bl
je 0x410a52
push str._CRunInstructions::RunStep__Rebooting...
push 0
call fcn.0055b030
add esp, 8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x410a52
mov byte [0x5fa414], 1
mov eax, dword [0x5ef724]
mov ecx, 3
test eax, eax
cmove eax, ecx
mov dword [0x5ef724], eax
mov byte [0x5fa450], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411040
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
push ebx
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x5fa459], 0
jne 0x411119
call fcn.00406ee0
mov ecx, eax
call fcn.00406ea0
test al, al
jne 0x411119
call fcn.004096d0
mov ecx, eax
call fcn.0040a480
call fcn.004096d0
mov al, byte [eax + 0x4e]
test al, al
je 0x411112
cmp byte [0x5fa415], 0
jne 0x4110f0
cmp byte [0x5fa416], 0
jne 0x4110f9
push 0
push 0
lea ecx, [ebp - 0x164]
call fcn.0040bd20
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 0
call fcn.00422c33
test eax, eax
lea ecx, [ebp - 0x164]
setne bl
mov dword [ebp - 4], 0xffffffff
call fcn.0040bd60
test bl, bl
jne 0x4110f9
cmp byte [0x5fa416], 0
je 0x411112
push str._CRunInstructions::RunStep__Rebooting...
push 0
call fcn.0055b030
add esp, 8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov byte [0x5fa459], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411840
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e300
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push str.CInstructions::AppendPSLogFile
lea ecx, [ebp - 0x1c]
call fcn.0055c110
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00426bfe
push 0
push 0x2041
push dword [0x5fa464]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00427192
cmp eax, 1
jne 0x411904
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
call fcn.0055cbe0
mov dword [ebp - 0x10], eax
push dword [0x5fa468]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0055cc60
test al, al
je 0x4118f8
mov eax, dword [ebp - 0x30]
push 2
push 0
push 0
lea ecx, [ebp - 0x30]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
push dword [eax + 8]
push dword [eax + 4]
call fcn.004274f3
push dword [0x5fa468]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0055c4b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00426c74
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0055c180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x412a40
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e60c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi], vtable.Downloader::CFileRetriever.0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402120
add eax, 0x10
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402120
add eax, 0x10
add esp, 8
mov dword [edi + 8], eax
mov byte [ebp - 4], 1
call fcn.0053b382
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov word [edi + 0x18], 0
mov byte [edi + 0x1a], 0
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x412ae4
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
lea esi, [edi + 0x24]
push 0
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [edi + 0x20], 0
mov dword [ebp + 8], esi
call fcn.004283ee
push 0
lea eax, [esi + 8]
push eax
mov byte [ebp - 4], 3
mov dword [esi], vtable.CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x412b41
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x412b39
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x412b41
push eax
call fcn.00401220
push 1
push 0
push 0x5887a4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0055c110
push 0
push 4
push 0
push 0
push edi
push 0x412f00
mov byte [ebp - 4], 5
call fcn.0041702a
mov dword [edi + 0x20], eax
mov dword [eax + 0x28], 0
mov eax, dword [edi + 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0055c180
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x413050
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e6e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0
push str.CFileRetriever::WaitForThreadToDie
lea ecx, [ebp - 0x18]
call fcn.0055c110
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], 0
test eax, eax
je 0x4130c9
push 0x7530
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4130c9
push str._CFileRetriever::WaitForThreadToDie__Thread_wont_die____using_::TerminateThread__
push 0
call fcn.0055b030
mov eax, dword [esi + 0x20]
add esp, 8
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0055c180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414480
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ea31
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5f4e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
push str.CUtility::GetFixedFileVersion
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.0055c110
mov dword [ebp - 4], 1
call fcn.004157e7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4144ea
push 0x80004005
call fcn.00401220
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x414591
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
call fcn.0055cbe0
mov dword [ebp - 0x10], eax
push edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0055c7b0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
push esi
push edi
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
jne 0x414585
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x585064
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x414585
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
movzx esi, word [eax + 8]
movzx edi, word [eax + 0xa]
push ecx
push edx
push esi
push edi
push str._u._u._u._u
push ebx
call fcn.00403f60
add esp, 0x18
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0055c4b0
push dword [ebx]
push str._CUtility::GetFixedFileVersion__Version____s_
push 2
call fcn.0055b030
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0055c180
mov eax, ebx
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 0x4169c8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57d00f
call fcn.0053b9f4
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x4169ee
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x416a42
call fcn.004157e7
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0053b904
push eax
call fcn.00401160
add esp, 0x14
test edi, edi
je 0x416a35
push edi
call fcn.0053bb28
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401510
mov eax, esi
call fcn.0053b9c2
ret 8
Function at 0x41d59a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5fc128]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x41d5e6
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41d603
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5fc128], eax
jmp 0x41d5ef
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x41d603
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41d670
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41d61e
xor eax, eax
jmp 0x41d670
lea eax, [ebp - 0x210]
push eax
call fcn.0053bb28
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41d64f
push 0x585064
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053d7ed
add esp, 0xc
test eax, eax
jne 0x41d61a
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053d7ed
add esp, 0xc
test eax, eax
jne 0x41d61a
lea eax, [ebp - 0x210]
push eax
call fcn.004222c0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00539659
leave
ret

Function at 0x41de03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x41de48
call fcn.00415bd0
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41de48
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41de64
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041c039
mov ebx, eax
test edi, edi
je 0x41de62
test esi, esi
je 0x41de62
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422926
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00415bd0
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42295d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0042297c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x428657
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x428680
call fcn.00415bd0
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
je 0x4286ad
push esi
push eax
mov ecx, 0x5fc17c
call fcn.004296be
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00428c11
int3
Function at 0x42cc35
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5f4e20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5fc44c]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x42cc8e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42ccab
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5fc44c], eax
jmp 0x42cc97
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42ccab
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x42cde8
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00558448
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb28
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.0053bacc
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.00558448
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb28
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0053bacc
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.00558448
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb28
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.0053bacc
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.00558448
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb28
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0053bacc
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.00558448
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.0053bb28
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.0053bacc
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00539659
leave
ret