joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455674
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4556ce
inc esi
xor edi, edi
cmp edi, 1
jne 0x45569a
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4556a8
cmp edi, 1
jle 0x4556a8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00452908
test eax, eax
jne 0x4556ce
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4556ce
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x4556ce
inc edi
dec esi
jne 0x45568a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x455d9c
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.0042dbf4
and eax, 0x7f
mov ecx, dword [eax*4 + 0x49aa5c]
mov edx, 0x80000002
xor eax, eax
call fcn.0042de1c
test eax, eax
jne 0x455de6
mov eax, esi
call fcn.00403738
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
call fcn.00403738
push eax
call sub.gdi32.dll_RemoveFontResourceA
test eax, eax
je 0x455e07
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageA
pop edx
pop esi
pop ebx
ret
Function at 0x455e0c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x455f4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x455f60
push 0x455f74
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
lea edx, [ebp - 0xc]
mov al, byte [ebp - 1]
call fcn.00452724
test al, al
jne 0x455e61
mov byte [ebp - 2], 0
jmp 0x455f30
xor eax, eax
push ebp
push 0x455f29
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x455ea5
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.0042c804
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0042c3fc
mov eax, dword [ebp - 0x20]
call fcn.00403738
push eax
call ebx
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 2], al
jmp 0x455f13
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0042c804
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
call fcn.0042c8cc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0042c3fc
mov eax, dword [ebp - 0x20]
call fcn.00403738
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x455f13
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00430bdc
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00430bdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f30
lea eax, [ebp - 0xc]
call fcn.00452760
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f52
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403420
ret
Function at 0x458a44
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x458b1e
mov byte [esi + 5], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x458b2c
call fcn.00457f1c
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x458a9c
mov eax, 0x458b60
call fcn.00457d10
push 1
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x458a87
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x458aef
cmp dword [esp], 0
jne 0x458ad1
mov eax, 0x458b90
call fcn.00457d10
jmp 0x458af9
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x458bb0
call fcn.00457f1c
jmp 0x458af9
mov eax, 0x458be8
call fcn.00457d10
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov byte [esi + 4], 0
test bl, bl
je 0x458b1e
push 0xfa
call sub.kernel32.dll_Sleep
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x462750
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x462824
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x148]
push eax
lea edx, [ebp - 0x14c]
mov eax, ebx
call fcn.0042c3fc
lea eax, [ebp - 0x14c]
mov edx, 0x462840
call fcn.0040357c
mov eax, dword [ebp - 0x14c]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x46280b
xor eax, eax
push ebp
push 0x462804
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
call fcn.00462704
test al, al
je 0x4627d9
mov byte [ebp - 1], 1
jmp 0x4627ed
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4627c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46280b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46282b
lea eax, [ebp - 0x14c]
call fcn.00403400
ret

Function at 0x462844
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, edx
mov esi, eax
push 0x200
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x462884
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, 0x104
call fcn.0040355c
jmp 0x46288b
mov eax, ebx
call fcn.00403400
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x462894
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, edx
mov esi, eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x49ab64]
or eax, 0x4001
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4628d4
mov eax, dword [esp + 4]
jmp 0x4628d6
xor eax, eax
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x4628e0
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x49ab6c]
or eax, 0x4011
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push 0x462924
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46291a
mov eax, dword [esp + 4]
jmp 0x46291c
xor eax, eax
add esp, 0x160
pop ebx
ret

Function at 0x462904
Capabilities:
Get file system object information

Disassembly:
push ebx
add esp, 0xfffffea0
mov ebx, eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x49ab6c]
or eax, 0x4011
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push 0x462924
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46291a
mov eax, dword [esp + 4]
jmp 0x46291c
xor eax, eax
add esp, 0x160
pop ebx
ret
Function at 0x462cd8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
test dl, dl
je 0x462cec
add esp, 0xfffffff0
call fcn.00402d30
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0041594c
mov ax, word [0x462d8c]
not eax
and ax, word [esi + 0x34]
mov word [esi + 0x34], ax
mov edx, 0x79
mov eax, esi
call fcn.0041461c
mov edx, 0x61
mov eax, esi
call fcn.0041463c
xor edx, edx
mov eax, esi
call fcn.00414c50
mov dl, 1
mov eax, esi
call fcn.00418318
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 6
jae 0x462d4d
mov dx, 0xfffe
mov eax, esi
call fcn.00414c70
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x3c
push 0x1f
call sub.user32.dll_SystemParametersInfoA
test eax, eax
je 0x462d73
lea eax, [ebp - 0x3c]
push eax
call sub.gdi32.dll_CreateFontIndirectA
mov edx, eax
mov eax, dword [esi + 0x44]
call fcn.0041a2d8
test bl, bl
je 0x462d81
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x463bf4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x463cbe
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
mov bl, 0x41
test esi, 1
jne 0x463c2f
mov eax, ebx
call fcn.00462934
test al, al
je 0x463c97
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403510
lea eax, [ebp - 8]
mov edx, 0x463cd4
call fcn.0040357c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00462844
mov eax, dword [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.00402878
mov edx, 0x463cd8
lea eax, [ebp - 0x10]
mov cl, 2
call fcn.00402848
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00403520
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.0046375c
shr esi, 1
inc ebx
cmp bl, 0x5b
jne 0x463c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463cc5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403420
ret
Function at 0x467180
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467372
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e0]
mov edx, 0x20
call fcn.0041461c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e0]
mov edx, 0x20
call fcn.0041463c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e4]
mov edx, 0x20
call fcn.0041461c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e4]
mov edx, 0x20
call fcn.0041463c
xor eax, eax
push ebp
push 0x467347
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x10
push 0x467380
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46725f
cmp byte [ebp - 0x158], 0
je 0x46725f
mov eax, dword [ebp - 0x160]
push eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [0x49c014]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x2e0]
call fcn.004670c0
xor edx, edx
mov al, 6
call fcn.00479198
test al, al
je 0x4672bb
push 0x27
lea edx, [ebp - 0x168]
mov eax, dword [0x49d194]
call fcn.0042c3fc
lea eax, [ebp - 0x168]
mov edx, 0x467398
call fcn.0040357c
mov eax, dword [ebp - 0x168]
call fcn.00403738
push eax
mov eax, dword [0x49c014]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x2e4]
call fcn.004670c0
jmp 0x46733d
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.0047d718
cmp dword [ebp - 4], 0
jne 0x4672df
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.0047d718
cmp dword [ebp - 4], 0
je 0x46733d
push 0x1000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x46733d
cmp byte [ebp - 0x158], 0
je 0x46733d
mov eax, dword [ebp - 0x160]
push eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [0x49c014]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x2e4]
call fcn.004670c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467351
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467379
lea eax, [ebp - 0x168]
call fcn.00403400
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x47034c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x470449
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 4]
push eax
xor eax, eax
mov al, byte [0x49d43d]
mov ecx, dword [eax*4 + 0x49abe0]
mov edx, 0x80000002
xor eax, eax
call fcn.0042de1c
test eax, eax
jne 0x4703d1
mov eax, esi
call fcn.00403574
inc eax
push eax
mov eax, esi
call fcn.00403738
push eax
push 1
push 0
mov eax, edi
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4703c6
mov eax, 0x470460
call fcn.00457d10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x4703db
mov eax, 0x470494
call fcn.00457d10
test bl, bl
je 0x47042e
mov eax, esi
call fcn.00403738
push eax
call sub.gdi32.dll_AddFontResourceA
test eax, eax
je 0x470402
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageA
jmp 0x47042e
lea ecx, [ebp - 0xc]
mov edx, 0x4704c0
mov al, 0x3a
call fcn.00451458
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042e6ac
mov eax, dword [ebp - 8]
mov edx, dword [0x49cd18]
call fcn.0046e670
test al, al
je 0x4703df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470450
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403420
ret

Function at 0x472b4c
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x472c0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x472bf2
test bl, 0x10
je 0x472bf2
lea ecx, [ebp - 4]
mov edx, 0x472c24
mov eax, esi
call fcn.0042c57c
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x472c38
mov eax, 0x472c48
call fcn.0042cd94
mov edx, 0x472c60
mov eax, dword [ebp - 8]
call fcn.00406ac4
test eax, eax
jne 0x472bf2
mov eax, dword [ebp - 4]
call fcn.00406f50
lea ecx, [ebp - 0xc]
mov edx, 0x472c90
mov eax, esi
call fcn.0042c57c
mov eax, dword [ebp - 0xc]
call fcn.00406f50
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.00403738
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesA
push edi
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472c14
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403420
ret
Function at 0x47396c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x473a40
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x473a2a
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004535b0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x473a58
call fcn.00457f1c
mov edx, ebx
mov eax, dword [0x49d368]
call fcn.0040b24c
mov ebx, eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebx]
call fcn.00403574
mov ecx, 0x14
cdq
idiv ecx
push eax
mov ecx, edi
mov edx, esi
mov al, byte [ebp - 1]
call fcn.0045d04c
test al, al
jne 0x473a2a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
jne 0x473a0f
mov eax, 0x473a8c
call fcn.00457d10
jmp 0x473a2a
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x473ae8
call fcn.00457f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a47
lea eax, [ebp - 0x18]
call fcn.00403400
ret
Function at 0x47531c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475486
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x144]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042c3fc
lea eax, [ebp - 0x148]
mov edx, 0x47549c
call fcn.0040357c
mov eax, dword [ebp - 0x148]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x475465
lea eax, [ebp - 4]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.0040355c
mov eax, dword [ebp - 4]
call fcn.00403574
cmp eax, 9
jl 0x47544a
lea eax, [ebp - 0x148]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403778
mov eax, dword [ebp - 0x148]
mov edx, 0x4754b0
call fcn.00406ac4
test eax, eax
jne 0x47544a
mov edx, 0x4754b8
mov eax, dword [ebp - 4]
mov al, byte [eax + 5]
call fcn.0042ea9c
test al, al
je 0x47544a
mov edx, 0x4754b8
mov eax, dword [ebp - 4]
mov al, byte [eax + 6]
call fcn.0042ea9c
test al, al
je 0x47544a
mov edx, 0x4754b8
mov eax, dword [ebp - 4]
mov al, byte [eax + 7]
call fcn.0042ea9c
test al, al
je 0x47544a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0x2e
jne 0x47544a
lea eax, [ebp - 0x148]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.00403778
mov eax, dword [ebp - 0x148]
call fcn.00406d98
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x475385
push ebx
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47548d
lea eax, [ebp - 0x148]
call fcn.00403400
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x478000
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.0040ca4c
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
call fcn.00477f28
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4a
mov eax, dword [0x49d0e4]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
mov eax, esi
call fcn.0042e384
cmp ebx, 0x6c840001
jne 0x478050
call fcn.00408c00
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x478074
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x478124
call fcn.004533a0
mov word [ebp - 6], bx
xor esi, esi
call sub.kernel32.dll_GetTickCount
mov ebx, eax
call dword [ebp - 4]
call sub.kernel32.dll_GetTickCount
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x4780cc
mov ebx, eax
mov edx, 1
mov ax, word [ebp - 6]
call fcn.00477f84
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4780cc
dec eax
sub ax, 2
jb 0x4780e0
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x478158
call fcn.004533a0
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x478081
mov edx, 2
mov ax, word [ebp - 6]
call fcn.00477f84
movzx ebx, ax
mov edx, 3
mov ax, word [ebp - 6]
call fcn.00477f84
movzx eax, ax
shl eax, 0x10
or ebx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp si, 3
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
push eax
mov edi, edx
mov esi, eax
push 0x4787b0
push 0x4787cc
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x47879a
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47879a
test al, 0x10
je 0x47874b
mov ebp, 0x2000000
jmp 0x47874d
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x47879a
push 0
push 0x1000
lea eax, [esp + 8]
push eax
push ebp
call ebx
mov ebx, eax
push ebp
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
jle 0x47879a
cmp ebx, 0xff0
jge 0x47879a
mov edx, edi
mov eax, esp
call fcn.0047862c
jmp 0x4787a3
mov eax, edi
mov edx, esi
call fcn.00403494
add esp, 0x1000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4787dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47886e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ebx, eax
test ebx, ebx
jle 0x478844
cmp ebx, 0x104
jge 0x478844
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.0040355c
mov eax, dword [ebp - 0x108]
mov edx, esi
call fcn.00478704
jmp 0x478855
mov eax, 0x478884
call fcn.00453554
mov eax, esi
call fcn.00403400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478875
lea eax, [ebp - 0x108]
call fcn.00403400
ret

Function at 0x478898
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4789e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00478704
lea eax, [ebp - 0xc]
call fcn.004787dc
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402934
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x4789f4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
call fcn.00403738
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00403738
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x478944
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x4c7
jne 0x47893a
call fcn.00408be0
mov eax, 0x478a04
call fcn.0045349c
cmp dword [ebp - 0x10], 0
jne 0x478954
mov eax, 0x478a1c
call fcn.00453344
xor edx, edx
push ebp
push 0x4789c4
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00478424
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x478962
inc eax
jne 0x47898d
mov eax, 0x478a48
call fcn.0045349c
call fcn.00478424
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4789ad
mov eax, 0x478a6c
call fcn.0045349c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4789cb
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret