joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1164
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 0x4c135a
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4c11e9
lea edx, [ebp - 0x264]
mov eax, edi
call fcn.0047fef0
mov eax, dword [ebp - 0x264]
push eax
lea edx, [ebp - 0x268]
mov eax, ebx
call fcn.0047f95c
mov eax, dword [ebp - 0x268]
pop edx
call fcn.0047fb74
test eax, eax
jne 0x4c11e9
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047fec8
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c1328
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
push eax
lea edx, [ebp - 0x26c]
mov eax, ebx
call fcn.0047f95c
lea eax, [ebp - 0x26c]
mov edx, 0x4c1374
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 0x4c1311
xor eax, eax
push ebp
push 0x4c130a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x260]
call fcn.004bf4d4
test al, al
je 0x4c12db
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.0047fb74
test eax, eax
je 0x4c12db
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.004c07b8
test eax, eax
jne 0x4c12db
lea edx, [ebp - 0x274]
mov eax, ebx
call fcn.0047f95c
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.00406854
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x270]
call fcn.004bf618
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.004c06c4
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x4c1251
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1311
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 0x4c132f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4c162c
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.0040ef1c
add esp, 0x208
pop ebx
ret
Function at 0x4c45d0
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 0x4c47c6
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.0045b584
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x20
call fcn.0045b5b8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.0045b584
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x4b4]
mov edx, 0x20
call fcn.0045b5b8
xor eax, eax
push ebp
push 0x4c479b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x4c47d4
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x4c46b0
cmp word [ebp - 0x2ac], 0
je 0x4c46b0
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x50cb50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b0]
call fcn.004c450c
xor edx, edx
mov al, 6
call fcn.004dacac
test al, al
je 0x4c470e
push 0x27
lea edx, [ebp - 0x2bc]
mov eax, dword [0x509078]
mov eax, dword [eax]
call fcn.0047f95c
lea eax, [ebp - 0x2bc]
mov edx, 0x4c47fc
call fcn.00406854
mov eax, dword [ebp - 0x2bc]
call fcn.004064d4
push eax
mov eax, dword [0x50cb50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004c450c
jmp 0x4c4791
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.004e049c
cmp dword [ebp - 4], 0
jne 0x4c4732
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.004e049c
cmp dword [ebp - 4], 0
je 0x4c4791
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 0x4c4791
cmp word [ebp - 0x2ac], 0
je 0x4c4791
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x50cb50]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x4b4]
call fcn.004c450c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c47a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c47cd
lea eax, [ebp - 0x2bc]
call fcn.00406438
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4ce340
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 0x4ce359
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 0x4ce38d
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.004ce210
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cfb78
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 0x4cfc8b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x508ca8]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x5083d8]
mov edx, 0x80000002
xor eax, eax
call fcn.004813ec
test eax, eax
jne 0x4cfc0d
mov esi, edi
test esi, esi
je 0x4cfbd0
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 0x4cfc02
mov eax, 0x4cfca8
call fcn.004b2cb4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4cfc17
mov eax, 0x4cfd0c
call fcn.004b2cb4
test bl, bl
je 0x4cfc70
mov eax, edi
call fcn.004064d4
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x4cfc3e
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x4cfc70
lea ecx, [ebp - 0x10]
mov edx, 0x4cfd60
mov al, 0x3a
call fcn.00483a48
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00481cd4
mov eax, dword [ebp - 0xc]
mov edx, dword [0x508e7c]
mov edx, dword [edx + 0xc8]
call fcn.004cd814
test al, al
je 0x4cfc1b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfc92
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406440
ret
Function at 0x4d3258
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 0x4d3339
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 0x4d331e
test bl, 0x10
je 0x4d331e
lea ecx, [ebp - 4]
mov edx, 0x4d3354
mov eax, esi
call fcn.0047fad0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x4d3378
mov eax, 0x4d3394
call fcn.00480280
mov edx, 0x4d33c0
mov eax, dword [ebp - 8]
call fcn.0040d078
test eax, eax
jne 0x4d331e
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_DeleteFileW
lea ecx, [ebp - 0xc]
mov edx, 0x4d341c
mov eax, esi
call fcn.0047fad0
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 0x4d3340
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406440
ret
Function at 0x4d433c
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
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4d441f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
je 0x4d4409
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.00486420
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, 0x4d443c
call fcn.004b2f38
mov eax, dword [0x508aec]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.00424340
mov esi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4d43b8
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.004b8fe0
test al, al
jne 0x4d4409
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4d43ee
mov eax, 0x4d44a0
call fcn.004b2cb4
jmp 0x4d4409
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x4d4554
call fcn.004b2f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4426
lea eax, [ebp - 0x1c]
call fcn.00406438
ret
Function at 0x4d624c
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 0x4d6415
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.0047f95c
lea eax, [ebp - 0x258]
mov edx, 0x4d6430
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 0x4d63ef
lea eax, [ebp - 4]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d62df
sub eax, 4
mov eax, dword [eax]
cmp eax, 9
jl 0x4d6314
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, 0x4d6454
call fcn.0040d078
test eax, eax
sete al
jmp 0x4d6316
xor eax, eax
test al, al
je 0x4d633f
mov eax, 0x4d6460
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xa]
cmp si, 0x100
jae 0x4d6337
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d633b
xor eax, eax
jmp 0x4d6341
mov al, 1
jmp 0x4d6341
xor eax, eax
test al, al
je 0x4d636a
mov eax, 0x4d6460
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xc]
cmp si, 0x100
jae 0x4d6362
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d6366
xor eax, eax
jmp 0x4d636c
mov al, 1
jmp 0x4d636c
xor eax, eax
test al, al
je 0x4d6395
mov eax, 0x4d6460
mov edx, dword [ebp - 4]
movzx esi, word [edx + 0xe]
cmp si, 0x100
jae 0x4d638d
mov edx, esi
movzx edx, dl
bt dword [eax], edx
jb 0x4d6391
xor eax, eax
jmp 0x4d6397
mov al, 1
jmp 0x4d6397
xor eax, eax
test al, al
je 0x4d63d4
mov eax, dword [ebp - 4]
cmp word [eax + 0x10], 0x2e
jne 0x4d63d4
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.0040dfd8
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 0x4d62c0
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d641c
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 4]
call fcn.00406438
ret
Function at 0x4d9904
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.004d97d8
lea eax, [ebp - 0x12]
push eax
push 0
push 0x4a
mov eax, dword [0x50fd14]
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 0x4d9957
call fcn.00412750
mov eax, ebx
and eax, 0xffff0000
cmp eax, 0x6c830000
je 0x4d997b
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d9a30
call fcn.00486218
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 0x4d99d3
mov ebx, eax
mov edx, 1
movzx eax, word [ebp - 6]
call fcn.004d9858
mov esi, eax
mov eax, esi
sub ax, 2
je 0x4d99d3
dec eax
sub ax, 2
jb 0x4d99e7
movzx eax, si
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4d9a90
call fcn.00486218
push 0xff
push 0xa
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x4d9988
mov edx, 2
movzx eax, word [ebp - 6]
call fcn.004d9858
movzx ebx, ax
mov edx, 3
movzx eax, word [ebp - 6]
call fcn.004d9858
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 0x4da09c
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 0x4da0a6
mov eax, dword [esp + 0x2000]
add esp, 4
mov edi, edx
mov esi, eax
push 0x4da15c
push 0x4da190
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00409620
mov ebx, eax
test ebx, ebx
je 0x4da145
mov eax, esi
call fcn.004064d4
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4da145
test al, 0x10
je 0x4da0f6
mov ebp, 0x2000000
jmp 0x4da0f8
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 0x4da145
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 0x4da145
cmp ebx, 0xff0
jge 0x4da145
mov edx, edi
mov eax, esp
call fcn.004d9fb4
jmp 0x4da14e
mov eax, edi
mov edx, esi
call fcn.00406448
add esp, 0x2000
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4da1ac
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 0x4da23f
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 0x4da213
cmp ebx, 0x104
jge 0x4da213
lea eax, [ebp - 0x20c]
lea edx, [ebp - 0x208]
mov ecx, 0x104
call fcn.00406640
mov eax, dword [ebp - 0x20c]
mov edx, esi
call fcn.004da09c
jmp 0x4da226
mov eax, 0x4da258
call fcn.004863c8
mov eax, esi
xor edx, edx
call fcn.00406448
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da246
lea eax, [ebp - 0x20c]
call fcn.00406438
ret

