joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f922
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564e88
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov eax, dword [0x5b31c8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2ec], 4
mov dword [esp + 0xc], ebx
jne 0x48f973
call fcn.004949cd
jmp 0x48fa59
call fcn.0049020f
cmp dword [esi + 0x524], ebx
je 0x48f995
mov ecx, dword [esi + 0x524]
mov dword [esi + 0x524], ebx
test ecx, ecx
je 0x48f995
call fcn.00496680
mov ecx, esi
call fcn.004949cd
cmp dword [esi + 0x2ec], 4
je 0x48fa59
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00493a1d
lea edx, [esi + 0x218]
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0x10]
call fcn.0040a573
test al, al
je 0x48f9d5
cmp byte [esi + 0x584], 0
je 0x48fa04
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
cmovae eax, dword [esp + 0x10]
push eax
call fcn.00407674
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], 1
call fcn.005207c8
test al, al
je 0x48fa04
mov bl, 1
test byte [esp + 0xc], 1
je 0x48fa18
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00401c9b
test bl, bl
je 0x48fa4b
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x48fa4d
xor ebx, ebx
push ebx
push 1
lea ecx, [esp + 0x18]
call fcn.00401c9b
mov dword [esi + 0x370], ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x4949cd
Capabilities:
Delete file

Disassembly:
add ecx, 0x248
cmp dword [ecx + 0x14], 8
jb 0x4949db
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret

Function at 0x494f3f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x2f0], 6
mov ecx, dword [esi + 0x51c]
jne 0x494f63
test ecx, ecx
je 0x494f5b
push esi
call fcn.0047b1aa
mov ecx, esi
pop esi
jmp fcn.004949cd
test ecx, ecx
je 0x494f6d
push esi
call fcn.0047b081
mov ecx, esi
pop esi
jmp fcn.00494940
Function at 0x494f75
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x34
mov eax, 0x5654ee
call fcn.0054f7e3
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp + 8]
mov edx, 0x70000003
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
cmp dword [ebx + 0x40], 1
mov edi, dword [ebx + 0x248]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x30], edi
jne 0x495065
cmp eax, 2
jle 0x495037
and eax, reloc.WS2_32.dll_accept
jns 0x494fc0
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x495037
mov al, byte [ebx + 0xe]
cmp al, 0xff
je 0x495037
test al, al
jne 0x495037
cmp edi, edx
jne 0x495028
lea esi, [ecx + 0x5d4]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
sar eax, 2
cmp eax, 2
jae 0x495037
mov ecx, esi
call fcn.00448525
test al, al
je 0x49502f
mov eax, dword [ebx]
lea ecx, [esi + 8]
mov dword [ebp - 0x34], eax
mov edi, 0x71004001
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], edi
push eax
call fcn.00451de1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x2c]
mov edx, 0x70000003
mov dword [esi], eax
test eax, eax
jne 0x495037
mov dword [esi], 1
jmp 0x495037
mov edi, edx
mov dword [ebp - 0x30], edi
jmp 0x495037
mov ecx, dword [ebp - 0x2c]
mov edx, 0x70000003
cmp dword [ebx + 0x40], 1
jne 0x495065
cmp edi, 0x71004001
jne 0x495065
mov eax, dword [ecx + 0x520]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x49505a
mov eax, dword [eax + 0x9c]
jmp 0x49505c
xor eax, eax
cmp eax, 8
cmovge edi, edx
mov dword [ebp - 0x30], edi
mov dword [ebx + 0x24c], edi
cmp dword [ecx + 0x59c], 0
je 0x495112
lea esi, [ecx + 0x5b0]
mov ecx, esi
mov dword [ebp - 0x40], esi
call fcn.00529310
and dword [ebp - 4], 0
mov ecx, 0x582ac0
cmp edi, 0x70000003
mov eax, 0x582ab8
cmovne eax, ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.00407674
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov ebx, dword [ebx]
cmovae eax, dword [ebp - 0x28]
mov edi, dword [edi + 0x59c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 0x34]
sub eax, dword [edi + 4]
push ebx
push eax
mov eax, dword [ebp - 0x2c]
push str._d__userID__d___sendType__s_
push str.post_to_client
push dword [eax + 0x59c]
call fcn.0051f43e
add esp, 0x18
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00401c9b
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00529320
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ebx + 0xc]
sub esp, 0xc
mov ecx, dword [ecx + 0x520]
push dword [ebp + 0x14]
push dword [ebp - 0x3c]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push eax
push dword [ebx + 8]
push dword [ebx + 4]
push edi
call fcn.0044ec89
call fcn.0054f792
ret 0x10
Function at 0x49586f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x50
mov eax, 0x565585
call fcn.0054f7e3
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x500]
mov ecx, edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x50], edi
call fcn.00529310
and dword [ebp - 4], 0
lea edx, [ebx + 0x208]
lea ecx, [ebp - 0x44]
call fcn.005200cb
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00520a9b
push eax
lea ecx, [esi + 4]
call fcn.0042a9d5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401c56
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401c9b
mov ecx, dword [ebx + 0x588]
call fcn.005217e2
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x200]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x288]
cmp eax, 0xffffffff
jne 0x495903
and dword [esi + 0x20], 0
jmp 0x495909
shl eax, 0xa
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0x51c]
mov al, byte [eax + 0x14d]
mov byte [esi], al
mov eax, dword [ebx + 0x144]
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x148]
mov dword [esi + 0x28], eax
mov ecx, dword [ebx + 0x4d8]
test ecx, ecx
jle 0x495940
imul eax, dword [ebx + 0x4dc], 0x64
cdq
idiv ecx
mov dword [esi + 0x44], eax
mov ecx, dword [ebx + 0x608]
push 0xffffffffffffffff
call fcn.0049ae64
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x4b8]
mov dword [esi + 0x54], eax
mov eax, dword [ebx + 0x4c4]
mov dword [esi + 0x48], eax
mov eax, dword [ebx + 0x4bc]
mov dword [esi + 0x50], eax
mov eax, dword [ebx + 0x4b0]
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0x4c4]
test ecx, ecx
jle 0x49598b
imul eax, dword [ebx + 0x4b4], 0x64
cdq
idiv ecx
mov dword [esi + 0x40], eax
lea eax, [esi + 0x58]
mov ecx, ebx
push eax
call fcn.0048bf30
mov eax, dword [ebx + 0x51c]
mov ecx, dword [eax + 0x228]
mov eax, dword [eax + 0x22c]
mov dword [ebp - 0x58], eax
shl ecx, 0xa
mov dword [esi + 0x78], ecx
mov eax, dword [ebx + 0x458]
mov dword [esi + 0x7c], eax
mov eax, dword [ebx + 0x490]
mov dword [esi + 0x80], eax
mov eax, dword [ebx + 0x17c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x180]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x4e0]
mov dword [esi + 0x84], eax
add esi, 0x88
mov ecx, dword [ebx + 0x608]
push esi
call fcn.0049b077
mov eax, dword [ebp - 0x48]
mov esi, dword [esi]
cmp esi, dword [eax + 0x8c]
je 0x495a56
mov edi, dword [ebp - 0x4c]
mov ebx, eax
cmp byte [esi + 0x14], 0
je 0x495a45
movzx eax, byte [esi + 0x15]
cmp eax, 0xffffffff
je 0x495a45
cmp dword [esi + 0x10], 0
je 0x495a45
cmp dword [esi + 0x18], 0
jne 0x495a45
push esi
lea eax, [ebp - 0x58]
lea ebx, [edi + 0x60c]
push eax
mov ecx, ebx
call fcn.0047c0ed
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebx]
mov ebx, dword [ebp - 0x48]
je 0x495a45
mov al, byte [eax + 0x14]
mov byte [esi + 0x1d], al
add esi, 0x24
cmp esi, dword [ebx + 0x8c]
jne 0x495a08
mov edi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x4c]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov byte [ebx + 0x614], 1
call fcn.00529320
call fcn.0054f792
ret 4
Function at 0x495a70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0x50
mov eax, 0x5655ba
call fcn.0054f7e3
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x500]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ecx
call fcn.00529310
and dword [ebp - 4], 0
lea edx, [ebx + 0x208]
mov al, byte [ebx + 0x614]
lea ecx, [ebp - 0x44]
mov byte [edi], al
mov al, byte [ebx + 0x52c]
mov byte [edi + 0x1c], al
mov eax, dword [ebx + 0x2f0]
mov dword [edi + 0x20], eax
call fcn.005200cb
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00520a9b
push eax
lea ecx, [edi + 4]
call fcn.0042a9d5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401c56
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00401c9b
mov eax, dword [ebx + 0x458]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x51c]
mov al, byte [eax + 0x14d]
mov byte [edi + 1], al
mov eax, dword [ebx + 0x144]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x148]
mov dword [edi + 0x2c], eax
mov ecx, dword [ebx + 0x4d8]
test ecx, ecx
jle 0x495b32
imul eax, dword [ebx + 0x4dc], 0x64
cdq
idiv ecx
mov dword [edi + 0x44], eax
mov ecx, dword [ebx + 0x608]
push 0xffffffffffffffff
call fcn.0049ae64
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x4b8]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x4c4]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x4bc]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x4b0]
mov dword [edi + 0x38], eax
mov ecx, dword [ebx + 0x4c4]
test ecx, ecx
jle 0x495b7d
imul eax, dword [ebx + 0x4b4], 0x64
cdq
idiv ecx
mov dword [edi + 0x40], eax
lea eax, [edi + 0x58]
mov ecx, ebx
push eax
call fcn.0048bf30
mov eax, dword [ebx + 0x51c]
lea esi, [edi + 0x8c]
push esi
mov ecx, dword [eax + 0x228]
mov eax, dword [eax + 0x22c]
mov dword [ebp - 0x58], eax
shl ecx, 0xa
mov dword [edi + 0x78], ecx
mov eax, dword [ebx + 0x490]
mov dword [edi + 0x7c], eax
mov eax, dword [ebx + 0x498]
mov dword [edi + 0x80], eax
mov eax, dword [ebx + 0x618]
mov dword [edi + 0x84], eax
mov eax, dword [ebx + 0x17c]
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0x180]
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x4e0]
mov dword [edi + 0x88], eax
mov ecx, dword [ebx + 0x608]
call fcn.0049b077
mov esi, dword [esi]
jmp 0x495c38
cmp byte [esi + 0x14], 0
je 0x495c35
movzx eax, byte [esi + 0x15]
cmp eax, 0xffffffff
je 0x495c35
cmp dword [esi + 0x10], 0
je 0x495c35
cmp dword [esi + 0x18], 0
jne 0x495c35
push esi
lea eax, [ebp - 0x50]
lea edi, [ebx + 0x60c]
push eax
mov ecx, edi
call fcn.0047c0ed
mov eax, dword [ebp - 0x50]
cmp eax, dword [edi]
mov edi, dword [ebp - 0x48]
je 0x495c35
mov al, byte [eax + 0x14]
mov byte [esi + 0x1d], al
add esi, 0x24
cmp esi, dword [edi + 0x90]
jne 0x495bf8
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x98], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x9c], eax
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x495c6d
cdq
push edx
push eax
push dword [ebx + 0x2c]
push dword [ebx + 0x28]
call fcn.0054eaa0
mov dword [edi + 0xa0], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
call fcn.00529320
call fcn.0054f792
ret 4
Function at 0x4a391b
Capabilities:
Get disk information

Disassembly:
push 0x418
mov eax, 0x5683e4
call fcn.0054f7e3
mov eax, ecx
mov dword [ebp - 0x414], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x418], ebx
cmp dword [ebx + 0x10], edi
jne 0x4a3949
xor al, al
jmp 0x4a3a42
lea esi, [eax + 0xb8]
mov ecx, esi
mov dword [ebp - 0x41c], esi
call fcn.00529310
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x414]
cmp dword [eax + 0xd4], 0
jne 0x4a3a13
xor eax, eax
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x410], 0
lea edi, [ebp - 0x410]
je 0x4a3a0d
mov esi, dword [ebp - 0x414]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4a39e2
movzx eax, byte [0x5bc322]
push eax
push edi
push ecx
lea eax, [ebp - 0x424]
push eax
lea ecx, [esi + 0xd0]
call fcn.004a48a2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4a39e7
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], bx
jne 0x4a39ba
mov esi, dword [ebp - 0x41c]
mov ebx, dword [ebp - 0x418]
mov eax, dword [ebp - 0x414]
cmp dword [ebx + 0x14], 8
lea ecx, [eax + 0xd0]
mov edi, dword [ecx]
jb 0x4a3a23
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004a3f0d
cmp dword [eax], edi
setne bl
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00529320
mov al, bl
call fcn.0054f792
ret 4

