joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x42a060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x70]
call fcn.004167a9
mov edx, dword [edx]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x88], eax
jne 0x40532e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4053ed
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
sub edi, dword [ebp + 8]
mov esi, 0xc000
push esi
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call fcn.00403d8b
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4053bb
mov ebx, dword [ebp - 0x80]
test ebx, ebx
je 0x4053b9
mov eax, dword [ebp - 0x7c]
lea ecx, [ebx + eax]
cmp ecx, edi
mov byte [ebp - 0x71], 0
jbe 0x40538b
mov ebx, edi
sub ebx, eax
mov dword [ebp - 0x80], ebx
mov byte [ebp - 0x71], 1
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
call fcn.00416636
cmp byte [ebp - 0x71], 0
jne 0x4053b9
add dword [ebp - 0x7c], ebx
push 0
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40536b
xor ebx, ebx
lea esi, [ebp - 0x70]
call fcn.004166d0
mov eax, esi
call fcn.00416752
push dword [ebp - 0x78]
mov esi, eax
call fcn.00423832
cmp dword [ebp - 0x88], ebx
pop ecx
je 0x4053e9
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00423ac2
leave
ret

Function at 0x405459
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor eax, eax
push 0x10
xor ebx, ebx
cmp byte [ebp + 0x18], bl
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0x5c], 0x44
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov byte [ebp - 4], bl
je 0x405491
lea esi, [ebp - 8]
call fcn.00422ffe
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push ebx
push ebx
push ebx
call fcn.00403d1d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp byte [ebp + 0x18], bl
mov edi, eax
je 0x4054c5
lea esi, [ebp - 8]
call fcn.00423014
cmp edi, ebx
je 0x4054f0
cmp dword [ebp + 0x10], ebx
je 0x4054e5
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea esi, [ebp - 8]
call fcn.00423014
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4054ff
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x3c
je 0x405526
mov dword [ebp - 0x38], 0x40
push esi
mov esi, dword [edx]
mov edi, edx
call fcn.0040db45
test al, al
je 0x405537
add esi, 4
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x2c], esi
sete al
mov dword [ebp - 0x30], str.open
pop esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x40555a
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40556c
xor al, al
jmp 0x40558f
cmp dword [ebp + 0xc], ebx
je 0x40558d
cmp dword [ebp - 4], ebx
je 0x40558d
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x405a31
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x42a060]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
xor eax, ebp
push ebx
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x39c]
mov eax, dword [eax]
push 3
push 0x80000000
push eax
mov dword [ebp - 0x78], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x74]
push ecx
mov edi, 0x3ff
push edi
lea ecx, [ebp - 0x70]
push ecx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x74], ebx
push eax
jmp 0x405ab1
mov eax, dword [ebp - 0x74]
mov byte [ebp + eax - 0x70], bl
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.00403f43
push ebx
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call esi
cmp dword [ebp - 0x74], ebx
jne 0x405a91
mov esi, dword [ebp - 0x78]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x405ae3
lea ecx, [ebp - 0x78]
add eax, 0xfffffffe
push ecx
call fcn.004014a5
mov edi, esi
call fcn.0040158b
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040175b
cmp dword [ebp - 0x80], ebx
pop edi
pop esi
pop ebx
je 0x405af4
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
call fcn.00423ac2
add ebp, 0x394
leave
ret
Function at 0x407efd
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42a5a0]
push ebx
push esi
push edi
mov ecx, 0x42a5a0
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x10]
add ecx, 4
call fcn.00419e71
add eax, 0x1c
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401773
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 8], esi
je 0x40804f
mov eax, dword [edi + 0x84]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401773
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.0040d33b
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
lea eax, [ebp - 4]
call fcn.0040d33b
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.0040658a
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
xor bl, bl
mov esi, edi
call fcn.00408113
push 0x8a
lea ecx, [ebp - 0xc]
call fcn.00401000
pop ecx
push dword [ebp - 0xc]
push 2
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.004083f5
lea eax, [ebp - 8]
push 0
push eax
lea edx, [ebp - 4]
call fcn.004053fa
mov bl, al
test bl, bl
pop ecx
pop ecx
jne 0x408032
lea esi, [ebp - 4]
call fcn.00403d1d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push 0x5c
call fcn.004015e9
test eax, eax
pop ecx
jne 0x408010
or eax, 0xffffffff
jmp 0x408013
sub eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 4]
call fcn.004014a5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
test bl, bl
je 0x408077
mov esi, dword [ebp - 8]
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.004092de
mov ecx, dword [edi + 0x80]
mov ecx, dword [ecx]
add ecx, 4
call fcn.00419e71
mov byte [eax + 0x5c], 1
mov byte [ebp + 0xf], 1
jmp 0x4080e4
inc dword [edi + 0x17c]
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
call fcn.00401000
pop ecx
lea edi, [ebp - 0xc]
call fcn.0040158b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040175b
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xf4]
push dword [ebp + 0xc]
call fcn.004083f5
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.0040175b
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x4080f6
mov bl, 1
mov esi, edi
call fcn.00408113
mov esi, dword [ebp - 8]
lea eax, [esi - 0x10]
call fcn.0040175b
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040175b
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409399
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
je 0x409445
dec eax
dec eax
push esi
mov esi, 0x85
je 0x4093da
sub eax, 3
je 0x4093d3
dec eax
je 0x4093cc
dec eax
je 0x4093c5
sub eax, 3
je 0x409444
jmp 0x4093df
mov esi, 0x83
jmp 0x4093df
mov esi, 0x82
jmp 0x4093df
mov esi, 0x81
jmp 0x4093df
mov esi, 0x84
cmp byte [0x42a17c], 0
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
je 0x40941f
push edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.00401ae3
push 0
lea edi, [ebp - 4]
call fcn.00409472
mov eax, dword [ebp - 4]
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
pop edi
jmp 0x409444
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.00401ae3
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
call fcn.0040175b
pop esi
leave
ret

Function at 0x409472
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp byte [0x42a17c], al
je 0x4094d3
cmp byte [ebp + 8], al
push ebx
push esi
push 0x10
pop ebx
je 0x409490
mov ebx, 0x40010
push eax
lea esi, [ebp - 8]
call fcn.00401cf3
push dword [edi]
lea esi, [ebp - 4]
call fcn.00401cf3
push ebx
lea eax, [ebp - 8]
push eax
mov eax, esi
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00422ed5
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
pop esi
pop ebx
leave
ret
push dword [edi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret
Function at 0x40a28d
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x14
mov eax, dword [edi + 0x28]
push ebx
push ebp
push esi
push dword [eax]
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esi]
push 0x80
push eax
call fcn.00422e59
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
pop ecx
push 0x414
push dword [esi]
mov ebp, eax
call ebx
push 0
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0x170
push eax
call ebp
push esi
xor eax, eax
call fcn.004042c6
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x412
push dword [edi + 4]
call ebx
and dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x24]
mov esi, dword [eax + 4]
test esi, esi
mov dword [esp + 0x1c], esi
jle 0x40a393
push dword [esp + 0xc]
mov ecx, dword [edi + 0x24]
call fcn.00401a37
movzx eax, word [eax]
push 0
push 0x4256e6
push 2
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
lea ebx, [esi - 1]
push 0x78
lea eax, [esp + 0x18]
call fcn.00403cc9
push esi
lea esi, [esp + 0x18]
call fcn.00403d1d
push eax
push 2
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, dword [esp + 0x14]
push esi
push 0
push 0x143
push dword [esp + 0x1c]
call ebp
push dword [esp + 0x18]
push eax
push 0x151
push dword [esp + 0x1c]
call ebp
lea eax, [esi - 0x10]
call fcn.0040175b
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
jl 0x40a309
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
jle 0x40a3bc
push 0
push ebx
push 0x150
push dword [esp + 0x1c]
call ebp
movzx ecx, word [edi + 0x2c]
cmp ecx, eax
jne 0x40a3b7
mov dword [esp + 0x1c], ebx
inc ebx
cmp ebx, esi
jl 0x40a39d
push 0
push dword [esp + 0x20]
push 0x14e
push dword [esp + 0x1c]
call ebp
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x40a86f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42a5a0]
push ebx
push esi
push edi
mov ecx, 0x42a5a0
call dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
add eax, 0x10
push 0
mov dword [ebp - 8], eax
movzx eax, word [ebp + 0xc]
push 0x4256e6
push 2
push eax
call edi
mov esi, eax
lea ebx, [esi - 1]
push 0x78
lea eax, [ebp - 4]
call fcn.00403cc9
push esi
lea esi, [ebp - 4]
call fcn.00403d1d
push eax
movzx eax, word [ebp + 0xc]
push 2
push eax
call edi
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push str._d__s
push eax
call fcn.00403d0a
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
add esp, 0x10
mov eax, esi
call fcn.00401773
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
call fcn.0040175b
mov eax, esi
call fcn.0040175b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40b431
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [edi + 0x10], eax
cmp dword [eax], ebx
je 0x40b464
push ebx
push ebx
push ebx
push ebx
lea esi, [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call fcn.0040b62d
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x40b61f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [edi + 0x10]
cmp dword [eax], ebx
mov dword [ebp - 0x14], esi
je 0x40b4b8
call fcn.0040b4f4
mov ebx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 8], edx
call fcn.0040c292
add esi, eax
adc dword [ebp - 8], edx
mov eax, dword [edi + 0x10]
push dword [ebp - 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
push esi
call dword [eax]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 0x14]
xor ebx, ebx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40b4e2
cmp esi, ebx
mov edi, dword [ebp - 4]
je 0x40b4de
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40b4ef
cmp esi, ebx
je 0x40b4ed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b7a2
Capabilities:
Delete directory
Delete file

Disassembly:
cmp byte [esi + 0xac], 0
push ebx
push edi
mov dword [esi], 0x425d4c
je 0x40b839
cmp dword [esi + 0x78], 3
je 0x40b7ec
mov edi, esi
call fcn.0040c6b3
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x40b7ec
cmp eax, 1
je 0x40b7ec
mov eax, dword [esi + 0x40]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x40b7e5
shr eax, 6
test al, 1
je 0x40b7ec
mov edi, esi
call fcn.0040bd70
mov ebx, dword [esi + 0x94]
xor edi, edi
test ebx, ebx
jle 0x40b816
push ebp
lea ebp, [esi + 0x90]
mov eax, edi
mov ecx, ebp
call fcn.0040e038
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, ebx
jl 0x40b7ff
pop ebp
mov edi, dword [esi + 0xa0]
dec edi
js 0x40b839
lea ebx, [esi + 0x9c]
mov eax, edi
mov ecx, ebx
call fcn.0040e038
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec edi
jns 0x40b825
mov eax, dword [esi + 0xb0]
push 0x10
pop ebx
sub eax, ebx
call fcn.0040175b
mov eax, dword [esi + 0xa8]
sub eax, ebx
call fcn.0040175b
lea edi, [esi + 0x9c]
call fcn.00403f0e
lea edi, [esi + 0x90]
call fcn.00403f0e
lea edi, [esi + 0x84]
call fcn.00422add
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x40b889
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x6c], 0
lea edi, [esi + 0x60]
call fcn.0040d29b
mov eax, dword [esi + 0x5c]
sub eax, ebx
call fcn.0040175b
mov eax, dword [esi + 0x58]
sub eax, ebx
call fcn.0040175b
mov eax, dword [esi + 0x54]
sub eax, ebx
call fcn.0040175b
mov eax, dword [esi + 0x50]
pop edi
sub eax, ebx
pop ebx
jmp fcn.0040175b
Function at 0x40bd70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 0x58]
push ebx
push esi
sub eax, 0x10
call fcn.00401773
add eax, 0x10
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x40]
inc ecx
test cl, al
jne 0x40bdbe
shr eax, 3
xor edx, edx
mov dl, al
and al, cl
and edx, ecx
shl edx, 1
or edx, ecx
neg al
push edx
sbb eax, eax
and eax, 7
push eax
mov eax, edi
call fcn.0040c2f5
lea ecx, [edi + 0x60]
call fcn.0040d12d
add eax, 0x18
jmp 0x40be05
shr eax, 6
test cl, al
je 0x40be27
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d049
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebp - 4]
call fcn.0040d33b
push 6
mov eax, edi
call fcn.0040c339
lea ecx, [edi + 0x84]
call fcn.0040f6fc
lea ebx, [ebp - 8]
call fcn.0040d501
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebp - 4]
push eax
call fcn.0040d67d
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esi - 0x10]
call fcn.0040175b
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40c6b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [edi + 0x40]
test al, 1
je 0x40c6cb
shr eax, 6
test al, 1
je 0x40c793
mov eax, dword [edi + 0x64]
and dword [ebp - 8], 0
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x40c793
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x60]
call fcn.0040d12d
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c782
mov eax, dword [esi]
cmp eax, 1
je 0x40c70f
cmp eax, 3
je 0x40c70f
cmp eax, 0x64
jb 0x40c727
cmp dword [edi + 0x78], 2
jne 0x40c727
jmp 0x40c782
mov eax, dword [edi + 0x78]
cmp eax, 4
je 0x40c727
cmp eax, 2
je 0x40c782
cmp eax, 1
je 0x40c782
test byte [esi + 8], 1
jne 0x40c782
lea ebx, [edi + 0x58]
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00401773
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
lea esi, [ebp - 4]
call fcn.00403d1d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov eax, esi
lea ebx, [ebp - 0xc]
call fcn.0040d501
push eax
call fcn.0040d8d4
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040175b
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x40c6df
pop esi
pop ebx
leave
ret
Function at 0x40c795
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, 0x400
push edi
mov esi, eax
call fcn.0042382d
pop ecx
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], eax
jne 0x40c7c3
push ecx
call fcn.00423832
pop ecx
push 3
pop eax
jmp 0x40c8d4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
push ebx
mov eax, dword [ebp - 0x10]
add dword [ebp - 4], 0xa
add eax, edi
cmp eax, edi
mov dword [ebp - 0x10], eax
jle 0x40c7e0
sub eax, dword [ebp - 4]
mov ecx, dword [esi + 0x6c]
push 2
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x40c8c5
mov eax, dword [esi + 0x6c]
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c8c5
cmp dword [ebp - 8], edi
jne 0x40c8c5
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
add ecx, eax
mov bl, byte [ecx]
cmp bl, byte [edx + str.ADVINSTSFX]
jne 0x40c83c
inc edx
inc ecx
cmp edx, 0xa
jl 0x40c82b
cmp edx, 0xa
jne 0x40c84f
mov ecx, dword [ebp - 0x18]
lea ebx, [eax + ecx - 0x40]
mov dword [ebp - 0x14], ebx
add eax, edx
jmp 0x40c852
mov ebx, dword [ebp - 0x14]
inc eax
cmp eax, 0x3f6
jb 0x40c824
test ebx, ebx
je 0x40c7cd
mov eax, dword [esi + 0x6c]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40c8c5
mov eax, dword [esi + 0x6c]
push 0
lea ecx, [ebp - 8]
push ecx
push 0x4c
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c8c5
cmp dword [ebp - 8], 0
je 0x40c8c5
xor eax, eax
movzx ecx, byte [esi + eax + 0x44]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x40c8b4
inc eax
cmp eax, 0xa
jl 0x40c898
cmp dword [esi + 0x10], 0x64
je 0x40c8b8
push 5
jmp 0x40c8c7
sub ebx, dword [esi + 0x14]
mov dword [esi + 0x80], ebx
xor esi, esi
jmp 0x40c8c8
push 2
pop esi
push dword [ebp - 0xc]
call fcn.00423832
pop ecx
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40c8d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x40c8ed
xor eax, eax
jmp 0x40c9ea
mov ecx, dword [ebx + 0x80]
add ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x6c]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c910
push 2
pop eax
jmp 0x40c9ea
push edi
lea edi, [ebp - 0x2c]
call fcn.0040b69b
cmp dword [ebx + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jbe 0x40c9d3
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x6c]
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x40c9d0
cmp dword [ebp - 0xc], esi
je 0x40c9d0
cmp dword [ebp - 4], esi
je 0x40c961
push dword [ebp - 4]
call fcn.00423832
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403d8b
test al, al
je 0x40c9cc
mov eax, dword [ebx + 0x6c]
push esi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x40c9d0
cmp dword [ebp - 0xc], esi
je 0x40c9d0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x2c]
lea esi, [ebx + 0x60]
push eax
call fcn.0040d0e6
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0040d12d
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.00401d22
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, dword [ebx + 0xc]
jb 0x40c92e
jmp 0x40c9d3
push 3
jmp 0x40c9d2
push 2
pop esi
push dword [ebp - 4]
call fcn.00423832
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.0040175b
mov eax, esi
pop edi
pop esi
leave
ret