joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089bc
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4243c4]
push ebx
push esi
push edi
mov ecx, 0x4243c4
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.00416dd2
add eax, 0x1c
mov eax, dword [eax]
sub eax, 0x10
call fcn.00402f91
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 8], esi
je 0x408b0e
mov eax, dword [edi + 0x84]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00402f91
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405e30
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
lea eax, [ebp - 4]
call fcn.00405e30
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.00407175
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402f79
xor bl, bl
mov esi, edi
call fcn.00408bd2
push 0x8a
lea ecx, [ebp - 0xc]
call fcn.00404f46
pop ecx
push dword [ebp - 0xc]
push 2
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.00408eb4
lea eax, [ebp - 8]
push 0
push eax
lea edx, [ebp - 4]
call fcn.00405102
mov bl, al
test bl, bl
pop ecx
pop ecx
jne 0x408af1
lea esi, [ebp - 4]
call fcn.00402b4b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push 0x5c
call fcn.00402e36
test eax, eax
pop ecx
jne 0x408acf
or eax, 0xffffffff
jmp 0x408ad2
sub eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 4]
call fcn.00402af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
test bl, bl
je 0x408b36
mov esi, dword [ebp - 8]
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.00409a2e
mov ecx, dword [edi + 0x80]
mov ecx, dword [ecx]
add ecx, 4
call fcn.00416dd2
mov byte [eax + 0x5c], 1
mov byte [ebp + 0xf], 1
jmp 0x408ba3
inc dword [edi + 0x178]
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
call fcn.00404f46
pop ecx
lea edi, [ebp - 0xc]
call fcn.00402d6c
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402f79
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xf4]
push dword [ebp + 0xc]
call fcn.00408eb4
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.00402f79
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x408bb5
mov bl, 1
mov esi, edi
call fcn.00408bd2
mov esi, dword [ebp - 8]
lea eax, [esi - 0x10]
call fcn.00402f79
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402f79
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409ae9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
test eax, eax
push esi
je 0x409b84
dec eax
dec eax
mov esi, 0x85
je 0x409b26
sub eax, 3
je 0x409b1f
dec eax
je 0x409b18
dec eax
je 0x409b11
sub eax, 3
je 0x409b84
jmp 0x409b2b
mov esi, 0x83
jmp 0x409b2b
mov esi, 0x82
jmp 0x409b2b
mov esi, 0x81
jmp 0x409b2b
mov esi, 0x84
cmp byte [0x42413c], 0
je 0x409b55
push 0x10
push ecx
mov eax, esp
and dword [eax], 0
push ecx
movzx ecx, si
mov eax, esp
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.004098e4
add esp, 0x10
jmp 0x409b84
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.0040334b
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi - 0x10]
call fcn.00402f79
pop esi
leave
ret

Function at 0x409bb0
Capabilities:
Print debug messages

Disassembly:
xor edx, edx
cmp byte [0x42413c], dl
je 0x409be5
cmp byte [esp + 4], dl
push 0x10
pop eax
je 0x409bc8
mov eax, 0x40010
push eax
push ecx
mov eax, esp
mov dword [eax], edx
mov eax, dword [ecx]
push ecx
mov ecx, esp
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.004098e4
add esp, 0x10
ret
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret
Function at 0x40a6b9
Capabilities:
Get geographical location
Inspect load icon resource

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]
push 0x80
push dword [0x424384]
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
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.00403979
push 0x412
push dword [esi]
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 0x40a7b8
push dword [esp + 0xc]
mov ecx, dword [edi + 0x24]
call fcn.00403114
movzx eax, word [eax]
push 0
push 0x42065c
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.00402a06
push esi
lea esi, [esp + 0x18]
call fcn.00402b4b
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.00402f79
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
jl 0x40a72e
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x1c], ebx
jle 0x40a7e1
push 0
push ebx
push 0x150
push dword [esp + 0x1c]
call ebp
movzx ecx, word [edi + 0x2c]
cmp ecx, eax
jne 0x40a7dc
mov dword [esp + 0x1c], ebx
inc ebx
cmp ebx, esi
jl 0x40a7c2
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 0x40ac3d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4243c4]
push ebx
push esi
push edi
mov ecx, 0x4243c4
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 0x42065c
push 2
push eax
call edi
mov esi, eax
lea ebx, [esi - 1]
push 0x78
lea eax, [ebp - 4]
call fcn.00402a06
push esi
lea esi, [ebp - 4]
call fcn.00402b4b
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.00402b38
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
add esp, 0x10
mov eax, esi
call fcn.00402f91
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
call fcn.00402f79
mov eax, esi
call fcn.00402f79
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40b79a
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 0x40b7cd
push ebx
push ebx
push ebx
push ebx
lea esi, [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call fcn.00407528
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 0x40b985
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 0x40b821
call fcn.0040b85d
mov ebx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 8], edx
call fcn.0040c587
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 0x40b84b
cmp esi, ebx
mov edi, dword [ebp - 4]
je 0x40b847
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40b858
cmp esi, ebx
je 0x40b856
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bacb
Capabilities:
Delete directory
Delete file

Disassembly:
cmp byte [esi + 0xac], 0
push ebx
push edi
mov dword [esi], 0x420de0
je 0x40bb51
cmp dword [esi + 0x78], 3
je 0x40bb04
mov edi, esi
call fcn.0040c993
mov eax, dword [esi + 0x40]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x40bafd
shr eax, 6
test al, 1
je 0x40bb04
mov eax, esi
call fcn.0040c063
mov ebx, dword [esi + 0x94]
xor edi, edi
test ebx, ebx
jle 0x40bb2e
push ebp
lea ebp, [esi + 0x90]
mov eax, edi
mov ecx, ebp
call fcn.00406b90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, ebx
jl 0x40bb17
pop ebp
mov edi, dword [esi + 0xa0]
dec edi
js 0x40bb51
lea ebx, [esi + 0x9c]
mov eax, edi
mov ecx, ebx
call fcn.00406b90
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec edi
jns 0x40bb3d
mov eax, dword [esi + 0xa8]
push 0x10
pop ebx
sub eax, ebx
call fcn.00402f79
lea edi, [esi + 0x9c]
call fcn.00402dac
lea edi, [esi + 0x90]
call fcn.00402dac
lea edi, [esi + 0x84]
call fcn.0041dab5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x40bb94
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x6c], 0
lea edi, [esi + 0x60]
call fcn.0040d467
mov eax, dword [esi + 0x5c]
sub eax, ebx
call fcn.00402f79
mov eax, dword [esi + 0x58]
sub eax, ebx
call fcn.00402f79
mov eax, dword [esi + 0x54]
sub eax, ebx
call fcn.00402f79
mov eax, dword [esi + 0x50]
pop edi
sub eax, ebx
pop ebx
jmp fcn.00402f79
Function at 0x40c063
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x58]
sub eax, 0x10
call fcn.00402f91
add eax, 0x10
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x40]
inc ecx
test cl, al
jne 0x40c0b3
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, esi
call fcn.0040c5ea
lea ecx, [esi + 0x60]
call fcn.0040d387
add eax, 0x18
jmp 0x40c0fa
shr eax, 6
test cl, al
je 0x40c11c
lea eax, [ebp - 8]
push eax
push esi
call fcn.0040d30f
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
lea eax, [ebp - 4]
call fcn.00405e30
push 6
mov eax, esi
call fcn.0040c62e
lea ecx, [esi + 0x84]
call fcn.0041da7b
lea ebx, [ebp - 8]
call fcn.00405f5c
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402f79
lea eax, [ebp - 4]
push eax
call fcn.00405a6b
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esi - 0x10]
call fcn.00402f79
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40c993
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [edi + 0x40]
test al, 1
je 0x40c9ab
shr eax, 6
test al, 1
je 0x40ca95
mov eax, dword [edi + 0x64]
push ebx
xor ebx, ebx
test eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
jle 0x40ca94
push esi
lea esi, [edi + 0x60]
mov eax, ebx
mov ecx, esi
call fcn.0040d387
cmp byte [eax + 0x1c], 0
je 0x40ca83
mov eax, ebx
mov ecx, esi
call fcn.0040d387
mov eax, dword [eax]
cmp eax, 1
jne 0x40ca11
mov eax, dword [edi + 0x78]
cmp eax, 4
je 0x40ca1c
cmp eax, 2
je 0x40ca83
cmp eax, 1
je 0x40ca83
mov eax, ebx
mov ecx, esi
call fcn.0040d387
test byte [eax + 8], 1
je 0x40ca1c
jmp 0x40ca83
cmp eax, 0x64
jb 0x40ca1c
cmp dword [edi + 0x78], 2
je 0x40ca83
lea ebx, [edi + 0x58]
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00402f91
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0040d387
add eax, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402f2b
lea esi, [ebp - 4]
call fcn.00402b4b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov eax, esi
lea ebx, [ebp - 0xc]
call fcn.00405f5c
push eax
call fcn.0040593d
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402f79
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
mov ebx, dword [ebp - 8]
inc ebx
cmp ebx, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
jl 0x40c9c0
pop esi
pop ebx
leave
ret
Function at 0x40ca97
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.0041e6ca
pop ecx
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 8], eax
jne 0x40cac5
push ecx
call fcn.0041e6cf
pop ecx
push 3
pop eax
jmp 0x40cbd2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], ecx
sub ecx, ebx
cmp ecx, 0xfffffc00
mov dword [ebp - 0x14], ecx
jge 0x40cadf
add ecx, 0xfffffff6
mov eax, dword [esi + 0x6c]
push 2
push 0
push ecx
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x40cbc3
mov eax, dword [esi + 0x6c]
push 0
lea ecx, [ebp - 4]
push ecx
push ebx
push dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cbc3
cmp dword [ebp - 4], ebx
jne 0x40cbc3
xor eax, eax
mov ecx, dword [ebp - 8]
xor edx, edx
add ecx, eax
mov bl, byte [ecx]
cmp bl, byte [edx + str.ADVINSTSFX]
jne 0x40cb35
inc edx
inc ecx
cmp edx, 0xa
jl 0x40cb24
cmp edx, 0xa
jne 0x40cb48
mov ecx, dword [ebp - 0x10]
lea ebx, [eax + ecx - 0x40]
mov dword [ebp - 0xc], ebx
add eax, edx
jmp 0x40cb4b
mov ebx, dword [ebp - 0xc]
inc eax
cmp eax, 0x3f6
jb 0x40cb1d
test ebx, ebx
jne 0x40cb64
mov ecx, dword [ebp - 0x14]
mov ebx, 0x400
jmp 0x40cacf
mov eax, dword [esi + 0x6c]
push 0
push 0
push ebx
push eax
call edi
cmp eax, 0xffffffff
je 0x40cbc3
mov eax, dword [esi + 0x6c]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x4c
lea ecx, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cbc3
cmp dword [ebp - 4], 0
je 0x40cbc3
xor eax, eax
movzx ecx, byte [esi + eax + 0x44]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x40cbb2
inc eax
cmp eax, 0xa
jl 0x40cb96
cmp dword [esi + 0x10], 0x64
je 0x40cbb6
push 5
jmp 0x40cbc5
sub ebx, dword [esi + 0x14]
mov dword [esi + 0x80], ebx
xor esi, esi
jmp 0x40cbc6
push 2
pop esi
push dword [ebp - 8]
call fcn.0041e6cf
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cbd6
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 0x40cbeb
xor eax, eax
jmp 0x40cce8
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 0x40cc0e
push 2
pop eax
jmp 0x40cce8
push edi
lea edi, [ebp - 0x2c]
call fcn.0040b9e8
cmp dword [ebx + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jbe 0x40ccd1
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 0x40ccce
cmp dword [ebp - 0xc], esi
je 0x40ccce
cmp dword [ebp - 4], esi
je 0x40cc5f
push dword [ebp - 4]
call fcn.0041e6cf
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402bb9
test al, al
je 0x40ccca
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 0x40ccce
cmp dword [ebp - 0xc], esi
je 0x40ccce
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.0040d340
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0040d387
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.004035d2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, dword [ebx + 0xc]
jb 0x40cc2c
jmp 0x40ccd1
push 3
jmp 0x40ccd0
push 2
pop esi
push dword [ebp - 4]
call fcn.0041e6cf
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.00402f79
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x40cceb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [esi + 0x88], ebx
jle 0x40cd03
xor eax, eax
jmp 0x40ce22
mov ecx, dword [esi + 0x80]
add ecx, dword [esi + 8]
mov eax, dword [esi + 0x6c]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40cd26
push 2
pop eax
jmp 0x40ce22
cmp dword [esi + 4], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jbe 0x40ce16
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
test eax, eax
je 0x40ce13
cmp dword [ebp - 8], ebx
je 0x40ce13
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
je 0x40cd8e
push dword [ebp - 4]
call fcn.0041e6cf
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00402bb9
test al, al
je 0x40cdf9
mov eax, dword [esi + 0x6c]
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x40ce08
cmp dword [ebp - 8], ebx
je 0x40ce08
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ecx + eax], bl
lea eax, [ebp - 0x1c]
push eax
call fcn.004035d2
lea ebx, [esi + 0x84]
lea edi, [ebp - 0x1c]
call fcn.0041da31
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f79
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [esi + 4]
jb 0x40cd3c
jmp 0x40ce16
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f79
push 3
jmp 0x40ce15
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402f79
push 2
pop ebx
push dword [ebp - 4]
call fcn.0041e6cf
pop ecx
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x40e5bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [eax]
push ebx
push esi
xor esi, esi
cmp dword [eax - 0xc], esi
mov ebx, ecx
jne 0x40e5d5
xor eax, eax
jmp 0x40e686
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e5fa
push eax
jmp 0x40e67c
push 0x78
lea eax, [ebp - 4]
call fcn.00402a06
push esi
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40e624
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
cmp edi, esi
jmp 0x40e679
push esi
lea eax, [ebp - 8]
push eax
push ebx
lea esi, [ebp - 4]
call fcn.00402b4b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e66c
cmp dword [ebp - 8], 0
je 0x40e66c
mov eax, esi
push eax
push dword [ebp + 8]
call fcn.0040e167
movzx esi, al
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
test edi, edi
je 0x40e668
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40e685
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402f79
test edi, edi
je 0x40e682
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40fa9a
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x424050]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push edi
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x68]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x40fc40
lea eax, [ebp + 0x9c]
push eax
push ebx
push 0x421128
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40fc40
push esi
lea eax, [ebp + 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x9c]
push eax
lea esi, [ebp - 0x6c]
call fcn.004032f7
mov esi, str..url
mov ecx, esi
call fcn.00402f1b
push eax
push esi
lea eax, [ebp - 0x6c]
push eax
call fcn.00402f2b
push ebx
push 0x80
push 2
push ebx
push ebx
mov ebx, dword [ebp - 0x6c]
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x80], esi
jne 0x40fb63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
jmp 0x40fc3a
mov eax, dword [0x4243c4]
mov ecx, 0x4243c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [edi]
sub eax, 0x10
call fcn.00402f91
mov edi, eax
add edi, 0x10
push edi
lea eax, [ebp - 0x70]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.00402b38
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebx - 0xc]
add esp, 0xc
push 0
lea ecx, [ebp - 0x78]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
mov dword [ebp - 0x70], eax
je 0x40fbbe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x80], 0
xor eax, eax
cmp dword [ebp - 0x70], eax
je 0x40fbd8
push 5
push eax
push eax
push dword [ebp - 0x6c]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x6c]
push 0x5c
call fcn.00402e36
test eax, eax
pop ecx
jne 0x40fbec
or eax, 0xffffffff
jmp 0x40fbef
sub eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x74]
add ecx, 0xc
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea esi, [ebp - 0x6c]
call fcn.00402af0
push eax
call fcn.0040593d
mov eax, dword [ebp - 0x70]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402f79
lea eax, [edi - 0x10]
call fcn.00402f79
lea eax, [ebx - 0x10]
call fcn.00402f79
cmp dword [ebp - 0x80], 0
je 0x40fc34
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x6c]
add eax, 0xfffffff0
call fcn.00402f79
pop esi
mov ecx, dword [ebp + 0x1a0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041e95f
add ebp, 0x1a4
leave
ret 4