Function at 0x4a8438
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
je 0x4a84b4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
cmp dword [eax], ecx
je 0x4a84b4
push edi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4a84b3
sub ecx, dword [eax]
cmp byte [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x4a848c
test edi, edi
jle 0x4a84b3
sub ebx, esi
xor edx, edx
lea eax, [ebx + esi]
div ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov cl, byte [edx + eax]
xor cl, byte [esi]
mov al, cl
shl al, 4
xor al, cl
mov ecx, dword [ebp - 4]
mov byte [esi], al
inc esi
dec edi
jne 0x4a8469
jmp 0x4a84b3
test edi, edi
jle 0x4a84b3
sub ebx, esi
xor edx, edx
mov cl, byte [esi]
lea eax, [esi + ebx]
shl cl, 4
div dword [ebp - 4]
xor cl, byte [esi]
mov eax, dword [ebp + 0xc]
mov byte [esi], cl
mov eax, dword [eax]
mov al, byte [edx + eax]
xor al, cl
mov byte [esi], al
inc esi
dec edi
jne 0x4a8492
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b009c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b00d5
cdq
mov edi, eax
mov esi, edx
mov ecx, edi
mov eax, esi
add ecx, dword [ebp + 0xc]
push esi
adc eax, dword [ebp + 0x10]
sub ecx, 1
push edi
sbb eax, 0
push eax
push ecx
call fcn.0054eaa0
push esi
push edi
push edx
push eax
call fcn.0054eb50
jmp 0x4b00db
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
mov ecx, ebx
call fcn.004aff37
pop ecx
pop ecx
test eax, eax
je 0x4b00f1
mov eax, 0x60a
jmp 0x4b010b
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4b0109
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
jmp 0x4b00ea
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b0137
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b0168
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b0168
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x4b017c
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b0bb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5bb8a0]
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x4b0bf4
push eax
push 0x583be0
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004ae3d3
add esp, 0x10
jmp 0x4b0c6d
call fcn.004afd49
mov esi, 0xe6
test eax, eax
je 0x4b0c35
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.004afdff
mov edi, eax
test edi, edi
jne 0x4b0c50
push 7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004afebc
jmp 0x4b0c1b
push edi
push 0x583be0
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.004ae3d3
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
mov ecx, str.etilqs_
call fcn.004aebf7
lea ecx, [ebp - 0x110]
mov edx, eax
call fcn.004aebf7
add edx, 0x11
add eax, edx
mov edx, 0x105
cmp eax, edx
jl 0x4b0c97
xor eax, eax
inc eax
jmp 0x4b0c24
lea ecx, [ebp - 0x110]
call fcn.004aebf7
test eax, eax
je 0x4b0cb0
cmp byte [ecx + eax - 1], 0x5c
jne 0x4b0cb0
dec eax
jne 0x4b0ca6
cmp eax, edx
jae 0x4b0d0f
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xf4
call fcn.004ae3d3
mov ecx, ebx
call fcn.004aebf7
mov esi, eax
lea ecx, [ebx + esi]
push ecx
push 0xf
pop edi
push edi
call fcn.004ae5f4
add esp, 0x18
movzx eax, byte [ebx + esi]
xor edx, edx
push 0x3e
pop ecx
div ecx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + esi], al
inc esi
dec edi
jne 0x4b0cec
mov byte [ebx + esi], 0
xor eax, eax
jmp 0x4b0c24
call fcn.0054f333
int3
Function at 0x4b0f8b
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
push edi
mov ebx, esi
mov dword [ebp - 4], esi
call fcn.004b0b7a
mov edi, eax
test edi, edi
jne 0x4b0fb0
push 7
pop eax
jmp 0x4b1040
call fcn.004afd49
test eax, eax
je 0x4b0fed
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4b0fdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x4b1025
inc ebx
cmp ebx, 5
jge 0x4b1025
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b0fb9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4b1013
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 5
jne 0x4b1023
inc ebx
cmp ebx, 5
jge 0x4b1023
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b0fed
xor esi, esi
push edi
call dword [sym.imp.MSVCR120.dll_free]
cmp dword [ebp - 8], 0xffffffff
pop ecx
jne 0x4b1039
cmp dword [ebp - 4], 2
je 0x4b103e
mov esi, 0xa0a
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b11ea
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x110]
mov edi, 0x200
push eax
push 0x104
push edx
push ecx
mov dword [ebp - 0x118], edi
call fcn.004b111c
add esp, 0x10
test eax, eax
jne 0x4b12c4
lea ecx, [ebp - 0x110]
call fcn.004b0b7a
mov esi, eax
test esi, esi
je 0x4b12ca
call fcn.004afd49
test eax, eax
mov eax, esi
je 0x4b1284
xor ecx, ecx
cmp word [esi], cx
je 0x4b1265
cmp word [eax], 0x5c
je 0x4b1260
add eax, 2
cmp word [eax], cx
jne 0x4b1250
jmp 0x4b1265
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x4b12b6
cmp byte [esi], 0
je 0x4b1299
cmp byte [eax], 0x5c
je 0x4b1296
inc eax
cmp byte [eax], 0
jne 0x4b1289
jmp 0x4b1299
mov byte [eax], 0
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov ebx, eax
call dword [sym.imp.MSVCR120.dll_free]
pop ecx
test ebx, ebx
je 0x4b12ca
mov edi, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x4b4693
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
mov esi, edx
push edi
mov edx, dword [ebx + 0x3c]
xor edi, edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x4b46d4
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
mov edi, eax
add esp, 0x14
mov dword [ebp - 4], edi
test edi, edi
jne 0x4b47d4
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x4b470b
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.0054eb50
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
push 5
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
test esi, esi
je 0x4b47d4
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x14], edi
cmp edi, dword [ebx + 0x18]
ja 0x4b47c3
test byte [esi + 0x14], 0x20
jne 0x4b47c3
mov eax, dword [ebx + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.0054eb50
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edx
cmp edi, 1
jne 0x4b4752
mov ecx, esi
call fcn.004b3d43
mov ecx, dword [ebx + 0xa4]
test ecx, ecx
jne 0x4b4763
mov eax, dword [esi]
mov dword [ebp - 8], eax
jmp 0x4b477a
push 6
push edi
push dword [esi]
push dword [ebx + 0xb0]
call ecx
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x4b47dd
push dword [ebp - 4]
mov ecx, dword [ebx + 0x3c]
mov edx, eax
push dword [ebp - 0x10]
push dword [ebx + 0x80]
call fcn.004ac627
add esp, 0xc
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4b47ae
mov esi, dword [ebp - 8]
lea edi, [ebx + 0x64]
add esi, 0x18
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
cmp edi, dword [ebx + 0x20]
jbe 0x4b47b6
mov dword [ebx + 0x20], edi
push dword [esi]
mov ecx, dword [ebx + 0x58]
mov edx, edi
call fcn.004bebbd
pop ecx
mov edi, dword [ebp - 4]
mov esi, dword [esi + 8]
mov dword [ebp - 0xc], esi
test edi, edi
je 0x4b470b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 7
pop eax
jmp 0x4b47d6
Function at 0x4cb657
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, edx
mov eax, ecx
mov dword [esp + 4], eax
push esi
push edi
test ebx, ebx
jne 0x4cb674
xor eax, eax
jmp 0x4cb756
push 0x50
pop edx
call fcn.004ad2b6
mov edi, eax
test edi, edi
je 0x4cb66d
mov esi, dword [ebp + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0xc]
push esi
call fcn.004cb38a
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi], eax
mov edx, dword [ebx + 8]
push esi
call fcn.004cb48b
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push 0
push esi
call fcn.004cb164
mov ecx, dword [esp + 0x14]
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x10]
push esi
call fcn.004cb38a
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 0x10], eax
mov edx, dword [ebx + 0x14]
push 0
push esi
call fcn.004cb164
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push esi
call fcn.004cb38a
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
mov byte [edi + 4], al
mov edx, dword [ebx + 0x1c]
push esi
call fcn.004cb657
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push 0
push esi
call fcn.004cb164
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x28], eax
mov edx, dword [ebx + 0x2c]
push 0
push esi
call fcn.004cb164
mov dword [edi + 0x2c], eax
xor edx, edx
mov dword [edi + 0x30], edx
mov ecx, 0xfff7
mov dword [edi + 0x34], edx
add esp, 0x10
mov ax, word [ebx + 6]
and ax, cx
mov dword [edi + 0x24], edx
mov word [edi + 6], ax
mov eax, edi
or dword [edi + 0x38], 0xffffffff
or dword [edi + 0x3c], 0xffffffff
or dword [edi + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret