joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020fd
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x422456
call fcn.00418354
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040230b
test al, al
je 0x402130
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x4022b4
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00402333
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.00417cc8
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4021c6
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.004022c4
jmp 0x4021c8
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x4020b1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.00417cc8
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x402250
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402247
cmp dword [ebp - 0x30], 0x8032
jne 0x40223b
mov ecx, dword [ebx + 0x98]
call fcn.004026d0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x402214
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x402204
push dword [ebp + 8]
call fcn.0041757e
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x402289
lea ecx, [ebx + 8]
call fcn.0040248f
push ebx
call fcn.0041757e
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x402293
xor eax, eax
jmp 0x4022b4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x402662
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x40267b
xor esi, esi
jmp 0x4026a8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00418450
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4026c6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x40266d
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405fc8
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x422738
call fcn.00418354
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x406000
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x40603f
cmp cl, 0x58
je 0x40603f
push edi
call fcn.00417f72
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.004018c4
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401907
test eax, eax
je 0x406108
mov ecx, dword [ebp + 0x10]
call fcn.00410411
test eax, eax
je 0x40604a
push 0x42db84
jmp 0x406053
push eax
call esi
push eax
call fcn.00405f85
jmp 0x406005
mov ecx, dword [ebp + 0x10]
call fcn.0040fa09
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x42a1fc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00412568
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x406108
push edi
push 0x4295d8
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x42db80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406108
lea eax, [ebp - 0x2c]
push eax
call fcn.00405f85
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x406127
inc edi
cmp edi, ebx
jb 0x4060b3
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004018fc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x40610a

Function at 0x4064f2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406549
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42e82c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406540
mov byte [0x42f82c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40666e
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42f848]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40669a
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42f848]
call esi
push 0
push dword [0x42f83c]
call esi
pop esi
ret
Function at 0x40669b
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x42f848]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0040f921
cmp dword [eax], 1
je 0x406705
cmp dword [eax + 4], ebx
je 0x40675a
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40675a
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x42f848]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d5f
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00407804
test eax, eax
pop ecx
jne 0x406ebc
mov esi, 0x430280
push esi
call fcn.0040789b
test eax, eax
pop ecx
jne 0x406ebc
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x430280]
push 0x430274
mov dword [eax], ecx
call fcn.00407854
test eax, eax
pop ecx
jne 0x406ebc
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x430274]
mov dword [ebx], eax
cmp dword [0x430280], 1
jne 0x406dc2
xor eax, eax
jmp 0x406ebc
lea eax, [ebp + 8]
push eax
push 0x430278
call fcn.00406d4b
test eax, eax
jne 0x406ebc
mov eax, dword [0x430280]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x430284], eax
jne 0x406e01
push 0xfffffffffffffffc
pop eax
jmp 0x406ebc
push esi
call fcn.004078c3
mov edi, eax
pop ecx
test edi, edi
je 0x406e37
push dword [0x430284]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x430284]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406eba
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x430270], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x430064], eax
movzx eax, word [ebp + 0x14]
push 0x4070eb
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x430064]
test eax, eax
je 0x406e7a
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x406e83
xor edi, edi
jmp 0x406e8b
cmp edi, 2
jne 0x406e8b
or edi, 0xffffffff
mov eax, dword [0x430284]
test eax, eax
je 0x406eb3
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x430284]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x430274], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4073a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x407527
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x407527
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x407412
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x407527
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00407a07
push 1
push 0x4296b0
push esi
mov edi, eax
call fcn.00407a07
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x407527
test edi, edi
je 0x407527
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x4074b1
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x4074b7
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x4074c7
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x407527
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407854
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x43016c
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x42db80
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x407883
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x429698
push eax
call fcn.00418ed0
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x40789b
Capabilities:
Read .ini file

Disassembly:
push 0x43016c
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x4078c3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x407943
push esi
push 0x4295d8
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x43016c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x42db80
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407940
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x429698
push eax
call fcn.00418ed0
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x4078da
jmp 0x407943
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x407ab5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42fc58
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0x42db80
push dword [ebp + 0xc]
push dword [0x4245cc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jle 0x407b8c
mov edi, dword [ebp + 8]
push edi
call esi
push dword [ebp + 0x10]
xor ecx, ecx
cmp byte [eax + edi - 1], 0x20
mov dword [ebp + 8], eax
setne cl
mov dword [ebp + 0xc], ecx
call esi
push dword [ebp + 0x18]
mov ebx, eax
call esi
push dword [ebp + 0x1c]
add ebx, eax
call esi
add eax, dword [ebp + 8]
mov edx, ebx
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
setne cl
add eax, edx
lea eax, [ecx + eax + 1]
cmp dword [ebp + 0x14], eax
jl 0x407b8c
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x407b66
push 0x4297f8
push edi
call esi
push dword [ebp + 0x10]
push edi
call esi
cmp dword [ebp + 0x1c], ebx
je 0x407b77
push dword [ebp + 0x1c]
push edi
call esi
lea eax, [ebp - 0x104]
push eax
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x407b8c
push dword [ebp + 0x18]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ccc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and byte [ebp - 0x18], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0x42fc58
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x18]
push 0x14
mov edi, 0x42db80
and dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 8]
push dword [0x4245cc]
call esi
cmp byte [ebp - 0x18], 0x79
je 0x407d18
cmp byte [ebp - 0x18], 0x59
jne 0x407d50
cmp dword [0x430b30], 0
je 0x407d49
push ebx
lea eax, [ebp - 0x2c]
push 0x14
push eax
push edi
push dword [ebp + 0xc]
push dword [0x4245cc]
call esi
cmp byte [ebp - 0x2c], 0x79
je 0x407d50
cmp byte [ebp - 0x2c], 0x59
je 0x407d50
mov dword [ebp - 4], 1
jmp 0x407d50
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40828f
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x422798
call fcn.00418354
sub esp, 0x108
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
cmp ebx, 0x2000
mov dword [ebp - 0x10], ecx
mov dword [eax], esi
mov edi, 0xbc2
je 0x408301
cmp ebx, edi
je 0x408301
cmp ebx, 0x800704c7
jne 0x4082d7
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x4082eb
mov dword [eax], ebx
jmp 0x4083a3
test ebx, ebx
je 0x4083a3
cmp ebx, 0x1008
je 0x4083a3
mov dword [0x430b2c], 0x66d
call fcn.00406634
xor eax, eax
jmp 0x4083a5
call fcn.00412aab
test eax, eax
jne 0x408319
cmp ebx, edi
je 0x408319
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x408323
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.0040654b
test eax, eax
jne 0x408395
push 0x40
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x14], ebx
je 0x4083a3
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4083b6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ecx
mov dword [eax], ebx
call fcn.00401046
push 0x3f
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x409
stosb byte es:[edi], al
cmp byte [esi + 0x2e11], bl
jne 0x408422
push 0x42fc58
lea eax, [ebp - 0x118]
push 0x100
push eax
push 0x42db80
push str.DotNetLangPacks
push dword [0x4245cc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x118]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b559
push 1
cmp eax, ebx
pop edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
je 0x408464
push dword [0x42461c]
mov ecx, dword [ebp - 4]
push dword [0x424618]
call fcn.00407ccc
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x408464
mov dword [ebp - 8], ebx
xor edi, edi
cmp byte [esi + 0x2e11], bl
jne 0x4084cf
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x118]
push eax
call fcn.0040bf6d
mov edi, eax
cmp edi, ebx
je 0x4084cf
mov ecx, dword [ebp - 4]
push str.JInstallOptionIfSilent
push str.JOptional
call fcn.00407ccc
cmp eax, 1
jne 0x40849c
xor edi, edi
cmp edi, ebx
je 0x4084cf
cmp eax, 2
jne 0x4084cf
cmp dword [esi + 0x14b4], ebx
jne 0x4084cf
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x673
dec eax
push eax
push 0x4299bc
push 0x671
call fcn.00407b91
mov edi, eax
cmp dword [ebp - 8], ebx
je 0x408511
cmp edi, ebx
jne 0x40850c
cmp dword [ebp - 0xc], 2
jne 0x40850c
cmp dword [esi + 0x14b4], ebx
jne 0x40850c
cmp byte [esi + 0x2e11], bl
push 0xffffffffffffffff
je 0x4084f7
push 0x4299b8
jmp 0x4084fc
push 0x4299bc
mov ecx, dword [ebp - 4]
push 0x66e
call fcn.00407b91
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x408515
cmp edi, ebx
je 0x40856b
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
push eax
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00407f13
test eax, eax
jne 0x408540
call fcn.00406634
jmp 0x408567
cmp dword [ebp - 0xc], ebx
je 0x40854b
cmp dword [ebp - 0xc], 2
jne 0x40854e
push 1
pop ebx
push ebx
mov ecx, dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.0040828f
test eax, eax
jne 0x40856b
xor eax, eax
jmp 0x40856e
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc