joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4204c6
Capabilities:
Get file size

Disassembly:
push 0x108
mov eax, 0x469077
call fcn.004414e8
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x42053a
test eax, eax
je 0x4204e7
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420597
push ebx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.00406676
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00412dec
push 0x47e3e0
lea eax, [ebp - 0x114]
push eax
call fcn.0044006f
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420597
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x420597
push 0
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00406676
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00412ab3
push 0x47e36c
lea eax, [ebp - 0xc0]
jmp 0x420534
mov eax, esi
call fcn.00441497
ret 4
Function at 0x424c05
Capabilities:
Read file on windows

Disassembly:
push 0x10c
mov eax, 0x466f0c
call fcn.004414e8
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
xor edi, edi
xor ebx, ebx
inc edi
cmp eax, 0xffffffff
cmove eax, edi
mov dword [ebp - 0x118], ebx
test ecx, ecx
je 0x424c8a
lea edi, [ebp - 0x118]
push edi
push eax
push edx
call fcn.0043cbb7
test al, al
jne 0x424cdc
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.00406676
push 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
call fcn.00412dec
push 0x47e3e0
lea eax, [ebp - 0x114]
push eax
call fcn.0044006f
push ebx
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424cdc
push ebx
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00406676
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.00412a4f
push 0x47e36c
lea eax, [ebp - 0xc0]
jmp 0x424c84
mov eax, dword [ebp - 0x118]
call fcn.00441497
ret 8

Function at 0x424cea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24c
mov eax, 0x466f4a
call fcn.004414e8
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x258], ebx
call fcn.004400d0
add esp, 0xc
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 4], ebx
mov eax, 0x20019
test esi, esi
jns 0x424d42
mov eax, 0x20119
and esi, 0x7fffffff
lea ecx, [ebp - 0x24c]
push ecx
push eax
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424d96
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
mov ecx, str.ProgramFilesDir
cmp esi, 1
push ebx
mov eax, str.CommonFilesDir
cmovne eax, ecx
push eax
push dword [ebp - 0x24c]
mov dword [ebp - 0x254], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x24d]
push eax
lea eax, [ebp - 0x218]
mov ebx, 0x4745e4
mov esi, 0x46ef78
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x220], esi
call fcn.00406761
push 0x46d690
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00406e3b
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x28], esi
call fcn.00406676
lea ecx, [ebp - 0x248]
call fcn.00401500
lea ecx, [ebp - 0x24c]
call fcn.0042cb9d
mov eax, edi
call fcn.00441497
ret
Function at 0x424e08
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x466f7d
call fcn.004414e8
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x250], ebx
call fcn.004400d0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call edi
test eax, eax
jns 0x424e90
lea eax, [ebp - 0x218]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push ebx
call edi
test eax, eax
jns 0x424e90
push ebx
lea eax, [ebp - 0x249]
push eax
push 0x478ed0
mov ecx, esi
mov dword [esi], 0x4745e4
mov dword [esi + 0x28], 0x46ef78
call fcn.00406761
jmp 0x424eef
push 0
lea eax, [ebp - 0x249]
push eax
lea eax, [ebp - 0x218]
mov ebx, 0x4745e4
mov edi, 0x46ef78
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x220], edi
call fcn.00406761
and dword [ebp - 4], 0
push 0x46d690
lea ecx, [ebp - 0x248]
call fcn.00406e3b
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x28], edi
call fcn.00406676
lea ecx, [ebp - 0x248]
call fcn.00401500
mov eax, esi
call fcn.00441497
ret

Function at 0x425049
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0x14
mov eax, 0x466fe0
call fcn.004414b5
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0xd]
push eax
mov dword [esi], 0x4745e4
mov dword [esi + 0x28], 0x46ef78
call fcn.004033a0
push 0x105
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004076d5
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040767a
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00406d8b
cmp dword [ebp + 0x20], 8
lea ecx, [ebp + 0xc]
cmovae ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
call fcn.00401500
mov eax, esi
call fcn.00441483
ret 0x30

Function at 0x4257d1
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x4257ec
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4257e5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
pop esi
jmp fcn.00401500
Function at 0x426182
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0
je 0x426223
or dword [ebp - 0x258], 0xffffffff
push esi
lea esi, [ecx + 4]
push edi
cmp dword [esi + 0x14], 8
jb 0x4261b5
mov eax, dword [esi]
jmp 0x4261b7
mov eax, esi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x426216
lea ecx, [ebp - 0x258]
call fcn.0041ed27
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x258], edi
jb 0x4261e7
mov eax, dword [esi]
jmp 0x4261e9
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4261f3
mov edi, dword [esi]
jmp 0x4261f5
mov edi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x42620f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x258]
call fcn.0041ed27
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440060
leave
ret
Function at 0x428ece
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
push edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ecx], edx
mov dword [ebp - 0x4c], edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x428f73
push esi
push edi
call fcn.004429a0
push edi
mov esi, eax
push 0
push esi
call fcn.004400d0
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x428f6b
push 0x34
lea eax, [ebp - 0x38]
push edi
push eax
mov dword [ebp - 0x3c], eax
call fcn.004400d0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x46d690
push esi
mov dword [ebp - 0x40], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x428f6b
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
push esi
call fcn.00442968
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00440060
leave
ret 0xc
Function at 0x428f85
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xb8
mov eax, 0x467920
call fcn.004414e8
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.004033a0
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.004034e0
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.00403240
cmp dword [ebp - 0x5c], 0
je 0x42901e
push esi
lea ecx, [ebp - 0x70]
call fcn.0040ffb2
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.00423b8f
push 0
lea eax, [ebp - 0xa1]
push eax
push str.PATH
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00403400
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0042819f
lea ecx, [ebp - 0x40]
call fcn.00401500
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
push 1
lea eax, [ebp - 0xb0]
push eax
push ecx
push 0x3b
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.00424b01
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
sub eax, esi
push 0x30
cdq
pop ecx
idiv ecx
mov edi, eax
test edi, edi
je 0x429174
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x4290ba
mov eax, dword [esi]
jmp 0x4290bc
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xb4], eax
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.004033a0
push dword [ebp - 0xb4]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.004034e0
cmp dword [esi + 0x14], 8
mov ecx, dword [eax]
jb 0x429120
mov eax, dword [esi]
jmp 0x429122
mov eax, esi
push dword [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00403240
cmp dword [ebp - 0x2c], 0
je 0x42915e
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x40]
call fcn.0040ffb2
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00423b8f
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401500
add esi, 0x30
dec edi
jne 0x4290b0
lea ecx, [ebp - 0xb0]
call fcn.00407216
lea ecx, [ebp - 0xa0]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
call fcn.00441497
ret 8
Function at 0x42919a
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xc8
mov eax, 0x467979
call fcn.004414e8
mov dword [ebp - 0xb8], ecx
xor eax, eax
mov bl, al
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
push 0x20019
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], eax
call fcn.004013d0
test eax, eax
jne 0x429391
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xa8]
push eax
xor ecx, ecx
push ecx
lea eax, [ebp - 0xbc]
push eax
push ecx
push str.PendingFileRenameOperations
push dword [ebp - 0xb4]
call edi
test eax, eax
jne 0x429391
cmp dword [ebp - 0xbc], 7
jne 0x429391
push eax
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], 0x4745e4
mov dword [ebp - 0x48], 0x46ef78
call fcn.004033a0
push dword [ebp - 0xa8]
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.004034e0
mov esi, dword [eax]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.00403240
lea eax, [ebp - 0xa8]
push eax
push esi
xor eax, eax
push eax
push eax
push str.PendingFileRenameOperations
push dword [ebp - 0xb4]
call edi
test eax, eax
jne 0x429389
push eax
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.004033a0
mov edi, 0x104
push edi
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.004034e0
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
call fcn.00403240
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ecx + 0x4ac]
cmp eax, dword [ebp - 0xa8]
jae 0x42931d
test eax, eax
je 0x42931d
cdq
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 0xfffffffe
mov bl, 1
xor edi, edi
jmp 0x429371
push 1
lea eax, [ebp - 0xa1]
push eax
add esi, 8
push esi
lea ecx, [ebp - 0xa0]
call fcn.00402330
push dword [ebp - 0x2c]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push edi
push eax
lea ecx, [ebp - 0x9c]
call fcn.004051c0
lea ecx, [ebp - 0xa0]
test eax, eax
jne 0x429378
mov eax, dword [ebp - 0x8c]
lea esi, [esi + eax*2]
add esi, 4
call fcn.00401500
cmp word [esi], di
jne 0x429323
jmp 0x429381
xor eax, eax
mov bl, al
call fcn.00401500
lea ecx, [ebp - 0x40]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
lea ecx, [ebp - 0xb4]
call fcn.004013a0
mov al, bl
call fcn.00441497
ret
Function at 0x429534
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x4295ae
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x429595
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x429595
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x429595
inc bl
jmp 0x4295ae
xor eax, eax
test ecx, ecx
je 0x4295ae
test bl, bl
jne 0x4295ae
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x42959b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00440060
leave
ret 4

Function at 0x42a6b8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a7be
cmp byte [ebp + 0xc], 0
jne 0x42a76c
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42a7be
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x42a7af
call fcn.004409f0
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x42a73b
xor eax, eax
jmp 0x42a74f
lea eax, [edi + edi]
call fcn.004433c0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00425f2f
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042cabb
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x42a7c0
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x42a7be
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42a7ae
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x42a74f
lea eax, [esi + 2]
jmp 0x42a74f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440060
leave
ret 0xc
Function at 0x42abf7
Capabilities:
Persist via run registry key

Disassembly:
push 0x44
mov eax, 0x466636
call fcn.004414e8
mov esi, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call fcn.00428c08
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push edi
mov ecx, esi
mov dword [ebp - 0x50], eax
call fcn.00428c08
push str.SYSTEMCurrentControlSetControlSession_ManagerFileRenameOperations
push edi
mov ecx, esi
mov dword [ebp - 0x48], eax
call fcn.00428c08
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push edi
mov ecx, esi
mov dword [ebp - 0x4c], eax
call fcn.00428b42
push str.rename
push str._WindowsFolder_Wininit.ini
mov ecx, esi
mov edi, eax
call fcn.00428902
mov ebx, eax
cmp edi, dword [esi + 0x4ac]
jle 0x42ac7d
cmp byte [esi + 0x4a1], 0
je 0x42ac7d
mov ecx, esi
call fcn.0042919a
mov byte [esi + 0x4a1], al
push 0
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.004033a0
mov eax, dword [ebp - 0x50]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x4a4]
jle 0x42acaf
push str.RunOnce
jmp 0x42acfd
mov eax, dword [ebp - 0x48]
cmp eax, dword [esi + 0x4a8]
jle 0x42acc1
push str.RunOnceEx
jmp 0x42acfd
cmp edi, dword [esi + 0x4ac]
jle 0x42acde
cmp byte [esi + 0x4a1], 0
jne 0x42acde
push str.PendingFileRenameOperations
push str.Reboot_required____s_value_added
jmp 0x42ad02
mov eax, dword [ebp - 0x4c]
cmp eax, dword [esi + 0x4b0]
jle 0x42acf0
push str.FileRenameOperations
jmp 0x42acfd
cmp ebx, dword [esi + 0x4b4]
jle 0x42ad0e
push str.Wininit.ini_rename
push str.Reboot_required____s_key_added
lea eax, [ebp - 0x40]
push eax
call fcn.00403190
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x42ad27
xor ebx, ebx
push 0
inc ebx
push ebx
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call fcn.00425e43
jmp 0x42ad29
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.00401500
mov al, bl
call fcn.00441497
ret
Function at 0x42fbbc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x42fbda
mov ecx, esi
call fcn.0042fa0a
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea edi, [eax + 4]
mov dword [ebp - 0x9c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
cmp byte [eax + 0x13], 0
je 0x4306a3
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4306a2
cmp dword [0x4896bc], esi
je 0x4306a2
mov eax, dword [0x4896c4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4896bc], esi
test al, 1
jne 0x430588
or eax, 1
mov dword [0x4896c4], eax
call ebx
mov dword [0x4896c0], eax
call ebx
mov ecx, eax
sub ecx, dword [0x4896c0]
cmp byte [0x48754b], 0
mov dword [0x4896c0], eax
jne 0x4305a9
cmp ecx, 0x64
jb 0x4306a1
push 0xa
pop eax
push 0x14
pop ecx
cmp esi, 0x100000
cmovg eax, ecx
imul esi, esi, 0xa
movzx eax, ax
mov cl, al
mov dword [ebp - 0xa0], eax
push 0
lea eax, [ebp - 0x95]
sar esi, cl
push eax
lea ecx, [ebp - 0x34]
mov byte [0x48754b], 0
mov dword [ebp - 0x34], 0x4745e4
mov dword [ebp - 0xc], 0x46ef78
call fcn.004033a0
lea eax, [ebp - 0x64]
push 0x758
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409b6c
lea ebx, [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x430610
mov ebx, dword [ebx]
push 0x14
xor eax, eax
pop ecx
cmp word [ebp - 0xa0], cx
mov ecx, edi
setne al
add eax, 0x652
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00409b6c
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x430645
mov ecx, dword [ecx]
push 0xa
mov eax, esi
pop esi
xor edx, edx
div esi
push ebx
push ecx
push edx
push eax
lea eax, [ebp - 0x34]
push str._01d._01d__s_s
push eax
call fcn.0040a4eb
add esp, 0x18
lea ecx, [ebp - 0x94]
call fcn.00401500
lea ecx, [ebp - 0x64]
call fcn.00401500
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x9c]
push 0x134
push dword [eax + 0x26c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea ecx, [ebp - 0x34]
call fcn.00401500
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00440060
leave
ret 8

Function at 0x430ef6
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x430f11
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x432e40
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x468899
call fcn.004414e8
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x432eb8
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00406676
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412a4f
push 0x47e36c
lea eax, [ebp - 0x90]
push eax
call fcn.0044006f
mov eax, dword [ebp - 0x94]
call fcn.00441497
ret 8

Function at 0x432ec6
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x468899
call fcn.004414e8
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x432f3f
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4745e4
mov dword [ebp - 0x18], 0x46ef78
call fcn.00406676
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412a4f
push 0x47e36c
lea eax, [ebp - 0x90]
push eax
call fcn.0044006f
mov eax, dword [ebp - 0x94]
call fcn.00441497
ret 8

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

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x43391d
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret