joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111f9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412740
sub esp, 0x198
push ebx
push ebp
mov ebp, dword [esp + 0x1a8]
push esi
push edi
push ebp
call fcn.0041130c
mov esi, dword [esp + 0x1b0]
mov ebx, dword [esp + 0x1bc]
mov edi, eax
push esi
push ebx
mov dword [esp + 0x1c], edi
call fcn.00411398
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c0]
push eax
push ecx
call fcn.004113a7
push ebx
call fcn.0041130c
add esp, 0x18
mov esi, eax
mov eax, dword [ebx]
mov ecx, dword [ebp]
cmp eax, ecx
ja 0x4127a4
jne 0x412890
cmp esi, edi
jl 0x412890
lea edx, [esp + 0x18]
push eax
push edx
call fcn.004113a7
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00411398
mov eax, dword [esp + 0x28]
sub esi, edi
mov ecx, esi
mov edi, esi
shr ecx, 5
add esp, 0x10
and edi, 0x1f
test eax, eax
mov dword [esp + 0x14], edi
lea edx, [eax + ecx]
jle 0x412805
lea ebx, [esp + edx*4 + 0x18]
lea edi, [esp + eax*4 + 0x18]
sub edx, eax
mov ebp, dword [edi]
sub edi, 4
mov dword [ebx], ebp
sub ebx, 4
dec eax
jne 0x4127e2
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1b8]
mov ebp, dword [esp + 0x1b0]
mov edi, dword [esp + 0x14]
test edx, edx
jle 0x41281d
lea eax, [esp + edx*4 + 0x18]
mov dword [eax], 0
sub eax, 4
dec edx
jne 0x41280d
mov eax, dword [esp + 0x18]
add eax, ecx
test edi, edi
mov dword [esp + 0x18], eax
je 0x412835
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00412920
add esp, 8
mov edx, dword [esp + 0x1b4]
push esi
push edx
call fcn.00411339
mov ecx, dword [ebx]
add esp, 8
test ecx, ecx
jle 0x412864
lea edx, [esp + 0x18]
lea eax, [ebx + ecx*4]
sub edx, ebx
mov esi, dword [edx + eax]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
sub eax, 4
dec ecx
jne 0x412855
mov eax, dword [ebx]
test eax, eax
jle 0x41287a
lea ecx, [ebx + eax*4]
cmp dword [ecx], 0
jne 0x41287a
dec eax
sub ecx, 4
test eax, eax
jg 0x41286d
push ebx
mov dword [ebx], eax
call fcn.0041130c
mov edi, dword [esp + 0x14]
add esp, 4
mov esi, eax
jmp 0x41278d
mov edx, dword [esp + 0x1b4]
mov eax, dword [edx]
test eax, eax
jle 0x4128ad
lea ecx, [edx + eax*4]
cmp dword [ecx], 0
jne 0x4128ad
dec eax
sub ecx, 4
test eax, eax
jg 0x4128a0
pop edi
pop esi
pop ebp
mov dword [edx], eax
pop ebx
add esp, 0x198
ret
Function at 0x4114b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4124e0
sub esp, 0x198
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1b0]
push edi
call fcn.0041130c
mov ebp, dword [esp + 0x1b0]
mov ebx, eax
push ebp
mov dword [esp + 0x18], ebx
call fcn.0041130c
add esp, 8
mov ecx, dword [edi]
mov esi, eax
mov eax, dword [ebp]
cmp eax, ecx
ja 0x412526
jne 0x4125fb
cmp esi, ebx
jl 0x4125fb
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004113a7
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00411398
sub esi, ebx
add esp, 0x10
mov ecx, esi
and esi, 0x1f
shr ecx, 5
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x4125a4
mov eax, dword [esp + 0x18]
test eax, eax
lea ebx, [eax + ecx]
jle 0x412582
lea edi, [esp + ebx*4 + 0x18]
lea edx, [esp + eax*4 + 0x18]
sub ebx, eax
mov esi, dword [edx]
sub edx, 4
mov dword [edi], esi
sub edi, 4
dec eax
jne 0x412566
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1b0]
mov esi, dword [esp + 0x14]
test ebx, ebx
jle 0x41259a
lea eax, [esp + ebx*4 + 0x18]
mov dword [eax], 0
sub eax, 4
dec ebx
jne 0x41258a
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x18], eax
test esi, esi
je 0x4125b6
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00412920
add esp, 8
mov edx, dword [ebp]
test edx, edx
jle 0x4125d2
lea ecx, [esp + 0x18]
lea eax, [ebp + edx*4]
sub ecx, ebp
mov esi, dword [ecx + eax]
xor dword [eax], esi
sub eax, 4
dec edx
jne 0x4125c7
mov eax, dword [ebp]
test eax, eax
jle 0x4125ea
lea ecx, [ebp + eax*4]
cmp dword [ecx], 0
jne 0x4125ea
dec eax
sub ecx, 4
test eax, eax
jg 0x4125dd
push ebp
mov dword [ebp], eax
call fcn.0041130c
add esp, 4
jmp 0x41250d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret
Function at 0x401647
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405120], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40508e], ecx
mov dword [0x405124], 0x30
mov dword [0x405128], 3
mov dword [0x405130], 0
mov dword [0x405134], 0
mov dword [0x40512c], 0x403148
mov eax, 0xffff0000
mov ebx, section..text
and ebx, eax
mov dword [0x405086], ebx
mov dword [0x405138], ebx
mov dword [0x405144], 0xf
mov dword [0x40514c], 0x405067
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x40513c], eax
mov dword [0x405150], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x405140], eax
push 0x405124
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x405086]
push 0
push 0
push 0x2bc
push 0x1f4
push 0xa0
push 0x12c
push 0x40000
push str.Hello_word
push str.2class
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x405118], eax
push 0
push dword [0x405118]
call sub.user32.dll_ShowWindow
push dword [0x405118]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x405154
call sub.user32.dll_GetMessageA
or eax, eax
je 0x40176b
push 0x405154
call sub.user32.dll_TranslateMessage
push 0x405154
call sub.user32.dll_DispatchMessageA
jmp 0x401741
mov eax, dword [0x40515c]
mov esi, dword [0x4051b4]
lea ecx, [0x405086]
add esi, eax
call esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x408950
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40896a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408960
mov eax, 1
add ebx, ebx
jne 0x408983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408978
jne 0x408994
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408978
xor ecx, ecx
sub eax, 3
jb 0x4089a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408a1a
mov ebp, eax
add ebx, ebx
jne 0x4089b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4089c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4089e4
inc ecx
add ebx, ebx
jne 0x4089d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4089c5
jne 0x4089e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4089c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x408a04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4089f5
jmp 0x408966
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x408a04
add edi, ecx
jmp 0x408966
pop esi
mov edi, esi
mov ecx, 0x25fd
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x408a3f
cmp byte [edi], 0
jne 0x408a24
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x408a22
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x408a87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x89f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8a70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408a45
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8a74]
or eax, eax
je 0x408a81
mov dword [ebx], eax
add ebx, 4
jmp 0x408a62
call dword [esi + 0x8a84]
mov ebp, dword [esi + 0x8a78]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x408abb
sub esp, 0xffffff80
jmp 0x403554
Function at 0x404270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4112
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x61df64]
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
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x20a
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x21c]
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], 0
call fcn.0056c4b0
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4042fc
mov eax, dword [esi]
jmp 0x4042fe
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push ebx
push dword [ebp - 0x224]
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4043a1
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404395
cmp word [ebp - 0x21c], ax
jne 0x40436e
xor ecx, ecx
jmp 0x404386
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404377
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004107f0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00567f8c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4043d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4162
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x61df64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call fcn.0056c4b0
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40444f
mov eax, dword [esi]
jmp 0x404451
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4044fa
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4044ee
cmp word [ebp - 0x21c], ax
jne 0x4044c4
xor ecx, ecx
jmp 0x4044df
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004107f0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567f8c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x61df64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call fcn.00401e70
cmp dword [eax + 0x14], 8
jb 0x404c0e
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 8]
sete bl
cmp eax, 8
jb 0x404c40
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00412560
test bl, bl
pop ebx
je 0x404c88
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.SupplyId
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404c7f
cmp dword [ebp - 0x24], 4
jne 0x404c7f
mov eax, dword [ebp - 0x28]
mov esi, 1
mov dword [edi], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00567f8c
mov esp, ebp
pop ebp
ret 4
Function at 0x404fd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a41db
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x61df64]
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
mov esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
push 0x208
push eax
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0056c4b0
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.00401e70
cmp dword [eax + 0x14], 8
jb 0x405061
mov eax, dword [eax]
lea ecx, [ebp - 0x24c]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40509b
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00412560
test esi, esi
je 0x4050d6
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x230]
push eax
call fcn.00411bc0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x4051b7
inc ecx
push ecx
jmp 0x4051a6
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0x208
jb 0x4050f2
mov ebx, dword [ebx]
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push ebx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405162
cmp dword [ebp - 0x250], 1
jne 0x405162
cmp word [ebp - 0x218], ax
jne 0x405130
xor ecx, ecx
jmp 0x40514f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405140
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004107f0
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x24c], 0
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], 0
mov word [edi], ax
lea eax, [ebp - 0x230]
push eax
call fcn.00411bc0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4051b7
inc eax
push eax
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00412560
mov eax, edi
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.00567f8c
mov esp, ebp
pop ebp
ret 8
Function at 0x4053d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a429b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x61df64]
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
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov ebx, dword [ebp + 0x14]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], 0
call fcn.0056c4b0
add esp, 8
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00405a30
add esi, 0x2cc
cmp dword [esi + 0x14], 8
jb 0x405442
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x40544a
mov ebx, dword [ebx]
cmp dword [eax + 0x14], 8
jb 0x405452
mov eax, dword [eax]
push esi
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push str.KeyName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40548a
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00412560
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
call fcn.004062c0
push str.Title
push str.KeyName
mov dword [ebp - 4], 0
call fcn.0056f458
add esp, 8
test eax, eax
jne 0x4054f6
call fcn.00406070
mov ecx, eax
call fcn.004051e0
test al, al
je 0x4054f6
push 0x5ebf20
lea ecx, [ebp - 0x248]
call fcn.00406270
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x248]
push eax
call fcn.00411bc0
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x405535
inc ecx
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x248]
call fcn.00412560
mov eax, edi
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.00567f8c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x61df64]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push ecx
lea eax, [esp + 8]
mov esi, ecx
push eax
call fcn.00405a30
add esi, 0x2cc
cmp dword [esi + 0x14], 8
jb 0x405590
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x405598
mov eax, dword [eax]
push esi
push 0
push str.VMIndexBase
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, 8
jb 0x4055c1
inc ecx
push ecx
push dword [esp + 8]
lea ecx, [esp + 0xc]
call fcn.00412560
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00567f8c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405a30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a433b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x61df64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x448]
push 7
xor eax, eax
mov dword [ebp - 0x464], 0
push str.Product
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
call fcn.004107f0
push str.Engine
push str.Product
mov dword [ebp - 4], 0
call fcn.0056f458
add esp, 8
test eax, eax
je 0x405afb
cmp dword [esi + 0x300], 0
jne 0x405afb
cmp dword [esi + 0x304], 0
jne 0x405afb
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.00411bc0
lea ecx, [ebp - 0x448]
call fcn.00412630
jmp 0x405c53
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0056c4b0
add esp, 0xc
cmp dword [esi + 0x300], 0
je 0x405b3d
push dword [esi + 0x10]
lea eax, [ebp - 0x220]
push str.Product
push str._s__d
push 0x104
push eax
call fcn.004117f0
add esp, 0x14
jmp 0x405b99
cmp dword [esi + 0x304], 0
je 0x405b99
lea eax, [ebp - 0x460]
mov ecx, esi
push eax
call fcn.00402070
cmp dword [eax + 0x14], 8
jb 0x405b5c
mov eax, dword [eax]
push eax
push str.Product
push str._s__s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004117f0
mov eax, dword [ebp - 0x44c]
add esp, 0x14
cmp eax, 8
jb 0x405b99
inc eax
lea ecx, [ebp - 0x460]
push eax
push dword [ebp - 0x460]
call fcn.00412560
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0056c4b0
add esi, 0x2cc
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x405bbd
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x405c14
cmp word [ebp - 0x220], 0
jne 0x405be9
xor ecx, ecx
jmp 0x405c01
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405bf2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x448]
call fcn.004107f0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.00411bc0
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x405c53
inc eax
lea ecx, [ebp - 0x448]
push eax
push dword [ebp - 0x448]
call fcn.00412560
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567f8c
mov esp, ebp
pop ebp
ret 8
Function at 0x405c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4380
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x61df64]
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
mov edi, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x30c], 0
je 0x405ce4
mov eax, dword [edi + 0x308]
jmp 0x405dae
lea eax, [ebp - 0x28]
push eax
call fcn.00406070
mov ecx, eax
call fcn.00401e70
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x405d00
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406180
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x405d22
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00412560
push 0x20019
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004116a0
mov esi, dword [ebp - 0x44]
test eax, eax
jne 0x405d5f
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.VNGVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x405d8d
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ebx, ebx
mov dword [edi + 0x30c], 1
cmp dword [ebp - 0x30], ebx
setne bl
mov dword [edi + 0x308], ebx
test esi, esi
je 0x405dac
push esi
call eax
mov eax, ebx
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.00567f8c
mov esp, ebp
pop ebp
ret