joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41108d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x419096
call fcn.00405818
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00417eda
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x4110db
call fcn.00417eda
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4110ec
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4110f8
or eax, 0xffffffff
jmp 0x4111fb
mov ecx, esi
call fcn.00410bcd
mov dword [ebp - 0x14], eax
call fcn.0041283b
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x41113b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41113b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41113b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00413a1d
push dword [ebp - 0x14]
call fcn.00412793
push edi
push eax
push ebx
mov ecx, esi
call fcn.00410e80
xor ebx, ebx
cmp eax, ebx
je 0x4111af
test byte [esi + 0x38], 0x10
je 0x41117d
push 4
pop edi
mov ecx, esi
call fcn.0041468d
test ah, 1
je 0x411175
push 5
pop edi
push edi
mov ecx, esi
call fcn.00412237
cmp dword [esi + 0x1c], ebx
je 0x4111af
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041473f
jmp 0x4111af
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4111c3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x4111dc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4111dc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00410c07
cmp dword [esi + 0x54], ebx
je 0x4111f8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x414389
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4143cc
call fcn.00417eda
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4143cc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4143e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004134ee
test ebx, ebx
mov esi, eax
je 0x4143e5
test edi, edi
je 0x4143e5
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x415948
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x421c28]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x415997
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x415997
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4159a3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004057d4
leave
ret 8

Function at 0x4165e5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x421c28]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x416632
push dword [ebp + 8]
call fcn.004180ef
mov esi, eax
test esi, esi
je 0x41665a
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x41665a
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x41bfcc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004057d4
leave
ret 0xc

Function at 0x4168d7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x421c28]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x416935
push 0x41ae04
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0040574c
add esp, 0x10
cmp eax, 0xffffffff
je 0x416949
cmp eax, esi
jae 0x416949
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41694b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x416900
jmp 0x41694c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.004057d4
leave
ret
Function at 0x41696c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x421c28]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x416a0e
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x416b10
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x416abe
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416b11
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416ab3
cmp dword [ebp - 0x24], 1
jne 0x416ab3
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x41ae14
push eax
call fcn.004057e2
add esp, 0xc
cmp eax, 1
jne 0x416ab3
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x416b11
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x416b11
lea ecx, [ebp - 0x18]
push ecx
push 0x416956
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x416b11
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x416b37
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.004168d7
cmp eax, ebx
pop ecx
pop ecx
jne 0x416b39
inc edi
cmp edi, esi
jl 0x416b20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004057d4
leave
ret 4
Function at 0x416b48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4213fc
je 0x416c04
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416bec
mov esi, dword [ebx + 4]
jmp 0x416be6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416bd6
cmp dword [ebp - 0xc], 4
jne 0x416bd6
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x416bce
or dword [eax + 0x9c], ecx
jmp 0x416bd6
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x416b9a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x416b7d
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x416ff1
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x418ffe
call fcn.00405818
sub esp, 0x11c
mov eax, dword [0x421c28]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x4170ea
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x4170be
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.0040346f
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00416ff1
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call section..text
test bl, bl
jne 0x4170be
or dword [ebp - 4], 0xffffffff
jmp 0x41702f
cmp esi, 0x103
je 0x4170ce
cmp esi, 0x3f2
jne 0x4170de
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.004057d4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x418269
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41829e
cmp edi, dword [esi + 0xc]
jge 0x41829e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41829e
cmp edi, dword [eax + 8]
jge 0x41829e
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4182a0
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4183a4
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4183d8
jmp fcn.0040f6c2
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x418449
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x418542
cmp eax, dword [edi + 0xc]
jge 0x418542
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41849a
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41852b
cmp dword [ebp + 0xc], ebx
je 0x41852b
jmp 0x4184c4
push 0x10
call fcn.00418135
cmp eax, ebx
je 0x4184b0
mov ecx, eax
call fcn.0041839b
mov esi, eax
jmp 0x4184b2
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4184db
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4184eb
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4184fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040f6c2
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00405e60
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41853d
cmp ecx, dword [esi + 8]
jge 0x41853d
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x418543
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x418602
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x418630
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41864e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041856c
jmp 0x41864e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41864e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041856c
test edi, edi
mov eax, edi
jne 0x418638
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4248ac]
test ecx, ecx
je 0x418701
jmp 0x418601
ret 8
Function at 0x4010d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dc98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov word [ebp - 0x48], ax
mov eax, edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401117
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x48]
call fcn.00403780
mov dword [ebp - 4], ebx
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401150
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x2c]
call fcn.00403780
push 4
mov eax, str..
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403650
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x40118c
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x2d0]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401239
test byte [ebp - 0x2d0], 0x10
jne 0x40121c
push 0x410130
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00403ee0
push eax
lea eax, [ebp - 0x2a4]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00403fd0
add esp, 0x10
cmp dword [eax + 0x14], esi
jb 0x4011dd
mov eax, dword [eax]
push eax
call fcn.00404902
add esp, 4
cmp dword [ebp - 0x50], esi
jb 0x4011f7
mov edx, dword [ebp - 0x64]
push edx
call fcn.004044b8
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x6c], esi
jb 0x40121c
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004044b8
add esp, 4
lea edx, [ebp - 0x2d0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4011a5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x18], esi
jb 0x40124a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004044b8
add esp, 4
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x34], esi
jb 0x40126b
mov edx, dword [ebp - 0x48]
push edx
call fcn.004044b8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004042bb
mov esp, ebp
pop ebp
ret
Function at 0x401510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x40152f
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401527
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401527
lea eax, [esi + 1]
push ebx
push eax
call fcn.004041d3
push esi
mov ebx, eax
push edi
push ebx
call fcn.00406ea0
mov eax, ebx
add esp, 0x10
mov byte [ebx + esi], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401570
mov esi, dword [ebp + 8]
sub eax, edx
mov edi, eax
mov eax, ebx
call fcn.00403420
push ebx
call fcn.004044c3
mov ecx, dword [ebp - 4]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401e20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov edi, ecx
push 2
mov dword [ebp - 0x254], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x250], esi
cmp esi, 0xffffffff
je 0x401e77
lea eax, [ebp - 0x24c]
push eax
push esi
mov dword [ebp - 0x24c], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401e89
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004042bb
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [ebx]
xor ecx, ecx
lea eax, [ebp - 0x228]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], cx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401eb0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x228]
lea esi, [ebp - 0x20]
call fcn.00403780
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x20]
mov eax, esi
cmp ecx, 8
jae 0x401fba
lea eax, [ebp - 0x20]
mov ebx, eax
mov edx, dword [ebp - 0x10]
lea ebx, [ebx + edx*2]
cmp ecx, 8
jae 0x401ef2
lea esi, [ebp - 0x20]
cmp esi, ebx
je 0x401f1d
mov edi, eax
sub edi, esi
lea ebx, [ebx]
movzx eax, word [esi]
push eax
call fcn.00404e53
mov word [edi + esi], ax
add esi, 2
add esp, 4
cmp esi, ebx
jne 0x401f00
mov edi, dword [ebp - 0x254]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f22
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x20]
push ecx
call fcn.004031b0
test eax, eax
jne 0x401f69
mov edx, dword [ebp - 0x244]
push edx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401f69
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 8
jb 0x401f7b
mov eax, dword [ebp - 0x20]
push eax
call fcn.004044b8
add esp, 4
mov edx, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401e90
mov eax, dword [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004042bb
mov esp, ebp
pop ebp
ret
mov ebx, esi
jmp 0x401ee4
Function at 0x402260
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x4022c3
push edi
push esi
call fcn.004041d3
mov edx, dword [ebp + 8]
add esp, 4
mov edi, eax
push edi
push esi
push ebx
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4022b9
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x410130
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edx, dword [ebp - 8]
movzx ebx, word [edx + 0x12]
push edi
call fcn.004044c3
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4022d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40da98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41207c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x2c], ax
xor ebx, ebx
push 0x2e
mov eax, str.TypeLib91493440_5A91_11CF_8700_00AA0060263B
lea esi, [ebp - 0x2c]
mov edi, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00403780
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov dword [ebp - 4], ebx
cmp eax, 4
ja case.0x402330.13
jmp dword [eax*4 + 0x4023fc]
mov eax, str.2.90win32
jmp 0x402351
mov eax, str.2.a0win32
jmp 0x402351
mov eax, str.2.b0win32
jmp 0x402351
mov eax, str.2.c0win32
push 0xc
lea ecx, [ebp - 0x2c]
call fcn.00403650
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402367
lea eax, [ebp - 0x2c]
push ebx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4023b3
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x402390
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4023a9
mov bl, 1
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x4023c5
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004044b8
add esp, 4
mov al, bl
jmp 0x4023dd
cmp dword [ebp - 0x18], 8
jb 0x4023db
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004044b8
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004042bb
mov esp, ebp
pop ebp
ret