joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48868c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x488785
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [esi + 4]
mov word [ebx + 4], ax
movzx eax, word [esi + 6]
mov word [ebx + 6], ax
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00487d8c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
movzx eax, word [esi + 0x20]
mov word [ebx + 0x22], ax
movzx eax, word [esi + 0x22]
mov word [ebx + 0x24], ax
movzx eax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040adf0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048905c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040acb0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004890d4
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48878c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405460
ret
Function at 0x488794
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x48889d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
movzx eax, word [esi + 4]
mov word [ebx + 6], ax
movzx eax, word [esi + 6]
mov word [ebx + 8], ax
movzx eax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00487d8c
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
movzx eax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
movzx eax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x488863
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040adf0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0048905c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040acb0
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004890d4
jmp 0x488875
xor edx, edx
mov eax, ebx
call fcn.0048905c
xor edx, edx
mov eax, ebx
call fcn.004890d4
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4888a4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405460
ret

Function at 0x48f18c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0048f3c8
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0048f3c8
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x48f200
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x48f226
inc esi
mov eax, edi
call fcn.0048f1e4
xor byte [ebx], al
movzx edx, byte [ebx]
mov eax, edi
call fcn.0048f18c
inc ebx
dec esi
jne 0x48f20f
pop edi
pop esi
pop ebx
ret
Function at 0x48f2bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x48f332
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0048f22c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0048f1e4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0048f18c
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x48f2fc
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48f339
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x48ffcc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4901b2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x49016e
mov eax, dword [ebp - 4]
call fcn.00491974
cmp ebx, eax
jge 0x49016e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004865c0
mov edx, dword [0x48812c]
call fcn.0040470c
mov esi, eax
mov eax, esi
call fcn.00488ff0
test al, al
je 0x490164
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x490158
xor eax, eax
push ebp
push 0x490151
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00490584
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041dfa8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00405b5c
mov eax, dword [ebp - 8]
call fcn.0040592c
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00490348
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49019c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x490150
mov eax, dword [ebp - 4]
call fcn.00490608
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b264
jmp 0x49019c
mov eax, dword [ebp - 8]
call fcn.0040543c
jmp 0x49019c
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a638
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x418c30]
call fcn.0040e9ac
call fcn.00404dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4901b9
lea eax, [ebp - 0x54]
call fcn.0040543c
ret
Function at 0x4b25e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b2642
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b25d8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b0230
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004afd48
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b2649
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4baff8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403b50
ret

