joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004b5c24
test eax, eax
jne 0x443517
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
push esi
call eax
mov esi, dword [ebp + 8]
push str..lp
lea ecx, [ebp - 4]
push ecx
add eax, 0x10
push esi
mov dword [ebp - 4], eax
call fcn.0041f320
add esp, 0xc
test eax, eax
jne 0x443566
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44355f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 4]
push edx
push eax
push esi
push ecx
call fcn.00442ee0
add esp, 0x14
test eax, eax
jle 0x44359c
mov edx, dword [ebp - 4]
push 0
push esi
push edx
call fcn.00480470
mov eax, dword [ebp - 4]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4435bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x444b50
Capabilities:
Inspect load icon resource

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
lea edi, [esi + 0x120]
mov dword [edi], 0x1e8
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], 1
mov dword [esi + 0x130], 0x418
call fcn.004bf945
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push edi
push 0
mov dword [esi + 0x134], eax
mov byte [esi + 0x138], 0
mov dword [esi + 0x12c], 3
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
test eax, eax
je 0x444bec
push 6
mov ecx, esi
call fcn.004b3ee4
push 0
mov ecx, esi
call fcn.004b3ee4
mov eax, dword [esi + 0x3b0]
test eax, eax
je 0x444bec
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x444bec
mov ecx, dword [esi + 0x3b0]
push 0
call fcn.004b3ee4
pop edi
pop esi
ret
Function at 0x4482b0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x10c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x448309
mov ecx, dword [ebp + 0x10]
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_connect]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
push ebx
push edx
push edi
push esi
xor ebx, ebx
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp + 0x14]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x114], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
lea eax, [ebp - 0x114]
push eax
push ebx
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push ebx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x44837c
cmp eax, 0xffffffff
jne 0x44837f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebx, 0xffffffff
lea edx, [ebp - 0x10c]
push edx
push 0x8004667e
push esi
mov dword [ebp - 0x10c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
Function at 0x448440
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x66dc64]
xor eax, eax
test ecx, ecx
je 0x448474
inc eax
cmp eax, 0x100
jl 0x448458
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
push esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4484a1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push esi
mov dword [ebp - 0x18], 0xafc8
call edi
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x1005
push 0xffff
push esi
call edi
mov edi, dword [ebp + 8]
xor eax, eax
mov edx, 2
mov dword [ebp - 0x14], eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov word [ebp - 0x14], dx
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x1388
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004482b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44853b
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push 0x32
mov dword [0x66dc60], esi
mov dword [0x66dc64], edi
mov dword [0x66dc68], ebx
mov dword [0x66dc5c], 1
mov dword [0x66dc70], ecx
mov dword [0x66dc58], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov eax, 0x66dc58
pop esi
call fcn.005bb30e
mov esp, ebp
pop ebp
ret
Function at 0x44a500
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5df1e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x44a6ea
cmp byte [esi], 0
je 0x44a6ea
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44a6ea
push esi
lea ecx, [ebp + 8]
call fcn.00406c70
mov eax, dword [0x66dac4]
mov dword [ebp - 4], 0
test eax, eax
je 0x44a6c4
mov ecx, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
jl 0x44a6c4
push eax
push ecx
call fcn.005be869
add esp, 8
test eax, eax
je 0x44a6c4
sub eax, dword [ebp + 8]
jne 0x44a6c4
lea ecx, [ebp - 0x14]
call fcn.00406050
lea ecx, [ebp - 0x10]
call fcn.00406050
mov eax, dword [0x66dac4]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov bl, 2
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.0044a0f0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406510
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44a5e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [0x66dac0]
push ecx
push edx
lea eax, [ebp - 0x14]
push 0x5f7dc4
push eax
call fcn.004065c0
mov edi, dword [ebp - 0x14]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x44a6b4
mov esi, dword [ebp + 8]
cmp dword [esi - 4], 1
jle 0x44a62f
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00405c00
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, esi
jbe 0x44a671
sub eax, esi
dec eax
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp + 8]
call fcn.00423290
mov esi, dword [ebp - 0x18]
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44a666
push eax
push esi
call fcn.004804b0
add esp, 8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004273a0
mov eax, dword [ebp + 8]
push 1
push eax
push edi
call fcn.00480470
add esp, 0xc
cmp eax, 1
lea ecx, [ebp - 0x10]
sete bl
call fcn.004273a0
lea ecx, [ebp - 0x14]
call fcn.004273a0
lea ecx, [ebp + 8]
call fcn.004273a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
call fcn.004273a0
lea ecx, [ebp - 0x14]
call fcn.004273a0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44a6ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44f8c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5df83b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call fcn.004a7b60
xor edi, edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.004b5c24
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44f915
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x20], eax
push edi
push 0x5f60c0
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
mov dword [esi], edi
mov dword [esi + 0x88], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.00406350
push 0x3c
mov eax, 3
lea ecx, [esi + 0x48]
push edi
push ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edi
mov byte [esi + 0x2c], 1
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], eax
call fcn.005bb320
add esp, 0xc
mov dword [esi + 0x84], 0xffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45aff0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0806
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x66c0e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x128], edi
call fcn.004b5c24
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x45b045
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x120], eax
push edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], ebx
call fcn.00489de0
mov dword [ebp - 0x11c], ebx
mov ebx, dword [esi + 0x10]
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi], 0
jle 0x45b187
test ebx, ebx
jle 0x45b187
push 1
push str.VERSION
push str.RUNSCH
lea ecx, [ebp - 0x118]
call fcn.00489e10
mov ecx, dword [esi]
push ecx
push str.PRGCNT
push str.RUNSCH
lea ecx, [ebp - 0x118]
call fcn.00489e10
push ebx
push str.SCHCNT
push str.RUNSCH
lea ecx, [ebp - 0x118]
call fcn.00489e10
movzx edx, byte [esi + 4]
push edx
push str.ATTRIB
push str.RUNSCH
lea ecx, [ebp - 0x118]
call fcn.00489e10
xor edi, edi
test ebx, ebx
jle 0x45b187
test edi, edi
js 0x45b1e3
cmp edi, dword [esi + 0x10]
jge 0x45b1e3
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
lea ebx, [edi*4]
je 0x45b15e
push edi
push str.ITEM
lea eax, [ebp - 0x120]
push str._s_d
push eax
call fcn.004065c0
add esp, 0x10
cmp edi, dword [esi + 0x10]
jge 0x45b1e3
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx]
mov edx, dword [ebp - 0x120]
push ecx
push edx
push str.RUNSCH
lea ecx, [ebp - 0x118]
call fcn.00489dc0
jmp 0x45b168
mov dword [ebp - 0x11c], 0xffffffff
inc edi
cmp edi, dword [ebp - 0x124]
jl 0x45b0fa
cmp dword [ebp - 0x11c], 0
jge 0x45b187
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.00465d40
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b1bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bb30e
mov esp, ebp
pop ebp
ret 4
call fcn.004a815b
int3
Function at 0x465f10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
test esi, esi
je 0x465f1d
mov ecx, dword [esi + 0x20]
mov dl, byte [ebp + 0xc]
mov dword [esi + 0x235a0], ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x235a0]
mov dword [esi + 0x235a4], ecx
mov ecx, dword [esi + 0x235d0]
push 0
push 4
mov byte [esi + 0x235a8], dl
mov dword [esi + 0x235ac], ecx
push 0
lea edx, [esi + 0x98]
lea ecx, [esi + 0x23908]
mov dword [esi + 0x235b0], edx
mov dword [esi + 0x235b4], ecx
push 0xffffffffffffffff
lea edx, [esi + 0x23744]
lea ecx, [esi + 0x23558]
mov dword [esi + 0x235b8], edx
mov dword [esi + 0x235bc], ecx
mov ecx, dword [esi + 0x23638]
push eax
lea edx, [esi + 0x23574]
push 0x46ab60
mov dword [esi + 0x235c0], edx
mov dword [esi + 0x235c8], ecx
call fcn.004bb3f9
mov dword [esi + 0x23604], eax
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, esi
call fcn.004b2318
mov al, 1
pop esi
pop ebp
ret 8
Function at 0x468090
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0x23630]
push edi
cmp eax, 0xffffffff
jg 0x4680a8
mov eax, ebx
mov ecx, dword [esi + 0x23638]
imul eax, eax, 0x52
movzx eax, byte [eax + esi + 0xa6]
push ecx
push eax
lea edi, [esi + 0x23574]
push edi
mov ecx, esi
call fcn.00467830
push 0
test eax, eax
jle 0x46816c
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x235d0]
lea eax, [esi + 0x235a0]
mov dword [eax], ecx
mov cl, byte [ebp + 0xc]
push 4
mov byte [esi + 0x235a8], cl
push 0
lea ecx, [esi + 0x98]
mov dword [esi + 0x235ac], edx
mov dword [esi + 0x235b0], ecx
push 0xffffffffffffffff
lea edx, [esi + 0x23908]
lea ecx, [esi + 0x23744]
mov dword [esi + 0x235b4], edx
mov dword [esi + 0x235b8], ecx
mov ecx, dword [esi + 0x23638]
push eax
lea edx, [esi + 0x23558]
push 0x46add0
mov dword [esi + 0x235a4], ebx
mov dword [esi + 0x235bc], edx
mov dword [esi + 0x235c0], edi
mov dword [esi + 0x235c8], ecx
call fcn.004bb3f9
mov dword [esi + 0x23604], eax
mov edx, dword [eax + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, esi
call fcn.004b2318
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 0x20]
push 3
push 0x416
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x4683d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1c60
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004b5c24
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x468416
push 0x80004005
call fcn.004047e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.playbill.lpp
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], 1
call fcn.00467c30
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406510
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46846b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x468487
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x468487
mov byte [ebp - 0xd], bl
push str.playbill.lpt
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00467c30
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00406510
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4684c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4684e2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4684e2
mov byte [ebp - 0xd], bl
push str.playbill.rsf
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00467c30
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406510
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x468521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46853a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x46853d
mov bl, byte [ebp - 0xd]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x468560
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46be10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov word [ebp - 3], 0x3a
mov ebx, 0x43
lea eax, [ebp - 4]
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x46be51
mov edx, dword [edi + 0xd0]
lea ecx, [ebp - 4]
push ecx
push 0
push 0x143
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
inc ebx
cmp ebx, 0x5a
jle 0x46be26
mov ecx, dword [edi + 0xd0]
xor eax, eax
test esi, esi
setg al
push 0
dec eax
push eax
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edx, edx
test esi, esi
setg dl
mov ecx, edi
push edx
push 1
call fcn.004b3c82
mov ecx, eax
call fcn.004b3f26
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3638
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
add edi, 0x14
push edi
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
test eax, eax
je 0x47888e
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47888e
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47888e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4787e6
sub eax, edx
movzx esi, al
add esi, 4
je 0x47888e
lea ebx, [esi + 1]
push ebx
call fcn.005bb17a
mov edi, dword [ebp + 8]
add esp, 4
mov dword [edi + 0x24], eax
test eax, eax
je 0x478898
mov edx, dword [ebp + 0xc]
mov dword [eax], 0x3a464456
mov eax, dword [edi + 0x24]
lea ecx, [esi - 4]
push ecx
push edx
add eax, 4
push eax
call fcn.005bc350
mov ecx, dword [edi + 0x24]
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov byte [esi + ecx], 0
push 0x7021
push edx
lea ecx, [ebp - 0x24]
mov esi, ebx
call fcn.004c132d
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x2c]
push 2
push 0
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x24]
call fcn.004c0ec1
push 0x5fa3fc
lea ecx, [ebp - 0x24]
call fcn.004c0ec1
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.004c10c3
jmp 0x478898
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], 0
mov eax, esi
and eax, 0xffffff
or eax, 0x10000000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x478e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
push 2
push 1
push ebx
call fcn.005bfae8
push esi
push 2
lea eax, [ebx + 2]
push 1
push eax
call fcn.005bfae8
push esi
push 2
lea ecx, [ebx + 4]
push 1
push ecx
call fcn.005bfae8
push esi
push 2
lea edx, [ebx + 6]
push 1
push edx
call fcn.005bfae8
add esp, 0x40
push esi
push 2
lea eax, [ebx + 8]
push 1
push eax
call fcn.005bfae8
push esi
push 1
lea ecx, [ebx + 0xa]
push 1
push ecx
call fcn.005bfae8
push esi
push 1
lea edx, [ebx + 0xb]
push 1
push edx
call fcn.005bfae8
push esi
push 4
push 1
push 0x6052f8
call fcn.005bfae8
mov ecx, dword [ebx + 0x14]
xor eax, eax
add esp, 0x40
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], eax
cmp ecx, eax
jle 0x478f35
push edi
mov dword [ebp - 4], eax
jmp 0x478eea
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x478f3d
cmp eax, dword [ebx + 0x14]
jge 0x478f3d
mov edi, dword [ebx + 0x10]
add edi, dword [ebp - 4]
push esi
push 0xc
push 1
push edi
call fcn.005bfae8
push esi
push 1
push 1
add edi, 0x10
push edi
call fcn.005bfae8
push esi
push 3
push 1
push 0x6052f8
call fcn.005bfae8
mov eax, dword [ebp + 0xc]
add dword [ebp - 4], 0x12
inc eax
add esp, 0x30
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp - 8]
jl 0x478ee7
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a815b
int3
Function at 0x47b6d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3038
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x66c0e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0047b630
mov ecx, dword [ebp - 0x10]
xor esi, esi
push ecx
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x47b736
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x47b728
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00405c00
mov eax, dword [ebp - 0x10]
push esi
push eax
call fcn.004804b0
add esp, 8
test eax, eax
je 0x47b73b
mov esi, 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x480470
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
je 0x4804a2
push 0x10000000
push str.Users
push edi
call fcn.00480020
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x4804b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
test esi, esi
je 0x4804de
push 0x10000000
push str.Users
push edi
call fcn.00480020
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
ret