joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ff6
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 + 0x10], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
je 0x408024
mov dword [ebp - 0x38], 0x440
mov edi, dword [ebp + 8]
push esi
mov esi, dword [edi]
call fcn.00411d9a
test al, al
je 0x408036
add esi, 4
xor eax, eax
cmp byte [ebp + 0x14], bl
mov dword [ebp - 0x2c], esi
sete al
cmp byte [ebp + 0x18], bl
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x20], eax
jne 0x408057
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x408064
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
lea ebx, [ebp + 0x14]
call fcn.0041171b
mov esi, dword [ebp + 0x14]
mov edi, ebx
call fcn.00411d9a
test al, al
je 0x408080
add esi, 4
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop esi
jne 0x408096
xor bl, bl
jmp 0x4080bb
cmp dword [ebp + 0x10], 0
je 0x4080b9
cmp dword [ebp - 4], 0
je 0x4080b9
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
call fcn.0040147d
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x408563
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x438060]
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 0x4085e3
mov eax, dword [ebp - 0x74]
mov byte [ebp + eax - 0x70], bl
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call fcn.00404612
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 0x4085c3
mov esi, dword [ebp - 0x78]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, 2
jl 0x408615
lea ecx, [ebp - 0x78]
add eax, 0xfffffffe
push ecx
call fcn.00402629
mov edi, esi
call fcn.00401bc0
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.0040147d
cmp dword [ebp - 0x80], ebx
pop edi
pop esi
pop ebx
je 0x408626
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
call fcn.0042e08a
add ebp, 0x394
leave
ret
Function at 0x409418
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebx + 0x28], edi
jle 0x409482
push esi
lea esi, [ebx + 0x24]
mov eax, edi
mov ecx, esi
call fcn.0042a0d7
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 0x5c
mov eax, edi
mov ecx, esi
call fcn.0042a0d7
mov esi, eax
call fcn.004025c0
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
mov eax, edi
lea ecx, [ebx + 0x24]
call fcn.0042a0d7
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00402629
push eax
call fcn.00411b29
mov eax, dword [ebp - 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
inc edi
cmp edi, dword [ebx + 0x28]
jl 0x409426
pop esi
lea edi, [ebx + 0x24]
call fcn.004045dd
lea edi, [ebx + 4]
call fcn.004097d5
mov eax, dword [ebx]
sub eax, 0x10
call fcn.0040147d
pop edi
leave
ret

Function at 0x409c9b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, edi
neg esi
lea eax, [edi + 4]
sbb esi, esi
and esi, eax
push 0x80
push dword [esi]
call fcn.0042d1bd
pop ecx
pop ecx
lea ebx, [edi + 4]
push ebx
xor eax, eax
call fcn.00401e41
mov eax, dword [edi + 0x28]
push dword [eax]
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push 0xdc
lea eax, [ebp - 4]
push eax
call fcn.0040162d
push 0x40a
push dword [ebx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [ebp - 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push edi
push 0x409d88
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x30], eax
lea eax, [ebx - 0x10]
call fcn.0040147d
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40c60e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x438cec], 0
push ebx
push esi
push edi
mov esi, eax
mov edi, 0x438af8
je 0x40c658
mov eax, dword [0x438af8]
mov ebx, dword [esi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 4]
push eax
call fcn.004063dd
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
cmp byte [0x438274], 0
je 0x40c6b7
cmp byte [ebp + 8], 0
push 0x10
pop ebx
je 0x40c66f
mov ebx, 0x40010
push dword [esi]
lea esi, [ebp - 4]
call fcn.004015d9
mov eax, dword [0x438af8]
mov ecx, edi
call dword [eax + 0xc]
mov esi, eax
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.0042d239
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.0040147d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
jmp 0x40c6bf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d425
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0x43075e
push dword [ebp + 0xc]
push eax
call edi
mov esi, eax
lea ebx, [esi - 1]
push 0x78
lea eax, [ebp - 4]
call fcn.00404493
push esi
lea esi, [ebp - 4]
call fcn.004044e7
push eax
movzx eax, word [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call edi
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.00401c33
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040147d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40daf7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x438af8]
push ebx
push esi
push edi
mov ecx, 0x438af8
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 0x43075e
push 2
push eax
call edi
mov esi, eax
lea ebx, [esi - 1]
push 0x78
lea eax, [ebp - 4]
call fcn.00404493
push esi
lea esi, [ebp - 4]
call fcn.004044e7
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.004044d4
mov esi, dword [ebp - 8]
add esi, 0xfffffff0
add esp, 0x10
mov eax, esi
call fcn.00401c33
mov ebx, dword [ebp + 8]
add eax, 0x10
mov dword [ebx], eax
lea eax, [edi - 0x10]
call fcn.0040147d
mov eax, esi
call fcn.0040147d
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40dc1f
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and word [ebx], 0
and word [edi], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [ebp + 0xc]
push str.Windows_2000
lea esi, [ebp + 8]
mov word [ecx], ax
call fcn.00404463
lea ecx, [ebp + 0xc]
call fcn.00408658
mov esi, dword [ebp + 8]
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
mov eax, dword [ebp + 0xc]
setge byte [ebp + 0xb]
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [esi - 0x10]
call fcn.0040147d
cmp byte [ebp + 0xb], 0
je 0x40dcbf
push dword [0x438284]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [0x438288]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x40dcab
call eax
mov word [edi], ax
push dword [0x43828c]
push dword [ebp + 8]
call esi
test eax, eax
je 0x40dcbf
call eax
mov word [ebx], ax
pop esi
pop ebp
ret

Function at 0x40e746
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebx + 0x10], eax
cmp dword [eax], edi
je 0x40e77d
push edi
push edi
push edi
push edi
lea esi, [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
call fcn.004045c6
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
push dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x40e933
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebx + 0x10]
cmp dword [eax], edi
mov dword [ebp - 0x14], esi
je 0x40e7d6
mov edi, ebx
call fcn.0040e814
mov edi, dword [ebp + 8]
mov ebx, dword [ebx + 4]
mov esi, eax
mov eax, dword [edi]
mov dword [ebp - 8], edx
call fcn.0040f984
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 edi, edi
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 0x40e800
cmp esi, edi
mov ebx, dword [ebp - 4]
je 0x40e7fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x40e80d
cmp esi, edi
je 0x40e80b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ebfc
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xb8], 0
je 0x40ed70
cmp byte [esi + 0xd0], 0
jne 0x40ed70
push ebx
lea ebx, [esi + 0x84]
cmp dword [ebx], 3
push edi
je 0x40ec5b
mov edi, esi
call fcn.0040ffb2
mov ebx, dword [ebx]
cmp ebx, 2
je 0x40ec5b
cmp ebx, 1
je 0x40ec5b
mov eax, dword [esi + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x40ec54
shr eax, 6
test al, 1
je 0x40ec5b
mov edi, esi
call fcn.0040f33d
mov ecx, dword [esi + 0xa0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
xor ebx, ebx
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jle 0x40ecc6
lea eax, [esi + 0x9c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0042a0d7
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
call edi
cmp dword [ebp - 8], 0
jne 0x40ecc0
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0042a0d7
push eax
lea esi, [ebp - 0x24]
call fcn.00408a14
mov esi, dword [ebp + 8]
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x40ec8d
mov ebx, dword [esi + 0xac]
dec ebx
js 0x40ed0e
lea eax, [esi + 0xa8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0042a0d7
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40ed0b
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.0042a0d7
push eax
lea esi, [ebp - 0x18]
call fcn.00408a14
mov esi, dword [ebp + 8]
dec ebx
jns 0x40ecd8
lea eax, [esi + 0x9c]
lea ebx, [ebp - 0x24]
call fcn.004110e1
lea edi, [esi + 0xa8]
call fcn.004045dd
mov ebx, dword [ebp - 0x14]
dec ebx
js 0x40ed45
mov eax, ebx
lea ecx, [ebp - 0x18]
call fcn.0042a0d7
push eax
mov esi, edi
call fcn.00408a14
dec ebx
jns 0x40ed2d
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [esi + 0xa0], eax
jne 0x40ed58
cmp dword [esi + 0xac], eax
jne 0x40ed58
inc eax
lea edi, [ebp - 0x18]
mov byte [esi + 0xd0], al
call fcn.004045dd
lea edi, [ebp - 0x24]
call fcn.004045dd
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40f33d
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor eax, eax
mov ecx, edi
call fcn.00410b09
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401c33
add eax, 0x10
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x44]
inc ecx
test cl, al
jne 0x40f393
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.0040fa12
lea ecx, [edi + 0x6c]
call fcn.0041118f
add eax, 0x18
jmp 0x40f3da
shr eax, 6
test cl, al
je 0x40f3fc
lea esi, [ebp - 8]
mov ecx, edi
call fcn.00410a61
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004026e5
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [ebp - 4]
call fcn.00411555
push 6
mov eax, edi
call fcn.0040fa56
lea ecx, [edi + 0x90]
call fcn.00406e20
lea ebx, [ebp - 8]
call fcn.0041171b
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004026e5
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
lea eax, [ebp - 4]
push eax
call fcn.004118d2
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esi - 0x10]
call fcn.0040147d
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x40ffb2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [edi + 0x44]
test al, 1
je 0x40ffca
shr eax, 6
test al, 1
je 0x4100b6
mov eax, dword [edi + 0x70]
and dword [ebp - 8], 0
test eax, eax
mov dword [ebp - 0x10], eax
jle 0x4100b6
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x6c]
call fcn.0041118f
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x4100a5
mov eax, dword [esi]
cmp eax, 1
je 0x410026
cmp eax, 3
je 0x410026
cmp eax, 7
je 0x410026
cmp eax, 8
je 0x410026
cmp eax, 0x64
jb 0x410041
mov eax, dword [edi + 0x84]
cmp eax, 2
je 0x4100a5
cmp eax, 5
jne 0x410041
jmp 0x4100a5
mov eax, dword [edi + 0x84]
cmp eax, 4
je 0x410041
cmp eax, 2
je 0x4100a5
cmp eax, 1
je 0x4100a5
test byte [esi + 8], 1
jne 0x4100a5
mov eax, dword [esi + 4]
mov ecx, edi
call fcn.00410b09
mov ebx, eax
mov eax, dword [ebx]
sub eax, 0x10
call fcn.00401c33
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
call fcn.004026e5
lea esi, [ebp - 4]
call fcn.004044e7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
mov eax, esi
lea ebx, [ebp - 0xc]
call fcn.0041171b
push eax
call fcn.00411b29
mov eax, dword [ebp - 0xc]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040147d
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x40ffde
pop esi
pop ebx
leave
ret
Function at 0x4100b8
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, 0x400
push edi
mov esi, eax
call fcn.0042ddf5
xor ebx, ebx
cmp eax, ebx
pop ecx
mov dword [esp + 0x14], eax
jne 0x4100e5
push ebx
call fcn.0042ddfa
pop ecx
push 3
pop eax
jmp 0x410210
mov dword [esp + 0xc], ebx
xor eax, eax
push ebp
add dword [esp + 0x10], 0xa
add eax, edi
cmp eax, edi
mov dword [esp + 0x20], eax
jle 0x4100ff
sub eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
push 2
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x4101ea
mov eax, dword [esi + 0x78]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4101ea
cmp dword [esp + 0x14], edi
jne 0x4101ea
xor eax, eax
mov edx, dword [esp + 0x18]
xor ecx, ecx
lea ebp, [eax + edx]
mov dl, byte [ebp]
cmp dl, byte [ecx + str.ADVINSTSFX]
jne 0x410162
inc ecx
inc ebp
cmp ecx, 0xa
jl 0x410150
cmp ecx, 0xa
jne 0x410172
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + ecx - 0x40]
add eax, 0xa
inc eax
cmp eax, 0x3f6
jb 0x410147
xor ebp, ebp
cmp ebx, ebp
jne 0x410189
mov eax, dword [esp + 0x20]
jmp 0x4100ec
mov eax, dword [esi + 0x78]
push ebp
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4101ea
mov eax, dword [esi + 0x78]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 0x4c
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4101ea
cmp dword [esp + 0x14], ebp
je 0x4101ea
xor eax, eax
movzx ecx, byte [esi + eax + 0x48]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x4101d9
inc eax
cmp eax, 0xa
jl 0x4101bd
cmp dword [esi + 0x14], 0x64
je 0x4101dd
push 5
jmp 0x410202
sub ebx, dword [esi + 0x18]
mov dword [esi + 0x8c], ebx
xor esi, esi
jmp 0x410203
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.00410aa7
push 2
pop esi
push dword [esp + 0x18]
call fcn.0042ddfa
pop ecx
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x410217
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebx + 0x10], esi
jne 0x41022c
xor eax, eax
jmp 0x410355
mov ecx, dword [ebx + 0x8c]
add ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x78]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x410265
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x54]
push eax
push 0x103
push ebx
call fcn.00410aa7
push 2
pop eax
jmp 0x410355
push edi
lea edi, [ebp - 0x2c]
call fcn.0040e996
cmp dword [ebx + 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jbe 0x41033e
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x78]
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x410325
cmp dword [ebp - 0xc], esi
je 0x410325
cmp dword [ebp - 4], esi
je 0x4102b6
push dword [ebp - 4]
call fcn.0042ddfa
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x18]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404513
test al, al
je 0x410321
mov eax, dword [ebx + 0x78]
push esi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x18]
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x410325
cmp dword [ebp - 0xc], esi
je 0x410325
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov byte [eax + ecx], 0
lea eax, [ebp - 0x2c]
lea esi, [ebx + 0x6c]
push eax
call fcn.00411148
mov eax, dword [ebp - 8]
mov ecx, esi
call fcn.0041118f
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.004018a3
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor esi, esi
cmp eax, dword [ebx + 0x10]
jb 0x410283
jmp 0x41033e
push 3
jmp 0x41033d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + 0x54]
push eax
push 0x103
push ebx
call fcn.00410aa7
push 2
pop esi
push dword [ebp - 4]
call fcn.0042ddfa
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.0040147d
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x410358
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [esi + 0x94], ebx
jle 0x410370
xor eax, eax
jmp 0x4104d1
mov ecx, dword [esi + 0x8c]
add ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x78]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4103a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.00410aa7
push 2
pop eax
jmp 0x4104d1
cmp dword [esi + 8], ebx
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
jbe 0x4104c5
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4104ac
cmp dword [ebp - 8], ebx
je 0x4104ac
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [ebp - 0x14]
add edi, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
je 0x410411
push dword [ebp - 4]
call fcn.0042ddfa
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.00404513
test al, al
je 0x410480
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x10]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41048c
cmp dword [ebp - 8], ebx
je 0x41048c
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.004018a3
lea ebx, [esi + 0x90]
lea edi, [ebp - 0x1c]
call fcn.004111b0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040147d
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor ebx, ebx
cmp eax, dword [esi + 8]
jb 0x4103bf
jmp 0x4104c5
lea eax, [edi - 0x10]
call fcn.0040147d
push 3
jmp 0x4104c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.00410aa7
lea eax, [edi - 0x10]
call fcn.0040147d
jmp 0x4104c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.00410aa7
push 2
pop ebx
push dword [ebp - 4]
call fcn.0042ddfa
pop ecx
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x41104c
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
cmp dword [edi + 0xdc], esi
jle 0x41107c
push ebx
lea ebx, [edi + 0xd8]
mov eax, esi
mov ecx, ebx
call fcn.0042a0d7
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, dword [edi + 0xdc]
jl 0x411061
pop ebx
add edi, 0xd8
call fcn.004045dd
pop edi
pop esi
ret