joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461f68
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 0x46203c
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.0042c40c
lea eax, [ebp - 0x14c]
mov edx, 0x462058
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 0x462023
xor eax, eax
push ebp
push 0x46201c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
call fcn.00461f1c
test al, al
je 0x461ff1
mov byte [ebp - 1], 1
jmp 0x462005
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x461fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462023
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 0x462043
lea eax, [ebp - 0x14c]
call fcn.00403400
ret

Function at 0x46205c
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 0x46209c
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, 0x104
call fcn.0040355c
jmp 0x4620a3
mov eax, ebx
call fcn.00403400
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x4620ac
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 + 0x498b44]
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 0x4620ec
mov eax, dword [esp + 4]
jmp 0x4620ee
xor eax, eax
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x4620f8
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 + 0x498b4c]
or eax, 0x4011
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push 0x46213c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x462132
mov eax, dword [esp + 4]
jmp 0x462134
xor eax, eax
add esp, 0x160
pop ebx
ret

Function at 0x46211c
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 + 0x498b4c]
or eax, 0x4011
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x10
push 0x46213c
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x462132
mov eax, dword [esp + 4]
jmp 0x462134
xor eax, eax
add esp, 0x160
pop ebx
ret
Function at 0x4624f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
test dl, dl
je 0x462504
add esp, 0xfffffff0
call fcn.00402d30
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.0041595c
mov ax, word [0x4625a4]
not eax
and ax, word [esi + 0x34]
mov word [esi + 0x34], ax
mov edx, 0x79
mov eax, esi
call fcn.0041462c
mov edx, 0x61
mov eax, esi
call fcn.0041464c
xor edx, edx
mov eax, esi
call fcn.00414c60
mov dl, 1
mov eax, esi
call fcn.00418328
call sub.kernel32.dll_GetVersion
and ax, 0xff
cmp ax, 6
jae 0x462565
mov dx, 0xfffe
mov eax, esi
call fcn.00414c80
push 0
lea eax, [ebp - 0x3c]
push eax
push 0x3c
push 0x1f
call sub.user32.dll_SystemParametersInfoA
test eax, eax
je 0x46258b
lea eax, [ebp - 0x3c]
push eax
call sub.gdi32.dll_CreateFontIndirectA
mov edx, eax
mov eax, dword [esi + 0x44]
call fcn.0041a2e8
test bl, bl
je 0x462599
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46340c
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 0x4634d6
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov esi, eax
mov bl, 0x41
test esi, 1
jne 0x463447
mov eax, ebx
call fcn.0046214c
test al, al
je 0x4634af
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403510
lea eax, [ebp - 8]
mov edx, 0x4634ec
call fcn.0040357c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0046205c
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, 0x4634f0
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.00462f74
shr esi, 1
inc ebx
cmp bl, 0x5b
jne 0x463434
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4634dd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403420
ret
Function at 0x4634f4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4636b1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x463684
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403574
cmp eax, 3
jne 0x463580
mov eax, ebx
call fcn.0046234c
test al, al
jne 0x463560
mov byte [ebp - 1], 0
call fcn.004031bc
jmp 0x46368b
lea edx, [ebp - 0x154]
mov eax, ebx
call fcn.0046205c
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004638ec
mov byte [ebp - 1], 1
lea eax, [ebp - 0x150]
push eax
lea edx, [ebp - 0x154]
mov eax, ebx
call fcn.0042c40c
lea eax, [ebp - 0x154]
mov edx, 0x4636cc
call fcn.0040357c
mov eax, dword [ebp - 0x154]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x46366d
xor eax, eax
push ebp
push 0x463666
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x150]
call fcn.00461f1c
test al, al
je 0x46363b
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.0040355c
lea edx, [ebp - 0x158]
mov eax, ebx
call fcn.0042c40c
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 0x10]
call fcn.0040357c
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.0046205c
mov eax, dword [ebp - 0x154]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00462f74
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4635d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46366d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46368b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4636b8
lea eax, [ebp - 0x158]
mov edx, 2
call fcn.00403420
lea eax, [ebp - 0x10]
call fcn.00403400
ret
Function at 0x463970
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x463b57
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4639e3
lea edx, [ebp - 0x154]
mov eax, edi
call fcn.0042c920
mov eax, dword [ebp - 0x154]
push eax
lea edx, [ebp - 0x158]
mov eax, ebx
call fcn.0042c40c
mov eax, dword [ebp - 0x158]
pop edx
call fcn.0042c5d4
test eax, eax
jne 0x4639e3
lea edx, [ebp - 4]
mov eax, edi
call fcn.0042c8f8
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x463b22
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x150]
push eax
lea edx, [ebp - 0x154]
mov eax, ebx
call fcn.0042c40c
lea eax, [ebp - 0x154]
mov edx, 0x463b70
call fcn.0040357c
mov eax, dword [ebp - 0x154]
call fcn.00403738
push eax
call sub.kernel32.dll_FindFirstFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x463b0b
xor eax, eax
push ebp
push 0x463b04
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x150]
call fcn.00461f1c
test al, al
je 0x463ad5
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.0040355c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0042c5d4
test eax, eax
je 0x463ad5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.0046305c
test eax, eax
jne 0x463ad5
lea edx, [ebp - 0x158]
mov eax, ebx
call fcn.0042c40c
lea eax, [ebp - 0x158]
mov edx, dword [ebp - 0x10]
call fcn.0040357c
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.0046205c
mov eax, dword [ebp - 0x154]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00462f74
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x463a4b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463b0b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FindClose
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463b29
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x466988
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 0x466b7a
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.0041462c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e0]
mov edx, 0x20
call fcn.0041464c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e4]
mov edx, 0x20
call fcn.0041462c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x2e4]
mov edx, 0x20
call fcn.0041464c
xor eax, eax
push ebp
push 0x466b4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x10
push 0x466b88
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x466a67
cmp byte [ebp - 0x158], 0
je 0x466a67
mov eax, dword [ebp - 0x160]
push eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [0x49a014]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x2e0]
call fcn.004668c8
xor edx, edx
mov al, 6
call fcn.00477a08
test al, al
je 0x466ac3
push 0x27
lea edx, [ebp - 0x168]
mov eax, dword [0x49b134]
call fcn.0042c40c
lea eax, [ebp - 0x168]
mov edx, 0x466ba0
call fcn.0040357c
mov eax, dword [ebp - 0x168]
call fcn.00403738
push eax
mov eax, dword [0x49a014]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x2e4]
call fcn.004668c8
jmp 0x466b45
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.0047befc
cmp dword [ebp - 4], 0
jne 0x466ae7
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.0047befc
cmp dword [ebp - 4], 0
je 0x466b45
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 0x466b45
cmp byte [ebp - 0x158], 0
je 0x466b45
mov eax, dword [ebp - 0x160]
push eax
lea eax, [ebp - 0x158]
push eax
mov eax, dword [0x49a014]
push eax
call sub.shell32.dll_ExtractIconA
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x2e4]
call fcn.004668c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x466b59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466b81
lea eax, [ebp - 0x168]
call fcn.00403400
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x46f32c
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 0x46f429
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 [0x49b37b]
mov ecx, dword [eax*4 + 0x498bc0]
mov edx, 0x80000002
xor eax, eax
call fcn.0042dd44
test eax, eax
jne 0x46f3b1
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 0x46f3a6
mov eax, 0x46f440
call fcn.00456ff8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x46f3bb
mov eax, 0x46f474
call fcn.00456ff8
test bl, bl
je 0x46f40e
mov eax, esi
call fcn.00403738
push eax
call sub.gdi32.dll_AddFontResourceA
test eax, eax
je 0x46f3e2
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageA
jmp 0x46f40e
lea ecx, [ebp - 0xc]
mov edx, 0x46f4a0
mov al, 0x33
call fcn.00450ab8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042e5d4
mov eax, dword [ebp - 8]
mov edx, dword [0x49ace0]
call fcn.0046d680
test al, al
je 0x46f3bf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f430
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403420
ret

Function at 0x471ae4
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 0x471ba5
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 0x471b8a
test bl, 0x10
je 0x471b8a
lea ecx, [ebp - 4]
mov edx, 0x471bbc
mov eax, esi
call fcn.0042c548
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x471bd0
mov eax, 0x471be0
call fcn.0042cd60
mov edx, 0x471bf8
mov eax, dword [ebp - 8]
call fcn.00406acc
test eax, eax
jne 0x471b8a
mov eax, dword [ebp - 4]
call fcn.00406f58
lea ecx, [ebp - 0xc]
mov edx, 0x471c28
mov eax, esi
call fcn.0042c548
mov eax, dword [ebp - 0xc]
call fcn.00406f58
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 0x471bac
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403420
ret
Function at 0x4726b4
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 0x472788
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x472772
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00452c10
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, 0x4727a0
call fcn.00457204
mov edx, ebx
mov eax, dword [0x49b2f8]
call fcn.0040b44c
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.0045c85c
test al, al
jne 0x472772
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
jne 0x472757
mov eax, 0x4727d4
call fcn.00456ff8
jmp 0x472772
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, 0x472830
call fcn.00457204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47278f
lea eax, [ebp - 0x18]
call fcn.00403400
ret
Function at 0x474060
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 0x4741ca
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.0042c40c
lea eax, [ebp - 0x148]
mov edx, 0x4741e0
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 0x4741a9
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 0x47418e
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, 0x4741f4
call fcn.00406acc
test eax, eax
jne 0x47418e
mov edx, 0x4741fc
mov eax, dword [ebp - 4]
mov al, byte [eax + 5]
call fcn.0042e910
test al, al
je 0x47418e
mov edx, 0x4741fc
mov eax, dword [ebp - 4]
mov al, byte [eax + 6]
call fcn.0042e910
test al, al
je 0x47418e
mov edx, 0x4741fc
mov eax, dword [ebp - 4]
mov al, byte [eax + 7]
call fcn.0042e910
test al, al
je 0x47418e
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0x2e
jne 0x47418e
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.00406da0
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 0x4740c9
push ebx
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4741d1
lea eax, [ebp - 0x148]
call fcn.00403400
lea eax, [ebp - 4]
call fcn.00403400
ret
Function at 0x476870
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.0040cc4c
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
call fcn.00476798
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4a
mov eax, dword [0x49b088]
push eax
call sub.user32.dll_SendMessageA
mov ebx, eax
mov eax, esi
call fcn.0042e2ac
cmp ebx, 0x6c840001
jne 0x4768c0
call fcn.00408c08
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4768e4
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x476994
call fcn.00452a00
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 0x47693c
mov ebx, eax
mov edx, 1
mov ax, word [ebp - 6]
call fcn.004767f4
mov esi, eax
mov eax, esi
sub ax, 2
je 0x47693c
dec eax
sub ax, 2
jb 0x476950
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4769c8
call fcn.00452a00
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4768f1
mov edx, 2
mov ax, word [ebp - 6]
call fcn.004767f4
movzx ebx, ax
mov edx, 3
mov ax, word [ebp - 6]
call fcn.004767f4
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 0x476f74
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 0x477020
push 0x47703c
call sub.kernel32.dll_GetModuleHandleA_1
push eax
call sub.kernel32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x47700a
mov eax, esi
call fcn.00403738
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47700a
test al, 0x10
je 0x476fbb
mov ebp, 0x2000000
jmp 0x476fbd
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 0x47700a
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 0x47700a
cmp ebx, 0xff0
jge 0x47700a
mov edx, edi
mov eax, esp
call fcn.00476e9c
jmp 0x477013
mov eax, edi
mov edx, esi
call fcn.00403494
add esp, 0x1000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47704c
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 0x4770de
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 0x4770b4
cmp ebx, 0x104
jge 0x4770b4
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.0040355c
mov eax, dword [ebp - 0x108]
mov edx, esi
call fcn.00476f74
jmp 0x4770c5
mov eax, 0x4770f4
call fcn.00452bb4
mov eax, esi
call fcn.00403400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4770e5
lea eax, [ebp - 0x108]
call fcn.00403400
ret

Function at 0x477108
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 0x477256
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00476f74
lea eax, [ebp - 0xc]
call fcn.0047704c
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, 0x477264
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 0x4771b4
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x4c7
jne 0x4771aa
call fcn.00408be8
mov eax, 0x477274
call fcn.00452afc
cmp dword [ebp - 0x10], 0
jne 0x4771c4
mov eax, 0x47728c
call fcn.004529a4
xor edx, edx
push ebp
push 0x477234
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00476c94
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4771d2
inc eax
jne 0x4771fd
mov eax, 0x4772b8
call fcn.00452afc
call fcn.00476c94
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x47721d
mov eax, 0x4772dc
call fcn.00452afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47723b
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret