joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ff50
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43ff83
push esi
call fcn.00443040
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43ff7c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440009
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43fff2
mov eax, dword [esi + 8]
test eax, eax
je 0x43ffa7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ffee
cmp eax, 2
je 0x43fff2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43ff9a
cmp eax, 3
je 0x43ffcd
cmp eax, 1
jne 0x43ff9a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43ff9a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43ff9a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440030
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440018
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440030
add esp, 4
pop esi
ret

Function at 0x45ec9b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45ecd3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045cd4f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045cd27
jmp 0x45ecdf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46038d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4603cf
call fcn.00465e3d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4603cf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4603c6
xor eax, eax
jmp 0x4603d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004603dd
pop edi
pop esi
pop ebx
ret 4

Function at 0x46636d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46639b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4663b9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004662d3
jmp 0x4663b9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4663b9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004662d3
test edi, edi
mov eax, edi
jne 0x4663a3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5d8ab6
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
inc esi
mov esi, esi
sub ecx, 1
call fcn.005d8b00
dec esi
xor dword [edi], edx
dec ecx
add ecx, 0xcca3c0ae
add edi, 2
sub esi, 0xccfc42fd
add ecx, ecx
sub esi, ecx
cmp edi, ebx
jl fcn.005d8ab6
mov ecx, 0x39292e45
sub ecx, 1
ret
Function at 0x401260
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x7c0
push ebx
mov ebx, dword [esp + 0x7c8]
push ebp
push edi
mov ecx, 0x18f
xor eax, eax
lea edi, [esp + 0x190]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x190], ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
test ebp, ebp
je 0x401451
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401451
mov edi, dword [esp + 0x7dc]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
je 0x401346
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401346
mov edi, 0x40d1e8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x10]
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x194]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00401470
lea edx, [esp + 0x19c]
push edx
call fcn.00401810
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4013be
mov eax, dword [esp + 0x19c]
test eax, eax
je 0x40138d
lea eax, [esp + 0x194]
push eax
call fcn.00401ca0
add esp, 4
mov esi, eax
jmp 0x4013ae
mov edx, dword [esp + 0x7d8]
lea ecx, [esp + 0x194]
push ecx
push edx
call fcn.00401060
add esp, 8
test eax, eax
jne 0x401379
mov esi, 3
lea ecx, [esp + 0x194]
push ecx
call fcn.00402e50
add esp, 4
mov eax, dword [esp + 0x19c]
test eax, eax
jne 0x40143b
test esi, esi
jne 0x4013e0
mov eax, dword [esp + 0x194]
push 0x40
mov edx, dword [eax + 0x5c]
mov eax, dword [eax + 0x60]
push edx
push eax
jmp 0x401433
cmp esi, 3
jne 0x4013f7
mov eax, dword [esp + 0x194]
push 0x40
mov ecx, dword [eax + 0x54]
mov edx, dword [eax + 0x58]
push ecx
jmp 0x401432
mov eax, dword [esp + 0x194]
push esi
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x98]
push ecx
push str._s_nError_0x_08X
push edx
call fcn.00404f60
mov eax, dword [esp + 0x1a4]
add esp, 0x10
lea edx, [esp + 0x114]
mov ecx, dword [eax + 0x94]
push 0x10
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x7c0
ret 0x14
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x7c0
ret 0x14
Function at 0x401c00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, str._:Program_Files
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
sub edi, ecx
lea ebx, [edx + 0x52c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [edx + 0x14]
mov cl, byte [0x40d1cd]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp al, cl
je 0x401c59
push ebx
mov byte [ebx], al
call esi
cmp eax, 0xffffffff
je 0x401c59
test al, 0x10
je 0x401c59
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov cl, byte [0x40d1d8]
mov byte [ebx], cl
mov al, byte [0x40d1d9]
mov dl, cl
cmp dl, al
jg 0x401c8a
push ebx
call esi
cmp eax, 0xffffffff
je 0x401c78
test al, 0x10
jne 0x401c50
mov dl, byte [ebx]
inc dl
mov byte [ebx], dl
mov cl, byte [0x40d1d9]
mov al, dl
cmp al, cl
jle 0x401c6c
mov al, byte [0x40d1cd]
pop edi
mov byte [ebx], al
pop esi
xor eax, eax
pop ebx
ret
Function at 0x402e90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x104
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, dword [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, byte [str._:____t_cz]
push ecx
push edx
call fcn.00404fe0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x402f2d
mov al, byte [0x40d1cd]
lea ecx, [esp + 0xc]
push ecx
mov byte [esi], al
call edi
cmp eax, 0xffffffff
jne 0x402f0a
lea edx, [esp + 0xc]
push 0
push edx
call ebx
test eax, eax
je 0x402f54
jmp 0x402f0e
test al, 0x10
je 0x402f54
mov al, byte [str._:____t_cz]
mov byte [esi], al
inc esi
movsx ecx, byte [str._:____t_cz]
push ecx
push esi
call fcn.00404fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ee8
lea edx, [esp + 0xc]
push edx
call edi
cmp eax, 0xffffffff
jne 0x402f50
lea eax, [esp + 0xc]
push 0
push eax
call ebx
test eax, eax
jne 0x402f60
pop edi
pop esi
pop ebx
add esp, 0x104
ret
test al, 0x10
jne 0x402f60
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x402f70
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x350
push ebx
mov ebx, dword [esp + 0x358]
push ebp
push esi
push edi
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40313d
test al, 0x10
je 0x40313d
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d20c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x220]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x403118
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d20c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x250]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4030ea
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40304c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40312e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40312e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x403150
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403187
pop edi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x4031c8
cmp dword [esp + 0xc], 5
jne 0x403223
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4031b3
mov esi, 4
pop edi
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x403223
mov esi, 5
pop edi
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 1
jne 0x403223
cmp dword [esp + 0xc], 4
jne 0x403223
mov eax, dword [esp + 0x10]
cmp eax, 0xa
jne 0x403219
cmp byte [esp + 0x1d], 0x41
jne 0x4031f4
mov esi, 2
pop edi
mov eax, esi
pop esi
add esp, 0x94
ret
mov esi, dword [esp + 0x14]
pop edi
and esi, 0xffff
sub esi, 0xbb8
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 3
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x403223
mov esi, 3
mov eax, esi
pop edi
pop esi
add esp, 0x94
ret

Function at 0x4033a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x94
lea eax, [esp + 0x10]
push esi
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetControlUsbFlags
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov byte [esp + 7], 1
jne 0x40343b
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x40343b
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esi + 4]
push str._04X__04X
push ecx
call fcn.00405410
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x34]
push str.IgnoreHWSerNum_04X_04X
push ecx
call fcn.00404f60
mov ecx, dword [esp + 0x30]
add esp, 0x20
lea edx, [esp + 0xb]
lea eax, [esp + 0x1c]
push 1
push edx
push 3
push 0
push eax
push ecx
call edi
mov esi, dword [esi]
test esi, esi
jne 0x4033e9
pop edi
pop esi
add esp, 0x94
ret
Function at 0x4034f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x364]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x25c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x403685
mov ebx, dword [esp + 0x368]
mov edi, dword [esp + 0x364]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d20c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x148]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403450
add esp, 4
test eax, eax
je 0x40365f
mov ebp, 1
push 0x108
push ebp
call fcn.00405460
mov edx, eax
lea edi, [esp + 0x150]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov dword [edx], ecx
mov dword [ebx], edx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403582
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x403af0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403c07
test al, 0x10
jne 0x403c07
lea eax, [esp + 0xc]
push ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x40d20c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.install_temp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402e90
add esp, 4
test eax, eax
pop ebp
je 0x403c07
lea ecx, [esp + 0xc]
push ecx
push 0x403c20
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetA]
test eax, eax
je 0x403bfa
mov edx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004034f0
add esp, 8
test eax, eax
je 0x403bfa
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0xc]
push eax
call fcn.00402f70
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x403e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [esp + 0x68]
push ebx
xor ebx, ebx
push esi
push ebx
push 2
push ebx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x70], esi
je 0x403f7c
lea ecx, [esp + 0xc]
push edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
push ecx
push str.Class
push str.Version
push esi
call edi
test eax, eax
je 0x403f6c
push ebx
lea edx, [esp + 0x34]
push 0x40
push edx
lea eax, [esp + 0x1c]
push 1
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x403f6c
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x10]
push ecx
push ebx
push edx
push esi
call edi
test eax, eax
je 0x403f6c
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x88]
push ebp
mov ebp, dword [esp + 0x88]
push esi
push edi
push ebx
lea eax, [esp + 0x40]
push ebp
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00403f90
add esp, 0x18
test eax, eax
je 0x403ef9
mov dword [esp + 0x10], 1
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
je 0x403f63
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
push esi
mov dword [esp + 0x1c], edx
push edi
mov dword [esp + 0x24], eax
push ebx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
push ebp
lea eax, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x38], ecx
call fcn.00403f90
add esp, 0x18
test eax, eax
je 0x403f4f
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x403f0d
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x78]
pop ebp
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x64
ret
mov eax, ebx
pop esi
pop ebx
add esp, 0x64
ret
Function at 0x404d50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d620
push 0x406788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x412a54], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x412a50], ecx
shl ecx, 8
add ecx, edx
mov dword [0x412a4c], ecx
shr eax, 0x10
mov dword [0x412a48], eax
call fcn.00406650
test eax, eax
jne 0x404dba
push 0x1c
call fcn.00404f30
add esp, 4
call fcn.00406550
test eax, eax
jne 0x404dcd
push 0x10
call fcn.00404f30
add esp, 4
mov dword [ebp - 4], 0
call fcn.00406340
call fcn.00406330
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x414114], eax
call fcn.00405cd0
mov dword [0x412a38], eax
test eax, eax
je 0x404e00
mov eax, dword [0x414114]
test eax, eax
jne 0x404e0a
push 0xffffffffffffffff
call fcn.00405540
add esp, 4
call fcn.00405a20
call fcn.00405930
call fcn.00405510
mov esi, dword [0x414114]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404ee9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x404e51
test al, al
je 0x404e51
and eax, 0xff
push eax
call fcn.004058d0
add esp, 4
test eax, eax
je 0x404e2b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404e2b
cmp byte [esi], 0x22
jne 0x404e5a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x404e6a
cmp al, 0x20
ja 0x404e6a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404e5a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x404e8b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x404e90
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00405540
jmp 0x404ece
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x404e5a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404ee9

Function at 0x404f30
Capabilities:
Terminate process

Disassembly:
cmp dword [0x412a40], 1
jne 0x404f3e
call fcn.00406860
mov eax, dword [esp + 4]
push eax
call fcn.004068a0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]