joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100220c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002215d
push ebx
push esi
call fcn.10022089
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002201d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002210a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002215c
push edi
push eax
call fcn.1002011c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002212a
call fcn.100200e2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002215b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002201d
add esp, 0x20
test eax, eax
jne 0x10022149
push edi
call fcn.100200e2
jmp 0x10022151
push ebx
call fcn.100200e2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100223ca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002e7b4
push 0x1002e7ac
push str.FlsAlloc
push 0x1f
call fcn.100222e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100223fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c160]
call esi
jmp 0x10022404
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10022448
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002e7c4
push 0x1002e7bc
push str.FlsGetValue
push 0x21
call fcn.100222e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002247f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10022487
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002e7cc
push 0x1002e7c4
push str.FlsSetValue
push 0x22
call fcn.100222e6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100224c1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002c160]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002aac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002aaed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002aaed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1003375
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 5
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, 5
jne 0x10033b9
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push 1
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
cmp ebx, esi
jne 0x10033f8
cmp dword [ebp + 0x14], esi
je 0x10033ef
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x10033c8
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x1003524
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100357d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100356f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x100356b
cmp esi, eax
jae 0x100356f
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100355d
cmp esi, eax
jb 0x1003573
xor eax, eax
jmp 0x100357c
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x1003db2
Capabilities:
Accept command line arguments
Check if file exists
Get file attributes

Disassembly:
push 0x14
push 0x1008710
call fcn.01006960
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1003dd9
push 0x10014e0
mov ecx, dword [ebp + 0x20]
call fcn.01003c37
xor eax, eax
jmp 0x1003f68
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, esi
jne 0x1003e0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001490
push dword [ebp + 0x20]
call fcn.01003c5d
add esp, 0xc
jmp 0x1003dd2
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 1]
cmp ecx, 3
ja 0x1003f48
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, esi
jge 0x1003e3f
and eax, 0xffff
push eax
push 0x1001448
jmp 0x1003f4e
push dword [edi]
mov ecx, dword [ebp + 0x10]
call fcn.01003d96
mov ecx, dword [ebp + 0x14]
call fcn.010037ef
mov ecx, dword [ebp + 0x18]
call fcn.010037ef
mov ebx, dword [ebp + 0x1c]
mov dword [ebx], esi
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x1003f3f
lea esi, [edi + eax*4]
mov eax, dword [esi]
test eax, eax
je 0x1003f2a
push 8
push 0x1001430
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ec8
mov eax, dword [esi]
add eax, 0x10
push eax
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.01003d96
push 0x1001428
mov ecx, esi
call fcn.01003c78
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1003f2a
push dword [esi]
push 0x10013e0
jmp 0x1003f4e
push 0xb
push 0x10013c8
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1003ef9
mov esi, dword [esi]
add esi, 0x16
push esi
call dword [sym.imp.msvcrt.dll__wtol]
pop ecx
mov dword [ebx], eax
test eax, eax
jne 0x1003f2a
push esi
push 0x1001370
jmp 0x1003f4e
push 0xf
push 0x100134c
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1003f32
mov eax, dword [esi]
add eax, 0x1e
push eax
mov ecx, dword [ebp + 0x18]
call fcn.01003d96
push 0x1001428
mov ecx, dword [ebp + 0x18]
call fcn.01003c78
inc dword [ebp - 0x1c]
jmp 0x1003e65
mov eax, dword [ebp - 0x1c]
push dword [edi + eax*4]
push 0x100131c
jmp 0x1003f4e
mov dword [ebp - 0x24], 1
jmp 0x1003f59
push eax
push 0x10012c0
push dword [ebp + 0x20]
call fcn.01003c5d
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
call fcn.01003f73
mov eax, dword [ebp - 0x24]
call fcn.010069a5
ret 0x1c
Function at 0x10040de
Capabilities:
Delete registry key

Disassembly:
push 0x218
mov eax, 0x1008584
call fcn.010068f6
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x220], eax
jne 0x100410e
cmp dword [ebp + 0x14], 0
je 0x1004149
push ebx
lea ecx, [ebp - 0x21c]
call fcn.01004028
and dword [ebp - 4], 0
push 0x10018d8
lea ecx, [ebp - 0x21c]
call fcn.01003c11
push dword [ebp - 0x21c]
push edi
call esi
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0100363b
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x1004215
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
jne 0x100417c
mov ecx, dword [ebp - 0x21c]
cmp dword [ecx + 0x14], eax
je 0x1004202
push 0x206
push eax
lea eax, [ebp - 0x216]
xor ecx, ecx
push eax
mov word [ebp - 0x218], cx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push ebx
lea ecx, [ebp - 0x224]
call fcn.01004028
push 0x10018bc
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 1
call fcn.01003c11
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.01003c11
push dword [ebp - 0x224]
push edi
call esi
mov ecx, dword [ebp - 0x224]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0100363b
add dword [ebp - 0x21c], 0x18
dec dword [ebp - 0x220]
jne 0x1004166
call fcn.0100694a
ret 0x18
Function at 0x1006465
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100a0e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.010063a6
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x10064d8
cmp dword [ebp - 0x94], 5
jb 0x10064f9
jmp 0x10064f5
cmp dword [ebp - 0x88], 1
jne 0x10064f9
cmp dword [ebp - 0x94], 4
ja 0x10064f5
jne 0x10064f9
cmp dword [ebp - 0x90], 0
jbe 0x10064f9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002fc4
call fcn.0100623d
test eax, eax
jge 0x100651a
mov byte [0x100a414], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010068a9
leave
ret
Function at 0x1006867
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10088e8
call fcn.01006960
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100a830
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006622
cmp eax, esi
jne 0x1006615
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1006625
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10065fc
xor esi, esi
inc esi
mov eax, dword [0x100a82c]
cmp eax, esi
jne 0x1006638
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006667
mov eax, dword [0x100a82c]
test eax, eax
jne 0x1006661
mov dword [0x100a82c], esi
push 0x1001228
push 0x100121c
call fcn.0100655e
pop ecx
pop ecx
test eax, eax
je 0x1006667
jmp 0x100678b
mov dword [0x100a4fc], esi
mov eax, dword [0x100a82c]
cmp eax, esi
jne 0x100668b
push 0x1001218
push 0x1001200
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100a82c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1006698
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100a840], ebx
je 0x10066b9
push 0x100a840
call fcn.01007139
pop ecx
test eax, eax
je 0x10066b9
push ebx
push 2
push ebx
call dword [0x100a840]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100678b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1006723
cmp cx, bx
je 0x10066de
cmp dword [ebp - 0x1c], ebx
jne 0x1006723
movzx ecx, word [eax]
cmp cx, bx
je 0x10066f3
cmp cx, 0x20
ja 0x10066f3
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10066de
test byte [ebp - 0x40], 1
je 0x10066ff
movzx ecx, word [ebp - 0x3c]
jmp 0x1006702
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100a4f8], eax
cmp dword [0x100a4ec], ebx
jne 0x1006768
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1006734
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10066c8
cmp dword [0x100a4fc], ebx
jne 0x1006776
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100a4f8]
jmp 0x1006797
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010069a5
ret
call fcn.01007286
jmp 0x10065bf
Function at 0x401a00
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42c31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x438c50]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
lea ebp, [esi + 0x1c]
mov dword [esp + 0x1c], 0
mov ecx, ebp
call fcn.00420426
lea ebx, [esi + 0x30]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call fcn.00420426
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 2
call fcn.00420426
mov ecx, dword [0x438c50]
mov dword [esi + 0x58], ecx
mov edx, dword [0x438c50]
mov dword [esi + 0x5c], edx
mov eax, dword [0x438c50]
lea ecx, [esi + 0x60]
mov dword [ecx], eax
mov edx, dword [0x438c50]
mov dword [esi + 0x64], edx
mov eax, dword [0x438c50]
mov dword [esi + 0x68], eax
mov edx, dword [0x438c50]
mov dword [esi + 0x6c], edx
xor eax, eax
mov byte [esp + 0x1c], 9
mov dword [esi], 0x42e5bc
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], 1
call fcn.00420d2e
lea ecx, [esi + 0x64]
call fcn.00420d2e
mov ecx, edi
call fcn.00420d2e
lea ecx, [esi + 0x68]
call fcn.00420d2e
lea ecx, [esi + 0x6c]
call fcn.00420d2e
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004204b9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004204b9
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.004204b9
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401a1d
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42c31e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x438c50]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0x18]
mov dword [edi], eax
lea ebp, [esi + 0x1c]
mov dword [esp + 0x1c], 0
mov ecx, ebp
call fcn.00420426
lea ebx, [esi + 0x30]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call fcn.00420426
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 2
call fcn.00420426
mov ecx, dword [0x438c50]
mov dword [esi + 0x58], ecx
mov edx, dword [0x438c50]
mov dword [esi + 0x5c], edx
mov eax, dword [0x438c50]
lea ecx, [esi + 0x60]
mov dword [ecx], eax
mov edx, dword [0x438c50]
mov dword [esi + 0x64], edx
mov eax, dword [0x438c50]
mov dword [esi + 0x68], eax
mov edx, dword [0x438c50]
mov dword [esi + 0x6c], edx
xor eax, eax
mov byte [esp + 0x1c], 9
mov dword [esi], 0x42e5bc
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], 1
call fcn.00420d2e
lea ecx, [esi + 0x64]
call fcn.00420d2e
mov ecx, edi
call fcn.00420d2e
lea ecx, [esi + 0x68]
call fcn.00420d2e
lea ecx, [esi + 0x6c]
call fcn.00420d2e
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.004204b9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004204b9
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.004204b9
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401b30
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42c393
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x42e5bc
lea ecx, [esi + 0x6c]
mov dword [esp + 0x10], 8
call fcn.00420da3
lea ecx, [esi + 0x68]
mov byte [esp + 0x10], 7
call fcn.00420da3
lea ecx, [esi + 0x64]
mov byte [esp + 0x10], 6
call fcn.00420da3
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call fcn.00420da3
lea ecx, [esi + 0x5c]
mov byte [esp + 0x10], 4
call fcn.00420da3
lea ecx, [esi + 0x58]
mov byte [esp + 0x10], 3
call fcn.00420da3
lea ecx, [esi + 0x44]
mov byte [esp + 0x10], 2
call fcn.00420459
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.00420459
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 0
call fcn.00420459
lea ecx, [esi + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x403100
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push 0x104
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x40312b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4031b5
push ebp
push esi
push edi
or ecx, 0xffffffff
mov edi, 0x4380c4
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
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, dword [ebx + 0x64]
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 edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
lea eax, [esp + 4]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
add esp, 0x104
ret

Function at 0x4031e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret 4
Function at 0x403420
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x114]
push 0x5c
push ecx
call fcn.0041202a
mov byte [eax], bl
mov edi, str.PciSetup.exe
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, dword [ebp + 8]
mov byte [esp + 0x11], bl
cmp edx, ebx
jne 0x4034d9
cmp dword [ebp + 0xc], ebx
je 0x40358b
or ecx, 0xffffffff
mov edi, str.:Program_Files
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
or ecx, 0xffffffff
mov edi, 0x4380c4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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, dword [ebp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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, str.PciSetup.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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
and ecx, 3
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
cmp edx, ebx
jne 0x403594
cmp dword [ebp + 0xc], ebx
je 0x4035a6
mov ecx, ebp
call fcn.004035c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
Function at 0x404330
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x10]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
mov ecx, esi
mov ebx, eax
call fcn.004031e0
pop edi
mov eax, ebx
pop esi
pop ebx
ret 0xc
Function at 0x404b40
Capabilities:
Check os version
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42c50b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push esi
mov esi, ecx
push edi
push 0x43cbe8
lea ecx, [esp + 0xc]
call fcn.00420e11
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x1b4], 0
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x9c
call edi
test eax, eax
jne 0x404c88
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
test eax, eax
jne 0x404c88
mov eax, dword [0x43ccb4]
test eax, eax
je 0x404c5b
push 0x7d1
lea ecx, [esp + 0xc]
call fcn.0042189d
mov eax, dword [0x43ccb0]
lea edx, [esp + 0xa8]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push 0
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xa8]
test al, al
jne 0x404c4a
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0xac]
push 0x10
push ecx
call fcn.00427e64
lea ecx, [esp + 8]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.00420da3
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1a4]
mov dword fs:[0], ecx
add esp, 0x1b0
ret
mov eax, dword [esp + 0x1c]
mov edi, 1
cmp eax, 2
jne 0x404cab
mov eax, dword [esp + 0x10]
cmp eax, 5
jne 0x404ca4
mov dword [esi + 8], edi
jmp 0x404cc8
jbe 0x404cc8
mov dword [esi + 0xc], edi
jmp 0x404cc8
cmp eax, edi
jne 0x404cc8
cmp dword [esp + 0x10], 4
jne 0x404cc8
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x404cc8
mov dword [esi + 8], 0
mov dword [esi + 0x10], edi
lea ecx, [esp + 8]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.00420da3
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1b0
ret