joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4836f0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fc20
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x128], eax
xor ebx, ebx
mov dword [ebp - 0x120], ebx
cmp eax, ebx
jne 0x48373d
xor eax, eax
jmp 0x4838f5
mov dword [ebp - 0x124], ebx
mov byte [ebp - 0x118], bl
push 0x103
push ebx
lea eax, [ebp - 0x117]
push eax
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x118]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x118]
push edx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x118]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x483790
mov ecx, dword [str.ra.dll]
mov dword [eax], ecx
mov dx, word [0x56e98c]
mov word [eax + 4], dx
mov cl, byte [0x56e98e]
mov byte [eax + 6], cl
push ebx
lea edx, [ebp - 0x118]
push edx
push 0xb3
call fcn.00482430
add esp, 0xc
test eax, eax
jne 0x4837dd
push ebx
lea eax, [ebp - 0x118]
push eax
call fcn.004cabd0
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x124], edi
cmp edi, ebx
je 0x483867
push str.IAlloc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x483867
mov dword [ebp - 0x11c], ebx
lea edx, [ebp - 0x11c]
push edx
push 1
push 0x15e3249c
call esi
add esp, 0xc
mov dword [ebp - 0x120], eax
cmp eax, ebx
je 0x483867
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x128]
mov edx, dword [edx + 0x60]
push edx
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x120], eax
lea ecx, [ebp - 0x11c]
push ecx
push ebx
push 0x15e3249c
call esi
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x483885
mov dword [ebp - 4], 2
cmp edi, ebx
je 0x483897
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [ebp - 0x118], bl
je 0x4838e8
lea edx, [ebp - 0x118]
push edx
call fcn.004c4aa0
add esp, 4
test eax, eax
je 0x4838e8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4838d3
push ebx
lea ecx, [ebp - 0x118]
push ecx
call fcn.004cabd0
add esp, 8
push 0x104
push ebx
lea edx, [ebp - 0x118]
push edx
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x483920
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53fc50
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._is_d
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov byte [ebp - 0x118], bl
push 0x103
push ebx
lea ecx, [ebp - 0x117]
push ecx
call fcn.004ff6f0
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4839bf
mov ax, word [0x56e990]
mov word [ebp - 0x118], ax
mov cl, byte [0x56e992]
mov byte [ebp - 0x116], cl
lea edx, [ebp - 0x118]
push edx
call fcn.004bf2e0
add esp, 4
lea eax, [ebp - 0x21c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4839d6
sub eax, edx
lea edi, [ebp - 0x118]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4839e6
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x118]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x483a05
mov ecx, dword [0x54f638]
mov dword [eax], ecx
mov dl, byte [0x54f63c]
mov byte [eax + 4], dl
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00482430
lea edx, [ebp - 0x118]
push edx
call fcn.004c4aa0
add esp, 0x10
test eax, eax
je 0x483aa8
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x483aa8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004fc6be
mov edi, eax
mov dword [ebp - 0x220], edi
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.004ff6f0
add esp, 0x10
push 0
lea ecx, [ebp - 0x224]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x487310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x487323
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x48739d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004fe210
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x487371
sub eax, edi
jmp 0x487373
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x487362
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x487390
sub eax, edi
jmp 0x487392
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x487381
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x48744f
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, edx
jbe 0x4873c3
mov ebx, edx
test ebx, ebx
je 0x487413
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x4873e6
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0048a750
jmp 0x4873f8
cmp ecx, 2
jne 0x487401
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.0048a5a0
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.004fe210
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x48743b
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x48744f
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x487320
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48dd90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, 0x34567890
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], edi
mov bl, byte [eax]
mov dword [ebp - 4], ecx
test bl, bl
je 0x48de12
push esi
mov esi, dword [edx + 4]
mov edi, edi
mov eax, dword [edx]
mov ecx, dword [ecx + 4]
movzx ebx, bl
xor ebx, eax
shr eax, 8
and ebx, 0xff
mov ecx, dword [ecx + ebx*4]
xor ecx, eax
movzx eax, cl
add esi, eax
imul esi, esi, 0x8088405
inc esi
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
shr eax, 0x18
xor eax, edi
mov dword [edx + 4], esi
mov ebx, dword [ecx + 4]
and eax, 0xff
shr edi, 8
xor edi, dword [ebx + eax*4]
mov eax, dword [ebp + 0xc]
inc eax
mov dword [edx + 8], edi
mov bl, byte [eax]
mov dword [ebp + 0xc], eax
test bl, bl
jne 0x48ddc0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48f700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540240
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
cmp edi, 0xffffffff
je 0x48f7bc
mov dword [ebp - 0x18], ebx
push 0x1fffe
call fcn.00480850
add esp, 4
mov esi, eax
nop
cmp ebx, dword [ebp - 0x18]
jne 0x48f790
mov ebx, 0x1fffe
push 0
lea edx, [ebp - 0x18]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48f7a2
mov dword [ebp - 0x14], eax
push esi
call fcn.004808a0
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f7bf
mov eax, dword [ebp - 0x18]
push eax
push esi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call fcn.0048a5a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x48f770
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x48f800
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540260
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 1
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], eax
push 0x10000
call fcn.00480850
mov edi, eax
push 0x10000
call fcn.00480850
add esp, 8
mov ebx, eax
push 0x10000
push ebx
mov ecx, esi
call fcn.0048eee0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48f8f7
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x24], eax
lea ecx, [ecx]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 8]
jne 0x48f8fe
mov dword [ebp + 8], 0
mov dword [ebp - 0x18], 0x10000
push 0
lea edx, [ebp + 8]
push edx
push 0x10000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48f8f7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, dword [ebp - 0x24]
jb 0x48f8e4
mov dword [ebp - 0x20], 1
push ebx
mov ecx, dword [ebp - 0x20]
push ecx
push eax
push edi
mov ecx, dword [ebp - 0x28]
call fcn.0048f310
test eax, eax
jne 0x48f8a0
mov dword [ebp - 0x14], 0
push edi
call fcn.004808a0
push ebx
call fcn.004808a0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x48ff50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 8
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 4]
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x48ff96
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ffa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x490057
mov eax, 0x54f15a
mov ecx, eax
push eax
push ecx
push edx
lea eax, [ebp - 0x404]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x404]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x490061
test esi, esi
je 0x490034
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [ebp - 0x408]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov ecx, 0x54f3dc
jmp 0x48ffd4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret

Function at 0x490290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x410], eax
cmp edi, ebx
je 0x4903ac
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4903ac
cmp eax, ebx
je 0x4903ac
push 0x3ff
lea ecx, [ebp - 0x403]
push ebx
push ecx
mov byte [ebp - 0x404], bl
call fcn.004ff6f0
lea edx, [ebp - 0x404]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x490300
lea edx, [ebp - 0x408]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x404]
push eax
push edi
mov dword [ebp - 0x408], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4903ac
mov eax, dword [ebp + 0x1c]
dec eax
mov dword [ebp - 0x40c], ebx
je 0x490345
sub eax, 3
je 0x4903a0
sub eax, 3
jne 0x49034e
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40c], ecx
mov eax, dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
push edx
mov edx, dword [ebp - 0x418]
push eax
mov eax, dword [ebp - 0x408]
lea ecx, [ebp + 0x1c]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, 1
test eax, eax
je 0x490380
mov esi, ebx
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x40c], 4
jmp 0x49034e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x491e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5405c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x1c], edi
or esi, 0xffffffff
mov dword [ebp - 0x18], esi
mov ecx, 0x5c1f14
call fcn.00498030
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov ebx, dword [ebp + 8]
lea esp, [esp]
cmp edi, 0x32
jge 0x491e89
cmp esi, 0xffffffff
jne 0x491e8e
test edi, edi
jle 0x491e66
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
mov dword [ebp - 0x20], edi
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebx
call fcn.0048fbc0
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x491e50
cmp esi, 0xffffffff
je 0x491efb
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], 0xa
jae 0x491ed8
mov eax, dword [ebx + 0x104]
mov ecx, dword [eax - 8]
push 0
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
push esi
call edi
test eax, eax
je 0x491f7b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0xc], 0
je 0x491ee5
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 0x18], esi
push ebx
call fcn.0049d5c0
add esp, 4
push 0x104
push 0
push ebx
call fcn.004ff6f0
add esp, 0xc
lea ecx, [ebx + 0x104]
call fcn.004c0c60
lea ecx, [ebx + 0x108]
call fcn.004c0c60
mov ecx, 0x5c1f14
call fcn.00498900
mov edi, eax
lea ecx, [ecx]
test edi, edi
je 0x491f65
push edi
mov ecx, 0x5c1f14
call fcn.00498910
mov dword [ebp - 0x24], eax
mov ecx, edi
call fcn.00497c50
test eax, eax
je 0x491f8b
mov ecx, edi
call fcn.00497c50
cmp ebx, eax
jne 0x491f8b
push 0
push edi
mov ecx, 0x5c1f14
call fcn.00498780
test ebx, ebx
je 0x491f72
push 1
mov ecx, ebx
call fcn.00491420
mov dword [ebp - 4], 0xffffffff
jmp 0x491fb1
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
jmp 0x491ea8
mov edi, dword [ebp - 0x24]
jmp 0x491f30
mov ecx, 0x5c1f14
call fcn.004980a0
cmp esi, 0xffffffff
je 0x491fc7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
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 0x497f40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54136f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ecx + 8]
xor edi, edi
push 0x10
cmp esi, edi
je 0x497fad
push 8
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
jne 0x497fa2
push str.____DataEvent::_Failed_to_allocate_memory_n_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x59cf70
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 1
call fcn.004fe9ee
mov dword [eax + 4], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], edi
jmp 0x497fdb
call fcn.00480850
add esp, 4
cmp eax, edi
jne 0x497fce
push 0x59cf70
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], 1
call fcn.004fe9ee
mov dword [eax + 4], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [eax], 0x57274c
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49b890
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541d90
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x220], esi
lea eax, [esi + 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
call fcn.004ff06e
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.00501923
push eax
add esi, 0x48
push esi
push 0x104
lea edx, [ebp - 0x118]
push edx
call fcn.005045d3
push 0x2e
lea eax, [ebp - 0x118]
push eax
call fcn.004ff460
add esp, 0x20
mov esi, eax
mov dword [ebp - 0x224], esi
cmp esi, ebx
jne 0x49b948
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49b930
sub eax, edx
lea ecx, [ebp + eax - 0x118]
mov dword [ebp - 0x224], ecx
mov esi, ecx
mov dword [ebp - 0x22c], ebx
jmp 0x49b956
mov esi, dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x118]
lea edx, [ebp - 0x21c]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x49b970
push ebx
push str._02d
mov edx, esi
lea eax, [ebp - 0x118]
sub edx, eax
lea ecx, [ebp + edx - 0x21c]
push ecx
call fcn.004ffcaa
add esp, 0xc
mov eax, esi
mov ecx, esi
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49b9a0
sub eax, ecx
mov esi, ecx
lea edi, [ebp - 0x21c]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x49b9b2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, 0x63
jl 0x49b9fb
lea edx, [ebp - 0x21c]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call edi
mov esi, dword [ebp - 0x220]
add esi, 0x14c
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push esi
call edi
jmp 0x49ba1d
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x220]
add edx, 0x14c
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x49b950
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0x250
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret