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

Disassembly:
push esi
sub esp, 0x18
mov byte [0x7bf728], 0
push str.._settings.ini
push 0
push 0x10004119
push str.Windowed
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
and esi, 0xff
je 0x10001c3d
lea eax, [esp + 8]
mov dword [eax], 1
push 4
push eax
push 0x4586f2
call fcn.10001674
add esp, 0xc
cmp esi, 2
jne 0x10001c3d
lea eax, [esp + 3]
mov byte [eax], 0xe9
push 1
push eax
push 0x45728f
call fcn.10001674
add esp, 0xc
test al, al
je 0x10001c3d
push 0x100018e6
push 0x45728f
call fcn.10001705
add esp, 8
push str.._settings.ini
push 0
push str.Enable
push str.PostProcessFX
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10001ccc
mov byte [0x830a0c], 1
push str.._settings.ini
push 0
push str.Bloom
push str.PostProcessFX
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jle 0x10001ccc
cvtsi2ss xmm0, eax
minss xmm0, dword [0x10004004]
movss dword [esp + 4], xmm0
lea eax, [esp + 0x12]
mov byte [eax], 0xba
mov dword [eax + 1], 0
mov byte [eax + 5], 0x90
push 6
push eax
push 0x6523e0
call fcn.10001674
add esp, 0xc
lea eax, [esp + 0xc]
movss xmm0, dword [esp + 4]
movss dword [eax], xmm0
push 4
push eax
push 0x6523e1
call fcn.10001674
add esp, 0xc
push str.._settings.ini
push 0
push str.DebugMenu
push 0x100040ea
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x10001cf3
xor eax, eax
mov byte [0x7c1c54], al
mov byte [0x7c1c55], al
add esp, 0x18
pop esi
ret

Function at 0x10001db2
Capabilities:
Set current directory

Disassembly:
push esi
sub esp, 0x104
cmp dword [esp + 0x110], 1
jne 0x10001e3a
mov esi, dword [esp + 0x10c]
call fcn.1000176a
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x400128], 0x455cad51
jne 0x10001e47
mov esi, esp
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10001e17
mov cl, byte [esp]
cmp cl, 0x5c
cmove eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x10001df9
test eax, eax
je 0x10001e17
mov byte [eax], 0
mov eax, esp
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call fcn.10001e60
mov dword [0x10005410], eax
call fcn.100018f5
call fcn.10001bc5
call fcn.10001cf8
call fcn.100017cc
call fcn.100017fc
xor eax, eax
inc eax
add esp, 0x104
pop esi
ret 0xc
push 0x10
push str.GangstaPatch
push str.Youre_using_wrong_game_version__only_v1.00.2_is_usable__nVisit_abandonware_site_for_download_or_find_alternative_way_to_obtain_this_version.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
inc ecx
int 0x29
Function at 0x10001e60
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x10005428]
test eax, eax
jne 0x10001ec6
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10001ec1
mov dword [esp], 0x54535253
mov dword [esp + 0xb], 0x6b6f6f
mov dword [esp + 8], 0x6f486e69
mov dword [esp + 4], 0x4d594957
mov byte [esp], 0x56
xor ecx, ecx
inc ecx
mov dl, byte [ecx + 0x10004043]
xor byte [esp + ecx], dl
inc ecx
cmp ecx, 0xe
jne 0x10001ea1
mov ecx, esp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10005428], eax
jmp 0x10001ec6
mov eax, dword [0x10005428]
add esp, 0x10
ret
Function at 0x10002588
Capabilities:
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [ecx]
test eax, eax
je 0x100025dc
mov esi, ecx
cmp dword [ecx + 8], 0
je 0x100025cd
xor ebx, ebx
inc ebx
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
push dword [eax + ebx*4 - 4]
push 0
push 0x5a
call ebp
test eax, eax
je 0x100025c1
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, dword [esi + 8]
jae 0x100025cb
mov eax, dword [esi]
inc ebx
jmp 0x100025a3
mov eax, dword [esi]
push eax
push 0
push dword [0x10005424]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x307d0750
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x14b528c4
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401bb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x70
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x80]
push edi
mov ebx, ecx
mov ecx, 0x11
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x14]
inc eax
push eax
mov dword [esp + 0x40], 0x44
call fcn.004687fd
mov edi, eax
mov eax, dword [esi + 0x18]
mov ebp, 0x10
add esp, 4
cmp eax, ebp
jb 0x401c05
mov ecx, dword [esi + 4]
jmp 0x401c08
lea ecx, [esi + 4]
mov edx, edi
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401c10
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.00401b10
cmp dword [eax + 0x18], ebp
jb 0x401c2f
mov ecx, dword [eax + 4]
jmp 0x401c32
lea ecx, [eax + 4]
cmp dword [ebx + 0x18], ebp
jb 0x401c3c
mov eax, dword [ebx + 4]
jmp 0x401c3f
lea eax, [ebx + 4]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x40]
push edx
push ecx
push 0
push 0
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, dword [esp + 0x38]
setne bl
cmp eax, ebp
jb 0x401c76
mov eax, dword [esp + 0x24]
push eax
call fcn.004687f8
add esp, 4
push edi
call fcn.004687f8
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x70
ret 4
Function at 0x4029e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x47741b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x4bb344]
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x12c], eax
push esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], 1
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x148]
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x13c], ebx
jb 0x402a4c
mov eax, dword [eax + 4]
jmp 0x402a4f
add eax, 4
lea ecx, [esp + 8]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402abe
mov eax, dword [esp + 0x14c]
cmp dword [eax + 0x18], 0x10
jb 0x402a7c
mov eax, dword [eax + 4]
jmp 0x402a7f
add eax, 4
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x14]
push edx
push ebx
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402abe
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402aa6
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004015f0
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x402ad1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x144]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401500
cmp dword [esp + 0x2c], 0x10
jb 0x402b08
mov eax, dword [esp + 0x18]
push eax
call fcn.004687f8
add esp, 4
mov ecx, dword [esp + 0x134]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
pop ebx
call fcn.0044de14
add esp, 0x138
ret 0xc
Function at 0x402b30
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4bb344]
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x10c], eax
cmp dword [esi + 0x38], 0x10
mov dword [esp + 8], 0
mov ebp, 0x496870
jb 0x402b5e
mov eax, dword [esi + 0x24]
jmp 0x402b61
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402bc7
cmp dword [esi + 0x38], 0x10
jb 0x402b77
mov esi, dword [esi + 0x24]
jmp 0x402b7a
add esi, 0x24
mov eax, dword [esp + 0x118]
cmp dword [eax + 0x18], 0x10
jb 0x402b8c
mov eax, dword [eax + 4]
jmp 0x402b8f
add eax, 4
mov edx, dword [str.SKUInfo]
push esi
push 0xff
lea ecx, [esp + 0x14]
push ecx
push 0x496870
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bb4
sub eax, edx
mov dword [esp + 8], eax
je 0x402bc7
lea ebp, [esp + 0xc]
mov esi, dword [esp + 0x114]
mov eax, ebp
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], 0
mov byte [esi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402be5
sub eax, edx
push eax
push ebp
mov ecx, esi
call fcn.004015f0
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
pop ebp
call fcn.0044de14
add esp, 0x108
ret 8
Function at 0x406d20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47789b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x4bb344]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x284], eax
xor ebx, ebx
xor eax, eax
mov ecx, 0x93
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edi, [esi + 4]
jb 0x406d76
mov eax, dword [edi]
jmp 0x406d78
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x406d8b
push 0x5c
push 1
mov ecx, esi
call fcn.00404a70
push 0x496c48
call fcn.0044e2fd
add esp, 4
push eax
push 0x496c48
mov ecx, esi
call fcn.00404950
cmp dword [esi + 0x18], 8
jb 0x406dad
mov edi, dword [edi]
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
je 0x406ef1
mov edi, 7
mov edi, edi
test byte [esp + 0x30], 0x10
je 0x406ece
lea ecx, [esp + 0x5c]
push 0x496c44
push ecx
call fcn.0044e8d3
add esp, 8
test eax, eax
je 0x406ece
lea edx, [esp + 0x5c]
push 0x496c3c
push edx
call fcn.0044e8d3
add esp, 8
test eax, eax
je 0x406ece
lea eax, [esp + 0x5c]
push 0x496c2c
push eax
call fcn.0044e8d3
add esp, 8
test eax, eax
je 0x406ece
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044e2fd
add esp, 4
push eax
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [esp + 0x5c]
push eax
call fcn.0044e2fd
add esp, 4
cmp eax, 2
je 0x406e66
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044e2fd
add esp, 4
cmp eax, 5
jne 0x406ece
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.0044e2fd
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404cf0
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x298], ebx
call fcn.004068b0
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x294], 0xffffffff
jb 0x406ec1
mov edx, dword [esp + 0x18]
push edx
call fcn.004687f8
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406dd0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x406efc
xor eax, eax
jmp 0x406f14
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
xor ecx, ecx
cmp ecx, eax
mov ecx, dword [esp + 0x28c]
sbb eax, eax
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
neg eax
call fcn.0044de14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ad0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496e80
push 0x44d514
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x38]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x407b20
xor al, al
jmp 0x407b92
mov edx, dword [ebp - 0x48]
mov byte [edx], 0xc3
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0x140
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x407b4c
xor al, al
jmp 0x407b92
mov byte [ebp - 0x3d], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
push 0x407b7e
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x477a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4bb344]
push ebx
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x2c], eax
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
mov esi, dword [esp + 0x48]
mov edi, esi
mov dword [esp + 0x3c], ebp
and edi, 0xf
call fcn.00471dc6
mov ebx, dword [eax + 0xc]
mov eax, dword [esp + 0x4c]
push eax
call fcn.00408320
add esp, 4
shr esi, 4
inc esi
push eax
movzx ecx, si
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
cmp eax, ebp
je 0x408fdf
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x408fdf
mov esi, eax
xor ecx, ecx
mov ax, word [esi]
add esi, 2
cmp ax, bp
je 0x408fd9
cmp ecx, edi
movzx ebx, ax
je 0x409032
lea esi, [esi + ebx*2]
inc ecx
cmp ecx, 0x10
jl 0x408fc4
mov esi, dword [esp + 0x44]
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push edx
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404be0
cmp dword [esp + 0x2c], 8
jb 0x409014
mov eax, dword [esp + 0x18]
push eax
call fcn.004687f8
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.0044de14
add esp, 0x30
ret
lea edx, [ebx + ebx + 2]
push edx
call fcn.004687fd
push ebx
mov edi, eax
push esi
push edi
call fcn.0044e935
push edi
mov word [edi + ebx*2], bp
call fcn.0044e2fd
add esp, 0x14
push eax
push edi
lea ecx, [esp + 0x1c]
call fcn.00404cf0
push edi
call fcn.004687f8
mov esi, dword [esp + 0x48]
add esp, 4
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x1c]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebp
push eax
mov ecx, esi
mov word [esi + 4], bp
call fcn.00404be0
cmp dword [esp + 0x2c], 8
jb 0x409014
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x40900c

Function at 0x40acd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40ace9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40acfd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40ad1e
cmp esi, eax
jae 0x40acf7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40ad10
cmp esi, eax
jae 0x40acf7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40dc70
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x40dc90
Capabilities:
Set registry value

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

Function at 0x40dcc0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40dcd2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40e250
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4bb344]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x40e2ba
test ecx, ecx
je 0x40e2ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x40e2c8
test ecx, ecx
je 0x40e36b
push ecx
jmp 0x40e365
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x40e332
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040e250
mov edi, eax
test edi, edi
jne 0x40e384
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x40e2f4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40e349
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40e36b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.0044de14
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x40e393
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.0044de14
add esp, 0x11c
ret 4
Function at 0x40e740
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4bb344]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x3c], eax
mov esi, ecx
je 0x40e8dd
mov ebx, dword [esp + 0x54]
cmp ebx, ebp
je 0x40e8dd
push edi
mov dword [ebx], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
shl eax, 1
cmp eax, 0x64
jge 0x40e796
mov eax, 0x3e8
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x40e7b0
mov byte [eax], 0
cmp eax, ebp
mov dword [esp + 0x48], ebp
jne 0x40e7c9
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x8007000e
jmp 0x40e8e2
mov dword [esi], edi
cmp byte [edi], 0
mov dword [esp + 0x50], ebp
je 0x40e823
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, dword [esi]
cmp byte [edi], 0x25
push edi
jne 0x40e7f4
call ebp
mov edi, eax
mov dword [esi], edi
cmp byte [edi], 0x25
jne 0x40e83b
push edi
call ebp
sub eax, edi
push eax
lea ecx, [esp + 0x14]
push edi
call fcn.0040dd10
test eax, eax
je 0x40e8c4
mov eax, dword [esi]
push eax
call ebp
mov ecx, eax
mov dword [esi], eax
cmp byte [ecx], 0
jne 0x40e7e0
mov ebx, dword [esp + 0x54]
mov eax, dword [esp + 0x18]
xor ebp, ebp
mov edx, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [ebx], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40e8e2
push 0x25
push edi
call fcn.0040deb0
mov edi, eax
add esp, 8
test edi, edi
je 0x40e8ab
mov ecx, dword [esi]
sub eax, ecx
cmp eax, 0x1f
jg 0x40e892
inc eax
push eax
push ecx
lea eax, [esp + 0x24]
push eax
call ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 4]
call fcn.0040e700
test eax, eax
je 0x40e8ab
push eax
lea ecx, [esp + 0x14]
call fcn.0040e5a0
test eax, eax
je 0x40e8c4
cmp dword [esi], edi
je 0x40e80b
mov edx, dword [esi]
push edx
call ebp
cmp eax, edi
mov dword [esi], eax
jne 0x40e882
jmp 0x40e80b
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80004005
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40e8e2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x80020009
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40e8e2
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x54], 0x8007000e
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x50]
jmp 0x40e8e2
mov eax, 0x80004003
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x30]
pop ebx
call fcn.0044de14
add esp, 0x3c
ret 8
Function at 0x412780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
push 0x41
pop ecx
xor ebx, ebx
push 0x41
xor eax, eax
mov byte [ebp - 0x230], bl
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x128], bl
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareWildTangentCDA_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4127e3
xor eax, eax
jmp 0x4128d5
push esi
push 5
pop eax
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
mov edi, str.FileName_d_d_d_d
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.0044f900
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
jne 0x4128b7
push dword [ebp - 4]
inc dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push 9
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x412873
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x412873
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x412873
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x4128c7
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push eax
call fcn.0044f900
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
je 0x412838
cmp dword [ebp - 0x18], ebx
jne 0x4128bb
xor eax, eax
jmp 0x4128d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop edi
pop ebx
leave
ret