joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409da0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4140b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x409deb
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x428a50], ax
xor eax, eax
mov word [0x428a52], ax
mov dword [0x4140b0], 0x428a50
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040d2a2
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4140a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40a16a
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x422a00]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x423b14], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40a1cc
mov ecx, dword [0x41c0d4]
call fcn.00410fd1
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x412408
push 0
push 0xc2
push edi
call esi
mov byte [0x423b14], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40a21c
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40a266
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x41242c
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a9ec
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40aa07
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40aa11
mov byte [eax], 0
test edi, edi
je 0x40aaba
movzx eax, word [edi]
test ax, ax
je 0x40aaba
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40aa4a
cmp dword [ebp + 0xc], 0
je 0x40aa56
test esi, esi
jne 0x40aa56
test ebx, ebx
je 0x40aa46
mov byte [ebx], 1
mov esi, edx
jmp 0x40aa65
cmp ax, 0xd
je 0x40aa78
cmp ax, 0xa
je 0x40aa7a
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40aa70
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40aa2a
jmp 0x40aa7a
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40aa7a
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40aab5
mov word [ebx], ax
test esi, esi
je 0x40aab5
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040d222
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40aabc
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40ab01
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00411a52
cmp byte [0x423b15], 0
jne 0x40ab8f
push 6
push dword [0x41409c]
lea eax, [ebp - 0x820]
push eax
call fcn.004069ab
push eax
call fcn.0040dc16
test eax, eax
jne 0x40ab8f
push 0x4124a8
call fcn.00411a3f
lea eax, [ebp - 0x820]
push eax
call fcn.004098ab
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.00409525
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40ac5a
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x4229f1], 1
cmp dword [0x422a00], ebx
je 0x40ac82
push 0x7d
call fcn.00408b90
push eax
push 2
push dword [0x422a00]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x422a00]
mov dword [0x4229f4], ebx
mov byte [0x4229f0], 1
cmp eax, ebx
je 0x40ace3
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x423b24], ebx
jne 0x40acb1
cmp byte [0x423b14], bl
je 0x40acb9
cmp dword [0x4229f8], ebx
jne 0x40acdb
push ebx
push 1
push 0x111
push dword [0x422a00]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40acdb
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409d61
cmp dword [0x422a00], ebx
jne 0x40accf
cmp byte [0x422a08], bl
pop ebx
je 0x40acf1
jmp fcn.0040ab01
ret
Function at 0x40ad2d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
xor ebx, ebx
cmp byte [0x422a10], bl
je 0x40adad
cmp word [0x41c0d8], bx
je 0x40adad
push esi
push 0x41c0d8
lea esi, [ebp - 0x808]
call fcn.0040acf2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x40adad
push dword [ebp + 8]
call fcn.004098ab
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 1
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 4

Function at 0x40adb2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00401200
cmp byte [0x422a10], 0
je 0x40ae59
push esi
push dword [ebp + 8]
lea esi, [ebp - 0x100c]
call fcn.0040acf2
lea eax, [ebp - 8]
push eax
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop esi
test eax, eax
jne 0x40ae59
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ae50
shr dword [ebp - 4], 1
mov eax, 0x3ff
cmp dword [ebp - 4], eax
jae 0x40ae34
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp + eax*2 - 0x80c], cx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call fcn.0040d222
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8

Function at 0x40af81
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x4228e6], 0
mov eax, dword [ebp + 0xc]
mov dword [0x4228e8], eax
mov eax, dword [ebp + 0x10]
mov dword [0x4228ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4228e0], eax
je 0x40afb1
xor eax, eax
inc eax
jmp 0x40afda
cmp byte [0x4228e7], 0
je 0x40afbf
push 2
pop eax
jmp 0x40afda
push dword [ebp + 8]
push 0x40a33a
push dword [0x422a00]
push str.REPLACEFILEDLG
push dword [0x416e74]
call esi
dec eax
je 0x40b02c
dec eax
je 0x40b03e
dec eax
je 0x40b025
dec eax
jne 0x40b009
push dword [ebp + 8]
push 0x40a686
push dword [0x422a00]
push str.RENAMEDLG
push dword [0x416e74]
call esi
test eax, eax
je 0x40af8b
mov al, 0x52
jmp 0x40b039
dec eax
je 0x40b01a
dec eax
mov al, 0x4e
jne 0x40b039
mov byte [0x4228e7], 1
jmp 0x40b039
mov byte [0x4229f2], 1
mov al, 0x43
jmp 0x40b039
mov byte [0x4228e6], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40b039
Function at 0x40c9ba
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 1
call fcn.0040d5ed
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x42b4c0
call fcn.0040dd13
mov esi, 0x5800
push esi
push ebx
mov edi, 0x41d0e0
push edi
call fcn.00409525
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ca68
push eax
call fcn.0040a8c7
cmp byte [0x422a11], bl
je 0x40ca5a
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ca4f
push esi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40ca46
push esi
push eax
push edi
call fcn.00409552
push edi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ca68
push dword [ebp - 8]
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x400
mov esi, 0x41c8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x416e74], edi
mov dword [0x416e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x416e78]
mov dword [0x41c8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0xc]
mov dword [0x41c8d8], eax
call fcn.00411ac2
push esi
mov ecx, 0x416e88
call fcn.00408b79
lea ecx, [ebp - 0x5c]
call fcn.00410f80
lea ecx, [ebp - 0x34]
call fcn.00410f80
push 0x64
call fcn.0040a06a
push 0x64
mov dword [ebp - 0x40], eax
call fcn.0040a06a
push ebx
push 0x40c143
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x5c]
mov dword [0x41c0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x34]
push edi
mov dword [0x41c0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x34]
mov dword [0x41c0d0], ebx
mov dword [0x41c0d4], ebx
call fcn.00410fa2
lea ecx, [ebp - 0x5c]
call fcn.00410fa2
lea ecx, [ebp - 0xc]
call fcn.00411b1c
cmp byte [0x422a08], bl
je 0x40cb47
call fcn.0040ab01
push 0x100
push ebx
push 0x4228f0
call fcn.00409525
cmp dword [0x423b24], ebx
jbe 0x40cb6a
push dword [0x423b18]
call fcn.004094a1
push dword [0x41c8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41c8d8]
cmp eax, ebx
je 0x40cb84
push eax
call esi
cmp dword [0x416e7c], ebx
jne 0x40cba3
cmp byte [0x4229f2], bl
je 0x40cba3
push 0xff
mov ecx, 0x416e7c
call fcn.004032d4
mov eax, dword [0x423b30]
mov byte [0x4229f2], 1
cmp eax, ebx
je 0x40cbb9
push eax
call fcn.0040aac2
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [0x423b2c]
cmp eax, ebx
ja 0x40cbcd
mov eax, dword [0x416e7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40cf32
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x410fe8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x41101a
cmp dword [ebp - 4], edi
jne 0x41105b
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x41105b
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x411007
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x411007
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x4110b1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x412b00
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x4110a8
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x41109f
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x411967
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x412af0
push 1
xor ebx, ebx
push ebx
push 0x412ba0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x411a38
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x412b90
push eax
call dword [ecx]
test eax, eax
jl 0x411a2f
cmp byte [ebp + 8], bl
je 0x4119ba
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x4119d7
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x4119e9
push 0x412408
jmp 0x4119ec
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x411a01
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x411a12
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x411a26
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x411a52
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x401240
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 esi, 0x65
sbb edi, 0x81
not edi
rol esi, 0x6e
add esi, 0xda
imul ebx
not edi
rcl eax, 0x6c
neg esi
rcr eax, 0x26
bswap edi
sbb edi, 0x35
neg esi
neg esi
sbb eax, 0xad
mov ebx, 0x5c
inc eax
not edi
neg edx
and edi, 0x55
sub eax, 0x27
and esi, 0xea
sub ebx, 0x7e
imul edx
ror edx, 0x7d
rcl edi, 0xee
neg edx
dec ebx
mov ebx, 0x44
inc edx
ror edi, 0xbc
imul ebx
rol edx, 0x13
or edx, 0xf0
bswap eax
sbb edx, 0x24
neg esi
bswap ebx
imul esi
rol edx, 0xd
rcr ebx, 0x22
inc edx
and edi, 0x1f
neg esi
imul edx
mov esi, 0xa7
neg edi
and esi, 0xa6
or eax, 0xf
bswap esi
xor ecx, ecx
xor edi, edi
ror eax, 0x8d
ror edi, 0x91
inc edi
not esi
rcr edi, 0x14
inc edi
sub esi, 0xc0
rol edx, 8
neg esi
rol edx, 0x7e
inc edi
not eax
rol esi, 0x6d
sbb edi, 0xf3
ror edx, 0x19
rol edx, 0x6e
imul edx
dec edi
or edi, 0xd2
dec edx
not edx
inc edx
not eax
neg ebx
imul eax
imul ebx
or edx, 0xf6
or esi, 0x40
add esi, 0x95
mov edx, 0xc3
neg eax
mov esi, 0x3d
dec esi
not edx
sub edx, 0xdf
rcl edi, 0xed
sub edi, 0xe6
not edx
not eax
not eax
mov ebx, 0x7d
mov eax, 0x57
rol eax, 0xda
add esi, 0xc4
and esi, 0x45
bswap ebx
mov edi, 0x1c
and ebx, 0x99
ror edi, 0xf6
and edi, 0x75
mov ecx, dword [ebp + 0xc]
not edi
imul eax
ror edi, 0x20
rol edx, 0x4a
neg esi
sub esi, 0xa1
add eax, 0x41
imul eax
add edx, 0xeb
neg edx
neg ebx
sbb ebx, 0x11
ror eax, 0xdb
dec ebx
sub edi, 0x84
and edi, 0xe8
not edi
neg ebx
sub esi, 0xa9
rol eax, 0xb2
imul ebx
imul eax
rcr ebx, 0x8e
inc edi
neg edx
dec edi
dec edi
imul esi
rol edx, 0x20
ror edi, 0x54
imul edi
rol eax, 0xa9
bswap eax
not ebx
inc edx
ror esi, 0x82
bswap edi
rol eax, 0xbf
imul esi
bswap eax
or eax, 0x13
not edx
rcl edi, 0x91
bswap edi
sbb edx, 0x89
bswap esi
sbb edi, 0x40
sbb esi, 0x39
imul ebx
bswap ebx
mov edi, dword [ebp + 8]
mov esi, eax
mov ebx, esi
xor ebx, ebx
not byte [edi]
mov eax, esi
mov ebx, eax
xor ebx, eax
xor eax, eax
xor ebx, esi
xor esi, ebx
xor eax, eax
mov esi, esi
xor eax, esi
add byte [edi], 0x75
xor eax, esi
mov ebx, esi
mov esi, esi
mov ebx, eax
mov ebx, ebx
mov eax, ebx
mov eax, esi
mov eax, ebx
mov eax, esi
sub byte [edi], 0x25
xor eax, ebx
mov ebx, eax
xor esi, ebx
xor ebx, esi
mov eax, esi
xor eax, eax
mov eax, ebx
mov ebx, eax
mov ebx, esi
imul byte [edi]
inc edi
loop 0x40140c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40655d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4271b8]
jne 0x406567
repz ret
jmp fcn.004087cc
Function at 0x40818c
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.004065de
and dword [ebp - 4], 0
cmp dword [0x4280e4], 0
mov ebx, eax
jne 0x40823d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4082ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4082ee
push eax
call fcn.0040656c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4280e4], eax
call esi
push eax
call fcn.0040656c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4280e8], eax
call esi
push eax
call fcn.0040656c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4280ec], eax
call esi
push eax
call fcn.0040656c
pop ecx
mov dword [0x4280f4], eax
test eax, eax
je 0x40823d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040656c
pop ecx
mov dword [0x4280f0], eax
mov eax, dword [0x4280f0]
cmp eax, ebx
je 0x408295
cmp dword [0x4280f4], ebx
je 0x408295
push eax
call fcn.004065e7
push dword [0x4280f4]
mov esi, eax
call fcn.004065e7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408295
test edi, edi
je 0x408295
call esi
test eax, eax
je 0x40828c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40828c
test byte [ebp - 0xc], 1
jne 0x408295
or dword [ebp + 0x10], 0x200000
jmp 0x4082ce
mov eax, dword [0x4280e8]
cmp eax, ebx
je 0x4082ce
push eax
call fcn.004065e7
pop ecx
test eax, eax
je 0x4082ce
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4082ce
mov eax, dword [0x4280ec]
cmp eax, ebx
je 0x4082ce
push eax
call fcn.004065e7
pop ecx
test eax, eax
je 0x4082ce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4280e4]
call fcn.004065e7
pop ecx
test eax, eax
je 0x4082ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4082f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
push 0x40
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406ba3
mov eax, 1
jmp 0x406cae
mov edx, dword [ebp + 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x406bb9
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x406bc3
mov eax, 2
jmp 0x406cae
mov edx, dword [ebp + 0x10]
push edx
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406bee
mov eax, 1
jmp 0x406cae
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0x4550
jne 0x406c14
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 0x58]
cmp edx, 0x10b
jne 0x406c14
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x46]
test ecx, ecx
jne 0x406c1e
mov eax, 2
jmp 0x406cae
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x46]
imul eax, eax, 0x28
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
push eax
call fcn.00412c80
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x138], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x138], 0
jne 0x406c5f
mov eax, 3
jmp 0x406cae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x54]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x13c], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x13c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
call dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jne 0x406cac
mov eax, 1
jmp 0x406cae
xor eax, eax
pop ebp
ret

Function at 0x407640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x407656
xor eax, eax
jmp 0x407696
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
jne 0x40767b
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x40767f
xor eax, eax
jmp 0x407696
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call fcn.004076a0
add esp, 0xc
mov esp, ebp
pop ebp
ret