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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edi
push 0x103
mov dword [eax], ebx
lea eax, [ebp - 0x133]
push ebx
push eax
mov byte [ebp - 0x134], bl
call fcn.00449020
add esp, 0xc
push 0x104
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocStringLen
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
jne 0x402a72
xor eax, eax
jmp 0x402bc1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0x3c
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x20], 0x4550
jne 0x402bad
mov eax, dword [ebp - 0x14]
push ebx
add eax, 0x18
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ebx
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call edi
mov eax, 0x10b
cmp word [ebp - 0x10], ax
jne 0x402af0
sub dword [ebp - 8], 0xffffff80
jmp 0x402b07
mov eax, 0x20b
cmp word [ebp - 0x10], ax
jne 0x402b04
add dword [ebp - 8], 0x90
jmp 0x402b07
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
je 0x402bad
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call edi
xor eax, eax
mov dword [ebp - 0x30], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x402bad
push ebx
push ebx
add eax, 0xfffffff0
push eax
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x30], ebx
jne 0x402bad
cmp dword [ebp - 0x2c], ebx
jne 0x402bad
cmp dword [ebp - 0x28], ebx
jne 0x402bad
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x402bad
mov edi, dword [ebp + 0xc]
push eax
mov dword [edi], eax
call fcn.0043ed38
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [edi]
push ebx
push ebx
sub eax, 0x10
push eax
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 8]
push eax
push dword [edi]
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx], ebx
pop esi
setne al
pop edi
pop ebx
leave
ret
Function at 0x4054a5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x405634
cmp dword [ebp + 0x10], ebx
je 0x405634
cmp esi, ebx
je 0x4054d0
cmp dword [esi + 4], ebx
jne 0x4054d5
cmp dword [esi + 0xc], ebx
je 0x405517
xor eax, eax
cmp dword [esi + 4], ebx
je 0x4054f5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040545b
add esp, 0xc
cmp eax, ebx
jne 0x405636
cmp dword [esi + 0xc], ebx
je 0x405636
push dword [ebp + 0x10]
add esi, 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040545b
add esp, 0xc
jmp 0x405636
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call fcn.00449020
add esp, 0xc
push str.theme_
mov eax, 0x104
lea edi, [ebp - 0x108]
call fcn.0040f9bc
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40554c
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x40555c
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocStringLen
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4055f2
push str.data_
mov eax, 0x104
lea edi, [ebp - 0x108]
call fcn.0040f9bc
mov eax, dword [ebp + 8]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4055ac
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4055bc
mov ecx, eax
shr ecx, 2
push ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
push 1
mov ecx, eax
push SysReAllocStringLen
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405634
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
inc eax
push eax
call fcn.0043ed38
pop ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [esi]
push edi
mov byte [eax + ecx], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x405636
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405923
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x470e78]
sub esp, 0x10c
push ebx
xor ebx, ebx
cmp byte [eax + 0xac8f], bl
je 0x405a3c
lea ecx, [eax + 0xac90]
cmp ecx, ebx
je 0x405a3c
push esi
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x405952
sub ecx, esi
je 0x405a3b
lea ecx, [eax + 0xb594]
cmp ecx, ebx
je 0x405a3b
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x405972
sub ecx, esi
je 0x405a3b
add eax, 0xb698
push eax
push SysReAllocStringLen
call fcn.00402986
pop ecx
pop ecx
test al, al
jne 0x405a3b
mov eax, dword [0x470e78]
add eax, 0xb698
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00402986
pop ecx
pop ecx
test al, al
jne 0x405a3b
call fcn.00405a3f
push 0x103
mov esi, eax
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call fcn.00449020
mov eax, dword [0x470e78]
push eax
push fcn.00404482
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [eax + 0xb490]
push 0x104
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00404923
add esp, 0x20
cmp esi, ebx
je 0x405a34
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405a14
sub eax, edx
je 0x405a34
push 5
push ebx
lea eax, [ebp - 0x10c]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
call fcn.0043f824
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x405a3f
Capabilities:
Check http status code
Create http request
Reference http user-agent string

Disassembly:
mov eax, 0x45484a
call fcn.004542cc
sub esp, 0x414
push ebx
push esi
mov esi, 0x104
push esi
call fcn.0043ed38
push esi
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.00449020
mov eax, dword [0x470e78]
add esp, 0x10
cmp byte [eax + 0xac8f], bl
je 0x405c55
lea esi, [eax + 0xac90]
cmp esi, ebx
je 0x405c55
lea edx, [esi + 1]
mov cl, byte [esi]
inc esi
cmp cl, bl
jne 0x405a8e
sub esi, edx
je 0x405c55
add eax, 0xb594
cmp eax, ebx
je 0x405c55
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405aad
sub eax, edx
je 0x405c55
push edi
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_GB__rv:1.9.0.5__Gecko_2008120122_Firefox_3.0.5
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [0x470e78]
push ebx
push 0x40300
push ebx
push ebx
add ecx, 0xac90
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 0x3ff
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x41f]
push ebx
push eax
mov byte [ebp - 0x420], bl
call fcn.00449020
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 0xc
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x13
push dword [ebp - 0x10]
mov edi, 0x400
mov dword [ebp - 0x1c], edi
call esi
lea eax, [ebp - 0x420]
push eax
call fcn.0043f10e
pop ecx
mov byte [ebp - 0x420], bl
mov dword [ebp - 0x1c], edi
cmp eax, 0xc8
jne 0x405bab
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x2f
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x405b64
mov byte [ebp - 0x420], bl
lea eax, [ebp - 0x420]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405b6d
sub eax, edx
je 0x405bab
lea eax, [ebp - 0x420]
push str.filename
push eax
call fcn.0043f5a0
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x405bab
add edi, 9
push 0x4586f0
push edi
call fcn.0043f5a0
pop ecx
pop ecx
cmp eax, ebx
je 0x405ba7
mov byte [eax], bl
cmp edi, ebx
jne 0x405bc6
mov eax, dword [0x470e78]
add eax, 0xac90
push 0x2f
push eax
call fcn.0043f200
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x405bc6
inc edi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
mov eax, dword [0x470e78]
mov eax, dword [eax + 0x9066]
dec eax
je 0x405bf5
dec eax
je 0x405bec
mov dword [ebp - 0x10], ebx
jmp 0x405bfc
mov dword [ebp - 0x10], 2
jmp 0x405bfc
mov dword [ebp - 0x10], 1
push 0x1414
call fcn.0043f248
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x405c25
push dword [ebp - 0x10]
push dword [0x470e78]
call fcn.00407509
mov esi, eax
jmp 0x405c27
xor esi, esi
lea eax, [esi + 0xef2]
push eax
push 0x457c74
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
pop edi
cmp esi, ebx
je 0x405c55
push esi
call fcn.0043f1f0
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405c66
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.00449020
xor eax, eax
push esi
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00449020
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call fcn.0040f3c0
add esp, 0x20
test eax, eax
je 0x405d34
cmp dword [ebp + 0xc], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x405cea
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call esi
xor eax, eax
movzx ecx, word [ebp + eax - 0x208]
mov word [ebp + eax - 0x410], cx
inc eax
inc eax
test cx, cx
jne 0x405cd3
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x405cff
mov esi, 0x4586f4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], 0
pop edi
je 0x405d34
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
leave
ret
Function at 0x406fad
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [eax + 0x924]
dec ecx
je 0x406fda
dec ecx
jne 0x406fe0
lea ecx, [eax + 0x208]
push ecx
add eax, 0x30c
call fcn.00401d25
pop ecx
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop ecx
ret
push eax
call fcn.00406fe2
pop ecx
ret

Function at 0x406fe2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1430
call fcn.0044e410
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [eax + 0x208]
push edi
push ecx
add eax, 0x30c
call fcn.00401d25
pop ecx
xor edi, edi
push edi
mov esi, eax
push 0x4582c0
push esi
call fcn.00402795
add esp, 0xc
push 1
push 0x4588f8
push esi
mov dword [ebp - 8], eax
call fcn.00402795
add esp, 0xc
push edi
push 0x4588fc
push esi
mov dword [ebp - 0xc], eax
call fcn.00402795
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x457c6c
push esi
xor eax, eax
call fcn.00402929
mov dword [ebp - 0x1c], eax
push 0x458900
push esi
xor eax, eax
call fcn.00402929
push edi
mov ebx, 0x458908
push ebx
push esi
mov dword [ebp + 8], eax
call fcn.00402795
add esp, 0x1c
push 1
mov edi, 0x458914
push edi
push esi
mov dword [ebp - 0x18], eax
call fcn.00402795
add esp, 0xc
push esi
push SysReAllocStringLen
mov dword [ebp - 0x10], eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push dword [ebp - 0x18]
push ebx
push esi
call fcn.004028e1
push 1
push dword [ebp - 0x10]
push edi
push esi
call fcn.004028e1
mov eax, dword [0x470e78]
add esp, 0x20
test dword [eax + 0xac87], 2
jne 0x4070d4
push 0
push dword [ebp - 8]
push 0x4582c0
push esi
call fcn.004028e1
add esp, 0x10
mov eax, dword [0x470e78]
test dword [eax + 0xac87], 1
jne 0x4070f6
push dword [ebp - 0x1c]
push 0x457c6c
push esi
call fcn.0040296a
add esp, 0xc
mov eax, dword [0x470e78]
test dword [eax + 0xac87], 4
jne 0x407131
cmp dword [ebp + 8], 0
je 0x407131
push dword [ebp + 8]
push 0x458900
push esi
call fcn.0040296a
add esp, 0xc
push 1
push dword [ebp - 0xc]
push 0x4588f8
push esi
call fcn.004028e1
add esp, 0x10
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x407159
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40713d
sub eax, edx
je 0x407159
push 0
push edi
push 0x4588fc
push esi
call fcn.004028e1
add esp, 0x10
push 0
call fcn.0043f8a3
pop ecx
mov dword [ebp - 0x24], eax
push SysReAllocStringLen
mov ecx, esi
lea eax, [ebp - 0x142c]
mov dword [ebp - 0x20], edx
call fcn.0040e045
push 8
lea eax, [ebp - 0x24]
push eax
push 0xb
push 0x457c80
lea eax, [ebp - 0x142c]
call fcn.0040e12b
push esi
call fcn.0043f824
pop ecx
push dword [ebp - 8]
call fcn.0043f824
pop ecx
push dword [ebp - 0xc]
call fcn.0043f824
pop ecx
push edi
call fcn.0043f824
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40736f
Capabilities:
Create process on windows
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2044
call fcn.0044e410
push ebx
push edi
mov edi, dword [0x470e78]
lea eax, [edi + 0x2758]
mov dword [ebp - 4], eax
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x407392
sub eax, edx
je 0x407505
cmp dword [edi + 0x906e], ebx
je 0x407505
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x1843]
push ebx
push eax
mov byte [ebp - 0x1844], bl
call fcn.00449020
push esi
lea eax, [ebp - 0x443]
push ebx
push eax
mov byte [ebp - 0x444], bl
call fcn.00449020
push esi
lea eax, [ebp - 0x1043]
push ebx
push eax
mov byte [ebp - 0x1044], bl
call fcn.00449020
push esi
lea eax, [ebp - 0x843]
push ebx
push eax
mov byte [ebp - 0x844], bl
call fcn.00449020
push esi
lea eax, [ebp - 0xc43]
push ebx
push eax
mov byte [ebp - 0xc44], bl
call fcn.00449020
push esi
lea eax, [ebp - 0x1443]
push ebx
push eax
mov byte [ebp - 0x1444], bl
call fcn.00449020
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x844]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc44]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1444]
add esp, 0x48
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push 0x7ff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2043]
push ebx
push eax
mov dword [ebp - 0x44], 0x3c
mov byte [ebp - 0x2044], bl
call fcn.00449020
mov ecx, dword [ebp - 4]
push edi
push fcn.00404482
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x103
lea eax, [ebp - 0x2044]
call fcn.00404923
lea eax, [ebp - 0x2044]
add esp, 0x20
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4074c5
lea ecx, [ebp - 0x44]
push ecx
sub eax, esi
push ebx
push eax
lea eax, [ebp - 0x2044]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x38], 3
pop esi
je 0x4074ee
cmp dword [ebp - 0x38], 4
jne 0x407505
push 1
push ebx
push ebx
lea eax, [ebp - 0x2044]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop ebx
leave
ret
Function at 0x407f23
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00449020
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
call fcn.0040f3c0
add esp, 0x14
test eax, eax
je 0x40806a
lea eax, [ebp + 0x18]
push eax
push 0x45556c
push 1
push ebx
push 0x45557c
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40806d
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x4555bc
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40805f
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp + 0x1c], ebx
jne 0x407fca
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x44]
mov esi, eax
cmp esi, ebx
jl 0x408056
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp + 0x14], ebx
je 0x407ff2
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call esi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x408015
mov eax, dword [ebp - 4]
mov esi, 0x4586f4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
lea edx, [ebp - 0x20c]
push edx
movsw word es:[edi], word [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push ebx
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
push 0x3001
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40806d
mov esi, dword [ebp + 0x1c]
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x4083ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x108], bl
call fcn.00449020
mov eax, dword [ebp + 8]
add eax, 0x9f6
push eax
lea eax, [ebp - 0x108]
push 0x457c74
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470e78]
push dword [eax + 0xe20]
push dword [eax + 0xe1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 4
Function at 0x4086ec
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x410], ax
xor esi, esi
lea eax, [ebp - 0x40e]
push esi
push eax
call fcn.00449020
xor eax, eax
push edi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.00449020
add esp, 0x18
push 0x104
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add eax, 0xef2
push str.bresume.exe
push eax
mov dword [ebp + 8], eax
mov ebx, 0x458b50
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
push str.dresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
push str.tresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
push str.sresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x410]
push eax
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x408803
push 0x458bcc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
pop edi
test eax, eax
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x408841
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00449020
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.bresume.exe
push dword [ebp + 8]
mov ebx, 0x458b50
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x1c
lea eax, [ebp - 0x208]
push eax
call edi
push str.dresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
push str.tresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
push str.sresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba43
Capabilities:
Create thread

Disassembly:
mov eax, 0x4549fb
call fcn.004542cc
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push dword [esi + 0x134]
push 0x11
call fcn.004049d8
mov eax, dword [esi + 0xf4]
mov dword [0x4711c4], eax
mov eax, dword [esi + 0x134]
add esp, 0x10
test byte [eax + 0x9066], 1
je 0x40ba88
mov dword [0x4711c8], 1
mov eax, dword [esi + 0x134]
test byte [eax + 0x9066], 2
je 0x40baa1
mov dword [0x4711c8], 2
push 0x928
call fcn.0043f248
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40baca
push dword [esi + 0x134]
mov eax, dword [0x4711c8]
call fcn.0040969e
mov edi, eax
or dword [ebp - 4], 0xffffffff
call fcn.0040736f
mov ebx, 0x470ea0
mov edx, ebx
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40bade
lea eax, [edi + 0x208]
mov edx, 0x4710a8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40baf9
lea eax, [edi + 0x410]
mov edx, 0x4711ac
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40bb10
test edi, edi
je 0x40bb29
push edi
call fcn.0043f1f0
pop ecx
xor eax, eax
push eax
push eax
push ebx
push 0x40bb4f
push eax
push eax
call fcn.0043fc93
mov ecx, dword [ebp - 0xc]
add esp, 0x18
pop edi
mov byte [esi + 0xd], 1
pop ebx
mov dword fs:[0], ecx
leave
ret