joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd33250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd47808
push 0xd37288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xd33329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xd33329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00d361d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd33329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xd33329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xd3332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d33351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd33d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd33d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xd33d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xd33d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd33d94
push eax
push esi
call fcn.00d3620b
add esp, 8
pop esi
ret 0x10

Function at 0xd33da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd33e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd33e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xd4c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d35dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xd33dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xd33e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xd33ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd33eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xd4c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d35dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xd33eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd33e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xd34000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd34131
push esi
call fcn.00d37145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d26080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd34131
push 0
push ebp
call fcn.00d263a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d26260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd3408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d262f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd34121
push 0xd4c918
push edi
call fcn.00d353f0
push eax
push ebx
push esi
call fcn.00d33f60
push 0xd4c8f8
push edi
call fcn.00d353f0
push eax
push ebx
push esi
call fcn.00d33f60
push 0xd4c8d8
push edi
call fcn.00d353f0
push eax
push ebx
push esi
call fcn.00d33f60
push 0xd4c8c0
push edi
call fcn.00d353f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d33f60
push 0xd4c8a0
push edi
call fcn.00d353f0
push eax
push ebx
push esi
call fcn.00d33f60
push 0xd4c888
push edi
call fcn.00d353f0
push eax
push ebx
push esi
call fcn.00d33f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd351b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d35140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d35140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d35140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d35140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd35bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd35c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd4787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd35c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd35c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404318
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406368
test esi, esi
jne 0x40434e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040646c
jmp 0x40436c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004041f8
mov edi, eax
test esi, esi
je 0x40436c
cmp dword [ebx], 0
je 0x40436c
dec esi
jmp 0x404355
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40545c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0040590c
mov byte [esp], al
cmp byte [esp], 0
jne 0x4055e5
test edi, edi
je 0x4055e5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405525
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405500
cmp edi, 0xffffffff
je 0x4054c1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4054c1
mov byte [esp], 0
jmp 0x4055e5
cmp dword [esi], 1
jg 0x405500
cmp dword [esi], 0
jne 0x4054f2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4054f2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4055e5
lea eax, [esp + 0xc]
call fcn.004050f4
dec ebp
test ebp, ebp
jg 0x4054a6
cmp edi, 0xffffffff
je 0x405525
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405523
mov byte [esp], 0
jmp 0x4055e5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40546a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405525
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405660
mov edx, eax
mov ebx, dword [0x40f8e4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405589
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405587
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405589
xor edi, edi
cmp byte [esp], 0
je 0x4055af
mov ebx, dword [esi]
test bl, 1
jne 0x4055c5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40558f
mov byte [esp + 1], 1
jmp 0x4055c5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4055af
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40553c
cmp byte [esp], 0
je 0x4055e5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406138
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40f040], 0
je 0x40619f
cmp word [0x40f330], 0xd7b2
jne 0x406161
cmp dword [0x40f338], 0
jbe 0x406161
mov eax, 0x40f32c
call dword [0x40f348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x4061cc
call fcn.004065a8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40e01e], 0
jne 0x4061bb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40902c
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x40a998
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040645c
mov eax, dword [ebp - 8]
call fcn.0040645c
xor eax, eax
push ebp
push 0x40aa78
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x40a9ec
push 0x40aa94
push dword [ebp - 4]
push 0x40aaa4
push dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406748
jmp 0x40aa06
push 0x40aa94
push dword [ebp - 4]
push 0x40aa94
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00406748
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.004044fc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.004065b8
push eax
mov eax, dword [ebp - 4]
call fcn.004065b8
push eax
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aa7f
lea eax, [ebp - 0x10]
call fcn.00406368
lea eax, [ebp - 8]
mov edx, 2
call fcn.004063c8
pop eax
jmp eax

Function at 0x40aaac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004065b8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40aad2
test byte [ebp - 0xc], 0x10
jne 0x40aad6
xor eax, eax
jmp 0x40aad8
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x40aae4
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x40aaec
push ecx
xor eax, eax
push ebp
push 0x40acb1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00406368
call fcn.004042b4
test eax, eax
jl 0x40abb7
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00404318
lea eax, [ebp - 0x20]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00406830
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0040a438
mov eax, dword [ebp - 0x1c]
mov edx, 0x40acc8
call fcn.004067f8
jne 0x40abab
lea eax, [ebp - 4]
push eax
mov ecx, 0x7fffffff
mov edx, 8
mov eax, dword [ebp - 0x10]
call fcn.00406830
mov eax, dword [ebp - 4]
call fcn.0040aaac
test al, al
jne 0x40abb7
push 0
push 0x40acd8
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov edx, 0x40acfc
call fcn.004066c0
mov eax, dword [ebp - 0x24]
call fcn.004065b8
push eax
push 0
call sub.user32.dll_MessageBoxW
jmp 0x40ac7a
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x40ab22
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a698
cmp dword [ebp - 8], 0
jne 0x40abe0
push 0
push 0x40acd8
push 0x40ad8c
push 0
call sub.user32.dll_MessageBoxW
jmp 0x40ac7a
lea eax, [ebp - 0x14]
call fcn.00406368
call fcn.004042b4
test eax, eax
jle 0x40ac5b
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 1
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00404318
lea eax, [ebp - 0x2c]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.00406830
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.0040a438
mov eax, dword [ebp - 0x28]
mov edx, 0x40acc8
call fcn.004067f8
je 0x40ac53
push dword [ebp - 0x14]
push 0x40adcc
push dword [ebp - 0x10]
push 0x40addc
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00406748
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x40abfb
cmp dword [ebp - 4], 0
je 0x40ac6f
mov eax, dword [ebp - 4]
call fcn.004065b8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040a998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40acb8
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.004063c8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004063c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004063c8
pop eax
jmp eax
Function at 0x40adfc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
mov eax, 0x409fa4
mov dword [0x40e840], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x40e860]
push eax
mov eax, dword [0x41256c]
push eax
call sub.user32.dll_GetClassInfoW
test eax, eax
jne 0x40ae39
mov eax, dword [0x41256c]
mov dword [0x40e84c], eax
push 0x40e83c
call sub.user32.dll_RegisterClassW
push 0xcf0000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0
push 0
mov eax, dword [0x41256c]
push eax
push 0
mov ecx, 0x40aeb0
mov edx, dword [0x40e860]
xor eax, eax
call fcn.00409ff4
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x48]
push eax
call sub.user32.dll_PeekMessageW
lea eax, [ebp - 0x48]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x48]
push eax
call sub.user32.dll_DispatchMessageW
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_DestroyWindow
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
mov esp, ebp
pop ebp
ret
Function at 0x401ab0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4021eb
push eax
mov dword fs:[0], esp
sub esp, 0x304
push ebx
push esi
push edi
push 0x946
push 0x32c
mov edi, ecx
push 0x416010
call fcn.00401a60
push 0x946
push 0x32c
push 0x416010
call fcn.00401240
add esp, 0x18
mov ecx, edi
call fcn.00401680
test eax, eax
jne 0x401cf2
mov eax, dword [0x416074]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x416078
push eax
push 0x416010
lea ecx, [esp + 0x2b8]
push str._s:_d:_s
push ecx
call ebx
add esp, 0x14
lea edx, [esp + 0x2ac]
push edx
push 0
push 0
call dword [edi + 0x14]
mov esi, eax
test esi, esi
je 0x401b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401cf9
push esi
call dword [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x10]
push 0x104
push eax
push 0x4161c0
call esi
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
add esp, 4
test eax, eax
jne 0x401c14
lea edx, [esp + 0x114]
mov dword [esp + 0x114], 0x94
push edx
call dword [edi + 0x1c]
cmp dword [esp + 0x124], 2
jne 0x401bb9
cmp dword [esp + 0x118], 6
jae 0x401c03
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x318], 0
push ecx
call fcn.00401120
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x318], 0xffffffff
call fcn.0040200c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401c14
lea eax, [esp + 0x10]
push 0x104
push eax
push str._Temp__
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1b0]
push str._s_d.txt
push edx
call ebx
lea eax, [esp + 0x1b8]
push eax
call fcn.004013c0
add esp, 0x14
test al, al
je 0x401cf2
lea ecx, [esp + 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401ce9
mov eax, dword [0x4161bc]
test eax, eax
je 0x401c86
push str.MainThread
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea edx, [esp + 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401ce2
push str.Install
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ce2
lea ecx, [esp + 0x1a8]
push ecx
call eax
test eax, eax
jne 0x401ce2
lea edx, [esp + 0x1a8]
lea eax, [esp + 0x10]
push edx
push str.___s__MainThread
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0
push ecx
push str.rundll32.exe
push str.open
push 0
call dword [edi + 4]
push 4
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4161b4]
test eax, eax
jne 0x401cf9
mov ecx, edi
call fcn.00401670
mov ecx, dword [esp + 0x310]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x310
ret
Function at 0x423ac0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1e
push 0x423abc
call fcn.00404920
cmp eax, 0
jne 0x423ae7
push 0x7560
call fcn.00404dad
mov esp, ebp
pop ebp
ret 0x18
cmp dword [0x423af9], 0xa7dd21
je 0x423c33
jmp 0x423afd
mov edx, 0xfb80ebce
mov edx, 0xff112167
mov edx, 0xfe3785aa
call fcn.00423b4f
xor ebx, 0xfb18a2fc
xor edx, 0xfe85a43b
xor ebx, 0xfa06e20c
cmp eax, 0xb453ec2f
jne 0x401698
jmp 0x423be0
call fcn.00423b33
jmp 0x423b7a
jmp 0x423c33
mov dword [0x423af9], 0xa7dd21
jmp 0x423b73
jmp 0x423c45
mov dword [0x423c3d], esi
mov dword [0x402ba5], 0
mov dword [0x423c35], ebp
mov dword [0x423c39], esp
mov dword [0x423c41], 0
pushal
mov esi, 0x423ebd
push esi
push dword fs:[0]
mov dword fs:[0], esp
mov esi, dword [0x423c3d]
cmp dword [ebp + 0x14], 0
jne 0x423c9b
mov esi, dword [ebp + 8]
rdtsc
xor ax, dx
mov word [esi], ax
mov word [ebp - 0x1a], ax
mov eax, dword [ebp + 0xc]
mov ebx, 4
mul ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ebx, 4
mul ebx
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x423ccf
push 0x40
push 0x3000
push dword [ebp - 4]
push 0
call dword [fcn.004294da]
jmp 0x423cd2
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.00423aa9
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
xor ecx, ecx
mov dword [esi], ecx
add esi, 4
inc ecx
cmp ecx, ebx
jne 0x423ce8
cmp dword [ebp + 0x1c], 0
jne 0x423d0c
push 0x40
push 0x3000
push dword [ebp - 4]
push 0
call dword [fcn.004294da]
jmp 0x423d0f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
pop dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00423aa9
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jbe 0x423d58
cld
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00423aa9
push dword [ebp - 0xc]
pop dword [ebp - 8]
call fcn.00423d95
inc dword [ebp - 0x14]
mov eax, dword [0x423aa5]
cmp dword [ebp - 0x14], eax
jne 0x423d35
cmp dword [ebp + 0x18], 0
jne 0x423d90
push 0x8000
push 0
push dword [ebp - 0xc]
call dword [fcn.004294e6]
push 0x8000
push 0
push dword [ebp - 0x10]
call dword [fcn.004294e6]
jmp 0x423ebb
jmp 0x423ee2
pop dword fs:[0]
add esp, 0x24
mov ebp, dword [0x423c35]
mov esp, dword [0x423c39]
cmp dword [0x423c41], 1
jne 0x423f0b
push 0x7561
call fcn.00404dad
mov dword [0x423af9], 0x1eb99d
rdtsc
xor dword [0x423b80], eax
xor dword [0x423b55], eax
xor dword [0x423bf2], eax
call fcn.00423b4f
mov dword [0x423b24], eax
call fcn.00423b33
nop
nop
push 0x423abc
call fcn.00404af0
mov esp, ebp
pop ebp
ret 0x18