joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc9ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xcb39fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xc9f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00ca2dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xc9f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00c9a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00ca320b
push 0x10
call fcn.00ca31d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xc9efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00c8f1c0
jmp 0xc9efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00c9eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xc9eff0
mov ecx, edi
call fcn.00c8f2c0
push edi
call fcn.00ca31c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xc9f021
inc ebx
cmp ebx, 0x20
jb 0xc9ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xca0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcb4808
push 0xca4288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xca0329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xca0329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00ca31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xca0329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xca0329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xca032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00ca0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xca0d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xca0d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xca0d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xca0d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xca0d94
push eax
push esi
call fcn.00ca320b
add esp, 8
pop esi
ret 0x10

Function at 0xca0da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xca0e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xca0e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xcb9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ca2dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xca0dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xca0e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xca0ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xca0eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xcb9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ca2dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xca0eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xca0e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xca1000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xca1131
push esi
call fcn.00ca4145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00c93080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xca1131
push 0
push ebp
call fcn.00c933a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00c93260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xca108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00c932f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xca1121
push 0xcb9918
push edi
call fcn.00ca23f0
push eax
push ebx
push esi
call fcn.00ca0f60
push 0xcb98f8
push edi
call fcn.00ca23f0
push eax
push ebx
push esi
call fcn.00ca0f60
push 0xcb98d8
push edi
call fcn.00ca23f0
push eax
push ebx
push esi
call fcn.00ca0f60
push 0xcb98c0
push edi
call fcn.00ca23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ca0f60
push 0xcb98a0
push edi
call fcn.00ca23f0
push eax
push ebx
push esi
call fcn.00ca0f60
push 0xcb9888
push edi
call fcn.00ca23f0
push eax
push ebx
push esi
call fcn.00ca0f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xca21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ca2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ca2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ca2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ca2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xca2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xca2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcb487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xca2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xca2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x456b80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x18056
call fcn.004d8630
mov ebx, eax
mov edi, 0x586b28
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5a3088
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
xor ebp, ebp
lea edi, [esp + ecx + 0x14]
push ebp
push str.zenzen_d.grd
push edi
call fcn.005308a0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456c5d
lea edx, [esp + 0x10]
push 0
push edx
push 0x16
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x120]
lea ecx, [ebx + 5]
push eax
push ecx
call fcn.005360f0
add esp, 8
test eax, eax
je 0x456c65
inc ebp
cmp ebp, 0x64
jl 0x456bfa
jmp 0x456c7b
mov edx, dword [esp + 0x11c]
push ebp
push str.zenzen_d
push edx
call fcn.005308a0
add esp, 0xc
xor ebp, ebp
push ebp
push str.zenzenu_d.grd
push edi
call fcn.005308a0
add esp, 0xc
lea eax, [esp + 0x14]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x456ce0
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x16
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x120]
lea eax, [ebx + 5]
push edx
push eax
call fcn.005360f0
add esp, 8
test eax, eax
je 0x456ce8
inc ebp
cmp ebp, 0x64
jl 0x456c7d
jmp 0x456cfe
mov ecx, dword [esp + 0x11c]
push ebp
push str.zenzenu_d
push ecx
call fcn.005308a0
add esp, 0xc
push ebx
call fcn.004d86d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
Function at 0x45bc10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x18056
call fcn.004d8630
mov ebp, eax
mov eax, dword [0x5b5f18]
add esp, 4
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + 0x910]
mov edx, dword [ecx + 0xbac]
mov ebx, dword [edx + 0x90]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x124]
push ecx
mov ecx, esi
call fcn.0049b4d0
mov edx, dword [0x5b5f18]
push eax
push 0x5a2e78
mov ecx, dword [edx + 0x910]
call fcn.00456b80
or ecx, 0xffffffff
mov edi, 0x5a3088
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5a2e78
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push pe_nt_image_headers32
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x24]
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..grd
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
push 1
lea eax, [esp + 0x30]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x45bd35
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x45bda3
cmp dword [esp + 0x18], 0x18056
jne 0x45bda3
mov ecx, dword [ebx + 0x2c]
call fcn.004c9490
xor edi, edi
mov dword [esp + 0x10], eax
add ebp, 0x416
xor esi, esi
mov ecx, dword [ebx + 0x2c]
call fcn.004c9480
imul eax, edi
mov edx, dword [esp + 0x10]
add eax, edx
mov dl, byte [esi + ebp]
mov byte [eax + esi], dl
inc esi
cmp esi, 0x270
jl 0x45bd59
inc edi
add ebp, 0x270
cmp edi, 0x9c
jl 0x45bd57
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, dword [0x5a32b8]
mov ecx, dword [ecx + 0x10]
call fcn.004ca9a0
mov ebp, dword [esp + 0x14]
jmp 0x45bdaa
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x14]
push ebp
call fcn.004d86d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x4b8030
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov ebp, eax
cmp word [esi + 0x744], bx
jle 0x4b80b8
push edi
movsx edi, bx
mov ecx, ebp
movsx eax, word [esi + edi*2 + 0x80e]
sub ecx, dword [esi + edi*4 + 0x8d8]
cmp ecx, eax
jle 0x4b80ad
inc word [esi + edi*2 + 0x746]
mov ecx, dword [esi + edi*4 + 0x5ac]
call fcn.004b5f10
movsx edx, word [esi + edi*2 + 0x746]
cmp edx, eax
jle 0x4b808b
mov word [esi + edi*2 + 0x746], 0
movsx eax, word [esi + edi*2 + 0x746]
mov ecx, dword [esi + edi*4 + 0x5ac]
push eax
call fcn.004b5e40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + edi*4 + 0x8d8], eax
inc ebx
cmp bx, word [esi + 0x744]
jl 0x4b8049
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d4b20
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 0x10]
lea eax, [ecx + 8]
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push edx
add ecx, 0x107
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10
Function at 0x519320
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00529860
cmp dword [ebx + 0x20], 1
jne 0x519372
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [ebx + 0x24]
cmp eax, 0x12c
jb 0x519407
mov ecx, dword [ebx + 0x28]
xor eax, eax
test ecx, ecx
sete al
mov dword [ebx + 0x28], eax
mov ecx, dword [ebx + 0x2c]
neg eax
sbb eax, eax
and al, 0x81
add eax, 0xff
push eax
call fcn.0046c030
call esi
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x24]
cmp eax, 0x96
jb 0x519407
mov eax, dword [ebx + 0x30]
or ecx, 0xffffffff
lea edx, [ebx + 0x134]
lea edi, [ebx + eax + 0x34]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x30]
lea edi, [ebx + 0x34]
inc eax
or ecx, 0xffffffff
mov dword [ebx + 0x30], eax
mov esi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jne 0x5193f5
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x2c]
push edx
call fcn.0046b670
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x530c60
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x530c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530c8f
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x530eb0
Capabilities:
Delete directory

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
mov eax, 0
jne 0x530eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530edd
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x530ee0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x530efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x530f0d
push eax
call fcn.005345c0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x5333e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e520
push 0x539c34
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x583a68], eax
xor eax, eax
mov al, byte [0x583a69]
mov dword [0x583a74], eax
mov eax, dword [0x583a68]
shr dword [0x583a68], 0x10
and eax, 0xff
mov dword [0x583a70], eax
shl eax, 8
add eax, dword [0x583a74]
mov dword [0x583a6c], eax
call fcn.005385e0
test eax, eax
jne 0x533454
push 0x1c
call fcn.00533580
add esp, 4
mov dword [ebp - 4], 0
call fcn.00534360
call fcn.00539c20
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5b8374], eax
call fcn.005397d0
mov dword [0x583694], eax
test eax, eax
je 0x533487
cmp dword [0x5b8374], 0
jne 0x533491
push 0xffffffffffffffff
call fcn.005352e0
add esp, 4
call fcn.00539550
call fcn.00539460
call fcn.005352b0
mov esi, dword [0x5b8374]
mov al, byte [esi]
cmp al, 0x22
je 0x5334b8
cmp al, 0x20
jbe 0x5334e5
inc esi
cmp byte [esi], 0x20
ja 0x5334b0
jmp 0x5334e5
inc esi
cmp byte [esi], 0x22
je 0x5334e4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x5334df
xor eax, eax
mov al, bl
push eax
call fcn.00539400
add esp, 4
test eax, eax
je 0x5334d9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x5334c1
cmp byte [esi], 0x22
jne 0x5334e5
inc esi
cmp byte [esi], 0
je 0x5334f5
cmp byte [esi], 0x20
ja 0x5334f5
inc esi
cmp byte [esi], 0
jne 0x5334ea
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x533519
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.005352e0
jmp 0x53355a
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x535320
Capabilities:
Terminate process

Disassembly:
cmp dword [0x583aa4], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x53533e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x583aa0], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x583a9c], bl
jne 0x535398
cmp dword [0x5b8260], 0
je 0x535386
mov edi, dword [0x5b825c]
sub edi, 4
cmp edi, dword [0x5b8260]
jb 0x535386
mov eax, dword [edi]
test eax, eax
je 0x53537b
call eax
sub edi, 4
cmp edi, dword [0x5b8260]
jae 0x535373
push 0x55a048
push 0x55a040
call fcn.005353d0
add esp, 8
push 0x55a050
push 0x55a04c
call fcn.005353d0
add esp, 8
test ebx, ebx
jne 0x5353bf
mov dword [0x583aa4], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x5365f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x536626
cmp byte [esp + 5], 0x3a
jne 0x536626
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00531250
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x53be30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x53bea3
push ebx
call fcn.0053bf60
add esp, 4
test eax, eax
jne 0x53be71
xor eax, eax
pop edi
mov dword [0x583a60], 0xf
mov dword [0x583a5c], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x53beb3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x53bf52
inc eax
cmp eax, 0x104
ja 0x53bf52
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x53bf04
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x53bedf
mov ecx, eax
push ecx
call fcn.00532c80
add esp, 4
mov edx, eax
test edx, edx
jne 0x53bf23
xor eax, eax
pop edi
mov dword [0x583a5c], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x53bf23
xor eax, eax
pop edi
mov dword [0x583a5c], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x53bf60
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x53bf74
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x53bfa6
cmp eax, 1
je 0x53bfa6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret