joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c17fc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd90
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c19c8
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4c199b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
test eax, eax
je 0x4c1859
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4c1897
mov eax, ebx
call fcn.004c04ac
test al, al
jne 0x4c1877
mov byte [ebp - 5], 0
call fcn.00404b68
jmp 0x4c19a2
lea edx, [ebp - 0x264]
mov eax, ebx
call fcn.004c016c
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004c1c28
mov byte [ebp - 5], 1
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0047e46c
lea eax, [ebp - 0x268]
mov edx, 0x4c19e8
call fcn.00406854
mov eax, dword [ebp - 0x268]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4c1984
xor eax, eax
push ebp
push 0x4c197d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004c0028
test al, al
je 0x4c1952
lea eax, [ebp - 4]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
lea edx, [ebp - 0x270]
mov eax, ebx
call fcn.0047e46c
lea eax, [ebp - 0x270]
mov edx, dword [ebp - 4]
call fcn.00406854
mov eax, dword [ebp - 0x270]
lea edx, [ebp - 0x26c]
call fcn.004c016c
mov eax, dword [ebp - 0x26c]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 4]
mov edx, esi
call fcn.004c1218
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c18eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1984
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c19a2
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c19cf
lea eax, [ebp - 0x270]
mov edx, 4
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4c1cb8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c1eae
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4c1d3d
lea edx, [ebp - 0x264]
mov eax, edi
call fcn.0047ea00
mov eax, dword [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0047e46c
mov eax, dword [ebp - 0x268]
pop edx
call fcn.0047e684
test eax, eax
jne 0x4c1d3d
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047e9d8
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c1e7c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x26c]
mov eax, ebx
call fcn.0047e46c
lea eax, [ebp - 0x26c]
mov edx, 0x4c1ec8
call fcn.00406854
mov eax, dword [ebp - 0x26c]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4c1e65
xor eax, eax
push ebp
push 0x4c1e5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004c0028
test al, al
je 0x4c1e2f
lea eax, [ebp - 8]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.00406640
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0047e684
test eax, eax
je 0x4c1e2f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004c130c
test eax, eax
jne 0x4c1e2f
lea edx, [ebp - 0x274]
mov eax, ebx
call fcn.0047e46c
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.00406854
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.004c016c
mov eax, dword [ebp - 0x270]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004c1218
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c1da5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1e65
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1e83
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4c2180
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.0040e160
add esp, 0x208
pop ebx
ret
Function at 0x4c5124
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c531a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.0045a7f0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.0045a824
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.0045a7f0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.0045a824
xor eax, eax
push ebp
push 0x4c52ef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x4c5328
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c5204
cmp word [ebp - 0x2ac], 0
je 0x4c5204
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x509b50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b0]
call fcn.004c5060
xor edx, edx
mov al, 6
call fcn.004dad1c
test al, al
je 0x4c5262
push 0x27
lea edx, [ebp - 0x2bc]
mov eax, dword [0x506054]
mov eax, dword [eax]
call fcn.0047e46c
lea eax, [ebp - 0x2bc]
mov edx, 0x4c5350
call fcn.00406854
mov eax, dword [ebp - 0x2bc]
call fcn.004064d4
push eax
mov eax, dword [0x509b50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004c5060
jmp 0x4c52e5
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.004e050c
cmp dword [ebp - 4], 0
jne 0x4c5286
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.004e050c
cmp dword [ebp - 4], 0
je 0x4c52e5
push 0x1000
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c52e5
cmp word [ebp - 0x2ac], 0
je 0x4c52e5
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x509b50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004c5060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c52f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5321
lea eax, [ebp - 0x2bc]
call fcn.00406438
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4ce15c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x4ce175
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4ce1a9
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.004ce02c
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cf994
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4cfaa7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x505c8c]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x505440]
mov edx, 0x80000002
xor eax, eax
call fcn.0047fefc
test eax, eax
jne 0x4cfa29
mov esi, edi
test esi, esi
je 0x4cf9ec
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.004064d4
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x4cfa1e
mov eax, 0x4cfac4
call fcn.004b30f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4cfa33
mov eax, 0x4cfb28
call fcn.004b30f0
test bl, bl
je 0x4cfa8c
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4cfa5a
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4cfa8c
lea ecx, [ebp - 0x10]
mov edx, 0x4cfb7c
mov al, 0x3a
call fcn.004ac064
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004807e4
mov eax, dword [ebp - 0xc]
mov edx, dword [0x505e5c]
mov edx, dword [edx + 0xc8]
call fcn.004cd630
test al, al
je 0x4cfa37
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfaae
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4d2cbc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4d2d9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d2d82
test bl, 0x10
je 0x4d2d82
lea ecx, [ebp - 4]
mov edx, 0x4d2db8
mov eax, esi
call fcn.0047e5e0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4d2ddc
mov eax, 0x4d2df8
call fcn.0047ed90
mov edx, 0x4d2e24
mov eax, dword [ebp - 8]
call fcn.0040c2bc
test eax, eax
jne 0x4d2d82
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4d2e80
mov eax, esi
call fcn.0047e5e0
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x10]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004064d4
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2da4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4d3da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4d3e78
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.004ae268
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4d3e94
call fcn.004b3374
mov eax, dword [0x505ad0]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.00423584
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4d3e11
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
movzx eax, byte [ebp - 1]
call fcn.004b9420
test al, al
jne 0x4d3e62
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4d3e47
mov eax, 0x4d3ee4
call fcn.004b30f0
jmp 0x4d3e62
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4d3f84
call fcn.004b3374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3e7f
lea eax, [ebp - 0x1c]
call fcn.00406438
ret
Function at 0x4d62bc
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6485
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
push eax
lea edx, [ebp - 0x258]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047e46c
lea eax, [ebp - 0x258]
mov edx, 0x4d64a0
call fcn.00406854
mov eax, dword [ebp - 0x258]
call fcn.004064d4
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d645f
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d634f
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x4d6384
lea eax, [ebp - 0x25c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00406bec
mov eax, dword [ebp - 0x25c]
mov edx, 0x4d64c4
call fcn.0040c2bc
test eax, eax
sete al
jmp 0x4d6386
xor eax, eax
test al, al
je 0x4d63af
mov eax, 0x4d64d0
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xa]
cmp si, 0x100
jae 0x4d63a7
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d63ab
xor eax, eax
jmp 0x4d63b1
mov al, 1
jmp 0x4d63b1
xor eax, eax
test al, al
je 0x4d63da
mov eax, 0x4d64d0
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xc]
cmp si, 0x100
jae 0x4d63d2
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d63d6
xor eax, eax
jmp 0x4d63dc
mov al, 1
jmp 0x4d63dc
xor eax, eax
test al, al
je 0x4d6405
mov eax, 0x4d64d0
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xe]
cmp si, 0x100
jae 0x4d63fd
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d6401
xor eax, eax
jmp 0x4d6407
mov al, 1
jmp 0x4d6407
xor eax, eax
test al, al
je 0x4d6444
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x4d6444
lea eax, [ebp - 0x260]
push eax
mov ecx, 3
mov edx, 6
mov eax, dword [ebp - 4]
call fcn.00406bec
mov eax, dword [ebp - 0x260]
call fcn.0040d21c
mov edx, dword [ebp + 8]
mov byte [edx + eax - 0x3ec], 1
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4d6330
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d648c
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4d9974
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 - 0x12], eax
mov eax, dword [esi]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0xe], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa], eax
call fcn.004d9848
lea eax, [ebp - 0x12]
push eax
push 0
push 0x4a
mov eax, dword [0x50cd1c]
push eax
call sub.user32.dll_SendMessageW
mov ebx, eax
mov eax, dword [esi]
xor edx, edx
mov dword [esi], edx
call fcn.00404098
cmp ebx, 0x6c840001
jne 0x4d99c7
call fcn.00411994
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4d99eb
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d9aa0
call fcn.004ae060
mov word [ebp - 6], bx
xor esi, esi
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call dword [ebp - 4]
call sub.kernel32.dll_GetTickCount_1
mov edx, eax
sub edx, ebx
cmp edx, 0xa
jb 0x4d9a43
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.004d98c8
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4d9a43
dec eax
sub ax, 2
jb 0x4d9a57
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d9b00
call fcn.004ae060
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4d99f8
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.004d98c8
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.004d98c8
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 0x4da10c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4da116
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x4da1cc
push 0x4da200
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x4da1b5
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4da1b5
test al, 0x10
je 0x4da166
mov ebp, 0x2000000
jmp 0x4da168
xor ebp, ebp
push 0
push ebp
push 3
push 0
push 7
push 0
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateFileW
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4da1b5
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 0x4da1b5
cmp ebx, 0xff0
jge 0x4da1b5
mov edx, edi
mov eax, esp
call fcn.004da024
jmp 0x4da1be
mov eax, edi
mov edx, esi
call fcn.00406448
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4da21c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x20c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4da2af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x208]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW_1
mov ebx, eax
test ebx, ebx
jle 0x4da283
cmp ebx, 0x104
jge 0x4da283
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.004da10c
jmp 0x4da296
mov eax, 0x4da2c8
call fcn.004ae210
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da2b6
lea eax, [ebp - 0x20c]
call fcn.00406438
ret

Function at 0x4da2f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4da43f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004da10c
lea eax, [ebp - 8]
call fcn.004da21c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403540
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x800540
mov eax, 0x4da44c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
call fcn.004064d4
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.004064d4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
call fcn.004064d4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x48]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
jne 0x4da39b
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x4da391
call fcn.0041198c
mov eax, 0x4da464
call fcn.004ae15c
cmp dword [ebp - 0x10], 0
jne 0x4da3ab
mov eax, 0x4da490
call fcn.004ae008
xor edx, edx
push ebp
push 0x4da41d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004d9e18
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4da3b9
cmp eax, 0xffffffff
jne 0x4da3e6
mov eax, 0x4da4e4
call fcn.004ae15c
call fcn.004d9e18
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4da406
mov eax, 0x4da524
call fcn.004ae15c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da424
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4da54c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4da61b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d9db0]
call fcn.004da644
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4da5f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4da634
call fcn.0040e2c8
mov edx, dword [ebp - 8]
mov eax, dword [0x505e4c]
mov eax, dword [eax]
call fcn.0047bfc0
call fcn.004d9e18
call sub.user32.dll_GetFocus
mov edx, dword [0x505e4c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x170]
jne 0x4da5d7
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4da5de
call sub.user32.dll_WaitMessage
jmp 0x4da5b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da5fb
mov eax, dword [ebp - 4]
call fcn.00404098
ret

Function at 0x4dfc34
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4dfc3c
push ecx
push ebx
xor eax, eax
push ebp
push 0x4dfd86
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004ae79c
mov edx, dword [ebp - 0x10]
mov eax, 0x50cdc8
call fcn.00406448
lea eax, [ebp - 0x14]
mov ecx, dword [0x50cdc8]
mov edx, 0x4dfda0
call fcn.00406914
mov eax, dword [ebp - 0x14]
call fcn.004b30f0
mov eax, dword [0x505f10]
cmp byte [eax], 0
je 0x4dfc97
mov eax, dword [0x50cdc8]
call fcn.004b27f8
lea edx, [ebp - 0x18]
mov eax, dword [0x50cdc8]
call fcn.0047e46c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4dfde8
call fcn.00406914
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4dfd2d
call sub.kernel32.dll_GetLastError
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.004ac064
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x30]
call fcn.0040d1cc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00480a58
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x68
call fcn.004ac034
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x40ab6c]
call fcn.004119a0
call fcn.00404a74
lea eax, [ebp - 8]
call fcn.004b39a0
cmp dword [ebp - 8], 0
je 0x4dfd5e
lea eax, [ebp - 0xc]
mov ecx, 0x4dfe04
mov edx, dword [ebp - 4]
call fcn.00406914
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004dfbdc
mov eax, dword [ebp - 0xc]
call fcn.004b39f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfd8d
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406440
ret