joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b40
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x100
push 0x8000
push edi
call fcn.00401480
mov ebx, dword [ebp + 0xc]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x401bab
mov cx, word [ebx + 0x1a]
mov dx, word [ebx + 0x18]
lea eax, [ebp - 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
test eax, eax
je 0x401ba4
lea eax, [ebp - 8]
lea ecx, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
test eax, eax
je 0x401ba4
lea edx, [ebp - 8]
lea eax, [ebp - 8]
push edx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [ebx + 0x1c]
and ecx, 0x27
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401fe0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov ecx, dword [0x418874]
lea eax, [ebp - 0x104]
push esi
push eax
push 0
push 0x414098
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x180
lea edx, [ebp - 0x104]
push 0x8101
push edx
call fcn.00401480
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40209a
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push eax
push ecx
push esi
call fcn.00401560
add esp, 0xc
push esi
call fcn.00401580
add esp, 4
lea edx, [ebp - 0x214]
lea eax, [ebp - 0x104]
push 0
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x18c]
push 0x1001
push ecx
push edx
mov esi, eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
push esi
mov ebx, eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402120
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov ecx, dword [0x418874]
lea eax, [ebp - 0x104]
push esi
push eax
push 0
push str.welcome
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.00401fe0
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x4021b8
push edi
push 0x100
lea edx, [ebp - 0x104]
push 0x8000
push edx
call fcn.00401480
add esp, 0xc
mov edi, eax
lea eax, [esi + 1]
push eax
call fcn.0040c620
add esp, 4
mov dword [0x418800], eax
push esi
push eax
push edi
call fcn.00401540
add esp, 0xc
push edi
call fcn.00401580
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4021c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
call fcn.0040c620
add esp, 4
mov dword [0x418810], eax
push eax
mov eax, dword [0x418874]
push 0
push 0x4140ac
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [0x418810]
push ecx
push edx
push eax
call fcn.00401fe0
add esp, 0xc
test eax, eax
jge 0x402230
push 0
push str.Error
push str.LoadLanguage_Failed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [0x418810]
push ecx
call fcn.0040c6d0
add esp, 4
mov dword [0x418810], 0
xor eax, eax
pop ebp
ret
Function at 0x402240
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402308
mov edx, dword [0x418848]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push 0
push 0x4140f8
push ecx
mov dword [ebp - 4], 0x104
mov dword [ebp - 0xc], 1
call edi
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov edx, dword [0x418848]
add esp, 8
lea ecx, [ebp - 4]
mov dword [0x418860], eax
push ecx
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push edx
push eax
push 0
push str.CommonFilesDir
push ecx
mov dword [ebp - 4], 0x104
call edi
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [0x418864], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x418848]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x418848]
push eax
call esi
mov ecx, dword [0x418848]
push eax
push ecx
call fcn.00401ef0
mov edi, dword [0x418848]
mov dword [0x418868], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov edx, dword [str.SYSTEM32]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x41411c]
mov dword [edi + 4], eax
mov cx, word [0x414120]
mov word [edi + 8], cx
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov ecx, dword [0x418848]
add esp, 8
mov dword [0x418870], eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov ecx, dword [0x418848]
add esp, 8
mov dword [0x41886c], eax
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x418848]
cmp byte [eax + ecx - 1], 0x5c
jne 0x4023dc
mov byte [eax + ecx - 1], 0
mov ecx, dword [0x418848]
push 0x10
push ecx
call fcn.00401220
add esp, 8
test eax, eax
je 0x40240e
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
add esp, 8
mov dword [0x418874], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x418868]
mov edx, dword [0x418848]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x418848]
push str.TEMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x418848]
push ecx
call esi
mov edx, dword [0x418848]
push eax
push edx
call fcn.00401ef0
add esp, 8
mov dword [0x418874], eax
mov eax, dword [0x418848]
push eax
call fcn.004016c0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402d50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov edi, eax
call fcn.00402a90
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
add esp, 4
push eax
push edi
call ebx
lea ecx, [ebp - 8]
mov dword [ebp + 8], eax
push ecx
push 0xd
push str.InstallShield
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
mov edx, dword [ebp + 8]
push edx
push edi
call ebx
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x18]
push eax
push esi
call fcn.00402a30
add esp, 4
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
cdq
sub eax, edx
lea ecx, [ebp - 0x18]
sar eax, 1
neg eax
add edi, eax
push ecx
push esi
mov dword [ebp - 0x14], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
add edx, 0xa
add ecx, eax
push 0xfffffffffffffffc
push esi
mov dword [ebp - 0x18], 5
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x402ad0
push 0xfffffffffffffffc
push esi
mov dword [0x4172d8], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [0x4188ac]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push 0
push edx
mov edx, dword [ebp - 0x14]
push 0x3ff
push esi
push eax
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x5000800b
push str.ISGlyph
push str.BUTTON
push 0
call ebx
mov ecx, dword [0x4188ac]
push 0
push ecx
push 0
push esi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000001
push 0x41730c
push str.tooltips_class32
push 0x88
mov edi, eax
call ebx
mov edx, dword [0x418848]
mov ebx, eax
mov eax, dword [0x4188ac]
push 0x104
push edx
push 0x13
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x418848]
lea eax, [ebp - 0x44]
push eax
push 0
mov dword [ebp - 0x38], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x404
push ebx
mov dword [ebp - 0x44], 0x2c
mov dword [ebp - 0x40], 0x11
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x20], edx
call edi
push 0
push 1
push 0x401
push ebx
call edi
push esi
call fcn.00402bf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403730
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x418878]
push ebx
push esi
push edi
test eax, eax
je 0x40376e
mov eax, dword [0x4188b4]
push eax
call fcn.00405a70
mov ecx, dword [0x4172dc]
add esp, 4
cmp eax, ecx
je 0x40376e
mov eax, 0x23
mov dword [0x4172d0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4172c8]
test eax, eax
je 0x40377b
xor eax, eax
jmp 0x403798
mov ecx, dword [ebp + 8]
mov edx, dword [0x4188ac]
push 0
push 0x402fc0
push ecx
push 0x3ed
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push eax
mov dword [0x418808], eax
call fcn.00403420
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 4
test eax, eax
mov dword [0x4172d0], eax
jne 0x403894
mov ecx, dword [0x418808]
test ecx, ecx
je 0x4037e7
push 0xffff0000
push 0xffffffffffffffff
push 0x465
push 0x3f2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x4172d0]
mov ecx, dword [0x4172c4]
test ecx, ecx
jne 0x403894
mov eax, dword [0x4188b4]
lea ecx, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
jle 0x403880
mov eax, dword [0x418884]
mov edi, 1
cmp eax, edi
jl 0x403880
mov eax, dword [0x418814]
push edi
push eax
lea ecx, [ebp - 0x104]
push 0x41420c
push ecx
call ebx
add esp, 0x10
lea edx, [ebp - 0x104]
push 0
push edx
call fcn.00401220
add esp, 8
test eax, eax
je 0x403876
push 0
push 0
lea eax, [ebp - 0x208]
push esi
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.00405c80
add esp, 0x14
mov dword [0x4172d0], eax
mov eax, dword [0x418884]
inc edi
cmp edi, eax
jle 0x403829
mov edx, dword [0x418808]
push edx
call fcn.00403100
add esp, 4
mov dword [0x4172d0], eax
cmp eax, 0xfffffff6
jne 0x4038a3
mov dword [0x4172cc], 1
mov ecx, dword [0x418884]
mov esi, 1
cmp ecx, esi
jl 0x4038fd
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x418814]
push esi
push eax
lea ecx, [ebp - 0x104]
push 0x41421c
push ecx
call ebx
add esp, 0x10
lea edx, [ebp - 0x104]
push 0
push edx
call fcn.00401220
add esp, 8
test eax, eax
je 0x4038ee
lea eax, [ebp - 0x104]
push eax
call edi
mov eax, dword [0x418884]
inc esi
cmp esi, eax
jle 0x4038b8
mov eax, dword [0x4172d0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403f00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x404
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x403f49
mov ecx, dword [0x4188b4]
push pe_nt_image_headers32
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x4188b4]
push edx
call fcn.00405a70
mov edx, dword [0x4172dc]
add esp, 4
xor ecx, ecx
cmp eax, edx
sete cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404e30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100
push 0
push eax
call fcn.00401480
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x404f13
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.004015b0
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x404e78
mov eax, 0xd
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push esi
call fcn.00401590
add esp, 0xc
push 4
push 0x4188a0
push esi
call fcn.00401540
mov ecx, dword [0x4188a0]
add esp, 0xc
push ecx
call fcn.0040c620
mov edx, dword [0x4188a0]
add esp, 4
mov edi, eax
push edx
push edi
push esi
call fcn.00401540
mov eax, dword [0x4188a0]
add esp, 0xc
push 0
push eax
push edi
call fcn.00405c40
mov ecx, dword [0x4188a0]
add esp, 0xc
push ecx
push edi
call fcn.00402470
mov edx, dword [0x4188a0]
add esp, 8
push edx
push edi
call fcn.004025d0
add esp, 8
test eax, eax
jne 0x404f18
mov eax, dword [0x4188a0]
push edi
lea ecx, [ebx + eax + 4]
mov dword [0x418888], ecx
call fcn.0040c6d0
add esp, 4
push esi
call fcn.00401580
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405280
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00404f20
add esp, 0xc
mov dword [0x4172d0], eax
test eax, eax
jne 0x4052ae
call fcn.00404bb0
test eax, eax
mov dword [0x4172d0], eax
je 0x4052db
jle 0x4052c4
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f00
add esp, 0x10
call fcn.00405100
mov eax, dword [0x4172d0]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405100
test eax, eax
mov dword [0x4172d0], eax
je 0x405302
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402f00
mov eax, dword [0x4172d0]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4053d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [ebp - 0x14]
push str.Dialog_d
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x14]
push 0x104
push edx
push ebx
push eax
call fcn.00401810
add esp, 0x10
test eax, eax
jne 0x405432
lea ecx, [ebp - 0x118]
push 0x104
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x118]
test al, al
je 0x40548c
lea edx, [ebp - 0x118]
push edx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x41884c]
lea ecx, [ebp - 0x118]
test eax, eax
push ecx
je 0x405472
mov edx, dword [0x418848]
push eax
push str._s____s
push edx
call edi
mov eax, dword [0x418848]
add esp, 0x10
push eax
push 0
push 0x46f
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405980
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
xor ecx, ecx
lea edx, [ebp - 0x400]
mov eax, ecx
mov esi, 8
test al, 1
je 0x4059a7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4059a9
shr eax, 1
dec esi
jne 0x40599a
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0xff
jle 0x405993
mov eax, dword [ebp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4059f1
mov edx, dword [ebp + 8]
lea esi, [eax + 1]
mov eax, dword [ebp + 0x10]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
inc edx
shr eax, 8
mov ecx, dword [ebp + ecx*4 - 0x400]
xor eax, ecx
dec esi
jne 0x4059cd
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405b30
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7e04
call fcn.0040ccc0
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405bf2
lea eax, [ebp - 0x104]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x41434c
lea ecx, [ebp - 0x7e04]
push 0x7cff
push ecx
push 0x414358
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
test eax, eax
jne 0x405bac
lea edx, [ebp - 0x104]
push 0x414360
push edx
push 0x41436c
push 0x414370
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [ebp + eax - 0x7e04]
push 0x414378
push esi
call edi
push 0x41437c
push esi
call edi
lea eax, [ebp - 0x104]
push eax
push esi
call edi
push 0x417364
push esi
call edi
lea ecx, [ebp - 0x7e04]
push str.wininit.ini
push ecx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405c80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push edi
lea eax, [ebp - 0x14]
push 4
push eax
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], 0x7863513
call fcn.00405e40
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push pe_nt_image_headers32
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
je 0x405de6
mov ecx, dword [ebp + 0x18]
push esi
lea edx, [ebp - 8]
push ecx
lea eax, [ebp + 8]
push edx
push eax
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ebx
call fcn.00405e90
add esp, 0xc
lea ecx, [ebp + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x405dde
mov ecx, dword [ebp - 8]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x405dd4
mov eax, dword [ebp + 0xc]
xor ecx, ecx
or eax, esi
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], eax
test ecx, ecx
jl 0x405da4
jg 0x405d4d
test eax, eax
jbe 0x405da4
mov al, byte [ebp + 0x14]
test al, al
mov eax, dword [ebp + 0x10]
cdq
push edx
push eax
push edi
push esi
je 0x405d73
call fcn.0040cd00
mov edx, dword [ebp - 4]
mov cl, byte [esi + ebx]
mov al, byte [eax + edx]
push eax
push ecx
call fcn.00405e00
jmp 0x405d88
call fcn.0040cd00
mov edx, dword [ebp - 4]
mov cl, byte [esi + ebx]
mov al, byte [eax + edx]
push eax
push ecx
call fcn.00405e20
add esp, 8
mov byte [esi + ebx], al
add esi, 1
adc edi, 0
xor eax, eax
cmp edi, eax
jl 0x405d4d
jg 0x405da1
cmp esi, dword [ebp - 0x10]
jb 0x405d4d
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x405dc3
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x405dc3
mov edx, dword [esi + 8]
push edx
xor edx, edx
push edx
push eax
push ebx
call ecx
add esp, 0x10
mov dword [esi + 0xc], eax
push ebx
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040ccf0
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.0040cdc0
add esp, 4
xor ecx, ecx
test edi, edi
mov ebx, eax
jle 0x405e7f
mov eax, dword [ebp + 8]
push esi
sub eax, ebx
mov dword [ebp + 0xc], eax
mov eax, ecx
lea esi, [ecx + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dl, byte [edx + eax]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + esi]
inc ecx
cmp ecx, edi
mov byte [esi], dl
jl 0x405e62
pop esi
mov eax, ebx
pop edi
pop ebx
pop ebp
ret
Function at 0x4078cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x407913
cmp edx, 0x10
jl 0x4078ff
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x4078ec
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x407913
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40790b
and edx, 3
cmp edx, 3
jne 0x407927
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40792c
cmp edx, 2
jne 0x407938
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40793d
cmp edx, 1
jne 0x407943
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40ce00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413140
push 0x40f958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x418510], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x41850c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x418508], ecx
shr eax, 0x10
mov dword [0x418504], eax
call fcn.0040cff0
test eax, eax
jne 0x40ce6a
push 0x1c
call fcn.0040cfa0
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040f660
call fcn.0040f650
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41ae10], eax
call fcn.0040f220
mov dword [0x4184d8], eax
test eax, eax
je 0x40ce9d
mov eax, dword [0x41ae10]
test eax, eax
jne 0x40cea7
push 0xffffffffffffffff
call fcn.0040d8b0
add esp, 4
call fcn.0040ef70
call fcn.0040ee80
call fcn.0040d880
mov esi, dword [0x41ae10]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x40cf86
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40ceee
test al, al
je 0x40ceee
and eax, 0xff
push eax
call fcn.0040ee20
add esp, 4
test eax, eax
je 0x40cec8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cec8
cmp byte [esi], 0x22
jne 0x40cef7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x40cf07
cmp al, 0x20
ja 0x40cf07
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cef7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40cf28
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40cf2d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.0040d8b0
jmp 0x40cf6b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40cef7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x40cf86

Function at 0x40d8f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x418540]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40d90f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x41853c], 1
mov byte [0x418538], bl
jne 0x40d969
mov ecx, dword [0x41ae08]
test ecx, ecx
je 0x40d957
mov esi, dword [0x41ae04]
sub esi, 4
cmp esi, ecx
jb 0x40d957
mov eax, dword [esi]
test eax, eax
je 0x40d950
call eax
mov ecx, dword [0x41ae08]
sub esi, 4
cmp esi, ecx
jae 0x40d942
push 0x41401c
push 0x414014
call fcn.0040d9a0
add esp, 8
push 0x414024
push 0x414020
call fcn.0040d9a0
add esp, 8
test ebx, ebx
jne 0x40d990
push ebp
mov dword [0x418540], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret