joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca90
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x40cacd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x40cab3
cmp byte [esi], bl
jne 0x40cab3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x4416e0]
test bl, bl
jne 0x40caa4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.0040ca30

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4416e0]
sub esi, 1
jne 0x412da0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x412dd7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041c950
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f41b
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4416e0]
sub edi, 1
jne 0x412e70
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.0043f41b
mov esp, ebp
pop ebp
ret 4
Function at 0x41b580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5e2c], 0
lea esi, [edi + 0x5e30]
je 0x41b602
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41b5bc
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0041d700
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004060e0
mov edx, dword [esi]
mov ecx, 0x44a51c
push dword [edi + 0x5e2c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e38]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004060e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41ba10
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x44a520]
test bl, bl
je 0x41ba56
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41ba37
cmp byte [esi], bl
jne 0x41ba37
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4416e0]
test bl, bl
jne 0x41ba28
mov edi, dword [0x44a520]
mov ecx, dword [edi + 0x5dd0]
not eax
mov edx, dword [edi + 0x5dd8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x41ba7d
cmp dword [edx + 4], eax
je 0x41ba80
add edx, 0x24
cmp edx, ecx
jne 0x41ba71
xor eax, eax
ret
mov eax, edx
ret
Function at 0x42ea20
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44a520]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42ebcc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42ebcc
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x44a520]
add esp, 4
mov edi, eax
test esi, esi
je 0x42eac3
movsx edx, word [esi + 0x5ee4]
lea eax, [esi + 0x5ee8]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42eab9
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5edc]
test edi, edi
je 0x42ead6
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x42ead8
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x42eb13
mov esi, dword [esi + 0x74]
jmp 0x42eb15
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42eb38
mov dword [esi], eax
mov eax, dword [0x44a520]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a34]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x42eb9a
inc esi
cmp esi, 5
jl 0x42eb71
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f41b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043f41b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f41b
mov esp, ebp
pop ebp
ret
Function at 0x43d250
Capabilities:
Hash data with crc32

Disassembly:
push ecx
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov edi, edx
je 0x43d2c2
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x43d298
or edi, 0xffffffff
nop
cmp cl, 0x23
jne 0x43d27f
cmp byte [esi], cl
jne 0x43d27f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x4416e0]
test cl, cl
jne 0x43d270
mov ecx, dword [0x44a520]
not eax
cmp dword [ecx + 0x3fdc], eax
jne 0x43d2ae
mov dword [ecx + 0x3fe0], eax
cmp dword [ecx + 0x4004], eax
jne 0x43d308
mov byte [ecx + 0x4008], 1
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x44a520]
xor edx, edx
mov esi, dword [eax + 0x3f8c]
mov ecx, dword [esi + 0xec]
mov eax, dword [esi + 0xf4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.004058a0
mov ecx, dword [esi]
mov ebx, eax
add esp, 4
cmp dword [ecx + 0x3fc4], ebx
jne 0x43d306
push ecx
push edi
mov edx, 0xb
mov ecx, ebx
call fcn.0041c950
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43fdd1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43fe10
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43fe10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43fe10
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43fe10
cmp dword [ecx + 0x74], 0xe
jbe 0x43fe10
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401418
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp - 8]
push eax
push str.SoftwareMidnight_OilFreeWheelTempFiles
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401503
and dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
lea eax, [ebp - 0xc]
pop edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Count
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
mov dword [ebp - 0x10], edi
call esi
push 1
pop ebx
push ebx
lea eax, [ebp - 0x114]
push 0x4270d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp ebx, dword [ebp - 4]
ja 0x4014ba
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push 0
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], 1
call esi
test eax, eax
jne 0x4014ba
inc ebx
jmp 0x40146d
push dword [ebp + 8]
call fcn.00405820
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x114]
push dword [ebp + 8]
push 1
push 0
push eax
push dword [ebp - 8]
call esi
cmp ebx, dword [ebp - 4]
jbe 0x4014e5
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push edi
push eax
push edi
push 0
push str.Count
push dword [ebp - 8]
call esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401505
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
lea eax, [ebp - 8]
push esi
push eax
xor esi, esi
push str.SoftwareMidnight_OilFreeWheelTempFiles
push 0x80000001
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401611
push ebx
push edi
push 4
lea eax, [ebp - 0x10]
pop edi
mov ebx, str.Count
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
mov dword [ebp - 0x14], esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call esi
push 1
pop eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
jb 0x4015f4
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push 0x4270d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x11c]
push 0
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4015e5
lea eax, [ebp - 0x220]
push eax
call fcn.00405920
test eax, eax
pop ecx
je 0x4015d5
call fcn.0040590e
cmp dword [eax], 2
je 0x4015d5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x4015e5
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jbe 0x40156b
lea eax, [ebp - 0x18]
push edi
push eax
push edi
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4016ec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 8]
push edi
push eax
push str.AppEventsEventLabels
push 0x80000001
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40177f
lea eax, [ebp - 4]
push ebx
push eax
push str.FreeWheel_Down
push dword [ebp - 8]
call esi
test eax, eax
jne 0x401747
mov ebx, str.Scroll_Down
push ebx
call fcn.00405820
pop ecx
push eax
push ebx
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.FreeWheel_Up
push dword [ebp - 8]
call esi
test eax, eax
jne 0x401779
mov ebx, str.Scroll_Up
push ebx
call fcn.00405820
pop ecx
push eax
push ebx
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop ebx
lea eax, [ebp - 0xc]
push eax
push str.AppEventsSchemesAppsFreeWheel
push 0x80000001
call esi
test eax, eax
jne 0x4017c6
lea eax, [ebp - 4]
push eax
push str.FreeWheel_Down
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4017aa
push dword [ebp - 4]
call edi
lea eax, [ebp - 4]
push eax
push str.FreeWheel_Up
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4017c1
push dword [ebp - 4]
call edi
push dword [ebp - 0xc]
call edi
pop edi
pop esi
leave
ret

Function at 0x4018f4
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push esi
push eax
xor esi, esi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x401936
lea eax, [ebp - 4]
push eax
push 7
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401936
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 1
pop esi
mov eax, esi
pop esi
leave
ret
Function at 0x40193b
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00401614
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push str.Remove.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call fcn.004016a3
test eax, eax
pop ecx
je 0x4019e6
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallFreeWheel
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4019f6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, 0x427188
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.DisplayName
push dword [ebp - 4]
call edi
lea eax, [ebp - 0x108]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallFreeWheel
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret
Function at 0x401bf3
Capabilities:
Get file version info

Disassembly:
mov eax, 0x41cf0c
call fcn.004057fc
sub esp, 0x14
and dword [ebp - 0x1c], 0
push ebx
push esi
lea eax, [ebp - 0x18]
push edi
push eax
push dword [ebp + 8]
mov esi, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x401c4d
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00413136
and dword [ebp - 4], ebx
push str._does_not_contain_version_information
lea ecx, [ebp + 8]
call fcn.00413458
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.00401f91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x401d3b
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x401c87
push str.Out_of_global_memory
lea ecx, [ebp + 8]
call fcn.00413136
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov dword [ebp - 4], 1
call fcn.00401f91
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x401d3b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401ce3
push str.Failed_to_load_version_resource_for
lea ecx, [ebp - 0x10]
call fcn.00413136
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 2
call fcn.00413458
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00401f91
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
jmp 0x401d3b
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x427764
push dword [ebp - 0x14]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401d44
push str.Couldnt_find_fixed_info_block_in
lea ecx, [ebp - 0x14]
call fcn.00413136
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
call fcn.00413458
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00401f91
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004130c8
xor eax, eax
jmp 0x401d67
mov eax, dword [esi + 4]
test eax, eax
je 0x401d5b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
push 1
mov dword [esi + 8], eax
mov dword [esi + 4], edi
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4027a6
Capabilities:
Extract resource via kernel32 functions
Get common file path
Link many functions at runtime

Disassembly:
mov eax, 0x41d01c
call fcn.004057fc
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4297fc], edi
je 0x4027cb
push 1
pop eax
jmp 0x402987
call fcn.00401505
call fcn.0041ab24
mov eax, dword [eax + 8]
push str.HOOKDLL
push 0x427a00
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
jne 0x402800
push edi
push edi
push str.Cant_find_DLL_resource_n
call fcn.004164b4
jmp 0x402976
call fcn.0041ab24
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x402976
lea eax, [ebp - 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40285a
mov esi, 0x4296fc
lea eax, [ebp - 0x11c]
push esi
push edi
push 0x4279e0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x402863
push edi
push edi
push str.Cannot_create_temporary_file_for_hook_DLL
jmp 0x4027f6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
call fcn.0041ab24
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
jne 0x4028be
mov eax, dword [0x428004]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x10]
push str.Error__u
push eax
call fcn.0040e8f6
add esp, 0xc
push edi
push edi
push dword [ebp - 0x10]
call fcn.004164b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004130c8
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll__hwrite]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
call fcn.00401418
push esi
call fcn.00402996
pop ecx
cmp eax, edi
pop ecx
mov dword [0x4297fc], eax
je 0x402976
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427998
push eax
call esi
cmp eax, edi
mov dword [0x4296f0], eax
je 0x40295e
push 0x427984
push dword [0x4297fc]
call esi
cmp eax, edi
mov dword [0x4296ec], eax
je 0x40295e
push 0x427970
push dword [0x4297fc]
call esi
cmp eax, edi
mov dword [0x4296f8], eax
je 0x40295e
push 0x42795c
push dword [0x4297fc]
call esi
cmp eax, edi
mov dword [0x4296f4], eax
je 0x40295e
push 0x427948
push dword [0x4297fc]
call esi
cmp eax, edi
mov dword [0x4296e8], eax
jne 0x40297a
push edi
push edi
push str.Missing_export_in_hook_DLL
call fcn.004164b4
push dword [0x4297fc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x402987
push dword [0x4297fc]
call dword [0x4296f0]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x402a53
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
cmp dword [0x4297fc], 0
je 0x402a7a
call dword [0x4296ec]
push dword [0x4297fc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x4297fc], 0
jmp fcn.00401505
ret
Function at 0x409a39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x428a20
cmp edx, dword [eax]
je 0x409a5b
add eax, 8
inc ecx
cmp eax, 0x428ab0
jl 0x409a4c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x428a20]
jne 0x409b89
mov eax, dword [0x42b890]
cmp eax, 1
je 0x409b63
test eax, eax
jne 0x409a8c
cmp dword [0x428694], 1
je 0x409b63
cmp edx, 0xfc
je 0x409b89
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x409ac3
lea eax, [ebp - 0x1a4]
push 0x421d48
push eax
call fcn.0040a7c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405820
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409b06
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405820
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x421d44
push edi
call fcn.0040bbe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x421d28
push eax
call fcn.0040a7c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a7d0
lea eax, [ebp - 0xa0]
push 0x421d24
push eax
call fcn.0040a7d0
push dword [esi + 0x428a24]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a7d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x421cfc
push eax
call fcn.0040c115
add esp, 0x2c
pop edi
jmp 0x409b89
lea eax, [ebp + 8]
lea esi, [esi + 0x428a24]
push 0
push eax
push dword [esi]
call fcn.00405820
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40c417
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40c452
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40c439
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40c44a
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40c454
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40c42f
xor eax, eax
pop edi
pop esi
ret

Function at 0x40c633
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test al, 0x88
pop ebp
test eax, 0x58aa45c6
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0040c3d7
lodsd eax, dword [esi]
cmpsb byte [esi], byte es:[edi]
invalid