joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403498
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xdfc]
mov dword [ebp + 0x64], eax
imul eax, eax, 0x1a8
lea ecx, [eax + ebx + 0xb8]
push edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
lea edx, [ebp + 0x68]
mov dword [ebp + 0x5c], ecx
call fcn.00407414
mov eax, dword [ebp + 0x70]
push 0x419495
lea edi, [ebx + 0x1594]
push edi
mov dword [ebx + 0xe5c], eax
mov dword [ebp + 0x74], str._N__m__L
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [str._N__m__L], 0
je 0x403697
push esi
mov esi, 0x104
mov edx, dword [ebp + 0x74]
mov al, byte [edx]
cmp al, 0x24
jne 0x403655
inc edx
mov al, byte [edx]
cmp al, 0x62
mov dword [ebp + 0x74], edx
jne 0x403536
push dword [ebp + 0x70]
push str._d_bpp
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40363a
cmp al, 0x64
jne 0x40356f
cmp dword [ebx + 0xb0], 2
jb 0x403650
push 0x80
push str.Display__d
mov edx, str.MTxMonitor
lea ecx, [ebp - 0xa4]
call fcn.00405703
mov eax, dword [ebp + 0x64]
inc eax
push eax
lea eax, [ebp - 0xa4]
push eax
jmp 0x403524
cmp al, 0x44
jne 0x40357b
mov edx, dword [ebp + 0x5c]
jmp 0x403648
cmp al, 0x4c
jne 0x403595
lea eax, [ebp - 0x24]
push eax
call fcn.00403436
test eax, eax
je 0x403650
jmp 0x40363a
cmp al, 0x6d
jne 0x4035d2
push 0x80
push str._dx_d___d_bpp_
mov edx, str.TxMode
lea ecx, [ebp - 0xa4]
call fcn.00405703
push dword [ebp + 0x70]
lea eax, [ebp - 0xa4]
push dword [ebp + 0x6c]
push dword [ebp + 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x40363a
cmp al, 0x4e
jne 0x4035f8
push 0x80
push str.S3TrayPlus_utility
mov edx, str.TrayIconName
lea ecx, [ebp - 0xa4]
call fcn.00405703
lea edx, [ebp - 0xa4]
jmp 0x403648
cmp al, 0x6e
jne 0x403603
mov edx, str.S3Tray_Plus
jmp 0x403648
cmp al, 0x72
jne 0x403621
push dword [ebp + 0x6c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x68]
push str._dx_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40363a
cmp al, 0x75
jne 0x40363f
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp + 0x60], 0x80
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 0x24]
jmp 0x403648
cmp al, 0x24
jne 0x403650
mov edx, 0x419954
mov ecx, edi
push esi
call fcn.00403391
inc dword [ebp + 0x74]
jmp 0x40368a
xor ecx, ecx
jmp 0x403670
cmp al, 0x24
je 0x403674
cmp ecx, 0x7f
jae 0x403674
inc edx
mov byte [ebp + ecx - 0xa4], al
mov al, byte [edx]
mov dword [ebp + 0x74], edx
inc ecx
test al, al
jne 0x403659
mov byte [ebp + ecx - 0xa4], 0
push esi
lea edx, [ebp - 0xa4]
mov ecx, edi
call fcn.00403391
mov eax, dword [ebp + 0x74]
cmp byte [eax], 0
jne 0x403505
pop esi
mov ecx, edi
call fcn.00406d75
pop edi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x403976
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, ecx
call fcn.00406045
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, 0x200
push eax
mov edx, ebx
lea ecx, [ebp - 0x218]
call fcn.004037d9
mov edi, eax
jmp 0x403b72
push edi
mov edx, ebx
lea ecx, [ebp - 0x218]
call fcn.004037d9
cmp byte [ebp - 0x218], 0x2f
mov edi, eax
je 0x4039d2
cmp byte [ebp - 0x218], 0x2d
jne 0x403b72
push str.startutil
lea eax, [ebp - 0x217]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403b37
push str.invokeutil
lea eax, [ebp - 0x217]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403b37
push str.exit
lea eax, [ebp - 0x217]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403a2f
or dword [esi + 0xe48], 0xffffffff
mov dword [esi + 0x5c], 1
jmp 0x403b72
push str.setdisplay
lea eax, [ebp - 0x217]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403a96
cmp byte [edi], al
je 0x403b7b
push edi
mov edx, ebx
lea ecx, [ebp - 0x218]
call fcn.004037d9
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push 0x419a94
push eax
call fcn.00410e59
add esp, 0xc
cmp eax, 1
jne 0x403b72
cmp dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x58], eax
je 0x403b72
push eax
push 2
jmp 0x403b63
push str.setres
lea eax, [ebp - 0x217]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x403b72
cmp byte [edi], al
je 0x403b7b
push edi
mov edx, ebx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
call fcn.004037d9
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push str._dx_dx_d__d
push eax
call fcn.00410e59
add esp, 0x18
cmp eax, 2
jl 0x403b72
cmp dword [ebp - 4], 0
je 0x403b1d
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xc]
shl eax, 0x10
or eax, ecx
push eax
mov eax, dword [ebp - 0x10]
shl eax, 0x10
or eax, 3
push eax
jmp 0x403b63
mov eax, dword [ebp - 0x10]
mov dword [0x421004], eax
mov eax, dword [ebp - 0xc]
mov dword [0x421000], eax
mov eax, dword [ebp - 8]
mov dword [0x420ffc], eax
jmp 0x403b72
cmp byte [edi], 0
je 0x403b7b
push edi
mov edx, ebx
lea ecx, [ebp - 0x218]
call fcn.004037d9
lea ecx, [ebp - 0x218]
mov edi, eax
call fcn.0040388c
cmp dword [ebp - 4], 0
mov dword [esi + 0x54], eax
je 0x403b72
push eax
push 0
push dword [esi + 0xe50]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp byte [edi], 0
jne 0x4039ac
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x40655c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x115], 0x5c
je 0x4065a0
push 0x419d30
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x2c], 0
lea eax, [ebp - 0x10]
je 0x4065b3
push 0x419b64
jmp 0x4065b8
push 0x419470
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_sTrayp.cfg
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, 0x420d10
call fcn.0040541f
xor eax, eax
inc eax
leave
ret 8

Function at 0x406815
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x419495
push edx
mov dword [ebp - 0xc], edx
mov esi, ecx
call ebx
and dword [ebp - 4], 0
cmp byte [esi + 1], 0x3a
lea eax, [ebp - 0x42c]
je 0x406870
push 0x410
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x419d30
lea eax, [ebp - 0x42c]
push eax
call edi
push esi
lea eax, [ebp - 0x42c]
push eax
call edi
jmp 0x406874
push esi
push eax
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x42c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.00410e47
mov edi, eax
test edi, edi
pop ecx
je 0x40694c
push edi
push esi
push 0
lea eax, [ebp - 0x42c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x406942
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
movzx ecx, byte [eax + 2]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
push ecx
push eax
lea eax, [ebp - 0x83c]
push str.StringFileInfo_02x_02x_02x_02x_s
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
mov dword [ebp - 4], eax
jne 0x40693a
push dword [ebp + 8]
lea eax, [ebp - 0x83c]
push str.StringFileInfo040904E4_s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 4], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call ebx
push edi
call fcn.00410d9d
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406ccf
Capabilities:
Set registry value

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4

Function at 0x406cfb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x100]
je 0x406d1d
push 0x41f388
jmp 0x406d22
push 0x41f38c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x100]
push eax
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret 4
Function at 0x406ddf
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
push ebx
push esi
push edi
mov esi, 0x9c
xor edi, edi
push esi
lea eax, [ebp - 0x38]
mov ebx, edx
push edi
push eax
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x70], edi
call fcn.00410a00
add esp, 0xc
test ebx, ebx
je 0x406e14
mov byte [ebx], 0
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x406e1e
mov byte [eax], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x406e46
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call esi
test eax, eax
je 0x40700f
lea ecx, [ebp - 0x24]
call fcn.00406d55
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x28], ebx
mov dword [ebp + 0x6c], eax
jne 0x406ef8
cmp dword [ebp - 0x34], 4
jne 0x406fb6
cmp dword [ebp - 0x30], 0
jne 0x406ec1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x419495
push eax
call esi
test eax, eax
je 0x406eb9
push 0x419ebc
push dword [ebp + 0x6c]
call esi
test eax, eax
je 0x406eb9
push 0x419eb8
push dword [ebp + 0x6c]
call esi
test eax, eax
je 0x406ead
push 0x419eb4
push dword [ebp + 0x6c]
call esi
test eax, eax
jne 0x406fb6
mov dword [ebp + 0x70], 2
jmp 0x406fb6
mov dword [ebp + 0x70], ebx
jmp 0x406fb6
cmp dword [ebp - 0x30], 0xa
jne 0x406ee6
cmp word [ebp - 0x2c], 0x8ae
mov dword [ebp + 0x70], 8
jne 0x406fb6
mov dword [ebp + 0x70], 0x10
jmp 0x406fb6
jbe 0x406fb6
mov dword [ebp + 0x70], 0x20
jmp 0x406fb6
push 2
pop ecx
cmp dword [ebp - 0x28], ecx
jne 0x406fb6
mov eax, dword [ebp - 0x34]
cmp eax, 3
jne 0x406f15
mov dword [ebp + 0x70], 0x80
jmp 0x406f66
cmp eax, 4
jne 0x406f23
mov dword [ebp + 0x70], 0x100
jmp 0x406f66
cmp eax, 5
jne 0x406f5a
cmp dword [ebp - 0x30], ebx
mov dword [ebp + 0x70], 0x200
je 0x406f39
cmp dword [ebp - 0x30], ecx
jne 0x406f66
cmp word [ebp + 0x5c], bx
mov dword [ebp + 0x70], 0x400
jne 0x406f4f
mov dword [ebp + 0x70], 0x800
jmp 0x406f66
jbe 0x406f66
mov dword [ebp + 0x70], 0x1000
jmp 0x406f66
cmp eax, 6
jne 0x406f66
mov dword [ebp + 0x70], 0x2000
cmp byte [ebp + 0x62], bl
jne 0x406f87
test byte [ebp + 0x71], 0x1c
je 0x406fb6
mov di, word [ebp + 0x60]
and di, 0x200
neg di
sbb edi, edi
and edi, 0xfffffff0
add edi, 0x20
jmp 0x406fb6
cmp byte [ebp + 0x62], 3
jne 0x406fb6
test byte [ebp + 0x71], 0x1c
mov edi, 0x10000000
je 0x406f9b
add edi, 0x40
test byte [ebp + 0x60], 0x80
je 0x406fa5
or edi, ebx
jmp 0x406fb6
test byte [ebp + 0x60], cl
je 0x406fb6
cmp eax, 4
jne 0x406fb3
or edi, ecx
jmp 0x406fb6
or edi, 4
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406fc8
or edi, 0x80
call fcn.00406da6
test eax, eax
je 0x406fd7
or edi, 0x1000
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x406fe0
mov dword [eax], edi
cmp dword [ebp + 0x68], 0
je 0x406ffa
push dword [ebp - 0x2c]
push str.Build__d
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x7c], 0
je 0x40700c
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x407265
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [0x420c00], 0x80
mov ebx, ecx
jl 0x4072d1
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4072cd
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4072d1
xor eax, eax
jmp 0x4072dc
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x407aa3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push esi
push edi
lea eax, [ebp - 0x158]
push eax
xor esi, esi
push esi
push ecx
mov edi, edx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
ja 0x407aca
xor eax, eax
jmp 0x407b2a
push edi
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x360]
push 0x419f84
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00410a00
push 0x44
pop edi
push edi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00410a00
add esp, 0x28
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret
Function at 0x408119
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x850
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xb4]
mov dword [ebp + 0x5c], 1
mov dword [ebp + 0x58], 0x5333
call fcn.004073f5
xor ebx, ebx
push 0x1a8
mov dword [ebp + 0x54], eax
lea eax, [ebp - 0x1d4]
push ebx
push eax
mov dword [ebp + 0x60], ebx
call fcn.00410a00
movzx eax, word [esi + 0xe22]
add esp, 0xc
cmp eax, 0xa
mov dword [ebp - 0x1d4], 0x1a8
je 0x408179
cmp eax, 0xb
jne 0x408180
mov dword [ebp + 0x58], 0x1106
movzx eax, word [esi + 0xa6]
push eax
movzx eax, word [esi + 0xa0]
push eax
movzx eax, word [esi + 0xa2]
push eax
movzx eax, word [esi + 0x9c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
movzx eax, word [ebp + 0x58]
push eax
lea eax, [ebp - 0x3dc]
push str.PCI:VEN__04XDEV__04XSUBSYS__04X_04XREV__02X
push eax
call esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x4e0]
push dword [ebp + 0x70]
push dword [ebp + 0x6c]
push str._dx_d_x__dHz
push eax
call esi
add esp, 0x30
push ebx
lea eax, [ebp - 0x1d4]
push eax
push ebx
jmp 0x4082ca
push dword [ebp + 0x60]
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x2d8]
push str._s__d
push eax
call esi
lea eax, [ebp - 0x2d8]
push 0x5c
push eax
call fcn.00410ed0
add esp, 0x18
jmp 0x408224
mov cl, byte [eax]
cmp cl, bl
je 0x408228
cmp cl, 0x5c
jne 0x40821a
mov byte [eax], 0x3a
push 0x5c
push eax
call fcn.00410ed0
pop ecx
pop ecx
cmp eax, ebx
jne 0x40820c
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x7ec]
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionControl_PanelSettingsVideo_s_s_s
push eax
call esi
push dword [ebp + 0x74]
lea eax, [ebp - 0x2c]
push str._d_bpp
push eax
call esi
add esp, 0x20
push dword [ebp + 0x7c]
lea eax, [ebp + 0x70]
push eax
mov edx, 0xf003f
lea ecx, [ebp - 0x7ec]
mov dword [ebp + 0x78], ebx
call fcn.0040695e
test eax, eax
jne 0x4082b6
cmp dword [ebp + 0x7c], ebx
je 0x40829e
push 4
lea eax, [ebp + 0x78]
push eax
push 4
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x78], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4082b6
mov ecx, dword [ebp + 0x70]
push ebx
lea edx, [ebp - 0x2c]
call fcn.00406b69
push dword [ebp + 0x70]
mov dword [ebp + 0x78], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x78]
and dword [ebp + 0x5c], eax
inc dword [ebp + 0x60]
push ebx
lea eax, [ebp - 0x1d4]
push eax
push dword [ebp + 0x60]
push dword [ebp + 0x54]
call fcn.004071a2
test eax, eax
jne 0x4081e1
mov eax, dword [ebp + 0x5c]
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x40bd5b
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov ebx, eax
mov dword [ebp - 4], esi
call fcn.0040bc55
cmp ax, 0xffff
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
je 0x40bd96
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40bd9d
xor eax, eax
jmp 0x40be4f
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bdc5
xor eax, eax
jmp 0x40be4e
mov eax, dword [ebp - 0x128]
push esi
push esi
push esi
push 2
push esi
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x40be0b
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x40bdff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40be06
mov dword [ebp - 4], 1
cmp dword [ebp + 8], esi
jne 0x40be36
push dword [ebx]
call fcn.00410e47
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x40bdbe
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x40bdbe
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40be6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
mov esi, edx
mov edx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov ecx, esi
call fcn.0040bcfe
mov edi, eax
test edi, edi
je 0x40bf02
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x40bf01
mov esi, dword [ebp + 0x14]
push 0x34
push 0
push esi
call fcn.00410a00
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
or dword [esi + 0x30], 0xffffffff
add esp, 0xc
push esi
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [esi], edi
call fcn.0040be55
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40bf91
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
test eax, eax
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
je 0x40bfaa
and word [eax + 2], 0
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x16]
push eax
push dword [ebp + 0x14]
mov ecx, edi
call fcn.0040bcfe
mov esi, eax
test esi, esi
je 0x40c14e
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x40c14d
push 0x34
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00410a00
movzx eax, word [ebp + 0x16]
or dword [ebp - 0xc], 0xffffffff
add esp, 0xc
dec eax
dec eax
mov dword [ebp - 0x3c], esi
je 0x40c037
dec eax
dec eax
je 0x40c025
and dword [ebp + 0x10], 0
jmp 0x40c04a
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
call fcn.0040ba7e
jmp 0x40c047
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x10]
mov edx, edi
mov ecx, ebx
call fcn.0040e2a0
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x40c06f
cmp dword [ebp - 0x34], edi
je 0x40c068
push dword [ebp - 0x34]
call fcn.00410d9d
pop ecx
xor esi, esi
jmp 0x40c141
cmp dword [ebp - 0x34], edi
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
je 0x40c0b3
cmp dword [ebp + 0x18], edi
je 0x40c095
cmp dword [ebp + 0x1c], edi
jle 0x40c095
push dword [ebp + 0x1c]
mov edi, dword [ebp - 0x30]
push dword [ebp + 0x18]
push dword [ebp - 0x34]
call fcn.0040bf08
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_CreatePalette]
push 1
push eax
push ebx
mov dword [ebp + 0x18], eax
call esi
push ebx
mov dword [ebp + 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
xor edi, edi
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
xor ecx, ecx
cmp dword [ebp - 0x34], ecx
mov ebx, eax
je 0x40c114
push 1
push dword [ebp + 0x1c]
push dword [ebp - 4]
call esi
push dword [ebp + 0x18]
call edi
test ebx, ebx
je 0x40c109
cmp dword [ebp + 0xc], 0
je 0x40c109
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + 2]
lea ecx, [ecx*4 + 8]
push ecx
push eax
push dword [ebp + 0xc]
call fcn.00410a60
add esp, 0xc
push dword [ebp - 0x34]
call fcn.00410d9d
pop ecx
jmp 0x40c122
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x40c122
mov word [eax], cx
mov word [eax + 2], cx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x40c12e
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 0x30]
call fcn.00410d9d
pop ecx
push dword [ebp + 0x10]
call edi
mov esi, ebx
mov ebx, dword [ebp - 4]
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x1c
Function at 0x40c4b0
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
test esi, esi
jbe 0x40c4d6
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
xor edx, eax
and edx, 0xff
mov ebx, dword [edx*4 + 0x421088]
shr eax, 8
xor eax, ebx
inc ecx
cmp ecx, esi
jb 0x40c4b7
pop ebx
ret