joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477e70
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x497650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
cmp eax, 0x465
jne 0x404e5a
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x404ccf
mov esi, ebx
call fcn.00406580
push edi
push 0
mov ecx, ebx
call fcn.0041edbc
push 0
push 0
push 0
push 0x404c20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebx + 4]
push 0
push 0x48a7e0
push 0x48a7e8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x404e6c
cmp edi, 2
jne 0x404d51
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x48a7f4
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004025a0
mov ecx, dword [ebx + 0x49c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
add esp, 8
push esi
call eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebx + 0x4a0]
call fcn.00420241
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x404e69
cmp edi, 3
jne 0x404dde
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x404d93
mov ecx, dword [ebx + 0x464]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1e0]
push 2
call eax
push 1
push 1
mov ecx, ebx
call fcn.0041edbc
lea ecx, [ebx + 0x5d8]
push ecx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
jmp 0x404e6c
cmp eax, 2
jne 0x404e6c
mov edx, dword [ebx + 4]
push 0
push 0x48a7e0
push 0x48a804
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, ebx
call fcn.00406580
push 1
push 0
mov ecx, ebx
call fcn.0041edbc
push 0
push 0
push 0
push 0x404c20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x404e6c
cmp edi, 4
jne 0x404e33
lea esi, [ebp - 0x10]
call fcn.00401ba0
mov esi, dword [ebp + 0x10]
push esi
push 0x48a824
lea edi, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004025a0
mov ecx, dword [ebx + 0x49c]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x2c]
add esp, 8
push edx
call eax
mov ecx, dword [ebx + 0x4a0]
push esi
call fcn.00420241
mov eax, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401ca0
jmp 0x404e69
cmp edi, 5
jne 0x404e4c
mov ecx, dword [ebx + 0x4c0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1e0]
push 2
call eax
jmp 0x404e6c
cmp edi, 6
jne 0x404e6c
push 1
call fcn.0041f23f
jmp 0x404e6c
cmp eax, 0x473
jne 0x404e69
mov eax, dword [ebp + 0x10]
call fcn.0040af30
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push edi
push edx
mov ecx, ebx
call fcn.0041e40b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x497650]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
mov dword [ebp - 0x10c], 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0045ed40
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x404f27
lea edx, [ebp - 0x110]
push edx
push 0x16
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x404f19
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x110]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push edi
lea esi, [ebp - 0x108]
call fcn.00401bc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret
Function at 0x404f60
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x497650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x120], 0x5c3a63
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fb3
sub eax, edx
jne 0x404fc9
mov al, byte [ebp - 0x120]
jmp 0x40511e
mov cl, byte [ebp - 0x118]
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov byte [ebp - 0x119], cl
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov bl, 0x41
lea ecx, [ecx]
cmp bl, byte [ebp - 0x118]
je 0x40504d
lea ecx, [ebp - 0x120]
push ecx
mov byte [ebp - 0x120], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40504d
movsx edx, bl
push str.Game
push edx
push str._c:_s
lea edi, [ebp - 0x124]
call fcn.004025a0
mov eax, dword [ebp - 0x124]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x40513a
inc bl
cmp bl, 0x5a
jl 0x405000
xor esi, esi
xor edi, edi
mov bl, 0x41
mov dword [ebp - 0x128], 0x41
movsx ecx, byte [ebp - 0x118]
push ecx
call fcn.0045ddd2
add esp, 4
cmp eax, dword [ebp - 0x128]
je 0x4050de
lea edx, [ebp - 0x120]
push edx
mov byte [ebp - 0x120], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4050de
push 0
push 0
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 0x12c]
cmp ecx, edi
jb 0x4050de
mov edx, dword [ebp - 0x130]
ja 0x4050c2
cmp edx, esi
jbe 0x4050de
mov eax, edx
and eax, 0xc0000000
test ecx, ecx
jne 0x4050d4
cmp eax, 0xc0000000
jbe 0x4050de
mov byte [ebp - 0x119], bl
mov esi, edx
mov edi, ecx
inc dword [ebp - 0x128]
inc bl
cmp bl, 0x5a
jl 0x405064
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405118
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x119]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x124]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x40511e
Function at 0x405170
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x497650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
mov dword [ebp - 0x210], 0
push eax
mov byte [ebp - 0x108], 0
call fcn.0045ed40
push 0x104
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0045ed40
add esp, 0x18
lea edx, [ebp - 0x210]
push edx
push 0
push 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405227
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x405227
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x405227
push 0x104
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea esi, [ebp - 0x20c]
jmp 0x40522c
mov esi, 0x48a4d4
push edi
call fcn.00401bc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret
Function at 0x405250
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x497650]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x38], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x30]
push ecx
push 0x47a620
push 1
push 0
push 0x47a660
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4052ce
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0x34]
push ecx
push 0x47a680
push eax
call edx
test eax, eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
jns 0x4052d5
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x40538a
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push ebx
push eax
call edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
xor ebx, ebx
push ebx
push eax
call edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00403950
add esp, 8
mov edi, 8
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], edi
jb 0x40532f
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
mov dword [ebp - 4], 0xffffffff
mov esi, eax
cmp dword [ebp - 0x18], edi
jb 0x405357
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0045cc0f
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
xor edx, edx
mov word [ebp - 0x2c], dx
mov edx, dword [ecx + 8]
push eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
cmp esi, ebx
setge al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret
Function at 0x4076a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477d48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
push edi
mov eax, dword [0x497650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00401bc0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x407700
mov eax, 0x104
lea ecx, [ebp - 0x10]
call fcn.00401f40
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0045cd4e
add esp, 8
test eax, eax
js 0x407863
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx - 8]
jg 0x407863
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx], 0
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407740
sub eax, edx
inc eax
push eax
call fcn.00417314
mov edi, eax
mov eax, esi
add esp, 4
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407760
sub eax, ecx
push esi
inc eax
push eax
push edi
call fcn.0045cc29
push 0x44
lea edx, [ebp - 0x68]
push 0
push edx
call fcn.0045ed40
add esp, 0x18
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x68]
push edx
mov word [ebp - 0x38], ax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x10
push 1
push 0
push 0
push edi
push 0
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push edi
mov esi, eax
call fcn.0045cf39
add esp, 4
test esi, esi
jne 0x407809
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x1c]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40784d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402140
int3
Function at 0x407870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x497650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, 0xa
mov esi, str.SoftwareMicrosoftInternet_ExplorerMain
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edx, [ebp - 0x134]
pop edi
mov dword [ebp - 0x13c], 2
sub edx, eax
pop esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4078b0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x138]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407926
lea eax, [ebp - 0x134]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078f1
mov ecx, dword [ebp - 0x138]
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret

Function at 0x407940
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x384
mov eax, dword [0x497650]
xor eax, esp
mov dword [esp + 0x380], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [esp + 0x254]
push edi
mov eax, esi
sub edx, esi
jmp 0x407970
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407970
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edi, [esp + 0x258]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407990
mov cx, word [0x48ad88]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x25c]
push eax
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407a6a
test byte [esp + 0x10], 0x10
je 0x407a50
cmp byte [esp + 0x3c], 0x2e
jne 0x4079e9
mov al, byte [esp + 0x3d]
test al, al
je 0x407a56
cmp al, 0x2e
jne 0x4079e9
cmp byte [esp + 0x3e], 0
je 0x407a56
lea edx, [esp + 0x150]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4079f4
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x3c]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407a12
lea edi, [esp + 0x150]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407a23
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x150]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00407940
mov esi, dword [ebp + 8]
add esp, 4
jmp 0x407a56
inc dword [0x49a448]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4079c0
mov ecx, dword [esp + 0x38c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret
Function at 0x407a80
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
mov eax, dword [0x497650]
xor eax, esp
mov dword [esp + 0x388], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [esp + 0x25c]
push edi
mov dword [esp + 0x10], esi
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407ab0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edi, [esp + 0x260]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407ad0
mov cx, word [0x48ad88]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x264]
push eax
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x407c51
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x407b10
test byte [esp + 0x18], 0x10
je 0x407ba4
cmp byte [esp + 0x44], 0x2e
jne 0x407b3d
mov al, byte [esp + 0x45]
test al, al
je 0x407c32
cmp al, 0x2e
jne 0x407b3d
cmp byte [esp + 0x46], 0
je 0x407c32
lea edx, [esp + 0x158]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407b48
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407b66
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407b77
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x158]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.00407a80
add esp, 4
jmp 0x407c2e
lea edx, [esp + 0x158]
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407bb0
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x44]
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407bd0
lea edi, [esp + 0x158]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407be1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x158]
push ecx
call ebx
mov eax, dword [0x49a444]
inc eax
mov dword [0x49a444], eax
imul eax, eax, 0x46
cdq
idiv dword [0x49a448]
mov edx, dword [0x49a440]
add eax, 0x1e
push eax
push 4
push 0x465
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407b10
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x394]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045cc1a
mov esp, ebp
pop ebp
ret
Function at 0x40a630
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
xor edi, edi
call fcn.0045e580
add esp, 4
test eax, eax
jne 0x40a673
mov eax, dword [ebp + 8]
push ebx
push 1
lea esi, [edi + eax]
push 1
push esi
call fcn.0045d5e0
add esp, 0x10
cmp byte [esi], 0
je 0x40a67b
inc edi
cmp edi, 0x104
jg 0x40a673
push ebx
call fcn.0045e580
add esp, 4
test eax, eax
je 0x40a644
pop edi
xor al, al
pop esi
pop ebp
ret 4
pop edi
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x40af30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
sub eax, 0x201
push edi
mov edi, ecx
je 0x40b001
sub eax, 3
jne 0x40b03b
push ebx
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x48adfc
push 0x474
mov esi, eax
push 0
push esi
call ebx
push 0x48ae08
push 0x475
push 0
push esi
call ebx
mov edx, dword [edi + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push 0
push edx
push 0
push eax
push ecx
push 0x100
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop esi
pop ebx
cmp eax, 0x474
jne 0x40afc4
push 1
push 1
mov ecx, edi
call fcn.0041edbc
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0x475
jne 0x40b03b
push 1
push 0x48a7e0
push 0x48aca8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x40b03b
lea edx, [edi + 0x5d8]
push edx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 1
mov ecx, edi
call fcn.0041f23f
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x40b02f
mov ecx, dword [edi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
add edi, 0x5d8
push edi
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40b8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x478898
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x497650]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call fcn.0045cfc4
xor eax, eax
push 0xffffffffffffffff
mov dword [esp + 0x3c], eax
push eax
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], vtable.Json::Exception.0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], eax
mov byte [esp + 0x1c], al
call fcn.00403ff0
push 0x491974
lea eax, [esp + 8]
mov dword [esp + 0x3c], 0xffffffff
push eax
mov dword [esp + 0xc], vtable.Json::RuntimeError.0
call fcn.0045edba
int3
Function at 0x40e1f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x477b8b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x497650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00418705
push 4
mov dword [ebp - 4], 0
call fcn.0045cf44
mov edi, eax
add esp, 4
test edi, edi
je 0x40e270
call fcn.00418409
mov dword [edi], eax
call fcn.004181c8
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004180fd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40e266
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00418125
jmp 0x40e272
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret