joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10013b0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004153
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10013ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004146
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004155
xor eax, eax
pop esi
leave
ret 4

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6ffe2910
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x572b5a13
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1001fc1
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002580
call fcn.010021a4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10035f0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001dd6
cmp eax, esi
jne 0x1001dc9
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001dd9
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001db0
xor esi, esi
inc esi
mov eax, dword [0x10035ec]
cmp eax, esi
jne 0x1001dec
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001e27
mov eax, dword [0x10035ec]
test eax, eax
jne 0x1001e21
mov dword [0x10035ec], esi
push 0x10010dc
push 0x10010d0
call fcn.01001d2d
pop ecx
pop ecx
test eax, eax
je 0x1001e27
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001ef1
mov dword [0x100327c], esi
mov eax, dword [0x10035ec]
cmp eax, esi
jne 0x1001e4b
push 0x10010cc
push 0x10010c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10035ec], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001e58
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10035f4], ebx
je 0x1001e79
push 0x10035f4
call fcn.01002119
pop ecx
test eax, eax
je 0x1001e79
push ebx
push 2
push ebx
call dword [0x10035f4]
push dword [0x1003264]
push dword [0x1003268]
push dword [0x1003260]
call fcn.01001a68
add esp, 0xc
mov dword [0x1003278], eax
cmp dword [0x100326c], ebx
jne 0x1001ed7
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100327c], ebx
jne 0x1001ee5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003278]
call fcn.010021e9
ret
call fcn.010022f1
jmp 0x1001d8e
Function at 0x1002479
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
add eax, eax
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov dword [ebp + 0x18], eax
xor eax, eax
xor edi, edi
mov dword [ebp - 4], ebx
mov word [esi], ax
cmp dword [ebp + 0xc], ebx
je 0x10024d7
lea eax, [ebp - 4]
cmp byte [ebp + 0x1c], bl
je 0x10024c5
push ebx
push eax
push ebx
push 0x20007
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x10024dd
jg 0x10024f9
jmp 0x1002503
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x10024bd
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp + 0x1c]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1002507
jle 0x1002503
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x1002535
mov eax, dword [ebp + 0x1c]
cmp eax, 1
je 0x1002520
cmp eax, 2
je 0x1002520
cmp eax, 7
je 0x1002535
mov edi, 0x80004005
jmp 0x1002535
cmp eax, 7
je 0x1002535
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jbe 0x1002535
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x1002548
cmp eax, dword [ebp + 8]
je 0x1002548
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
setge al
pop ebx
leave
ret 0x18
Function at 0x401131
Capabilities:
Get common file path

Disassembly:
jmp 0x407830
push 0xffffffffffffffff
push 0x439702
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x12c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x43f145
mov ecx, esi
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x18], esi
mov byte [esi + 4], bl
call fcn.004011fe
push 0x104
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x130], ebx
mov dword [esp + 0x18], 1
call fcn.0040ec60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4078fe
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4078d8
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004011fe
push 0xd
push str.extrac32.exe
mov ecx, esi
call fcn.004015dc
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x11c
ret

Function at 0x401145
Capabilities:
Create process on windows

Disassembly:
jmp 0x403750
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.0040ec60
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add esp, 0xc
cmp dword [0x447028], 0x10
mov dword [esp], 0x3c
mov dword [esp + 4], 0x40
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jb 0x4037a7
mov eax, dword [0x447014]
mov dword [esp + 0x18], eax
jmp 0x4037af
mov dword [esp + 0x18], 0x447014
mov ecx, dword [esp + 0x48]
lea edx, [esp]
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x4037da
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x3c
ret
Function at 0x40131b
Capabilities:
Check if file exists

Disassembly:
jmp 0x408650
push 0xffffffffffffffff
push 0x4398d3
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, dword [esp + 0x158]
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
lea edi, [esi + 4]
push 0x43f145
mov ecx, esi
mov dword [esp + 0x158], ebx
mov dword [esp + 0x44], esi
mov byte [edi], bl
call fcn.004011fe
push 0x104
lea eax, [esp + 0x44]
push eax
push ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
lea ebp, [ebx + 0x10]
je 0x4087a7
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4086f1
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004011fe
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0x20], 0x2e
call fcn.0040143d
cmp eax, 0xffffffff
je 0x4087a7
push 3
push 0x43f1f8
push 3
add eax, 1
push eax
mov ecx, esi
call fcn.00401230
cmp dword [esi + 0x18], ebp
jb 0x408744
mov eax, dword [edi]
jmp 0x408746
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4087a7
cmp dword [esi + 0x18], ebp
jb 0x408759
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.004015e6
lea eax, [esp + 0x3c]
push eax
call fcn.00401523
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x15c], 1
call fcn.004014e7
cmp dword [esp + 0x38], ebp
jb 0x408860
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040eac4
add esp, 4
jmp 0x408860
push str.InstallFiles.cab
lea edx, [esp + 0x24]
push 0x447010
push edx
call fcn.00401212
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x15c], 2
call fcn.004014e7
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x150], bl
jb 0x4087ee
mov eax, dword [esp + 0x24]
push eax
call fcn.0040eac4
add esp, 4
cmp dword [esi + 0x18], ebp
jb 0x4087f7
mov eax, dword [edi]
jmp 0x4087f9
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408853
cmp dword [esi + 0x18], ebp
jb 0x40880c
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.004015e6
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401523
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x15c], 3
call fcn.004014e7
cmp dword [esp + 0x38], ebp
jb 0x408860
mov edx, dword [esp + 0x24]
push edx
call fcn.0040eac4
add esp, 4
jmp 0x408860
push ebx
push 0x43f145
mov ecx, esi
call fcn.004011fe
mov eax, esi
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x140
ret
Function at 0x401410
Capabilities:
Terminate process

Disassembly:
jmp 0x40c8f0
push 0xffffffffffffffff
push 0x43a178
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
push edi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push str.Running_Install...
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
xor ebx, ebx
mov edi, 0xf
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov eax, 0x448cb0
mov byte [esp + 0x78], 1
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c975
sub eax, esi
push eax
push 0x448cb0
lea ecx, [esp + 0x58]
call fcn.004011fe
mov eax, 0x448bb0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40c997
sub eax, edx
push eax
push 0x448bb0
lea ecx, [esp + 0x3c]
call fcn.004011fe
call fcn.00401343
test al, al
je 0x40ca66
call fcn.0040103c
test al, al
jne 0x40ca0d
call fcn.004011ea
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp eax, ebx
je 0x40c9dd
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push str.Press_ENTER_to_continue
push 0x448f68
call fcn.00401456
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.0040152d
mov ecx, esi
call fcn.00401474
call fcn.00410f2a
push 0xa
call fcn.00410e91
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004014e7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x90]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0xbc], 2
mov byte [ecx + 4], bl
call fcn.004014e7
mov byte [esp + 0xb0], 1
call fcn.004014ab
add esp, 0x38
cmp byte [0x448db4], bl
je 0x40caaa
lea eax, [esp + 0x18]
push eax
call fcn.00401348
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40ca8a
mov eax, dword [eax + 4]
jmp 0x40ca8d
add eax, 4
push 1
push 0x448ba0
push eax
call fcn.00401145
add esp, 0xc
cmp dword [esp + 0x30], esi
jb 0x40cae8
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x40cae0
lea edx, [esp + 0x18]
push edx
call fcn.00401348
mov esi, 0x10
add esp, 4
cmp dword [eax + 0x18], esi
jb 0x40cac6
mov eax, dword [eax + 4]
jmp 0x40cac9
add eax, 4
push 1
push ebx
push eax
call fcn.00401145
add esp, 0xc
cmp dword [esp + 0x30], esi
jb 0x40cae8
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040eac4
add esp, 4
call fcn.004011ea
cmp dword [esp + 0x4c], esi
jb 0x40cb00
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040eac4
add esp, 4
cmp dword [esp + 0x68], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
jb 0x40cb1f
mov edx, dword [esp + 0x54]
push edx
call fcn.0040eac4
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x6c
ret
Function at 0x401609
Capabilities:
Enumerate processes

Disassembly:
jmp 0x404830
sub esp, 0x12c
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x404892
cmp dword [esp + 0x150], 0x10
jb 0x404879
mov eax, dword [esp + 0x13c]
push eax
call fcn.0040eac4
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x12c
ret
push ebx
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
mov eax, dword [esp + 0x140]
mov ebx, 0x10
cmp dword [esp + 0x154], ebx
jae 0x4048ba
lea eax, [esp + 0x140]
lea ecx, [esp + 0x30]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048e0
test dl, dl
je 0x4048dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4048c0
xor eax, eax
jmp 0x4048e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4048ec
lea edi, [eax + 1]
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404960
jmp 0x404900
cmp dword [esp + 0x154], ebx
mov eax, dword [esp + 0x140]
jae 0x404917
lea eax, [esp + 0x140]
lea ecx, [esp + 0x30]
jmp 0x404920
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404940
test dl, dl
je 0x40493c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404940
add eax, 2
add ecx, 2
test dl, dl
jne 0x404920
xor eax, eax
jmp 0x404945
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404951
add edi, 1
cmp edi, 1
jg 0x40499a
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x154], ebx
jb 0x404980
mov edx, dword [esp + 0x140]
push edx
call fcn.0040eac4
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x12c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x154], ebx
jb 0x4049ba
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0040eac4
add esp, 4
mov ecx, dword [esp + 0x134]
pop ebx
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0040f4c3
add esp, 0x12c
ret
Function at 0x404830
Capabilities:
Enumerate processes

Disassembly:
jmp 0x404830
sub esp, 0x12c
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x404892
cmp dword [esp + 0x150], 0x10
jb 0x404879
mov eax, dword [esp + 0x13c]
push eax
call fcn.0040eac4
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x12c
ret
push ebx
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
mov eax, dword [esp + 0x140]
mov ebx, 0x10
cmp dword [esp + 0x154], ebx
jae 0x4048ba
lea eax, [esp + 0x140]
lea ecx, [esp + 0x30]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4048e0
test dl, dl
je 0x4048dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4048e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4048c0
xor eax, eax
jmp 0x4048e5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4048ec
lea edi, [eax + 1]
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404960
jmp 0x404900
cmp dword [esp + 0x154], ebx
mov eax, dword [esp + 0x140]
jae 0x404917
lea eax, [esp + 0x140]
lea ecx, [esp + 0x30]
jmp 0x404920
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404940
test dl, dl
je 0x40493c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404940
add eax, 2
add ecx, 2
test dl, dl
jne 0x404920
xor eax, eax
jmp 0x404945
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404951
add edi, 1
cmp edi, 1
jg 0x40499a
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x154], ebx
jb 0x404980
mov edx, dword [esp + 0x140]
push edx
call fcn.0040eac4
add esp, 4
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x12c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x154], ebx
jb 0x4049ba
mov ecx, dword [esp + 0x140]
push ecx
call fcn.0040eac4
add esp, 4
mov ecx, dword [esp + 0x134]
pop ebx
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0040f4c3
add esp, 0x12c
ret
Function at 0x407830
Capabilities:
Get common file path

Disassembly:
jmp 0x407830
push 0xffffffffffffffff
push 0x439702
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x12c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x43f145
mov ecx, esi
mov dword [esp + 0x12c], ebx
mov dword [esp + 0x18], esi
mov byte [esi + 4], bl
call fcn.004011fe
push 0x104
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x130], ebx
mov dword [esp + 0x18], 1
call fcn.0040ec60
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4078fe
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4078d8
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004011fe
push 0xd
push str.extrac32.exe
mov ecx, esi
call fcn.004015dc
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x11c
ret
Function at 0x408650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x408650
push 0xffffffffffffffff
push 0x4398d3
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4475c4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4475c4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, dword [esp + 0x158]
xor ebx, ebx
mov dword [esp + 0x18], ebx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
lea edi, [esi + 4]
push 0x43f145
mov ecx, esi
mov dword [esp + 0x158], ebx
mov dword [esp + 0x44], esi
mov byte [edi], bl
call fcn.004011fe
push 0x104
lea eax, [esp + 0x44]
push eax
push ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
lea ebp, [ebx + 0x10]
je 0x4087a7
lea eax, [esp + 0x40]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4086f1
sub eax, edx
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004011fe
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0x20], 0x2e
call fcn.0040143d
cmp eax, 0xffffffff
je 0x4087a7
push 3
push 0x43f1f8
push 3
add eax, 1
push eax
mov ecx, esi
call fcn.00401230
cmp dword [esi + 0x18], ebp
jb 0x408744
mov eax, dword [edi]
jmp 0x408746
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4087a7
cmp dword [esi + 0x18], ebp
jb 0x408759
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.004015e6
lea eax, [esp + 0x3c]
push eax
call fcn.00401523
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x15c], 1
call fcn.004014e7
cmp dword [esp + 0x38], ebp
jb 0x408860
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040eac4
add esp, 4
jmp 0x408860
push str.InstallFiles.cab
lea edx, [esp + 0x24]
push 0x447010
push edx
call fcn.00401212
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x15c], 2
call fcn.004014e7
cmp dword [esp + 0x38], ebp
mov byte [esp + 0x150], bl
jb 0x4087ee
mov eax, dword [esp + 0x24]
push eax
call fcn.0040eac4
add esp, 4
cmp dword [esi + 0x18], ebp
jb 0x4087f7
mov eax, dword [edi]
jmp 0x4087f9
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408853
cmp dword [esi + 0x18], ebp
jb 0x40880c
mov edi, dword [edi]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push edi
call fcn.004015e6
lea ecx, [esp + 0x3c]
push ecx
call fcn.00401523
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov dword [esp + 0x15c], 3
call fcn.004014e7
cmp dword [esp + 0x38], ebp
jb 0x408860
mov edx, dword [esp + 0x24]
push edx
call fcn.0040eac4
add esp, 4
jmp 0x408860
push ebx
push 0x43f145
mov ecx, esi
call fcn.004011fe
mov eax, esi
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040f4c3
add esp, 0x140
ret