joyce8/EMBER2024-capa huggingface dataset:
Function at 0x268e99f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x268ebb58
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
call fcn.268cccf1
xor eax, eax
mov dword [esp + 0xc], eax
fld qword [0x2691d668]
fstp qword [esi + 0x48]
mov dword [esi], 0x2691d5ec
fld qword [0x2691d668]
mov dword [esi + 0x34], eax
fstp qword [esi + 0x40]
mov dword [esi + 0x68], eax
fld qword [0x2691d668]
mov dword [esi + 0x6c], eax
fstp qword [esi + 0x50]
mov dword [esi + 0x70], eax
mov dword [esi + 0x30], 0x200
mov dword [esi + 0x2c], 9
mov dword [esi + 0x38], 0x102
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], eax
mov word [esi + 0x5c], ax
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x1000303e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x80000000
jbe 0x10003086
xor eax, eax
mov al, byte [ebp - 0xc]
cmp eax, 4
jge 0x10003086
mov eax, dword [ebp + 8]
push eax
call fcn.1000242a
add esp, 4
mov dword [0x1000815c], eax
mov eax, dword [0x1000815c]
jmp 0x10003176
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x10003153
mov dword [0x1000815c], 0
cmp dword [0x10008158], 0
jne 0x100030e3
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1000317d
push 0x1388
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100030e3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10008158], 1
mov eax, dword [0x1000815c]
jmp 0x10003176
mov dword [0x1000815c], 0
mov eax, dword [0x1000815c]
jmp 0x10003176
mov dword [0x1000815c], 2
cmp dword [0x10008154], 0
je 0x1000313a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x10008154], 0
je 0x1000313a
mov eax, 1
jmp 0x10003176
mov eax, dword [0x1000815c]
jmp 0x10003176
mov eax, dword [0x1000815c]
jmp 0x10003176
cmp dword [ebp - 0x10], 0
je 0x10003091
cmp dword [ebp - 0x10], 1
je 0x10003101
cmp dword [ebp - 0x10], 2
je 0x100030ed
jmp 0x10003144
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x449559
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ddf80]
jne 0x449563
repz ret
jmp fcn.0044bbfe

Function at 0x453288
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ddf80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044eb02
and dword [ebp - 0x14], 0
cmp dword [0x5dfcf4], 0
mov dword [ebp - 0x18], eax
jne 0x45333b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4533e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4533e3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5dfcf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5dfcf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5dfcfc], eax
call edi
push eax
call esi
mov dword [0x5dfd04], eax
test eax, eax
je 0x45333b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5dfd00], eax
mov eax, dword [0x5dfd00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x453394
cmp dword [0x5dfd04], ecx
je 0x453394
push eax
call esi
push dword [0x5dfd04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x453394
test ebx, ebx
je 0x453394
call edi
test eax, eax
je 0x45338b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45338b
test byte [ebp - 8], 1
jne 0x453394
or dword [ebp + 0x10], 0x200000
jmp 0x4533c7
mov eax, dword [0x5dfcf8]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4533c7
mov eax, dword [0x5dfcfc]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5dfcf4]
call esi
test eax, eax
je 0x4533e3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4533e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449559
leave
ret
Function at 0x401000
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ntdll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.RtlAdjustPrivilege
push esi
call ebx
push str.NtRaiseHardError
push esi
mov edi, eax
call ebx
mov esi, eax
test edi, edi
je 0x401064
test esi, esi
je 0x401064
lea eax, [ebp - 0x15]
push eax
push 0
push 1
push 0x13
call edi
lea ecx, [ebp - 0x20]
push ecx
push 6
push 0
push 0
push 0
push 0xc0000022
call esi
add esp, 0x28
lea edx, [ebp - 0x1c]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x10007
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401dd1
mov esp, ebp
pop ebp
ret
Function at 0x401dd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401ddb
repz ret
jmp fcn.00401f81

Function at 0x403e7b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402dd2
and dword [ebp - 0x14], 0
cmp dword [0x415564], 0
mov dword [ebp - 0x18], eax
jne 0x403f2e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403fd6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403fd6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x415564], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x415568], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41556c], eax
call edi
push eax
call esi
mov dword [0x415574], eax
test eax, eax
je 0x403f2e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x415570], eax
mov eax, dword [0x415570]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403f87
cmp dword [0x415574], ecx
je 0x403f87
push eax
call esi
push dword [0x415574]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403f87
test ebx, ebx
je 0x403f87
call edi
test eax, eax
je 0x403f7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x403f7e
test byte [ebp - 8], 1
jne 0x403f87
or dword [ebp + 0x10], 0x200000
jmp 0x403fba
mov eax, dword [0x415568]
cmp eax, dword [ebp - 0x18]
je 0x403fba
push eax
call esi
test eax, eax
je 0x403fba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403fba
mov eax, dword [0x41556c]
cmp eax, dword [ebp - 0x18]
je 0x403fba
push eax
call esi
test eax, eax
je 0x403fba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x415564]
call esi
test eax, eax
je 0x403fd6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403fd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401dd1
leave
ret
Function at 0x4032dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404eb4
test esi, esi
jne 0x403312
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404fa4
jmp 0x403330
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403180
mov edi, eax
test esi, esi
je 0x403330
cmp dword [ebx], 0
je 0x403330
dec esi
jmp 0x403319
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f18
xor eax, eax
push ebp
push 0x403f11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403f54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45a020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c044], 0
je 0x404d95
cmp word [0x45c218], 0xd7b2
jne 0x404d5d
cmp dword [0x45c220], 0
jbe 0x404d5d
mov eax, 0x45c214
call dword [0x45c230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404dbc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a02c], 0
jne 0x404db1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4062bc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40633f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40633f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406508
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4063c8
xor eax, eax
push ebp
push 0x4063c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004060f8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063a6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406528
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4063a6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063c8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4064e2
cmp byte [ebp - 0xd], 0
jne 0x40640f
cmp byte [ebp - 0x12], 0
je 0x4064e2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406428
dec ebx
cmp byte [ebx], 0x2e
je 0x406437
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406427
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4064e2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406474
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4064e2
cmp byte [ebp - 0xd], 0
je 0x4064e2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4064e2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408a68
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408aba
test eax, edx
je 0x408abd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408a7d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408aa3
add ecx, 4
js 0x408a93
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408aa0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408ac9
test edx, edx
jne 0x408a70
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bdd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be09
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404fa4
jmp 0x40be12
mov eax, ebx
mov edx, esi
call fcn.00404f08
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be1c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40be3e
movzx eax, byte [esp]
jmp 0x40be40
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c61c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c494
mov eax, dword [0x45ba38]
cmp byte [eax], 0
je 0x40c698
mov eax, dword [0x45b864]
call fcn.00403700
call fcn.00402fec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004094dc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c6e0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c6ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45b810]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45e7f0]
call fcn.004060a0
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cf44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d01a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404f4c
lea eax, [ebp - 4]
call fcn.004053b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405360
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d004
mov eax, ebx
call fcn.00402e90
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cffd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405360
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cfe7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d02c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cfe7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d004
mov eax, dword [ebp - 0x10]
call fcn.00402eac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d021
lea eax, [ebp - 4]
call fcn.00404eb4
ret

Function at 0x41bec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4609e4
cmp dword [edi], 0
jne 0x41bf3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4609e0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45aad4
mov ecx, 2
call fcn.00403080
mov edx, 0x41be98
lea eax, [esi + 5]
call fcn.0041beb8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041beb8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41bf11
mov dword [0x4609e0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41c7f4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0041c270
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405360
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41c853
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45b96c]
mov dl, 1
mov eax, dword [0x41c168]
call fcn.0040c7dc
call fcn.004048fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41c85c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405360
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41c8b4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45bb50]
mov dl, 1
mov eax, dword [0x41c168]
call fcn.0040c7dc
call fcn.004048fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041c2a0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41ced4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405350
xor eax, eax
push ebp
push 0x41cf52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405360
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x41cf1d
mov eax, dword [ebx + 4]
call fcn.00405360
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
movzx eax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf59
lea eax, [ebp - 4]
call fcn.00404eb4
ret