Function at 0x4da280
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 0x4da3cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004da09c
lea eax, [ebp - 8]
call fcn.004da1ac
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, 0x4da3dc
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 0x4da32b
call sub.kernel32.dll_GetLastError
cmp eax, 0x4c7
jne 0x4da321
call fcn.00412748
mov eax, 0x4da3f4
call fcn.00486314
cmp dword [ebp - 0x10], 0
jne 0x4da33b
mov eax, 0x4da420
call fcn.004861c0
xor edx, edx
push ebp
push 0x4da3ad
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004d9da8
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4da349
cmp eax, 0xffffffff
jne 0x4da376
mov eax, 0x4da474
call fcn.00486314
call fcn.004d9da8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x4da396
mov eax, 0x4da4b4
call fcn.00486314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da3b4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x4da4dc
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 0x4da5ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d9d40]
call fcn.004da5d4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4da584
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, 0x4da5c4
call fcn.0040f084
mov edx, dword [ebp - 8]
mov eax, dword [0x508e6c]
mov eax, dword [eax]
call fcn.0047cd54
call fcn.004d9da8
call sub.user32.dll_GetFocus
mov edx, dword [0x508e6c]
mov edx, dword [edx]
cmp eax, dword [edx + 0x170]
jne 0x4da567
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4da56e
call sub.user32.dll_WaitMessage
jmp 0x4da541
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da58b
mov eax, dword [ebp - 4]
call fcn.00404098
ret

Function at 0x4dfbc4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4dfbcc
push ecx
push ebx
xor eax, eax
push ebp
push 0x4dfd16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00486954
mov edx, dword [ebp - 0x10]
mov eax, 0x50fdc4
call fcn.00406448
lea eax, [ebp - 0x14]
mov ecx, dword [0x50fdc4]
mov edx, 0x4dfd30
call fcn.00406914
mov eax, dword [ebp - 0x14]
call fcn.004b2cb4
mov eax, dword [0x508f34]
cmp byte [eax], 0
je 0x4dfc27
mov eax, dword [0x50fdc4]
call fcn.004b23bc
lea edx, [ebp - 0x18]
mov eax, dword [0x50fdc4]
call fcn.0047f95c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4dfd78
call fcn.00406914
push 0
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4dfcbd
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.00483a48
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.0040df88
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00481f48
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x68
call fcn.00483a18
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x40b928]
call fcn.0041275c
call fcn.00404a74
lea eax, [ebp - 8]
call fcn.004b3564
cmp dword [ebp - 8], 0
je 0x4dfcee
lea eax, [ebp - 0xc]
mov ecx, 0x4dfd94
mov edx, dword [ebp - 4]
call fcn.00406914
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004dfb6c
mov eax, dword [ebp - 0xc]
call fcn.004b35bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dfd1d
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00406440
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00406440
ret
Function at 0x4e25f0
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x51009d], 1
call fcn.0048878c
test al, al
jne 0x4e2642
push 5
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov eax, dword [0x508e7c]
mov eax, dword [eax + 0x124]
mov cl, 2
xor edx, edx
call fcn.004e24d4
ret

Function at 0x4e5b3c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 3
lea ebx, [ebp - 8]
lea esi, [ebp - 0xc]
lea edi, [ebp - 4]
movzx eax, byte [esi]
movzx edx, byte [ebx]
sub eax, edx
imul dword [ebp - 0x10]
push ecx
mov ecx, 0xff
cdq
idiv ecx
pop ecx
movzx edx, byte [ebx]
add eax, edx
mov byte [edi], al
inc edi
inc esi
inc ebx
dec ecx
jne 0x4e5b61
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4e7914
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jae 0x4e791d
call fcn.004e6608
mov eax, 0xa
call fcn.0048234c
call fcn.004e6608
call fcn.004e78b4
test al, al
jne 0x4e78f2
pop ebx
ret

Function at 0x4e7e40
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x508a08]
cmp dword [eax], 0
je 0x4e7eeb
mov eax, dword [0x508a08]
mov eax, dword [eax]
call fcn.00464be8
test al, al
je 0x4e7eeb
mov eax, dword [0x508a08]
mov eax, dword [eax]
cmp byte [eax + 0x1e2], 0
je 0x4e7e95
cmp byte [ebx + 0x389], 0
jne 0x4e7e95
mov eax, dword [0x508e6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4e7e99
xor eax, eax
jmp 0x4e7e9b
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x508a08]
mov eax, dword [eax]
call fcn.0046483c
push eax
call sub.user32.dll_GetWindowLongW
test eax, 0x10000000
setne al
cmp bl, al
je 0x4e7eeb
test bl, bl
je 0x4e7ed7
push 5
mov eax, dword [0x508a08]
mov eax, dword [eax]
call fcn.0046483c
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e7eeb
push 0
mov eax, dword [0x508a08]
mov eax, dword [eax]
call fcn.0046483c
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret