joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push esi
call edi
test eax, eax
jne 0x4014cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4014cb
cmp eax, 5
jne 0x40148a
mov eax, 7
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004013f0
add esp, 8
test eax, eax
je 0x4014c0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00401450
add esp, 4
test eax, eax
jne 0x4014c0
push eax
push esi
call edi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401590
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x40ff20]
test eax, eax
je 0x4015db
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push eax
push 0x40d024
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x40ff20]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push edx
push eax
mov eax, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push 0x40fac8
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4015f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 5
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
push str.Dialog_d
push ecx
call ebx
add esp, 0xc
lea edx, [ebp - 0x8c]
lea eax, [ebp - 0x14]
push 0x104
push edx
push 0
push eax
call fcn.00401590
add esp, 0x10
test eax, eax
jne 0x401650
lea ecx, [ebp - 0x8c]
push 0x78
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x8c]
test al, al
je 0x4016ac
lea edx, [ebp - 0x8c]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4016ac
mov eax, dword [0x40ff58]
lea ecx, [ebp - 0x8c]
test eax, eax
push ecx
je 0x401697
mov edx, dword [0x40ff54]
push eax
push str._s____s
push edx
call ebx
mov eax, dword [0x40ff54]
add esp, 0x10
push eax
push 0
push 0x46f
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x4016f5
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff4
push esi
call edi
mov edx, dword [0x40ff54]
push 0x104
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401590
add esp, 0x10
test eax, eax
je 0x4016e6
mov ecx, dword [0x40ff54]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4016b6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
call fcn.004084f0
add esp, 4
mov dword [0x40ff20], eax
push eax
mov eax, dword [0x40ff74]
push 0
push 0x40d0a4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [0x40ff20]
push ecx
push edx
push eax
call fcn.00401d20
add esp, 0xc
test eax, eax
jne 0x401f5c
mov ecx, dword [0x40ff20]
push ecx
call fcn.004085a0
add esp, 4
mov dword [0x40ff20], 0
xor eax, eax
pop ebp
ret
Function at 0x401f60
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 0x402028
mov edx, dword [0x40ff54]
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 str.ProgramFilesDir
push ecx
mov dword [ebp - 4], 0x104
mov dword [ebp - 0xc], 1
call edi
mov edx, dword [0x40ff54]
push edx
call esi
push eax
mov eax, dword [0x40ff54]
push eax
call fcn.00401c30
mov edx, dword [0x40ff54]
add esp, 8
lea ecx, [ebp - 4]
mov dword [0x40ff60], 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 [0x40ff54]
push edx
call esi
push eax
mov eax, dword [0x40ff54]
push eax
call fcn.00401c30
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [0x40ff64], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x40ff54]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x40ff54]
push eax
call esi
mov ecx, dword [0x40ff54]
push eax
push ecx
call fcn.00401c30
mov edi, dword [0x40ff54]
mov dword [0x40ff68], 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 [0x40d0f8]
mov dword [edi + 4], eax
mov cx, word [0x40d0fc]
mov word [edi + 8], cx
mov edx, dword [0x40ff54]
push edx
call esi
push eax
mov eax, dword [0x40ff54]
push eax
call fcn.00401c30
mov ecx, dword [0x40ff54]
add esp, 8
mov dword [0x40ff70], eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [0x40ff54]
push edx
call esi
push eax
mov eax, dword [0x40ff54]
push eax
call fcn.00401c30
mov ecx, dword [0x40ff54]
add esp, 8
mov dword [0x40ff6c], eax
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x40ff54]
cmp byte [eax + ecx - 1], 0x5c
jne 0x4020fc
mov byte [eax + ecx - 1], 0
mov ecx, dword [0x40ff54]
push 0x10
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40212e
mov edx, dword [0x40ff54]
push edx
call esi
push eax
mov eax, dword [0x40ff54]
push eax
call fcn.00401c30
add esp, 8
mov dword [0x40ff74], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x40ff68]
mov edx, dword [0x40ff54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x40ff54]
push str.TEMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x40ff54]
push ecx
call esi
mov edx, dword [0x40ff54]
push eax
push edx
call fcn.00401c30
add esp, 8
mov dword [0x40ff74], eax
mov eax, dword [0x40ff54]
push eax
call fcn.00401450
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402a90
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.004027d0
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.00402770
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 0x402810
push 0xfffffffffffffffc
push esi
mov dword [0x40faa4], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edx, dword [0x40ffa8]
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 [0x40ffa8]
push 0
push ecx
push 0
push esi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000001
push 0x40fad8
push str.tooltips_class32
push 0x88
mov edi, eax
call ebx
mov edx, dword [0x40ff54]
mov ebx, eax
mov eax, dword [0x40ffa8]
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 [0x40ff54]
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.00402930
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403130
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x40ff24]
mov ecx, dword [0x40ff74]
push ebx
push esi
push edi
push eax
push 1
push str.pftw
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [0x40ff24]
push 0x7e
push 0x2e
push edx
call fcn.00403100
mov eax, dword [0x40ff24]
add esp, 0xc
push eax
call fcn.00401450
mov ecx, dword [0x40ff24]
add esp, 4
push 0x40d1dc
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x298]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea eax, [ebp - 0x298]
push 0
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x4031c9
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40000
call fcn.004084f0
add esp, 4
mov ebx, eax
mov eax, dword [0x40ff88]
push 0
push eax
push esi
call fcn.00401320
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x403264
mov eax, dword [0x40ff20]
test eax, eax
je 0x403221
lea ecx, [ebp - 0x90]
push pe_nt_image_headers32
push ecx
push 0x33
push 0x40d1e0
call fcn.00401590
add esp, 0x10
test eax, eax
je 0x403221
lea edx, [ebp - 0x90]
push edx
jmp 0x403226
push str.Reading_package...
push 0x3f1
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x40ff48]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
shr eax, 0x12
shl eax, 0x10
push eax
push 0
push 0x401
push 0x3f0
push esi
call edi
push 0
push 1
push 0x404
push 0x3f0
push esi
call edi
mov eax, dword [0x40ff84]
xor esi, esi
test eax, eax
jle 0x40334f
mov ecx, dword [0x40ff24]
lea eax, [esi + 1]
push eax
push ecx
lea edx, [ebp - 0x194]
push str._spftw_d.pkg
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x194]
push 0x180
push 0x101
push eax
call fcn.00401250
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40336d
mov ecx, dword [0x40faac]
mov dword [ebp - 8], 0
mov edi, dword [ecx + esi*4]
test edi, edi
je 0x403333
mov eax, dword [0x40fa94]
test eax, eax
jne 0x403333
cmp edi, 0x40000
mov esi, 0x40000
ja 0x4032e7
mov esi, edi
mov edx, dword [ebp - 4]
push esi
push ebx
push edx
call fcn.004012d0
add esp, 0xc
push eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
call fcn.004012f0
add esp, 0xc
push 0
call fcn.004010e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add esp, 4
add eax, esi
sub edi, esi
mov dword [ebp - 8], eax
push 0
push 0
push 0x405
push 0x3f0
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test edi, edi
jne 0x4032cf
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401310
mov esi, dword [ebp - 0x10]
mov eax, dword [0x40ff84]
add esp, 4
cmp esi, eax
jl 0x403273
mov edx, dword [ebp - 4]
push edx
call fcn.00401310
add esp, 4
push ebx
call fcn.004085a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00401310
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403800
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 0x403849
mov ecx, dword [0x40ffb0]
push pe_nt_image_headers32
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x40ffb0]
push edx
call fcn.00401090
mov edx, dword [0x40faa8]
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 0x404190
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40ff20]
mov ecx, dword [0x40d26c]
test eax, eax
mov dword [edi - 1], ecx
je 0x4041f1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x248]
lea eax, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x404302
test byte [ebp - 0x248], 0x10
je 0x4042af
cmp byte [ebp - 0x21c], 0x2e
je 0x4042e5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x40d270]
lea ecx, [ebp - 0x108]
push ecx
mov word [edi - 1], ax
call fcn.00404190
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4042e5
lea edx, [ebp - 0x108]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4042e5
inc dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404213
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x108]
mov byte [ebp + eax - 0x109], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404610
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.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4046e1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.00401340
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x404658
mov eax, 0xd
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push esi
call fcn.00401320
add esp, 0xc
push 4
push 0x40ffa0
push esi
call fcn.004012d0
mov ecx, dword [0x40ffa0]
add esp, 0xc
push ecx
call fcn.004084f0
mov edx, dword [0x40ffa0]
add esp, 4
mov edi, eax
push edx
push edi
push esi
call fcn.004012d0
mov eax, dword [0x40ffa0]
add esp, 0xc
push eax
push edi
call fcn.00402190
mov ecx, dword [0x40ffa0]
add esp, 8
push ecx
push edi
call fcn.00402330
add esp, 8
test eax, eax
jne 0x4046e6
mov edx, dword [0x40ffa0]
push edi
lea eax, [ebx + edx + 4]
mov dword [0x40ff88], eax
call fcn.004085a0
add esp, 4
push esi
call fcn.00401310
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 0x404a20
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.004046f0
add esp, 0xc
mov dword [0x40fa9c], eax
test eax, eax
jne 0x404a4e
call fcn.004043a0
test eax, eax
mov dword [0x40fa9c], eax
je 0x404a7b
jle 0x404a64
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402c40
add esp, 0x10
call fcn.004048c0
mov eax, dword [0x40fa9c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004048c0
test eax, eax
mov dword [0x40fa9c], eax
je 0x404aa2
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402c40
mov eax, dword [0x40fa9c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x405d21
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x405cf9
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x405d48
cmp ecx, 2
je 0x405d3f
cmp ecx, 3
jne 0x405d4d
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x408a80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x40a638
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 [0x40fb68], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40fb64], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40fb60], ecx
shr eax, 0x10
mov dword [0x40fb5c], eax
call fcn.00408ca0
test eax, eax
jne 0x408aea
push 0x1c
call fcn.00408c50
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040a340
call fcn.0040a330
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4114f4], eax
call fcn.00409d10
mov dword [0x40fb30], eax
test eax, eax
je 0x408b1d
mov eax, dword [0x4114f4]
test eax, eax
jne 0x408b27
push 0xffffffffffffffff
call fcn.00409570
add esp, 4
call fcn.00409a60
call fcn.00409970
call fcn.00409540
mov esi, dword [0x4114f4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x408c06
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x408b6e
test al, al
je 0x408b6e
and eax, 0xff
push eax
call fcn.00409910
add esp, 4
test eax, eax
je 0x408b48
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408b48
cmp byte [esi], 0x22
jne 0x408b77
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x408b87
cmp al, 0x20
ja 0x408b87
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408b77
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x408ba8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x408bad
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.00409570
jmp 0x408beb
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 0x408b77
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408c06

Function at 0x408c50
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40fb38], 1
jne 0x408c5e
call fcn.0040a710
mov eax, dword [esp + 4]
push eax
call fcn.0040a750
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4095b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40fb98]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4095cf
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 [0x40fb94], 1
mov byte [0x40fb90], bl
jne 0x409629
mov ecx, dword [0x4114e8]
test ecx, ecx
je 0x409617
mov esi, dword [0x4114e4]
sub esi, 4
cmp esi, ecx
jb 0x409617
mov eax, dword [esi]
test eax, eax
je 0x409610
call eax
mov ecx, dword [0x4114e8]
sub esi, 4
cmp esi, ecx
jae 0x409602
push 0x40d014
push 0x40d010
call fcn.00409660
add esp, 8
push 0x40d01c
push 0x40d018
call fcn.00409660
add esp, 8
test ebx, ebx
jne 0x409650
push ebp
mov dword [0x40fb98], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x409d10
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40fca8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x409d52
call edi
mov esi, eax
test esi, esi
je 0x409d3c
mov eax, 1
jmp 0x409d4d
call ebp
mov ebx, eax
test ebx, ebx
je 0x409e5f
mov eax, 2
mov dword [0x40fca8], eax
cmp eax, 1
jne 0x409df2
test esi, esi
jne 0x409d6b
call edi
mov esi, eax
test esi, esi
je 0x409e5f
cmp word [esi], 0
mov eax, esi
je 0x409d85
add eax, 2
cmp word [eax], 0
jne 0x409d73
add eax, 2
cmp word [eax], 0
jne 0x409d73
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x409de4
push edi
call fcn.004084f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409de4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x409dd6
push ebx
call fcn.004085a0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x409e5f
test ebx, ebx
jne 0x409e03
call ebp
mov ebx, eax
test ebx, ebx
je 0x409e5f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x409e1b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409e0b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409e0b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004084f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x409e3d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret