joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496f37
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffab0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x10
test dx, 0xffff
jne 0x497132
cmp eax, 0x20
je 0x497132
mov eax, dword [0x564814]
cmp eax, 0xffffffff
je 0x497132
push 0
push 0x103
lea ecx, [ebp - 0x168]
push ecx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x496f9b
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x497156
jmp 0x497132
cmp eax, 1
jle 0x497132
cmp eax, 0x19
jg 0x497132
mov byte [ebp + eax - 0x168], 0
push 0x2c
lea eax, [ebp - 0x168]
push eax
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x497132
mov byte [ebx], 0
inc ebx
cmp byte [ebx], 0
je 0x497132
lea eax, [ebp - 0x168]
push eax
call fcn.00555124
pop ecx
mov esi, eax
push ebx
call fcn.00555124
pop ecx
mov edi, eax
push 2
call fcn.0041292a
mov ebx, eax
test ebx, ebx
jne 0x497020
cmp dword [0x5647fc], 0
jne 0x497132
call fcn.004127e5
mov ebx, eax
test ebx, ebx
je 0x497132
jmp 0x497028
xor eax, eax
mov dword [ebx + 0x444], eax
push 0x57fb38
push 0x64
lea edx, [ebp - 0x64]
push edx
call fcn.0042e322
cmp dword [0x564800], 0
je 0x49706c
push 0x64
lea ecx, [ebp - 0x64]
push ecx
call fcn.0042e3f0
push 0
push ebx
lea eax, [ebp - 0x64]
push eax
call fcn.004d84ed
test eax, eax
jne 0x49706c
push 0x57fb38
push 0x64
lea edx, [ebp - 0x64]
push edx
call fcn.0042e322
cmp dword [0x5647f8], 0
je 0x4970bd
lea ecx, [ebp - 0x64]
push ecx
push 0x57fb9c
push edi
push esi
push 0
push 0xc1f
call fcn.0042c564
push eax
lea eax, [ebp - 0x550]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x18
push dword [0x55f8ac]
lea edx, [ebp - 0x550]
push edx
push dword [ebx]
call fcn.004ee447
push dword [0x55f89c]
push dword [ebx]
call fcn.004ee341
push 0x22
push 0x802c
push dword [0x56cee8]
push dword [0x564814]
call sub.WSOCK32.dll_WSAAsyncSelect
lea ecx, [ebp - 0x64]
push ecx
push 0x57fb9c
push edi
push esi
push str._d___d_:_USERID_:__s_:__s_r_n
lea eax, [ebp - 0x168]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x18
lea edx, [ebp - 0x168]
push edx
call fcn.0054c2d0
pop ecx
mov ebx, eax
push 0
push ebx
lea eax, [ebp - 0x168]
push eax
push dword [0x564814]
call sub.WSOCK32.dll_send
cmp ebx, eax
jne 0x497132
mov dword [0x564808], 3
mov dword [0x56480c], 1
jmp 0x497156
cmp dword [0x5647fc], 0
je 0x49714f
push 0
call fcn.0041292a
test eax, eax
jne 0x49714f
push 0
call fcn.00496c2a
jmp 0x497156
push 1
call fcn.00496c2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x498886
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x20], 0
jne 0x4988a1
mov dword [ebp - 8], 1
jmp 0x498902
cmp dword [esi + 8], 0
jne 0x4988c2
push 1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call fcn.004e47a0
jmp 0x498a74
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4988d3
mov eax, 2
jmp 0x498a74
cmp dword [eax + 0x1c], 1
je 0x4988e3
mov eax, 1
jmp 0x498a74
cmp dword [eax + 0xc], 0
jne 0x498a42
push dword [eax]
call fcn.00555124
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x498a42
push dword [0x56cee8]
call sub.USER32.dll_OpenClipboard
test eax, eax
je 0x498a42
push 1
call sub.USER32.dll_GetClipboardData
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x498a3d
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalLock
mov edi, eax
test edi, edi
je 0x498a3d
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
push edi
call fcn.0054c2d0
pop ecx
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0xc], edx
push 0xa
push edi
call fcn.0054c230
add esp, 8
mov ebx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x4989b1
test ebx, ebx
je 0x49896f
mov byte [ebx], 0
push 0x3e7
push 0
push dword [ebp + 0x14]
call fcn.0054c150
add esp, 0xc
push 0x3b5
push edi
push dword [ebp + 0x14]
call fcn.0054c4dc
add esp, 0xc
test ebx, ebx
je 0x498999
mov byte [ebx], 0xa
push 0xd
push dword [ebp + 0x14]
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4989c5
mov byte [ebx], 0
jmp 0x4989c5
test ebx, ebx
je 0x4989c5
inc ebx
cmp byte [ebx], 0xd
jne 0x4989bc
inc ebx
cmp byte [ebx], 0
je 0x4989c5
mov edi, ebx
jmp 0x498950
cmp dword [ebp - 8], 0
jne 0x4989de
push dword [ebp - 0xc]
push 0x5649ec
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
cmp dword [esi + 0x10], 0
je 0x498a35
push 0x2e
push dword [esi]
call fcn.0054c5b8
add esp, 8
mov ebx, eax
test eax, eax
je 0x498a35
push str..len
push ebx
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x498a2f
cmp dword [ebp - 8], 0
je 0x498a1a
push dword [ebp + 0x14]
call fcn.0054c2d0
pop ecx
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x5649f6
push dword [ebp + 0x14]
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x498a35
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
push dword [ebp - 4]
call sub.KERNEL32.dll_GlobalUnlock
call sub.USER32.dll_CloseClipboard
cmp dword [ebp + 0x20], 0
jne 0x498a64
mov eax, 2
jmp 0x498a74
push dword [esi + 0x40]
mov edx, dword [ebp + 0xc]
push dword [edx]
call fcn.004c6cb6
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
dec dword [esi + 8]
cmp dword [esi + 8], 0
jg 0x498a4f
xor eax, eax
mov dword [esi + 8], eax
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4ac734
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4ac76e
cmp byte [ebx], 0
je 0x4ac76e
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4ac76e
test al, 0x10
jne 0x4ac76e
test ah, 0x10
jne 0x4ac76e
test al, 4
jne 0x4ac76e
test ah, 1
jne 0x4ac76e
and eax, 0xfffffffd
and eax, 0xfffffffe
push eax
push ebx
call sub.KERNEL32.dll_SetFileAttributesA
pop ebx
pop ebp
ret 4
Function at 0x4acae5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff830
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x14], 0
je 0x4acb13
cmp dword [ebp + 0x18], 0
jle 0x4acb13
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x14]
call fcn.0054c150
add esp, 0xc
test esi, esi
je 0x4acbe4
push 0x3e7
lea eax, [ebp - 0x3e8]
push eax
call fcn.0042e3f0
push esi
push edi
mov edi, esi
lea esi, [ebp - 0x3e8]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0xf
lea eax, [ebp - 0x3e8]
push eax
call fcn.0050cc40
cmp byte [ebp - 0x3e8], 0
je 0x4accc6
push 0x5b
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4acb8c
mov byte [ebx], 0x7e
jmp 0x4acb70
push 0x5d
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4acbab
mov byte [ebx], 0x7e
jmp 0x4acb8c
mov byte [ebx], 0x20
push 0xa
lea eax, [ebp - 0x3e8]
push eax
call fcn.0054c230
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4acba8
jmp 0x4acbc7
mov byte [ebx], 0x20
push 0xd
lea edx, [ebp - 0x3e8]
push edx
call fcn.0054c230
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4acbc4
lea esi, [ebp - 0x3e8]
test edi, edi
je 0x4accb3
push 0x3e7
lea eax, [ebp - 0x7d0]
push eax
call fcn.0042e3f0
push esi
push edi
lea esi, [ebp - 0x7d0]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0xf
lea eax, [ebp - 0x7d0]
push eax
call fcn.0050cc40
cmp byte [ebp - 0x7d0], 0
je 0x4accc6
push 0x5b
lea edx, [ebp - 0x7d0]
push edx
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4acc5b
mov byte [ebx], 0x7e
jmp 0x4acc3f
push 0x5d
lea eax, [ebp - 0x7d0]
push eax
call fcn.0054c230
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x4acc7a
mov byte [ebx], 0x7e
jmp 0x4acc5b
mov byte [ebx], 0x20
push 0xa
lea eax, [ebp - 0x7d0]
push eax
call fcn.0054c230
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4acc77
jmp 0x4acc96
mov byte [ebx], 0x20
push 0xd
lea edx, [ebp - 0x7d0]
push edx
call fcn.0054c230
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4acc93
lea edi, [ebp - 0x7d0]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call sub.KERNEL32.dll_GetPrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4ad3e2
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff90c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [0x566194], 1
test eax, eax
je 0x4ad41b
cmp byte [eax], 0
je 0x4ad41b
cmp dword [ebp + 0xc], 0
je 0x4ad41b
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x4ad425
mov eax, dword [0x566194]
jmp 0x4ad63f
push eax
push 0x180
lea ecx, [ebp - 0x18c]
push ecx
call fcn.0042e322
lea eax, [ebp - 0x18c]
push eax
lea edx, [ebp - 0x18c]
push edx
call fcn.0042cd5e
test eax, eax
jne 0x4ad458
mov eax, dword [0x566194]
jmp 0x4ad63f
lea edx, [ebp - 0x18c]
push edx
call fcn.004ac734
push 0x40
push 0x566232
lea ecx, [ebp - 0x18c]
push ecx
call fcn.00552238
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ad48d
mov eax, dword [0x566194]
jmp 0x4ad63f
push 0x586e7f
push 0x586d7f
push 0x586c7f
push 0x586c7c
lea edx, [ebp - 0x18c]
push edx
call fcn.0050ca44
add esp, 0x14
push 0
call fcn.00551394
pop ecx
push eax
push 0x586c7f
push 0x586c7c
push 0x566235
lea ecx, [ebp - 0x30c]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0x40
push 0x56623d
lea eax, [ebp - 0x30c]
push eax
call fcn.00552238
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4ad506
push dword [ebp - 8]
call fcn.0054f730
pop ecx
mov eax, dword [0x566194]
jmp 0x4ad63f
push 0x1000
push 0
push 0
push dword [ebp - 8]
call fcn.00550fc8
add esp, 0x10
push 0x1000
push 0
push 0
push edi
call fcn.00550fc8
add esp, 0x10
push dword [ebp + 0xc]
call fcn.0054c2d0
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
push 0x3e7
lea edx, [ebp - 0x6f4]
push edx
call fcn.0054f860
add esp, 0xc
mov esi, eax
test esi, esi
je 0x4ad609
test ebx, ebx
je 0x4ad589
push 0x5b
lea eax, [ebp - 0x6f4]
push eax
call fcn.0054c230
add esp, 8
test eax, eax
je 0x4ad589
push 0x3d
lea edx, [ebp - 0x6f4]
push edx
call fcn.0054c230
add esp, 8
test eax, eax
jne 0x4ad589
xor ebx, ebx
test ebx, ebx
jne 0x4ad538
push dword [ebp - 0xc]
push dword [ebp + 0xc]
lea eax, [ebp - 0x6f4]
push eax
call fcn.0054c52c
add esp, 0xc
test eax, eax
jne 0x4ad5ad
mov ebx, 1
jmp 0x4ad538
cmp byte [esi], 0xa
jne 0x4ad5c1
mov dword [0x566194], 1
jmp 0x4ad538
cmp dword [ebp - 4], 0
je 0x4ad5d0
xor eax, eax
mov dword [0x566194], eax
jmp 0x4ad5ef
cmp dword [0x566194], 0
je 0x4ad5ef
push edi
push 0x566240
call fcn.0054fd04
add esp, 8
xor edx, edx
mov dword [0x566194], edx
push edi
lea ecx, [ebp - 0x6f4]
push ecx
call fcn.0054fd04
add esp, 8
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4ad538
push edi
call fcn.0054f730
pop ecx
push dword [ebp - 8]
call fcn.0054f730
pop ecx
push 0
lea edx, [ebp - 0x18c]
push edx
lea ecx, [ebp - 0x30c]
push ecx
call sub.KERNEL32.dll_CopyFileA
lea eax, [ebp - 0x30c]
push eax
call sub.KERNEL32.dll_DeleteFileA
mov eax, dword [0x566194]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad8fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 2
push ebx
call fcn.0042c9b5
test eax, eax
je 0x4ad917
push ebx
call fcn.004ad648
jmp 0x4ad93b
push dword [ebp + 0xc]
push 0x57fd38
push 0x56625f
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
push ebx
call fcn.004ad648
pop ebx
pop ebp
ret 8

Function at 0x4b0810
Capabilities:
Log keystrokes via polling

Disassembly:
add esp, 0xffffffa8
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x18]
push edx
push 0x566ed7
push 0
call fcn.004ed277
cmp dword [0x55d82c], 0
je 0x4b086e
push dword [0x56cee8]
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x4b086e
mov dword [esp + 0x10], 3
jmp 0x4b08a6
push dword [0x56cee8]
call sub.USER32.dll_IsIconic
test eax, eax
je 0x4b0887
mov dword [esp + 0x10], 1
jmp 0x4b08a6
push dword [0x56cee8]
call sub.USER32.dll_IsZoomed
test eax, eax
je 0x4b08a0
mov dword [esp + 0x10], 2
jmp 0x4b08a6
xor ecx, ecx
mov dword [esp + 0x10], ecx
push 0x10
call sub.USER32.dll_GetKeyState
movsx eax, ax
and eax, 0x8000
cmp eax, 0x8000
jne 0x4b08d7
cmp dword [0x55d828], 0
je 0x4b08cf
mov dword [esp + 0x10], 3
jmp 0x4b08d7
mov dword [esp + 0x10], 1
cmp dword [esp + 0x10], 0
jne 0x4b0913
lea edx, [esp + 0x48]
push edx
push dword [0x56cee8]
call sub.USER32.dll_GetWindowRect
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov edx, dword [esp + 0x50]
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x54]
sub edx, eax
mov dword [esp + 0xc], edx
jmp 0x4b094e
mov dword [esp + 0x1c], 0x2c
lea ecx, [esp + 0x1c]
push ecx
push dword [0x56cee8]
call sub.USER32.dll_GetWindowPlacement
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov edx, dword [esp + 0x40]
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x44]
sub edx, eax
mov dword [esp + 0xc], edx
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x18]
push 0x566edd
push 0x58060e
call sub.USER32.dll_wsprintfA
add esp, 0x24
push 0x57fc34
push 0x58060e
push str.main
push 0x566ef3
call fcn.004ac86a
add esp, 0x58
ret
Function at 0x4c6264
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x568458
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyA
mov ebx, eax
test ebx, ebx
je 0x4c628a
xor eax, eax
jmp 0x4c62b8
push esi
call fcn.0054c2d0
pop ecx
inc eax
push eax
push esi
push 1
push dword [ebp + 8]
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueA
mov ebx, eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x4c62b3
xor eax, eax
jmp 0x4c62b8
mov eax, 1
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4c62bf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov byte [esi], 0
lea eax, [ebp - 8]
push eax
push 0x568467
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyA
mov ebx, eax
test ebx, ebx
je 0x4c62ea
xor eax, eax
jmp 0x4c6318
mov dword [ebp - 4], 0x3e7
lea edx, [ebp - 4]
push edx
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegQueryValueA
mov ebx, eax
push dword [ebp - 8]
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x4c6313
xor eax, eax
jmp 0x4c6318
mov eax, 1
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4c6320
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push str.SoftwaremIRC
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyA
mov ebx, eax
test ebx, ebx
je 0x4c6342
xor eax, eax
jmp 0x4c6364
push dword [ebp + 8]
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegDeleteKeyA
mov ebx, eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
test ebx, ebx
je 0x4c635f
xor eax, eax
jmp 0x4c6364
mov eax, 1
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4c82aa
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
push 0x40
push 0x568739
push dword [ebp + 8]
call fcn.00552238
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4c82d2
xor eax, eax
jmp 0x4c84d3
push 0x1000
push 0
push 0
push esi
call fcn.00550fc8
add esp, 0x10
lea edx, [ebp - 0x2c]
push edx
push dword [ebp + 8]
call fcn.00552870
add esp, 8
test eax, eax
je 0x4c8305
push esi
call fcn.0054f730
pop ecx
xor eax, eax
jmp 0x4c84d3
imul ecx, dword [0x568668], 0x3e8
cmp ecx, dword [ebp - 0x1a]
jl 0x4c8325
push esi
call fcn.0054f730
pop ecx
mov eax, 1
jmp 0x4c84d3
mov eax, ecx
mov ebx, 3
cdq
idiv ebx
sub ecx, eax
mov eax, dword [ebp - 0x1a]
sub eax, ecx
mov ecx, eax
push 0
push ecx
push esi
call fcn.0054ff28
add esp, 0xc
test eax, eax
je 0x4c8356
push esi
call fcn.0054f730
pop ecx
xor eax, eax
jmp 0x4c84d3
push 0
push 0
push 0x586c7f
push 0x586c7c
push dword [ebp + 8]
call fcn.0050ca44
add esp, 0x14
push 0
call fcn.00551394
pop ecx
push eax
push 0x586c7f
push 0x586c7c
push 0x56873c
push 0x57fe40
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0x40
push 0x568744
push 0x57fe40
call fcn.00552238
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4c83bc
push esi
call fcn.0054f730
pop ecx
xor eax, eax
jmp 0x4c84d3
push 0x1000
push 0
push 0
push edi
call fcn.00550fc8
add esp, 0x10
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x4c84aa
push esi
push pe_nt_image_headers32
push 1
push 0x57ac8f
call fcn.0054fe88
add esp, 0x10
mov ecx, eax
test ecx, ecx
jg 0x4c842a
test byte [esi + 0x12], 0x10
je 0x4c84aa
push edi
call fcn.0054f730
pop ecx
push esi
call fcn.0054f730
pop ecx
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
xor eax, eax
jmp 0x4c84d3
cmp ecx, 0x200
jge 0x4c8437
xor edx, edx
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0
je 0x4c846d
xor eax, eax
mov edx, 0x57ac8f
cmp ecx, eax
jle 0x4c8453
cmp byte [edx], 0xa
je 0x4c8453
inc eax
inc edx
cmp ecx, eax
jg 0x4c8448
cmp byte [eax + 0x57ac8f], 0xa
jne 0x4c83dc
mov edx, 0x57ac90
add edx, eax
inc eax
sub ecx, eax
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4c8472
mov edx, 0x57ac8f
push edi
push 1
push ecx
push edx
call fcn.00550028
add esp, 0x10
cmp eax, 1
je 0x4c84a0
push edi
call fcn.0054f730
pop ecx
push esi
call fcn.0054f730
pop ecx
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
xor eax, eax
jmp 0x4c84d3
cmp dword [ebp - 8], 0
jne 0x4c83e6
push edi
call fcn.0054f730
pop ecx
push esi
call fcn.0054f730
pop ecx
push 0
push dword [ebp + 8]
push 0x57fe40
call sub.KERNEL32.dll_CopyFileA
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c8a3f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4c8c3d
cmp byte [ebx], 0
je 0x4c8c3d
cmp dword [0x568658], 0
je 0x4c8b5c
cmp byte [edi + 0x1814], 0
je 0x4c8b5c
test esi, esi
je 0x4c8a8e
cmp esi, 1
je 0x4c8a8e
cmp esi, 2
jne 0x4c8b5c
push 0x586e7f
push 0x586d7f
push 0x586c7f
push 0x586c7c
push ebx
call fcn.0050ca44
add esp, 0x14
cmp byte [0x586d7f], 0
jne 0x4c8ac1
cmp byte [0x586e7f], 0
je 0x4c8c3d
mov byte [ebx], 0
cmp dword [0x56865c], 0
je 0x4c8b2e
lea eax, [edi + 0x1814]
push eax
push 0x586c7f
push 0x586c7c
push 0x568794
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryA
push 2
push ebx
call fcn.0042c9b5
test eax, eax
je 0x4c8b2b
push 0x586e7f
push 0x586d7f
lea edx, [edi + 0x1814]
push edx
push 0x586c7f
push 0x586c7c
push str._s_s_s_s_s
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x1c
jmp 0x4c8b2e
mov byte [ebx], 0
cmp byte [ebx], 0
jne 0x4c8b5c
push 0x586e7f
add edi, 0x1814
push edi
push 0x586d7f
push 0x586c7f
push 0x586c7c
push str._s_s_s._s_s
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x1c
cmp dword [0x56864c], 0
je 0x4c8c3d
cmp dword [0x568660], 0
je 0x4c8b7a
test esi, esi
je 0x4c8c3d
push 0x586e7f
push 0x586d7f
push 0x586c7f
push 0x586c7c
push ebx
call fcn.0050ca44
add esp, 0x14
cmp byte [0x586d7f], 0
jne 0x4c8bad
cmp byte [0x586e7f], 0
je 0x4c8c3d
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetLocalTime
cmp dword [0x56a17c], 0
jle 0x4c8c0c
cmp word [ebp - 0xa], 1
jae 0x4c8c02
mov word [ebp - 0xa], 1
jmp 0x4c8c02
mov edx, dword [0x56a17c]
cmp edx, 1
jne 0x4c8bf3
cmp ax, 1
je 0x4c8c0c
cmp ax, 7
je 0x4c8c0c
cmp ax, 0xe
je 0x4c8c0c
cmp ax, 0x15
je 0x4c8c0c
jmp 0x4c8bfe
cmp edx, 2
jne 0x4c8bfe
cmp ax, 1
je 0x4c8c0c
dec word [ebp - 0xa]
mov ax, word [ebp - 0xa]
cmp ax, 1
jae 0x4c8bce
push 0x586e7f
movzx edx, word [ebp - 0xa]
push edx
movzx ecx, word [ebp - 0xe]
push ecx
movzx eax, word [ebp - 0x10]
push eax
push 0x586d7f
push 0x586c7f
push 0x586c7c
push str._s_s_s._04d_02d_02d_s
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c8c46
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [0x56cee0]
test ebx, ebx
je 0x4c8ca1
cmp dword [ebx + 0x66c], 0
je 0x4c8c97
mov eax, dword [ebx + 0x6bc]
test eax, eax
je 0x4c8c7c
cmp eax, 1
je 0x4c8c7c
cmp eax, 2
jne 0x4c8c97
mov eax, dword [ebx + 0x670]
test eax, eax
jl 0x4c8c97
push eax
call fcn.0054f720
pop ecx
mov dword [ebx + 0x670], 0xffffffff
mov ebx, dword [ebx + 0xd18]
test ebx, ebx
jne 0x4c8c5f
mov ebx, dword [0x56cee0]
test ebx, ebx
je 0x4c8e0e
cmp dword [ebx + 0x66c], 0
je 0x4c8e00
mov eax, dword [ebx + 0x6bc]
test eax, eax
je 0x4c8cd4
cmp eax, 1
je 0x4c8cd4
cmp eax, 2
jne 0x4c8dc6
lea edx, [ebx + 0x568]
push edi
mov edi, edx
lea esi, [ebp - 0x104]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push dword [ebx + 0xb6c]
push dword [ebx + 0x6bc]
lea eax, [ebp - 0x104]
push eax
call fcn.004c8a3f
lea edx, [ebp - 0x104]
push edx
lea esi, [ebx + 0x464]
push esi
call fcn.0054c494
add esp, 8
test eax, eax
je 0x4c8e00
test edi, edi
je 0x4c8d8d
push 0
push ebx
call fcn.004c8658
push 1
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.0042d1cf
test eax, eax
jne 0x4c8d5c
push esi
call sub.KERNEL32.dll_DeleteFileA
push esi
push edi
lea edi, [ebp - 0x104]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
push ebx
call fcn.004c84dc
jmp 0x4c8e00
push 1
push ebx
call fcn.004c8658
push esi
push edi
lea edi, [ebp - 0x104]
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 1
push ebx
call fcn.004c84dc
jmp 0x4c8e00
push 0
call fcn.0055aa70
pop ecx
push eax
call fcn.00510ea8
push eax
push 0
push 0xe85
call fcn.0042c564
push eax
lea eax, [ebp - 0x104]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 1
lea edx, [ebp - 0x104]
push edx
push ebx
call fcn.004c8710
mov ebx, dword [ebx + 0xd18]
test ebx, ebx
jne 0x4c8caf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4