joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402050
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov eax, dword [0x40b03c]
push edi
inc eax
and eax, 0xff
cmp eax, dword [0x40b040]
jne 0x40206d
call fcn.00401c60
pop edi
pop esi
ret
mov edi, dword [esp + 0xc]
push 0x11
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ah, 0x80
je 0x402086
or edi, 0x40000
push 0x10
call esi
test ah, 0x80
je 0x402095
or edi, 0x80000
mov eax, dword [0x40b03c]
mov dword [eax*4 + 0x40c360], edi
inc eax
pop edi
and eax, 0xff
pop esi
mov dword [0x40b03c], eax
ret

Function at 0x402cd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x240
mov eax, dword [0x40b038]
test eax, eax
push esi
mov esi, dword [esp + 0x248]
push edi
mov dword [esp + 0x18], 0x1f4
mov dword [0x40c7b8], esi
jne 0x402e55
call fcn.00403b10
mov edi, eax
lea ecx, [esp + 0x48]
lea eax, [esp + 0x18]
lea edx, [esp + 0x44]
push eax
push ecx
push edx
push 0
push str.Console
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
lea eax, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0x50]
push edx
push ecx
push 0x40b0e0
push eax
call fcn.004046c0
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x402d6f
mov dword [esp + 0x10], 0x27a
mov dword [esp + 0x14], 0x1da
mov eax, 3
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
xor edi, edi
cmp dword [esp + 0x250], edi
jne 0x402dc6
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
push 0x64
mov dword [esp + 0x20], 0x2b
mov dword [esp + 0x24], 0x4026e0
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], 6
mov dword [esp + 0x40], str.WinChps
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [esp + 0x14]
push 0
sub eax, dword [esp + 0x10]
push esi
mov ecx, dword [esp + 0x14]
push 0
mov edx, dword [esp + 0x14]
push 0
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
push ecx
push edx
push 0xef0000
push str._Win9X_NT_2K_32
push str.WinChps
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x40b038], eax
test eax, eax
je 0x402e1b
mov ecx, dword [esp + 0x254]
or ecx, 6
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004015e0
push 0
mov eax, dword [0x40b05c]
push eax
mov ecx, dword [0x40b038]
push 0
push 1
push ecx
call dword [sym.imp.USER32.dll_SetScrollRange]
push 1
mov ecx, dword [0x40b038]
push 0
push 1
push ecx
call dword [sym.imp.USER32.dll_SetScrollPos]
mov eax, dword [0x40b038]
pop edi
pop esi
add esp, 0x240
ret 0xc
Function at 0x403b30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x23c
push esi
push edi
call section..text
mov eax, dword [0x40b038]
test eax, eax
je 0x403bf1
mov dword [esp + 0x18], 0x2c
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x403bdb
cmp dword [esp + 0x20], 2
je 0x403bdb
lea eax, [esp + 8]
mov ecx, dword [0x40b038]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x4c]
push edx
push ecx
mov esi, 1
push str._d__d__d__d
push eax
call fcn.00404f10
add esp, 0x18
cmp byte [esp + 0x45], 0
je 0x403bb6
xor eax, eax
inc esi
cmp byte [esp + esi + 0x44], al
jne 0x403baf
inc esi
call fcn.00403b10
mov edi, eax
push esi
lea eax, [esp + 0x48]
push eax
push 1
push 0
push str.Console
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x40b038]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x40b038], 0
mov eax, dword [0x40b044]
test eax, eax
je 0x403c03
push eax
call fcn.00404620
add esp, 4
push 0x4000
mov eax, dword [0x40bf6c]
push eax
mov ecx, dword [0x40bf7c]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
mov ecx, dword [0x40bf7c]
push 0
push ecx
call esi
pop edi
pop esi
add esp, 0x23c
ret
Function at 0x404780
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40b468], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40479e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40b464], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x40b460], bl
jne 0x4047f8
cmp dword [0x40d8f0], 0
je 0x4047e6
mov edi, dword [0x40d8ec]
sub edi, 4
cmp dword [0x40d8f0], edi
ja 0x4047e6
mov eax, dword [edi]
test eax, eax
je 0x4047db
call eax
sub edi, 4
cmp dword [0x40d8f0], edi
jbe 0x4047d3
push 0x40b01c
push 0x40b014
call fcn.00404830
add esp, 8
push 0x40b024
push 0x40b020
call fcn.00404830
add esp, 8
test ebx, ebx
jne 0x40481f
mov dword [0x40b468], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x405010
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a010
push 0x4043f0
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x40b42c], eax
xor eax, eax
mov al, byte [0x40b42d]
mov dword [0x40b438], eax
mov eax, dword [0x40b42c]
shr dword [0x40b42c], 0x10
and eax, 0xff
mov dword [0x40b434], eax
shl eax, 8
add eax, dword [0x40b438]
mov dword [0x40b430], eax
call fcn.004051d0
mov dword [ebp - 4], 0
call fcn.00406530
call fcn.00408290
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40d8e8], eax
call fcn.00407e30
mov dword [0x40b470], eax
test eax, eax
je 0x4050a9
cmp dword [0x40d8e8], 0
jne 0x4050b3
push 0xffffffffffffffff
call fcn.00404740
add esp, 4
call fcn.00407bb0
call fcn.00407ad0
call fcn.00404710
mov esi, dword [0x40d8e8]
mov al, byte [esi]
cmp al, 0x22
je 0x4050da
cmp al, 0x20
jbe 0x405107
inc esi
cmp byte [esi], 0x20
ja 0x4050d2
jmp 0x405107
inc esi
cmp byte [esi], 0x22
je 0x405106
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x405101
xor eax, eax
mov al, bl
push eax
call fcn.00407a70
add esp, 4
test eax, eax
je 0x4050fb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4050e3
cmp byte [esi], 0x22
jne 0x405107
inc esi
cmp byte [esi], 0
je 0x405117
cmp byte [esi], 0x20
ja 0x405117
inc esi
cmp byte [esi], 0
jne 0x40510c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40513b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00404740
jmp 0x40517c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406bc0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp edx, dword [0x40d8e0]
push ebx
push esi
push edi
push ebp
jae 0x406dc7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x40d7e0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x406dc7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x406c29
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x406c3a
push 2
push 0
push edx
call fcn.00406470
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x406cd6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x406d0f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x406c9d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x406c8b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x406c72
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406d05
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp edi, eax
jle 0x406c5d
jmp 0x406d0f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406d05
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x406d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x406db6
cmp dword [esp + 0x10], 0
je 0x406d68
cmp dword [esp + 0x10], 5
jne 0x406d4b
mov dword [0x40b420], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x40b424], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.00408c90
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x406d92
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x406d92
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40b420], 0x1c
mov dword [0x40b424], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40b420], 9
mov dword [0x40b424], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x407e30
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x40b538], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x407e7c
call esi
mov edi, eax
test edi, edi
je 0x407e5a
mov dword [0x40b538], 1
jmp 0x407e80
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x407e72
mov dword [0x40b538], 2
jmp 0x407e84
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x40b538], 1
jne 0x407f33
test edi, edi
jne 0x407ea7
call esi
mov edi, eax
test edi, edi
jne 0x407ea7
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x407ec1
add esi, 2
cmp word [esi], 0
jne 0x407eaf
add esi, 2
cmp word [esi], 0
jne 0x407eaf
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x407f22
push ebp
call fcn.00404640
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x407f22
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x407f11
push ebx
call fcn.00404620
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x40b538], 2
jne 0x407fb7
test ebx, ebx
jne 0x407f56
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x407f56
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x407f6b
inc ebp
cmp byte [ebp], 0
jne 0x407f5d
inc ebp
cmp byte [ebp], 0
jne 0x407f5d
sub ebp, ebx
inc ebp
push ebp
call fcn.00404640
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x407f90
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4082e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x40b758
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x408307
add eax, 8
inc ecx
cmp eax, 0x40b7e0
jb 0x4082f8
cmp dword [ecx*8 + 0x40b758], edx
lea ebx, [ecx*8]
jne 0x4084c2
cmp dword [0x40b47c], 1
je 0x408487
cmp dword [0x40b47c], 0
jne 0x40833e
cmp dword [0x40b480], 1
je 0x408487
cmp edx, 0xfc
je 0x4084c2
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40837b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4083bf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40a340
push ebp
call fcn.00409270
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a320
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x40b75c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.004091d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40d7e0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40849e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x40b75c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x409590
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00409780
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp esi, dword [0x40d8e0]
jae 0x4096dd
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x40d7e0]
test byte [edx + ecx*8 + 4], 1
je 0x4096dd
push 1
push ebx
push esi
call fcn.00406470
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x4096cd
push 2
push ebx
push esi
call fcn.00406470
add esp, 0xc
cmp eax, 0xffffffff
je 0x4096cd
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x409673
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00409700
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x409636
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00406bc0
add esp, 0xc
cmp eax, 0xffffffff
je 0x409652
sub ebp, eax
test ebp, ebp
jg 0x40962b
jmp 0x409667
cmp dword [0x40b424], 5
jne 0x409665
mov dword [0x40b420], 0xd
mov ebx, eax
push edi
push esi
call fcn.00409700
add esp, 8
jmp 0x4096b0
jge 0x4096b0
push 0
push ecx
push esi
call fcn.00406470
add esp, 0xc
push esi
call fcn.00408f00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x4096b0
mov dword [0x40b420], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40b424], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00406470
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x40b420], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret

Function at 0x4018d4
Capabilities:
Encode data using xor

Disassembly:
push 0x4019d4
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
dec eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bl, dh
push cs
inc esi
sbb dl, ah
or dword [edx - 0x1c4051b1], ecx
jae entry0
outsd dx, dword [esi]
push esi
mov esi, 0
add byte [eax], al
add dword [eax], eax
add byte [eax], al
and byte [eax], ah
and byte [eax], ah
inc ebp
outsb dx, byte [esi]
push ebx
inc ecx
push eax
dec ecx
jb 0x40195c
imul ebp, dword [ebp + 0x54], 0x736e6172
jb 0x401922
or eax, 0x2020200a
and byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [0x4021cc00], al
add byte [eax], al
add byte [eax], al
add bh, bh
add byte [eax], al
add byte [eax], al
sbb dword fs:[eax], eax
add dword [eax], eax
add al, 0
int3
Function at 0x405320
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x3c], ebp
jne 0x405346
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405346
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x44], ebp
jne 0x4054b6
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esi + 0x3c]
cmp ebx, ebp
jne 0x40537f
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004e974b
mov ebx, eax
cmp ebx, ebp
jne 0x40537f
xor eax, eax
jmp 0x405382
mov eax, dword [ebx + 4]
push eax
lea edi, [esi + 0x40]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004e9760
test eax, eax
jne 0x4053a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
push eax
sub ecx, edi
lea edi, [esi + 0x50]
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.004eaa47
test eax, eax
jne 0x4053d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x3c], ebp
jne 0x4053ea
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp edi, ebp
jne 0x4053f2
xor edi, edi
jmp 0x4053f5
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x44]
push edi
push ecx
call fcn.004e98d9
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e1f6d
mov edi, eax
cmp edi, ebp
je 0x40542d
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004ea1e9
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004ea1ad
cmp dword [esi + 0x3c], ebp
je 0x4054a8
lea edx, [esp + 0x20]
lea edi, [esi + 0x58]
push edx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x405472
mov ebp, dword [edi]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x405482
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [esi + 0x3c]
sub ecx, ebx
sub eax, ebp
test edx, edx
je 0x405490
mov edx, dword [edx + 4]
push 0xcc0020
push ebx
push ebp
push edx
push ecx
push eax
mov eax, dword [esi + 0x44]
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esi]
lea eax, [esi + 0x40]
push eax
mov ecx, esi
call dword [edx + 0xbc]
lea eax, [esi + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4099b0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x5c], ebp
jne 0x4099d6
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4099d6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x64], ebp
jne 0x409b46
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esi + 0x5c]
cmp ebx, ebp
jne 0x409a0f
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004e974b
mov ebx, eax
cmp ebx, ebp
jne 0x409a0f
xor eax, eax
jmp 0x409a12
mov eax, dword [ebx + 4]
push eax
lea edi, [esi + 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, edi
call fcn.004e9760
test eax, eax
jne 0x409a30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x18]
push eax
sub ecx, edi
lea edi, [esi + 0x70]
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call fcn.004eaa47
test eax, eax
jne 0x409a67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x5c], ebp
jne 0x409a7a
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp edi, ebp
jne 0x409a82
xor edi, edi
jmp 0x409a85
mov edi, dword [edi + 4]
mov ecx, dword [esi + 0x64]
push edi
push ecx
call fcn.004e98d9
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004e1f6d
mov edi, eax
cmp edi, ebp
je 0x409abd
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004ea1e9
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004ea1ad
cmp dword [esi + 0x5c], ebp
je 0x409b38
lea edx, [esp + 0x20]
lea edi, [esi + 0x78]
push edx
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x409b02
mov ebp, dword [edi]
mov ebx, dword [edi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x409b12
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, dword [esi + 0x5c]
sub ecx, ebx
sub eax, ebp
test edx, edx
je 0x409b20
mov edx, dword [edx + 4]
push 0xcc0020
push ebx
push ebp
push edx
push ecx
push eax
mov eax, dword [esi + 0x64]
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esi]
lea eax, [esi + 0x60]
push eax
mov ecx, esi
call dword [edx + 0xd0]
lea eax, [esi + 0x60]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret