joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ddb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [eax + eax*2]
push edi
mov dword [esp + 0x10], esi
mov ebx, dword [esi + eax*4 + 0x14]
mov ebp, ebx
mov edi, dword [ebx]
cmp edi, ebx
mov edx, dword [edi]
mov dword [esp + 0x14], edx
je 0x47debe
jmp 0x47dde4
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 8]
mov ecx, eax
shr ecx, 0x10
test al, 1
mov eax, dword [esi]
je 0x47de33
lea ebp, [eax - 1]
cmp edx, ebx
lea esi, [ecx + ebp]
je 0x47de13
mov eax, dword [edx + 8]
test al, 1
jne 0x47de13
shr eax, 0x10
add eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jle 0x47de13
mov esi, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ebp
sub esi, ecx
inc ebp
inc esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
add ecx, eax
jmp 0x47de83
mov esi, ecx
sub esi, eax
inc esi
cmp ebp, ebx
je 0x47de53
mov eax, dword [ebp + 8]
test al, 1
je 0x47de53
shr eax, 0x10
add eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jge 0x47de53
mov esi, eax
mov edx, esi
mov eax, 0x78
sub edx, ecx
mov ecx, dword [esp + 0x10]
add edx, 0x78
mov dword [esp + 0x24], 0x78
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
sub eax, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0x20], eax
lea ecx, [esi + edx]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov ecx, dword [ecx + eax*4 + 0x74]
call fcn.00486620
mov eax, dword [esp + 0x14]
mov ebp, edi
mov edi, dword [edi]
cmp eax, ebx
je 0x47deb6
mov edx, dword [eax]
mov dword [esp + 0x14], edx
cmp edi, ebx
jne 0x47dddc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10

Function at 0x47f970
Capabilities:
Read .ini file

Disassembly:
push esi
push str.option.ini
push 0
push str.NoteType
mov esi, ecx
push 0x4deea4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
cmp eax, 2
mov dword [esi + 0xcb0], eax
jb 0x47f99f
mov dword [esi + 0xcb0], 0
pop esi
ret
Function at 0x48a690
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4cce6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea eax, [esi]
mov dword [0x5c8890], eax
mov cl, byte [esp + 0xb]
xor edi, edi
mov dword [esp + 0x18], edi
mov byte [esi + 0x2c], cl
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
push 0x4014e0
push 0x48a7b0
push 8
lea edx, [esi + 0x3c]
push 0x10
push edx
mov byte [esp + 0x2c], 1
call fcn.004b8702
push 0x46a6b0
push 0x48a7b0
push 8
lea eax, [esi + 0xbc]
push 0x10
push eax
mov byte [esp + 0x2c], 2
call fcn.004b8702
mov cl, byte [esp + 0xb]
mov dword [esi + 0x140], edi
mov byte [esi + 0x13c], cl
mov dword [esi + 0x144], edi
mov dword [esi + 0x148], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x150], edi
mov byte [esi + 0x14c], dl
mov dword [esi + 0x154], edi
mov dword [esi + 0x158], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x560], edi
mov byte [esi + 0x55c], al
mov dword [esi + 0x564], edi
mov dword [esi + 0x568], edi
mov ecx, esi
mov byte [esp + 0x18], 6
mov dword [esi], 0x4d2424
call fcn.0048a930
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48aae0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp + 4], 1
push eax
push 0x20019
push 0
mov dword [esp + 0x14], 4
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x48ab1a
xor eax, eax
add esp, 0x10
ret
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0x4deec4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48ab50
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret

Function at 0x48ab70
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0048aae0
mov ecx, dword [esi + 0x58c]
mov dword [esp + 4], eax
test ecx, ecx
je 0x48ac08
test eax, eax
push 0
je 0x48ab96
push 0x4e62b8
jmp 0x48ab9b
push 0x4e62a8
push 0
push 1
call fcn.0042b100
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
dec eax
push 0x20006
push 0
and eax, 1
push 0
push 0
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x48ac08
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push 0x4deec4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x48ac08
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret
Function at 0x48ac10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
mov dword [esp + 4], 0
push eax
push 0x20019
push 0
mov dword [esp + 0x14], 4
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x48ac4a
xor eax, eax
add esp, 0x10
ret
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Mouse_Cursor
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48ac80
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret

Function at 0x48aca0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0048add0
mov ecx, dword [esi + 0x58c]
mov dword [esp + 4], eax
test ecx, ecx
je 0x48ad60
mov edx, dword [esp + 0x14]
test edx, edx
je 0x48acf5
test eax, eax
push 0
jne 0x48ace3
push 0x4e6310
push 0xffb
push 2
call fcn.0042b100
pop esi
add esp, 0xc
ret 4
push 0x4e62e8
push 0
push 1
call fcn.0042b100
mov eax, dword [esp + 4]
dec eax
lea ecx, [esp + 8]
and eax, 1
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, esi
call fcn.0048cc20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x48ad60
lea edx, [esp + 4]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x18]
push str.Mouse_Cursor
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x48ad60
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 4]
mov ecx, esi
push edx
call fcn.0048adb0
pop esi
add esp, 0xc
ret 4

Function at 0x48bf10
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x48bf3a
cmp dword [esp + 0xc], 0x280000
jae 0x48bf3a
mov ecx, 0x5dac80
call fcn.00466a00
add esp, 0x20
ret 8
Function at 0x48bf40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Get common file path
Move file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x558
lea eax, [esp + 8]
push esi
push eax
mov dword [esp + 0xc], ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x354]
push ecx
push str._sTemp
push edx
call fcn.004b8784
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
add esp, 0xc
lea eax, [esp + 0x354]
push eax
call esi
test eax, eax
jne 0x48bf9f
lea ecx, [esp + 0xc]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x558
ret 4
push ebx
push ebp
lea edx, [esp + 0x21c]
push edi
push edx
push 0x4e1758
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
mov esi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push ecx
push edx
call ebx
test eax, eax
je 0x48c080
cmp byte [esp + 0x24c], 0x2e
je 0x48bfd8
lea eax, [esp + 0x24c]
lea ecx, [esp + 0x360]
push eax
push ecx
lea edx, [esp + 0x46c]
push 0x4e6494
push edx
call fcn.004b8784
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x134]
push 0x4e6494
push edx
call fcn.004b8784
add esp, 0x20
lea eax, [esp + 0x11c]
push 0x80
push eax
call esi
lea ecx, [esp + 0x11c]
push ecx
call edi
lea edx, [esp + 0x11c]
lea eax, [esp + 0x464]
push edx
push eax
call ebp
test eax, eax
je 0x48bfd8
mov ecx, dword [esp + 0x14]
push 1
call fcn.0048cb80
jmp 0x48bfd8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push str.Temp
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
mov ecx, dword [esp + 0x56c]
pop edi
pop ebp
pop ebx
and eax, ecx
pop esi
add esp, 0x558
ret 4
Function at 0x48d230
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
sub esp, 0x100
push ebp
push esi
push edi
xor esi, esi
push str.OnceMutex
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x48d2a6
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x110]
push 0x100
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x15
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
lea edx, [esp + 0x10]
push str.Info
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
mov ecx, 0x41e5
xor eax, eax
mov edi, 0x5c8938
push 0x59c
rep stosd dword es:[edi], eax
call fcn.004b7e62
add esp, 4
test eax, eax
je 0x48d2cc
mov ecx, eax
call fcn.0048a690
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [0x5c8890]
push 1
call fcn.0048bf40
test eax, eax
jne 0x48d2f0
push 0x1f4
call edi
inc esi
cmp esi, 3
jl 0x48d2d2
mov ecx, dword [0x5c8890]
cmp dword [ecx + 0x578], 1
jne 0x48d359
test ecx, ecx
je 0x48d309
mov eax, dword [ecx]
push 1
call dword [eax]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x5c8890]
push 0x16
stosb byte es:[edi], al
call fcn.0048cd00
push 0
lea edx, [esp + 0x10]
push str.Info
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
mov eax, dword [esp + 0x118]
push eax
call fcn.0048d1e0
add esp, 4
test eax, eax
jne 0x48d3b3
mov ecx, 0x3f
lea edi, [esp + 0xd]
mov byte [esp + 0xc], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [0x5c8890]
push 0x17
stosb byte es:[edi], al
call fcn.0048cd00
push 0
lea edx, [esp + 0x10]
push str.Info
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
mov ecx, dword [0x5c8890]
call fcn.0048c7e0
mov eax, dword [esp + 0x11c]
mov ecx, dword [esp + 0x110]
push 6
push eax
push ecx
mov ecx, dword [0x5c8890]
call fcn.0048b400
test eax, eax
je 0x48d3ec
mov ecx, dword [0x5c8890]
call fcn.0048bb50
jmp 0x48d406
mov eax, dword [0x5c8890]
mov ecx, dword [eax + 0x10]
call fcn.00411390
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x5c8890]
push 0
call fcn.0048bf40
mov ecx, dword [0x5c8890]
test ecx, ecx
je 0x48d432
call fcn.0048b950
mov ecx, dword [0x5c8890]
test ecx, ecx
je 0x48d432
mov edx, dword [ecx]
push 1
call dword [edx]
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
push 0
push 0
push 0x4e6500
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x100
ret 0x10
Function at 0x48f1c0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x48f260
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x48f212
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4e6538]
xor eax, edx
inc esi
cmp esi, edi
jl 0x48f1f3
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x48f23b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4e6538]
xor eax, edx
inc esi
cmp esi, edi
jl 0x48f21e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x4c2eb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5c7958
cmp edx, dword [eax]
je 0x4c2ed3
add eax, 8
inc ecx
cmp eax, 0x5c79e8
jl 0x4c2ec4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5c7958]
jne 0x4c3001
mov eax, dword [0x5f2db8]
cmp eax, 1
je 0x4c2fdb
test eax, eax
jne 0x4c2f04
cmp dword [0x5c6c94], 1
je 0x4c2fdb
cmp edx, 0xfc
je 0x4c3001
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4c2f3b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c0ec0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bad00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c2f7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bad00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e12fc
push edi
call fcn.004b8510
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c0ec0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c0ed0
lea eax, [ebp - 0xa0]
push 0x4d3ea0
push eax
call fcn.004c0ed0
push dword [esi + 0x5c795c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c0ed0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c7693
add esp, 0x2c
pop edi
jmp 0x4c3001
lea eax, [ebp + 8]
lea esi, [esi + 0x5c795c]
push 0
push eax
push dword [esi]
call fcn.004bad00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c901a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004ba86b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c903d
test byte [esp + 8], 2
je 0x4c903d
call fcn.004ba8de
mov dword [eax], 0xd
call fcn.004ba8e7
mov dword [eax], 5
jmp 0x4c9016
xor eax, eax
ret
Function at 0x402df0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcr edi, 0xbd
and edx, 0x53
rcl edx, 0x63
imul eax
sbb edx, 0x7f
rol edx, 0xdb
bswap edi
bswap eax
sub ebx, 0x11
sbb ebx, 0x8a
add eax, 0xf1
inc eax
bswap edi
and ebx, 0x53
mov eax, 7
imul edx
ror esi, 0xe1
or edx, 0x18
inc esi
imul esi
ror edi, 0x2a
rcl eax, 0xe1
imul esi
imul edx
ror esi, 0xf6
mov ebx, 0xb9
not ebx
imul edi
sbb edi, 0xd9
bswap edx
sbb ebx, 0x2e
imul edx
and edx, 0xa0
or ebx, 0xf
neg eax
bswap esi
inc edi
imul eax
dec ebx
imul edi
inc edx
not ebx
bswap edi
neg edi
add ebx, 0xdf
or esi, 0xca
bswap eax
mov edi, 0x67
bswap ebx
neg edx
xor ecx, ecx
xor edi, edi
imul edi
rcr edx, 0x3d
mov edi, 0x8b
sbb esi, 0x92
dec edx
inc eax
not ebx
inc eax
or edi, 0xd1
neg edx
bswap eax
bswap ebx
rcr edi, 0x34
rcr eax, 0xc6
and eax, 0xf1
dec edx
sub esi, 0x5b
sbb edi, 0x51
not edx
inc edx
rcr eax, 0x42
imul edx
rcr edx, 0x4e
ror ebx, 8
neg esi
ror esi, 0x56
rcl esi, 0x4c
imul ebx
mov eax, 0x85
dec edx
rcr esi, 0x53
neg eax
dec esi
rol ebx, 0x44
mov esi, 0xa2
sub ebx, 0x51
bswap eax
imul edi
rol eax, 0xf8
not edx
neg eax
or ebx, 0xd9
not edx
mov ebx, 0x68
mov esi, 0x98
mov edi, 0x3e
neg edi
dec esi
or esi, 0x51
rcl edx, 0xa5
mov ecx, dword [ebp + 0xc]
add esi, 0x8c
dec edx
bswap edx
rcr edi, 0x2f
sbb esi, 0xb8
dec edi
bswap ebx
mov ebx, 0xb2
imul edx
dec edx
inc edi
neg eax
not edi
or edi, 0x3d
ror ebx, 0xcb
rcl eax, 0x2a
and esi, 0xe6
rol eax, 0x65
sbb esi, 0x69
or ebx, 0x58
bswap eax
not edi
inc edi
inc esi
add edi, 0x8e
or esi, 0x94
rol esi, 0x34
or ebx, 0xbf
neg eax
bswap ebx
rcr esi, 0x7c
bswap ebx
sbb edi, 0xe2
neg eax
and esi, 0x68
bswap edi
mov edx, 0xad
not eax
bswap eax
inc edi
imul edi
inc ebx
neg ebx
mov edx, 0xb5
not eax
not edi
rcl ebx, 0xd7
dec esi
neg eax
neg edx
mov edi, dword [ebp + 8]
mov esi, ebx
xor ebx, esi
xor ebx, eax
not byte [edi]
mov ebx, esi
mov ebx, eax
mov ebx, eax
mov esi, eax
xor ebx, ebx
xor ebx, eax
xor eax, eax
mov eax, eax
xor eax, esi
add byte [edi], 0x56
mov ebx, eax
xor esi, ebx
xor esi, ebx
mov ebx, ebx
xor eax, ebx
mov eax, ebx
xor esi, eax
xor eax, esi
mov ebx, esi
sub byte [edi], 0x23
xor esi, esi
xor eax, esi
xor esi, ebx
mov ebx, esi
mov eax, ebx
mov eax, eax
mov eax, esi
mov eax, esi
xor esi, esi
imul byte [edi]
inc edi
loop 0x402fab
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4081fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a4f8]
jne 0x408204
repz ret
jmp fcn.0040dae5
Function at 0x40f99c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c202
and dword [ebp - 4], 0
cmp dword [0x41bca4], 0
mov ebx, eax
jne 0x40fa4d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40fafe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40fafe
push eax
call fcn.0040c190
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41bca4], eax
call esi
push eax
call fcn.0040c190
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41bca8], eax
call esi
push eax
call fcn.0040c190
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41bcac], eax
call esi
push eax
call fcn.0040c190
pop ecx
mov dword [0x41bcb4], eax
test eax, eax
je 0x40fa4d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c190
pop ecx
mov dword [0x41bcb0], eax
mov eax, dword [0x41bcb0]
cmp eax, ebx
je 0x40faa5
cmp dword [0x41bcb4], ebx
je 0x40faa5
push eax
call fcn.0040c20b
push dword [0x41bcb4]
mov esi, eax
call fcn.0040c20b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40faa5
test edi, edi
je 0x40faa5
call esi
test eax, eax
je 0x40fa9c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40fa9c
test byte [ebp - 0xc], 1
jne 0x40faa5
or dword [ebp + 0x10], 0x200000
jmp 0x40fade
mov eax, dword [0x41bca8]
cmp eax, ebx
je 0x40fade
push eax
call fcn.0040c20b
pop ecx
test eax, eax
je 0x40fade
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40fade
mov eax, dword [0x41bcac]
cmp eax, ebx
je 0x40fade
push eax
call fcn.0040c20b
pop ecx
test eax, eax
je 0x40fade
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41bca4]
call fcn.0040c20b
pop ecx
test eax, eax
je 0x40fafe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40fb00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.004046c0
mov eax, dword [0x4110d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x40d2f0
push eax
mov dword [ebp - 0x1030], 1
call fcn.00404697
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40134a
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004046ae
mov esp, ebp
pop ebp
ret
push ebx
push 1
lea eax, [ebp - 0x102c]
push 0x28
push eax
call fcn.004045be
add esp, 0x10
cmp eax, 1
jne 0x401339
cmp dword [ebp - 0x102c], 0x4835c9b8
jne 0x401339
cmp dword [ebp - 0x1028], 3
jne 0x401339
push ebx
push eax
lea ecx, [ebp - 0x1034]
push 4
push ecx
call fcn.004045be
add esp, 0x10
cmp eax, 1
jne 0x401501
push esi
push edi
jmp 0x4013a0
movzx edi, word [ebp - 0x1034]
dec edi
cmp edi, 0x14
jge 0x4014ff
mov eax, dword [edi*4 + 0x411fc0]
xor esi, esi
cmp eax, esi
je 0x4013ce
push eax
call fcn.004041c5
add esp, 4
mov dword [edi*4 + 0x411fc0], esi
mov ax, word [ebp - 0x1032]
cmp ax, si
je 0x4014ce
test byte [ebp - 0x1010], 1
je 0x401490
push ebx
movzx edx, ax
push 1
push edx
lea eax, [ebp - 0x1004]
push eax
call fcn.004045be
add esp, 0x10
cmp eax, 1
jne 0x4014ed
movzx ecx, word [ebp - 0x1032]
mov eax, dword [ebp - 0x100c]
push esi
push esi
push esi
push esi
shr ecx, 1
push ecx
lea edx, [ebp - 0x1004]
push edx
push 0x240
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
test esi, esi
je 0x4014ce
lea ecx, [esi + 1]
push ecx
call fcn.004042e0
add esp, 4
mov dword [edi*4 + 0x411fc0], eax
test eax, eax
je 0x4014f5
movzx edx, word [ebp - 0x1032]
mov ecx, dword [ebp - 0x100c]
push 0
push 0
push esi
push eax
shr edx, 1
push edx
lea eax, [ebp - 0x1004]
push eax
push 0x240
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp esi, eax
jne 0x4014f5
mov edx, dword [edi*4 + 0x411fc0]
mov byte [esi + edx], 0
jmp 0x4014ce
movzx esi, ax
lea eax, [esi + 1]
push eax
call fcn.004042e0
add esp, 4
mov dword [edi*4 + 0x411fc0], eax
test eax, eax
je 0x4014f5
push ebx
push 1
push esi
push eax
call fcn.004045be
add esp, 0x10
cmp eax, 1
jne 0x4014f5
movzx ecx, word [ebp - 0x1032]
mov edx, dword [edi*4 + 0x411fc0]
mov byte [ecx + edx], 0
push ebx
push 1
lea eax, [ebp - 0x1034]
push 4
push eax
call fcn.004045be
add esp, 0x10
cmp eax, 1
je 0x4013a0
jmp 0x4014ff
mov dword [ebp - 0x1030], esi
jmp 0x4014ff
mov dword [ebp - 0x1030], 0
pop edi
pop esi
push ebx
call fcn.0040426c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1030]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.004046ae
mov esp, ebp
pop ebp
ret