joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x4069ce
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4069ce
mov eax, edx
push ebx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4069a0
sub eax, ebx
sar eax, 1
add eax, eax
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop ebx
sbb eax, eax
inc eax
pop edi
pop ebp
ret 8
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x406ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431bc1
mov eax, dword fs:[0]
push eax
sub esp, 0xa3c
mov eax, dword [0x44200c]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x406bd7
push 0x9f6
lea eax, [ebp - 0xa08]
push 0
push eax
call fcn.0040b440
add esp, 0xc
mov dword [ebp - 0xa2c], 0x9f6
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0xa0c]
push eax
push 0
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406bd7
push dword [ebp - 0xa2c]
lea eax, [ebp - 0xa08]
push eax
lea ecx, [ebp - 0xa28]
call fcn.00406cb0
lea edx, [ebp - 0xa28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa48]
call fcn.00401750
mov edi, eax
cmp esi, edi
je 0x406bba
mov edx, dword [esi + 0x18]
cmp edx, 0x10
jb 0x406b93
mov ecx, dword [esi + 4]
inc edx
push 1
call fcn.004010f0
add esp, 4
mov dword [esi + 0x18], 0xf
cmp dword [esi + 0x18], 0x10
mov dword [esi + 0x14], 0
jb 0x406bac
mov eax, dword [esi + 4]
jmp 0x406baf
lea eax, [esi + 4]
push edi
mov ecx, esi
mov byte [eax], 0
call fcn.004036d0
lea ecx, [ebp - 0xa48]
call fcn.00402a50
lea ecx, [ebp - 0xa28]
call fcn.00402640
mov eax, 1
jmp 0x406bd9
xor eax, eax
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.004078a0
mov esp, ebp
pop ebp
ret 8

Function at 0x406c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x406c8d
push 0x9f6
lea eax, [ebp - 0x9fc]
push 0
push eax
call fcn.0040b440
add esp, 0xc
mov dword [ebp - 0xa00], 0x9f6
lea eax, [ebp - 0xa00]
push eax
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xa04]
push eax
push 0
push esi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406c8d
lea eax, [ebp - 0x9fc]
mov ecx, edi
push eax
call fcn.004025e0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004078a0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004078a0
mov esp, ebp
pop ebp
ret 8
Function at 0x421ba0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00423050
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421bde
cmp dword [ebp + 8], 0
je 0x421bcc
lea eax, [ebp + 8]
push eax
call fcn.00421da0
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x421bde
mov eax, 4
jmp 0x421d0e
call fcn.00422e80
movzx edx, al
test edx, edx
jne 0x421c0c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x421bfd
mov dword [ebp - 0xc], 4
jmp 0x421c04
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x421d0e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x421cb5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x421d50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0041dfd0
lea ecx, [ebp - 8]
call fcn.00421de0
movzx edx, al
test edx, edx
jne 0x421c77
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.00421dc0
mov eax, dword [ebp - 0x10]
jmp 0x421d0e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0041c600
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x421ca2
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.00421dc0
mov eax, dword [ebp - 0x14]
jmp 0x421d0e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.00421dc0
mov eax, dword [ebp - 0x18]
jmp 0x421d0e
call fcn.00422fa0
movzx ecx, al
test ecx, ecx
jne 0x421cee
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00421d20
add esp, 0x10
jmp 0x421d0e
call fcn.00422eb0
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00421d20
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x61ce423e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x693e3716
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d59
cmp eax, ebx
je 0x401533
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x470690], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f72
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x470600], eax
jle 0x4030d0
push dword [0x4321cc]
call fcn.00402f5b
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402fe7
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402f29
test eax, eax
je 0x4030e2
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x40303e
cmp dword [0x470680], ebx
jne 0x40303e
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e87
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.00406d12
test eax, eax
jl 0x4030e7
mov esi, dword [0x426158]
sub esi, ebp
je 0x40309c
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030ec
cmp esi, dword [esp + 0x10]
jne 0x4030ec
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x40300d
jmp 0x4030a8
cmp dword [0x426154], ebx
jne 0x4030e7
cmp edi, ebx
je 0x4030e7
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402fd1
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e87
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030da
push 0xfffffffffffffffd
pop eax
jmp 0x4030da
push 0xfffffffffffffffe
jmp 0x4030e9
Function at 0x4030f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40311c
mov ecx, dword [0x4705f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f72
cmp eax, edi
jl 0x403215
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x403211
cmp dword [ebp - 4], esi
jne 0x403211
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f72
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403214
cmp dword [ebp + 0x10], edi
jne 0x4031e0
cmp dword [ebp + 8], edi
jle 0x40320c
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403190
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x403211
cmp edi, dword [ebp - 4]
jne 0x403211
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031dc
cmp dword [ebp + 0x14], edi
jne 0x4031dc
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x403183
jmp 0x40320c
push 0xfffffffffffffffe
jmp 0x403213
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031eb
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x403211
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403214
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405886
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x456268
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x456268], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058c1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a78
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a95
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405a98
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405ac7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088fc]
mov dword [ebp - 8], eax
mov eax, dword [0x408900]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405b17
test edi, edi
jne 0x405ad4
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405b11

Function at 0x405b1b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b94
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b7d
cmp dword [ebp + 0x14], 1
je 0x405b82
cmp dword [ebp + 0x14], 2
je 0x405b82
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x4061dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562b0
push esi
call fcn.00405c52
push esi
call fcn.004059a1
mov edi, eax
test edi, edi
jne 0x4061fd
xor eax, eax
jmp 0x40625b
push edi
call fcn.00405c81
test byte [0x470608], 0x80
je 0x40621a
movzx eax, word [edi]
test ax, ax
je 0x4061f9
cmp ax, 0x5c
je 0x4061f9
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40623c
push esi
call fcn.00405d32
test eax, eax
je 0x406236
test byte [eax], 0x10
je 0x406260
push esi
call fcn.004061af
push esi
call ebx
cmp eax, edi
jg 0x406227
push esi
call fcn.00406180
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x40625a
Function at 0x4064f5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089e4
mov ebx, 0x45a2b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406543
push 1
push ebp
push edi
call fcn.00405a98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066ba
cmp eax, esi
jg 0x4066ba
push esi
mov edi, 0x45f910
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066ba
cmp eax, esi
jg 0x4066ba
push ebp
push ebp
push esi
push 0x45aab8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4066ba
push ebp
push ebp
push esi
mov esi, 0x45b108
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4066ba
push esi
push 0x45aab8
push str._s_s_r_n
push 0x45b508
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4705bc]
push dword [eax + 0x128]
push edi
call fcn.00406264
push 4
push 0xc0000000
push edi
call fcn.00405a98
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4066ba
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4066b0
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4066b0
cmp edi, dword [esp + 0x10]
jne 0x4066b0
push str._Rename__r_n
push esi
call fcn.004059fe
cmp eax, ebp
jne 0x406647
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406678
push 0x4089d8
add eax, 0xa
push eax
call fcn.004059fe
mov ebp, eax
test ebp, ebp
je 0x406676
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406669
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406663
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x40667a
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b508
add eax, esi
push eax
call fcn.00405a54
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4066f3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004061dc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406728
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470668], eax
jmp 0x4068ce
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406743
test eax, eax
je 0x406879
test cl, 2
je 0x406879
push edi
push ebx
mov esi, 0x45b908
push esi
call fcn.00405c52
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406766
push str..
push esi
call edi
jmp 0x40676c
push ebx
call fcn.004061af
cmp word [ebx], 0
jne 0x40677c
cmp word [0x45b908], 0x5c
jne 0x406784
push 0x4082d8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406868
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.0040594d
xor edi, edi
cmp word [eax], di
je 0x4067cb
cmp word [ebp - 0x28], di
je 0x4067cb
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4067e6
movzx eax, word [esi + 2]
cmp ax, di
je 0x406845
cmp ax, 0x2e
jne 0x4067e6
cmp word [esi + 4], di
je 0x406845
push esi
push dword [ebp - 4]
call fcn.00405c52
test byte [ebp - 0x25c], 0x10
je 0x40680d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406845
push dword [ebp + 0xc]
push ebx
call fcn.004066f3
jmp 0x406845
push ebx
call fcn.00405a78
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40683d
test byte [ebp + 0xc], 4
je 0x406835
push ebx
push 0xfffffffffffffff1
call fcn.00404bdf
push edi
push ebx
call fcn.004066c0
jmp 0x406845
inc dword [0x470668]
jmp 0x406845
push ebx
push 0xfffffffffffffff2
call fcn.00404bdf
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4067ab
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40686a
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406879
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4068cd
cmp dword [ebp - 0xc], esi
je 0x4068bd
push ebx
call fcn.00405d32
test eax, eax
je 0x4068cd
push ebx
call fcn.00406180
push ebx
call fcn.00405a78
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4068c5
test byte [ebp + 0xc], 4
je 0x4068bd
push ebx
push 0xfffffffffffffff1
call fcn.00404bdf
push esi
push ebx
call fcn.004066c0
jmp 0x4068cd
inc dword [0x470668]
jmp 0x4068cd
push ebx
push 0xffffffffffffffe5
call fcn.00404bdf
pop esi
pop ebx
leave
ret 8
Function at 0x406c81
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x406cbf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406c95
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x406c90
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406cec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ccd
not eax
pop ebp
ret 0xc
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret