joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d65d8
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 0x4d66a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4d61dc]
call fcn.004d66c0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d667d
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, 0x4d66b8
call fcn.0040af98
mov edx, dword [ebp - 8]
mov eax, dword [0x5002cc]
mov eax, dword [eax]
call fcn.0046c97c
call fcn.004d6238
call sub.user32.dll_GetFocus
mov edx, dword [0x5002cc]
mov edx, dword [edx]
cmp eax, dword [edx + 0x30]
jne 0x4d6660
push 0x7a
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4d6667
call sub.user32.dll_WaitMessage
jmp 0x4d663d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d6684
mov eax, dword [ebp - 4]
call fcn.00404040
ret

Function at 0x4d753c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d7623
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebx + 8]
call fcn.0040638c
cmp esi, eax
jl 0x4d7596
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00409d90
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4d7640
call fcn.00405188
mov eax, dword [ebp - 8]
call fcn.00405300
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4d7608
xor eax, eax
push ebp
push 0x4d75eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebx + 8]
mov edx, dword [edx + esi*8]
call fcn.00404ec4
mov eax, dword [edi]
call fcn.00405300
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 8]
mov edx, dword [edx + esi*8 + 4]
call fcn.00404ec4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00405300
push eax
call sub.kernel32.dll_OutputDebugStringA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d7608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d762a
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404e94
ret
Function at 0x4dc604
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4dc60c
push ecx
push ebx
xor eax, eax
push ebp
push 0x4dc773
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004b2b20
mov edx, dword [ebp - 0x10]
mov eax, 0x506de0
call fcn.00404ec4
lea eax, [ebp - 0x14]
mov ecx, dword [0x506de0]
mov edx, 0x4dc788
call fcn.00405188
mov eax, dword [ebp - 0x14]
call fcn.004b6478
mov eax, dword [0x500398]
cmp byte [eax], 0
je 0x4dc667
mov eax, dword [0x506de0]
call fcn.004b5c2c
lea edx, [ebp - 0x18]
mov eax, dword [0x506de0]
call fcn.0046ee20
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0x4dc7b0
call fcn.00405188
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4dc6fd
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, 0x2f
call fcn.004b10a8
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.00409e7c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.004710f4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
mov ecx, 2
mov al, 0x60
call fcn.004b1078
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x4087b8]
call fcn.0040dac4
call fcn.0040489c
lea eax, [ebp - 0xc]
mov ecx, 0x4dc7c0
mov edx, dword [ebp - 4]
call fcn.00405188
mov edx, dword [ebp - 0xc]
mov eax, 0x4dc7d8
call fcn.004dc5ac
lea eax, [ebp - 8]
call fcn.004b7118
cmp dword [ebp - 8], 0
je 0x4dc74b
lea eax, [ebp - 0xc]
mov ecx, 0x4dc7ec
mov edx, dword [ebp - 4]
call fcn.00405188
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004dc5ac
mov eax, dword [ebp - 0xc]
call fcn.004b7188
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc77a
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404e94
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404e94
ret
Function at 0x4ddc14
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp byte [0x506f4f], 0
sete byte [0x50703c]
cmp dword [0x506d64], 0
je 0x4ddc72
mov eax, dword [0x506fb0]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4ddc72
inc edi
xor esi, esi
mov edx, esi
mov eax, dword [0x506fb0]
call fcn.0041c108
mov edx, dword [eax]
mov eax, dword [0x506d64]
call fcn.00409670
test eax, eax
jne 0x4ddc6e
mov eax, esi
call fcn.004dd9fc
mov byte [0x50703c], 0
jmp 0x4ddd49
inc esi
dec edi
jne 0x4ddc3f
movzx eax, byte [0x506f50]
sub al, 1
jb 0x4ddc81
je 0x4ddc8a
jmp 0x4ddc93
call fcn.00470cf8
mov ebp, eax
jmp 0x4ddc95
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x4ddc95
xor ebp, ebp
test bp, bp
je 0x4ddd32
mov eax, dword [0x506fb0]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4ddce1
inc edi
xor esi, esi
mov edx, esi
mov eax, dword [0x506fb0]
call fcn.0041c108
mov ebx, eax
movzx eax, bp
cmp eax, dword [ebx + 0x2c]
jne 0x4ddcdd
cmp dword [ebx + 0x30], 0
je 0x4ddcd4
call sub.kernel32.dll_GetACP_1
cmp eax, dword [ebx + 0x30]
jne 0x4ddcdd
mov eax, esi
call fcn.004dd9fc
jmp 0x4ddd49
inc esi
dec edi
jne 0x4ddcae
mov eax, dword [0x506fb0]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4ddd32
inc edi
xor esi, esi
mov edx, esi
mov eax, dword [0x506fb0]
call fcn.0041c108
mov ebx, eax
mov eax, dword [ebx + 0x2c]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4ddd2e
cmp dword [ebx + 0x30], 0
je 0x4ddd25
call sub.kernel32.dll_GetACP_1
cmp eax, dword [ebx + 0x30]
jne 0x4ddd2e
mov eax, esi
call fcn.004dd9fc
jmp 0x4ddd49
inc esi
dec edi
jne 0x4ddcf1
xor eax, eax
call fcn.004dd9fc
cmp byte [0x506f4f], 2
jne 0x4ddd49
mov byte [0x50703c], 1
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4de6d4
Capabilities:
Hide graphical window

Disassembly:
mov byte [0x507085], 1
call fcn.004b4524
test al, al
jne 0x4de720
push 5
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
push 0
push 1
push 1
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x108]
mov cl, 2
xor edx, edx
call fcn.004de5e0
ret

Function at 0x4e1244
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 0x4e1269
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e2e50
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x4ffe58]
cmp dword [eax], 0
je 0x4e2ef8
mov eax, dword [0x4ffe58]
mov eax, dword [eax]
call fcn.00456924
test al, al
je 0x4e2ef8
mov eax, dword [0x4ffe58]
mov eax, dword [eax]
cmp byte [eax + 0x1da], 0
je 0x4e2ea2
cmp byte [ebx + 0x371], 0
jne 0x4e2ea2
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsIconic
test eax, eax
je 0x4e2ea6
xor eax, eax
jmp 0x4e2ea8
mov al, 1
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [0x4ffe58]
mov eax, dword [eax]
call fcn.00456584
push eax
call sub.user32.dll_GetWindowLongA
test eax, 0x10000000
setne al
cmp bl, al
je 0x4e2ef8
test bl, bl
je 0x4e2ee4
push 5
mov eax, dword [0x4ffe58]
mov eax, dword [eax]
call fcn.00456584
push eax
call sub.user32.dll_ShowWindow
jmp 0x4e2ef8
push 0
mov eax, dword [0x4ffe58]
mov eax, dword [eax]
call fcn.00456584
push eax
call sub.user32.dll_ShowWindow
pop ebx
ret

Function at 0x4e2fa8
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffd8
mov byte [0x507040], 0
push 0x4e3080
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4e3090
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x4e3034
lea edx, [esp + 4]
push edx
call eax
push 0x4e30a4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
test esi, esi
je 0x4e303e
push esp
call sub.kernel32.dll_GetCurrentProcess
push eax
call esi
test eax, eax
je 0x4e303e
cmp dword [esp], 0
je 0x4e303e
call fcn.004b18bc
test al, al
je 0x4e303e
push 0x4e30b4
push ebx
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x4e303e
push 0x4e30d0
push 0x4e30e0
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x4e303e
mov byte [0x507040], 1
jmp 0x4e303e
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [esp + 4]
sub ax, 1
jb 0x4e3057
sub ax, 5
je 0x4e3060
sub ax, 3
je 0x4e3069
jmp 0x4e3072
mov byte [0x4ff9b4], 1
jmp 0x4e3079
mov byte [0x4ff9b4], 3
jmp 0x4e3079
mov byte [0x4ff9b4], 2
jmp 0x4e3079
mov byte [0x4ff9b4], 0
add esp, 0x28
pop esi
pop ebx
ret

Function at 0x4e30f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 1
lea eax, [ebp - 4]
push eax
mov ecx, 0x4e3160
mov edx, 0x80000002
xor eax, eax
call fcn.00470770
test eax, eax
jne 0x4e3159
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4e318c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e3150
cmp dword [ebp - 0xc], 4
jne 0x4e3150
cmp dword [ebp - 8], 4
jne 0x4e3150
movzx eax, word [ebp - 0x10]
mov word [0x507054], ax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret
Function at 0x4e32cc
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffed0
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4e337b
movzx eax, byte [esp + 4]
shl eax, 0x18
movzx edx, byte [esp + 8]
shl edx, 0x10
or eax, edx
movzx edx, word [esp + 0xc]
or eax, edx
mov dword [0x507050], eax
cmp byte [0x50703f], 0
je 0x4e337b
mov eax, dword [esp + 4]
cmp eax, 5
jb 0x4e336c
mov dword [esp + 0x94], 0x9c
lea eax, [esp + 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4e337b
movzx eax, byte [esp + 0x128]
shl eax, 8
movzx edx, byte [esp + 0x12a]
or ax, dx
mov word [0x507054], ax
movzx eax, byte [esp + 0x12e]
mov byte [0x507056], al
movzx eax, word [esp + 0x12c]
mov word [0x507058], ax
jmp 0x4e337b
cmp eax, 4
jne 0x4e337b
call fcn.004e30f0
call fcn.004e3198
add esp, 0x130
ret
Function at 0x4edb20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4edcf2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
lea eax, [ebp - 4]
mov ecx, 0x200
xor edx, edx
call fcn.00404f60
push 0
movzx eax, byte [ebp + 8]
mov eax, dword [eax*4 + 0x4ffdf4]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405300
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.00470770
test eax, eax
jne 0x4edcd7
xor eax, eax
push ebp
push 0x4edccc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [edi + 4]
mov eax, dword [edi]
xor ecx, ecx
call fcn.0047c618
xor ebx, ebx
mov esi, dword [ebp - 4]
test esi, esi
je 0x4edbb1
sub esi, 4
mov esi, dword [esi]
mov dword [ebp - 0x18], esi
cmp byte [ebp + 8], 0
je 0x4edbde
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00405360
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov dword [ebp - 0x1c], eax
jmp 0x4edc00
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
call fcn.00405360
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, 1
jb 0x4edc76
sub eax, 0xe9
je 0x4edc1a
sub eax, 0x19
je 0x4edcb5
jmp 0x4edc6f
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4edc31
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x10000
jl 0x4edc44
call fcn.00404948
jmp 0x4edcd7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4edc5b
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404f60
jmp 0x4edba5
call fcn.00404948
jmp 0x4edcd7
lea ecx, [ebx + 1]
mov edx, dword [edi + 4]
mov eax, dword [edi]
call fcn.0047c618
lea eax, [ebp - 4]
call fcn.00405360
mov edx, eax
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.00404f60
lea ecx, [ebp - 0x30]
mov eax, edi
mov edx, ebx
call fcn.0048ac84
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.0047b258
inc ebx
jmp 0x4edba5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edcd3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edcf9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e94
ret
Function at 0x4f32c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4f3342
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x4f332a
mov ebx, esi
test ebx, ebx
je 0x4f32f2
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
push eax
mov eax, esi
call fcn.00405300
push eax
push 1
push 0
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4f335c
call fcn.00405188
mov eax, dword [ebp - 8]
call fcn.00405300
push eax
push edi
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete al
mov ebx, eax
jmp 0x4f332c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3349
lea eax, [ebp - 8]
call fcn.00404e70
ret

Function at 0x4f67d8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f6880
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f6898
push ebx
push 0x4f68a4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405204
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403544
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4f685e
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x188]
call fcn.004f6730
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov ebx, dword [ebp - 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6887
lea eax, [ebp - 4]
call fcn.00404e70
ret
Function at 0x4f70c4
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f72af
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00470334
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004b29b4
test al, al
jne 0x4f7131
xor eax, eax
push ebp
push 0x4f7127
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
xor eax, eax
call fcn.004b2d38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f7131
push 0
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
mov eax, dword [0x507130]
call fcn.00405300
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
jne 0x4f7160
mov eax, dword [0x5002dc]
mov eax, dword [eax + 0x184]
call fcn.004f6730
push 0x80
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x5037f8]
push eax
push 0
mov ecx, 0x4f72c0
mov edx, 0x4f72c4
xor eax, eax
call fcn.00408108
mov dword [ebp - 8], eax
push 0x4f68e4
push 0xfffffffffffffffc
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_SetWindowLongA
mov dword [0x50715c], eax
xor eax, eax
push ebp
push 0x4f7278
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x97
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetWindowPos
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.0046fdc8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x24]
mov ecx, 1
mov eax, 0x4f72d4
call fcn.0040af98
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.0046fca8
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.0040513c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004f67d8
mov dword [ebp - 0xc], eax
call fcn.004f68a8
test al, al
jne 0x4f7258
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4f7236
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f727f
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DestroyWindow_1
ret
Function at 0x4f83b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f8667
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov edx, 0x4f8680
call fcn.0046c97c
push 5
mov eax, dword [0x5002cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
push ebp
push 0x4f862e
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004de934
lea eax, [ebp - 0x10]
call fcn.00470284
mov eax, dword [ebp - 0x10]
call fcn.0040a80c
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.0046fdc8
mov edx, dword [ebp - 0x14]
mov eax, 0x507130
call fcn.00404ec4
call fcn.004f6ab0
lea ecx, [ebp - 0x18]
mov edx, 0x4f8694
mov eax, dword [0x507130]
call fcn.0046eeec
mov edx, dword [ebp - 0x18]
mov eax, 0x507134
call fcn.00404ec4
lea ecx, [ebp - 0x1c]
mov edx, 0x4f86a4
mov eax, dword [0x507130]
call fcn.0046eeec
mov edx, dword [ebp - 0x1c]
mov eax, 0x507138
call fcn.00404ec4
push 2
push 0
push 1
mov ecx, dword [0x507130]
mov dl, 1
mov eax, dword [0x4b0010]
call fcn.004b0304
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f8505
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 4]
mov edx, dword [ebp - 0x24]
sub edx, 8
mov eax, dword [ebp - 4]
call fcn.004b02c4
lea edx, [ebp - 0xc]
mov ecx, 8
mov eax, dword [ebp - 4]
call fcn.004b029c
cmp dword [ebp - 0xc], 0x67734d49
je 0x4f84e0
mov cl, 1
xor edx, edx
mov eax, dword [0x507138]
call fcn.004b1200
jmp 0x4f84ef
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x507130]
call fcn.004b1200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f850c
mov eax, dword [ebp - 4]
call fcn.00404040
ret
Function at 0x4f87c4
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f8907
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x14c]
mov ecx, 0x4f891c
mov edx, ebx
call fcn.00405188
mov eax, dword [ebp - 0x14c]
call fcn.00405300
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4f88e1
xor eax, eax
push ebp
push 0x4f88da
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4f892c
lea eax, [ebp - 0x11c]
mov ecx, 5
call fcn.0040a9fc
test eax, eax
jne 0x4f88ab
test byte [ebp - 0x148], 0x10
jne 0x4f88ab
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x11c]
mov ecx, 0x104
call fcn.004050e0
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405188
mov esi, dword [ebp - 0x148]
test esi, 1
je 0x4f889d
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.00405300
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4f8835
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f88e1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f890e
lea eax, [ebp - 0x150]
mov edx, 2
call fcn.00404e94
lea eax, [ebp - 4]
call fcn.00404e70
ret
Function at 0x4f8934
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f8a32
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00404e70
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0046f31c
xor edi, edi
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x4f8a48
call fcn.0040af98
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405188
mov eax, dword [ebp - 8]
call fcn.00405300
push eax
call sub.kernel32.dll_GetFileAttributesA
mov esi, eax
cmp esi, 0xffffffff
je 0x4f89d2
test esi, 0x10
jne 0x4f8a02
test esi, 1
je 0x4f89d2
and esi, 0xfffffffe
push esi
mov eax, dword [ebp - 8]
call fcn.00405300
push eax
call sub.kernel32.dll_SetFileAttributesA
push 1
mov eax, dword [ebp - 8]
call fcn.00405300
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405300
push eax
call sub.kernel32.dll_MoveFileExA
test eax, eax
je 0x4f89fc
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404ec4
jmp 0x4f8a0f
inc edi
cmp edi, 0xa
je 0x4f8a0f
inc ebx
cmp ebx, 0x3e8
jne 0x4f8973
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8a39
lea eax, [ebp - 0x14]
call fcn.00404e70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e94
ret