joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441f00
Capabilities:
Read .ini file

Disassembly:
push 0x268
mov eax, 0x4b4df9
call fcn.004935c5
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x270], ebx
call fcn.00492b40
lea eax, [ebp - 0x250]
add esp, 0xc
push eax
call fcn.0042eae0
mov ecx, eax
call fcn.004854e9
mov dword [ebp - 4], ebx
mov esi, 0x104
cmp dword [ebp - 0x240], ebx
je 0x441f7e
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x441f6d
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004950c7
pop ecx
pop ecx
jmp 0x441fa0
push esi
lea eax, [ebp - 0x218]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x274], esp
push eax
call fcn.0043a007
pop ecx
call fcn.0047f7ff
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call fcn.00493091
pop ecx
test eax, eax
jne 0x441fd3
push esi
lea eax, [ebp - 0x218]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x274], esp
push eax
call fcn.0043a051
pop ecx
call fcn.0047f7ff
add esp, 0x24
lea eax, [ebp - 0x218]
push 0x4c2c70
push eax
call fcn.0049759f
pop ecx
pop ecx
cmp eax, ebx
je 0x441fef
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0042e48d
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 1
call fcn.0049065d
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x234]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.0042e109
cmp esi, ebx
jbe 0x44202f
mov dword [ebp - 0x270], esi
cmp dword [ebp - 0x270], ebx
jne 0x442116
lea eax, [ebp - 0x270]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x274], esp
push str.LocalUILanguage
push eax
call fcn.00439f9f
pop ecx
pop ecx
call fcn.0047fa94
add esp, 0x20
cmp eax, ebx
jl 0x442072
cmp dword [ebp - 0x270], ebx
jne 0x442116
push str._MulLang::GetCurrentLangID_Failed_to_ReadDWord.
push str.kupdate::KMullangResLoader::_GetCurrentLangID
push 0xc3
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatepublic_MulLang.h
push 5
call fcn.0042f683
lea eax, [ebp - 0x26c]
push 0x16
push eax
call fcn.0047cee7
add esp, 0x1c
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4420aa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x234]
call fcn.00439420
push ebx
push 1
lea ecx, [ebp - 0x26c]
call fcn.0042e109
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x4420d9
lea eax, [ebp - 0x234]
push eax
push ebx
push str.UILanguage
push 0x4c2c74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ebx
push 1
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], eax
call fcn.0042e109
cmp dword [ebp - 0x270], ebx
jne 0x442116
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0x804
je 0x442165
mov eax, 0x409
cmp dword [ebp - 0x270], eax
je 0x442165
cmp dword [ebp - 0x270], 0x411
je 0x442165
cmp dword [ebp - 0x270], 0x404
je 0x442165
cmp dword [ebp - 0x270], 0x42a
je 0x442165
cmp dword [ebp - 0x270], 0xc0a
je 0x442165
mov dword [ebp - 0x270], eax
movzx esi, word [ebp - 0x270]
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.0042e109
mov ax, si
call fcn.00493648
ret
Function at 0x444946
Capabilities:
Check mutex on windows

Disassembly:
push 0x30
mov eax, 0x4b5268
call fcn.004935c5
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 4], ebx
call fcn.0042eae0
mov ecx, eax
call fcn.00485a2f
mov eax, dword [ebp - 0x3c]
mov edi, eax
cmp eax, dword [ebp - 0x38]
je 0x4449d7
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042ff28
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x44498f
lea eax, [ebp - 0x2c]
push eax
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
cmp esi, ebx
jne 0x4449c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4449c3
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042e109
add edi, 0x1c
cmp edi, dword [ebp - 0x38]
jne 0x44497a
jmp 0x4449d7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042e109
mov bl, 1
lea ecx, [ebp - 0x3c]
call fcn.0043bbe1
mov al, bl
call fcn.00493648
ret
Function at 0x4452d7
Capabilities:
Read .ini file

Disassembly:
push 0x8dc
mov eax, 0x4b5401
call fcn.004935c5
mov esi, dword [ebp + 8]
xor eax, eax
push 0x7fe
mov word [ebp - 0x890], ax
xor edi, edi
lea eax, [ebp - 0x88e]
push edi
push eax
call fcn.00492b40
add esp, 0xc
push 0x400
lea eax, [ebp - 0x890]
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x8e8], esp
push str.waitclearversions
push eax
call fcn.0042f046
pop ecx
pop ecx
call fcn.0047f7ff
add esp, 0x24
cmp eax, edi
jne 0x445375
lea eax, [ebp - 0x890]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.0042e48d
push esi
lea eax, [ebp - 0x8c8]
push 0x4c2c70
push eax
mov dword [ebp - 4], edi
call fcn.0043d6a4
or dword [ebp - 4], 0xffffffff
add esp, 0xc
push edi
push 1
lea ecx, [ebp - 0x8c8]
call fcn.0042e109
lea eax, [ebp - 0x8ac]
push 0x14
push eax
call fcn.0047cee7
xor eax, eax
push 0x7e
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push edi
push eax
mov dword [ebp - 4], 1
call fcn.00492b40
mov eax, dword [ebp - 0x8ac]
add esp, 0x14
cmp dword [ebp - 0x898], 8
jae 0x4453ba
lea eax, [ebp - 0x8ac]
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
mov ebx, 0x4bf8f0
push ebx
push str.lowerversion
mov edi, 0x4be8e4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
call fcn.00493091
pop ecx
test eax, eax
je 0x445461
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [ebp - 0x90]
push edx
push eax
push ecx
call fcn.004400ca
add esp, 0xc
cmp eax, dword [esi + 4]
jne 0x44543e
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x8c8]
call fcn.0042e48d
lea eax, [ebp - 0x8c8]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0043d617
push 0
push 1
lea ecx, [ebp - 0x8c8]
mov byte [ebp - 4], 1
call fcn.0042e109
cmp dword [ebp - 0x898], 8
mov eax, dword [ebp - 0x8ac]
jae 0x445453
lea eax, [ebp - 0x8ac]
push eax
push ebx
push str.lowerversion
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x40
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00492b40
mov eax, dword [ebp - 0x8ac]
add esp, 0xc
cmp dword [ebp - 0x898], 8
jae 0x445489
lea eax, [ebp - 0x8ac]
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push ebx
push str.higherversion
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
call fcn.00493091
pop ecx
test eax, eax
je 0x445522
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [ebp - 0x90]
push edx
push eax
push ecx
call fcn.004400ca
add esp, 0xc
cmp eax, dword [esi + 4]
jne 0x4454ff
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x8e4]
call fcn.0042e48d
lea eax, [ebp - 0x8e4]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0043d617
push 0
push 1
lea ecx, [ebp - 0x8e4]
call fcn.0042e109
cmp dword [ebp - 0x898], 8
mov eax, dword [ebp - 0x8ac]
jae 0x445514
lea eax, [ebp - 0x8ac]
push eax
push ebx
push str.higherversion
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
push 1
lea ecx, [ebp - 0x8ac]
call fcn.0042e109
call fcn.00493648
ret 4
Function at 0x44938f
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push 0xc
mov eax, 0x4b59a5
call fcn.0049355c
mov esi, ecx
mov ecx, dword [esi + 0x10]
cmp dword [ebp + 0xc], ecx
jne 0x449551
mov eax, dword [ebp + 0x10]
mov edx, 0x205
cmp ax, dx
jne 0x449486
xor edi, edi
cmp dword [esi + 0x410], edi
jne 0x449551
mov dword [ebp + 0xc], edi
push ecx
movzx ecx, cx
mov eax, esp
mov dword [eax], ecx
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], esp
call fcn.004492ae
cmp eax, edi
je 0x44950b
push edi
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00449371
push dword [ebp + 0x10]
xor ebx, ebx
mov ecx, esi
mov eax, dword [ecx]
inc ebx
mov byte [ebp - 4], bl
call dword [eax]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 0x3c4]
cmp eax, edi
jne 0x44942c
push ebx
push edi
jmp 0x449433
cmp eax, 0xffffffff
je 0x44943c
push edi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [esi + 0x40c], ebx
mov ebx, dword [esi - 0x28]
mov dword [ebp - 0x10], eax
call fcn.004492ee
pop ecx
pop ecx
push edi
push ebx
push edi
push dword [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push edi
push edi
push edi
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [ebp + 0xc]
call fcn.004492d3
mov dword [esi + 0x40c], edi
jmp 0x44950b
mov ecx, 0x200
cmp ax, cx
jne 0x4494a2
add esi, 0x404
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x449551
mov ecx, 0x203
cmp ax, cx
jne 0x44951a
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ecx
movzx ecx, word [esi + 0x10]
mov eax, esp
mov dword [eax], ecx
xor edi, edi
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], esp
call fcn.004492ae
cmp eax, edi
je 0x44950b
push edi
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00449371
mov eax, dword [esi + 0x3c4]
push edi
cmp eax, edi
jne 0x4494f4
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetMenuItemID]
push edi
push eax
push 0x111
push dword [esi - 0x28]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp + 0xc]
call fcn.004492d3
cmp dword [ebp + 0xc], edi
je 0x449551
lea ecx, [ebp + 0xc]
call fcn.004492d3
jmp 0x449551
mov ecx, 0x201
cmp ax, cx
je 0x449551
mov ecx, 0x405
cmp ax, cx
jne 0x449551
mov ecx, esi
call fcn.00449278
test eax, eax
jne 0x449551
mov ecx, dword [esi + 0x414]
test ecx, ecx
je 0x449551
push dword [esi + 0x41c]
push dword [esi + 0x418]
call ecx
xor eax, eax
call fcn.00493634
ret 0x10
Function at 0x44debf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x14
push eax
call fcn.0047cee7
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.00492b40
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x44df10
lea eax, [ebp - 0xa0]
push ebx
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4c28c0
push str.InstallPerUser
push 0x4be8e4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
push 0x4be6f8
push eax
call fcn.00498165
pop ecx
pop ecx
mov ebx, eax
neg ebx
push 0
sbb bl, bl
push 1
lea ecx, [ebp - 0xa0]
inc bl
call fcn.0042e109
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret

Function at 0x44f09e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x228
mov eax, 0x4b6383
call fcn.004935c5
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
xor edi, edi
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00492b40
add esp, 0xc
push edi
push 0x10
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0047bb65
push esi
mov dword [ebp - 4], edi
call fcn.00493091
add esp, 0xc
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0042edb8
mov esi, str..lnk
push esi
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0042edb8
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x44f13b
lea eax, [ebp - 0x234]
push edi
push edi
push edi
push eax
push 0x4c7d80
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x44f160
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0047b6e4
pop ecx
pop ecx
push edi
neg eax
push 1
lea ecx, [ebp - 0x234]
sbb esi, esi
call fcn.0042e109
lea eax, [esi + 1]
call fcn.00493648
ret
Function at 0x44f184
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0x24c
mov eax, 0x4b63c1
call fcn.004935c5
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x44f337
push edi
call fcn.00493091
pop ecx
test eax, eax
je 0x44f337
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00492b40
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x44f21a
push ebx
mov ecx, esi
call fcn.0042e48d
jmp 0x44f345
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0042e48d
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch_
push esi
mov byte [ebp - 4], 1
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0042edb8
call fcn.0047d76c
test al, al
je 0x44f26b
mov esi, str.User_PinnedTaskBar_
push esi
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0042edb8
push edi
call fcn.00493091
pop ecx
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.0042edb8
mov esi, str..lnk
push esi
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.0042edb8
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x44f2ad
lea eax, [ebp - 0x234]
push eax
push str.taskbarpinLink_check___s.
push str.kupdate::KDesktopLink::getTaskbarPinned
push 0x19a
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdateprotocolKProcedureImpl.cpp
push ebx
call fcn.0042f683
mov eax, dword [ebp - 0x234]
add esp, 0x18
cmp dword [ebp - 0x220], 8
jae 0x44f2e0
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44f301
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
call fcn.0042e374
mov ecx, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
call fcn.0042e51a
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0042e109
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.0042e109
mov eax, dword [ebp - 0x254]
jmp 0x44f355
lea eax, [ebp - 0x250]
push eax
mov ecx, esi
call fcn.0042e51a
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.0042e109
mov eax, esi
call fcn.00493648
ret
Function at 0x4536d3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4536f3
push ebx
push ebx
push ebx
push 2
call fcn.00456260
xor al, al
jmp 0x4537b0
push esi
call fcn.0045361c
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call fcn.00498540
push dword [ebp + 8]
call fcn.00498451
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.00498540
add esp, 0x1c
cmp esi, ebx
jg 0x453731
push ebx
push ebx
push ebx
push 0xc
jmp 0x45375e
inc esi
push esi
call fcn.004912f9
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.00493b27
add esp, 0x14
cmp eax, 1
je 0x453769
push esi
call fcn.004926f3
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.00456260
xor al, al
jmp 0x4537af
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x453792
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x45378a
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x45378e
jmp 0x45378d
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x453777
push dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.004926f3
xor eax, eax
cmp byte [edi + 0x44], bl
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x4581ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4581bb
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x458276
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4caac8]
add edx, 8
sub edi, 8
dec esi
jne 0x4581d9
pop ebx
test edi, edi
je 0x45828f
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4caac8]
inc edx
dec edi
jne 0x45827a
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x458295
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x4caac8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4caac8]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x45874e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x458782
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45877d
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4587aa
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x458793
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004927d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4595d4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x459608
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x459608
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x4596b2
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x459624
cmp cx, 0x5c
jne 0x459626
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x459618
cmp eax, esi
je 0x459666
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004927d0
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.004595d4
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x459682
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004950c7
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00495096
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4596b2
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004927bf
leave
ret
Function at 0x45ac59
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45ad04
cmp dword [esi + 4], 0xffffffff
jne 0x45ad04
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00493091
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x45acab
cmp eax, 0x2f
je 0x45acab
push 0x4be56c
push edi
call fcn.00495096
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x45accd
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x45accd
mov eax, 0x2000000
jmp 0x45ad09
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00458573
add esp, 0x10
test eax, eax
jne 0x45aceb
mov eax, dword [ebp + 0x10]
jmp 0x45ad09
push eax
call fcn.0045a72e
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x45ad09
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x45d879
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4b7130
call fcn.0049355c
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0xf4], esi
jne 0x45d92a
mov edi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push esi
call edi
mov dword [ebx + 0xf4], eax
cmp eax, esi
jne 0x45d92a
push 0x4f9b04
lea ecx, [ebp - 0x10]
call fcn.0045b965
mov eax, 0x104
push eax
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.0045bc65
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0045b8f0
mov esi, str.winhlp32.exe
push esi
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0045c4ec
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45d918
push 0x6a
push esi
call edi
test eax, eax
je 0x45d918
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0xf4], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0045b32f
call fcn.00493634
ret

Function at 0x46130e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f9b3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
lea edx, [ebp - 0x210]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x461384
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
mov dword [ebp - 0x214], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004927bf
leave
ret 0xc

Function at 0x4613df
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4