Function at 0x4bb3e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
xor edx, edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4bb529
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4bb53c
call fcn.004bb24c
lea eax, [ebp - 0x3f0]
call fcn.0040543c
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004058cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bb4ef
xor edx, edx
push ebp
push 0x4bb4e8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x3e9
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4bb57c
call fcn.004bb24c
mov eax, dword [ebp - 0x408]
call fcn.004058cc
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb4ce
push ebp
mov eax, 0x4bb5a8
call fcn.004bb33c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb4ef
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb530
lea eax, [ebp - 0x408]
call fcn.0040543c
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.00405460
ret
Function at 0x4bb744
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
xor edx, edx
mov dword [ebp - 0x40c], edx
mov dword [ebp - 0x408], edx
mov dword [ebp - 0x3f0], edx
mov dword [ebp - 0x3f4], edx
mov dword [ebp - 0x3f8], eax
xor eax, eax
push ebp
push 0x4bb908
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3f4]
mov eax, 0x4bb91c
call fcn.004bb5ac
lea eax, [ebp - 0x3f0]
call fcn.0040543c
lea eax, [ebp - 0x3fc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x3f4]
call fcn.004058cc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4bb8c9
xor eax, eax
push ebp
push 0x4bb8c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x3e9
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 7
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
push 0x4bb954
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb81e
push ebp
mov eax, 0x4bb970
call fcn.004bb69c
pop ecx
mov dword [ebp - 0x404], ebx
mov dword [ebp - 0x400], 1
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x3e9]
push eax
lea eax, [ebp - 0x400]
push eax
push 0
lea edx, [ebp - 0x408]
mov eax, 0x4bb97c
call fcn.004bb5ac
mov eax, dword [ebp - 0x408]
call fcn.004058cc
push eax
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4bb8a8
push dword [ebp - 0x3f0]
push 0x4bb9a0
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x3e9]
mov ecx, 0x3e9
call fcn.004056ac
push dword [ebp - 0x40c]
lea eax, [ebp - 0x3f0]
mov edx, 3
call fcn.004057d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb8c9
mov eax, dword [ebp - 0x3fc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x3f8]
mov edx, dword [ebp - 0x3f0]
call fcn.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb90f
lea eax, [ebp - 0x40c]
mov edx, 2
call fcn.00405460
lea eax, [ebp - 0x3f4]
mov edx, 2
call fcn.00405460
ret
Function at 0x4c0638
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1d4], edx
mov dword [ebp - 0x1d8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c0779
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c0749
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004058cc
mov ebx, eax
push ebx
call sub.kernel32.dll_DeleteFileA
push ebx
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
call fcn.0040a85c
test al, al
jne 0x4c06b9
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.004038ac
lea eax, [ebp - 0x1d0]
call fcn.00403648
call fcn.004030e4
push dword [0x658d94]
push 0x4c0790
push dword [0x658d98]
push 0x4c0790
push dword [0x658d9c]
lea eax, [ebp - 0x1d8]
mov edx, 5
call fcn.004057d0
mov eax, dword [ebp - 0x1d8]
lea edx, [ebp - 0x1d4]
call fcn.004c5f04
mov edx, dword [ebp - 0x1d4]
lea eax, [ebp - 0x1d0]
call fcn.00405bec
call fcn.00403fa4
call fcn.004030e4
lea eax, [ebp - 0x1d0]
call fcn.00403974
call fcn.004030e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0753
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0780
lea eax, [ebp - 0x1d8]
mov edx, 2
call fcn.00405460
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c21e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4c2348
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.004c153c
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004c155c
mov ebx, eax
jmp 0x4c231a
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004056ac
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040adf0
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.0040996c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.0040996c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00405864
je 0x4c22fa
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004056ac
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0040996c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.0040996c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405864
jne 0x4c230f
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, edi
mov eax, esi
call fcn.004c157c
mov ebx, eax
test ebx, ebx
jne 0x4c225b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c234f
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00405460
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c2844
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 4], eax
test ebx, ebx
je 0x4c28e8
mov eax, ebx
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, edx
mov esi, eax
mov edx, dword [esi + 0x78]
mov eax, ebx
call fcn.004c25a8
mov esi, eax
mov ebp, dword [esi + 0x18]
dec ebp
test ebp, ebp
jb 0x4c28e8
inc ebp
xor edi, edi
mov edx, dword [esi + 0x20]
mov eax, ebx
call fcn.004c25a8
mov eax, dword [eax + edi*4]
mov dword [esp + 8], eax
mov edx, dword [esp + 8]
mov eax, ebx
call fcn.004c25a8
mov dword [esp + 0xc], eax
mov eax, dword [esp]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x4c28e4
mov edx, dword [esi + 0x24]
mov eax, ebx
call fcn.004c25a8
movzx eax, word [eax + edi*2]
mov word [esp + 0x10], ax
mov edx, dword [esi + 0x1c]
mov eax, ebx
call fcn.004c25a8
movzx edx, word [esp + 0x10]
mov eax, dword [eax + edx*4]
mov edx, eax
mov eax, ebx
call fcn.004c25a8
mov dword [esp + 4], eax
inc edi
dec ebp
jne 0x4c2880
mov eax, dword [esp + 4]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c3a80
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.0040b264
add esp, 0x100
pop ebx
ret

Function at 0x4c3dc8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c3ea2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4c3eb8
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4c3e12.0
jmp dword [eax*4 + 0x4c3e19]
mov eax, ebx
mov edx, 0x4c3ec4
call fcn.00405490
jmp 0x4c3e87
mov eax, ebx
mov edx, 0x4c3ed4
call fcn.00405490
jmp 0x4c3e87
mov eax, ebx
mov edx, 0x4c3ee4
call fcn.00405490
jmp 0x4c3e87
mov eax, ebx
mov edx, 0x4c3ef8
call fcn.00405490
jmp 0x4c3e87
mov eax, ebx
mov edx, 0x4c3f08
call fcn.00405490
jmp 0x4c3e87
mov eax, ebx
mov edx, 0x4c3f1c
call fcn.00405490
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3ea9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405460
ret
Function at 0x4c415c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x5d
push 0
push 0
dec ecx
jne 0x4c4164
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
lea eax, [ebp - 0x168]
mov edx, dword [0x408b18]
call fcn.00405ef4
xor eax, eax
push ebp
push 0x4c4389
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x2ac]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0043e518
mov eax, dword [ebp - 0x2ac]
mov edx, 0x4c43a0
call fcn.00405864
je 0x4c41c8
lea eax, [ebp - 4]
mov edx, 0x4c43a0
call fcn.00405708
lea eax, [ebp - 0x2a8]
push eax
lea eax, [ebp - 0x2b0]
mov ecx, 0x4c43ac
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2b0]
call fcn.004058cc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
lea eax, [ebp - 0x2c0]
mov edx, ebx
mov cl, 4
call fcn.00416640
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x2d0]
call fcn.00417c3c
lea edx, [ebp - 0x2d0]
pop eax
call fcn.00417c44
je 0x4c4313
jmp 0x4c42f8
mov eax, dword [ebp - 0x2a8]
sub eax, 0x10
jne 0x4c42bd
lea edx, [ebp - 0x2d4]
lea eax, [ebp - 0x27c]
call fcn.0040b264
mov eax, dword [ebp - 0x2d4]
mov edx, 0x4c43b8
call fcn.00405864
je 0x4c42f8
lea edx, [ebp - 0x2d8]
lea eax, [ebp - 0x27c]
call fcn.0040b264
mov eax, dword [ebp - 0x2d8]
mov edx, 0x4c43c4
call fcn.00405864
je 0x4c42f8
lea eax, [ebp - 0x2e0]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004056ac
mov ecx, dword [ebp - 0x2e0]
lea eax, [ebp - 0x2dc]
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2dc]
call fcn.004c415c
jmp 0x4c42f8
lea eax, [ebp - 0x2e8]
lea edx, [ebp - 0x27c]
mov ecx, 0x104
call fcn.004056ac
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2e4]
mov edx, dword [ebp - 4]
call fcn.00405754
mov eax, dword [ebp - 0x2e4]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x2a8]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4c422d
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x168]
call fcn.0040ab78
mov eax, dword [ebp - 4]
call fcn.0040b00c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4390
lea eax, [ebp - 0x2e8]
mov edx, 6
call fcn.00405460
lea eax, [ebp - 0x2d0]
mov edx, dword [0x401100]
mov ecx, 2
call fcn.00406010
lea eax, [ebp - 0x2b0]
mov edx, 2
call fcn.00405460
lea eax, [ebp - 0x168]
mov edx, dword [0x408b18]
call fcn.00405fc4
lea eax, [ebp - 4]
call fcn.0040543c
ret
Function at 0x4c43c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c445d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov ecx, 0x4c4474
mov edx, dword [ebp - 4]
call fcn.00405754
push 0xff
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.0040a254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4464
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405460
ret

Function at 0x4c6c30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004058bc
mov eax, dword [ebp - 8]
call fcn.004058bc
xor eax, eax
push ebp
push 0x4c6dfa
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4c6dc2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.0041e45c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c6cc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040a85c
test al, al
je 0x4c6cbe
mov eax, dword [ebp - 8]
call fcn.004058cc
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00405634
mov eax, dword [ebp - 0x1c]
call fcn.004058cc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c6cd2
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.004058cc
push eax
call sub.kernel32.dll_CreateFileA_1
push eax
call sub.kernel32.dll_CloseHandle_1
push 1
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4196c4]
call fcn.0041e45c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c6db1
push dword fs:[eax]
mov dword fs:[eax], esp
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e1d4
mov edx, dword [ebp - 0x14]
add edx, 8
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x18]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041e1d4
mov edx, dword [ebp - 0x14]
add edx, 8
add edx, dword [ebp - 0x18]
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0041e244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6db8
mov eax, dword [ebp - 0x10]
call fcn.0040455c
mov eax, dword [ebp - 0xc]
call fcn.0040455c
ret