joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401c66
pop dword [ebp - 0x50]
mov eax, 0xfee5f375
sub eax, 0xfea5d70f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x38394407
add dword [ebp - 0x60], 0x16190144
mov dword [ebp - 0x5c], 0xfe4e7300
add dword [ebp - 0x5c], 0x33e4d945
mov dword [ebp - 0x58], 0xa8461b9b
sub dword [ebp - 0x58], 0x5bf9d76d
mov dword [ebp - 0x54], 0x39fb3bf9
add dword [ebp - 0x54], 0xc604c407
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x8aa7c6c4
sub dword [ebp - 0x60], 0x16355d6e
mov dword [ebp - 0x5c], 0xc1aae141
sub dword [ebp - 0x5c], 0x803e7fcc
mov dword [ebp - 0x58], 0xde527955
sub dword [ebp - 0x58], 0x7ae30ce9
mov dword [ebp - 0x54], 0x57784942
add dword [ebp - 0x54], 0xa887b6be
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36b36
push 0
call eax
mov ecx, 0x97a9f0f8
add ecx, 0x685657e9
xor ebx, ebx
add ebx, eax
mov esi, 0xe6c91db2
add esi, 0x1977524e
add esi, dword [ebp - 0x50]
mov edi, 0x4deded6
add edi, 0x4d75febe
add dword [ebp - 0x14], edi
mov edx, dword [esi]
sub dword [ebp - 0x28], 0x1d1a773b
xor edx, edi
sub dword [ebp - 0x40], 0x1e34d5a0
mov dword [ebx], edx
sub dword [ebp - 0x34], eax
add ebx, 4
add esi, 0xaec864f2
sub esi, 0xaec864ee
loop 0x401d80
add eax, 0xb3053ae6
add eax, 0x4cfbdb71
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xfdf5bed8
sub ecx, 0xfdb5bed8
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0xb376099
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x262c6e5a
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219

Function at 0x408baf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x408baf
lcall 0x5de5, 0x8b10c483
jmp loc.007f74ec
Function at 0x422937
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.00419b87
and dword [ebp - 4], 0
cmp dword [0x42ffe0], 0
mov ebx, eax
jne 0x4229e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422a99
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422a99
push eax
call fcn.00419b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ffe0], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ffe4], eax
call esi
push eax
call fcn.00419b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ffe8], eax
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42fff0], eax
test eax, eax
je 0x4229e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419b15
pop ecx
mov dword [0x42ffec], eax
mov eax, dword [0x42ffec]
cmp eax, ebx
je 0x422a40
cmp dword [0x42fff0], ebx
je 0x422a40
push eax
call fcn.00419b90
push dword [0x42fff0]
mov esi, eax
call fcn.00419b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422a40
test edi, edi
je 0x422a40
call esi
test eax, eax
je 0x422a37
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422a37
test byte [ebp - 0xc], 1
jne 0x422a40
or dword [ebp + 0x10], 0x200000
jmp 0x422a79
mov eax, dword [0x42ffe4]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422a79
mov eax, dword [0x42ffe8]
cmp eax, ebx
je 0x422a79
push eax
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a79
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ffe0]
call fcn.00419b90
pop ecx
test eax, eax
je 0x422a99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a9b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401dc2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x403038]
test eax, eax
je 0x401e01
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e01
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e01
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e01
cmp dword [ecx + 0x74], 0xe
jbe 0x401e01
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4013b8
Capabilities:
Get proxy

Disassembly:
mov eax, 0x4bf008
call fcn.004bd430
sub esp, 0x428
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], 0x104
mov esi, 0x206
push esi
lea eax, [ebp - 0x22a]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp - 0x22c], bx
call fcn.0049cce0
push esi
lea eax, [ebp - 0x432]
push ebx
push eax
mov word [ebp - 0x434], bx
call fcn.0049cce0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x18
lea eax, [ebp - 0x1c]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call esi
cmp eax, ebx
jne 0x40145c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push str.ProxyEnable
lea eax, [ebp - 0x10]
push eax
call fcn.0040335b
cmp dword [ebp - 0x10], ebx
je 0x40145c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
je 0x401470
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x4015a1
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push edi
mov dword [ebp - 0x10], ebx
call esi
cmp eax, ebx
jne 0x4015a1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push str.ProxyServer
lea eax, [ebp - 0x14]
push eax
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x22c]
call fcn.004032f4
cmp eax, ebx
jne 0x401593
cmp word [ebp - 0x22c], bx
je 0x401593
mov eax, edi
push 0x104
push eax
call fcn.0049c75a
mov esi, dword [ebp + 8]
mov edi, str.socks
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [esi], 2
call fcn.0049b77a
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401518
mov dword [esi], 3
push edi
call fcn.0049b764
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.00402697
jmp 0x401551
mov edi, str.http
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.0049b77a
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov dword [esi], 2
jne 0x4014fd
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push 0x104
push eax
call fcn.0049c76d
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00403217
mov esi, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, esi
lea ebx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004015b5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f9
mov eax, dword [esi]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x401593
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], ebx
je 0x4015a1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402a15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a2c
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402a61
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402a5d
cmp edi, eax
jae 0x402a61
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402a4f
cmp edi, eax
jb 0x402a65
xor eax, eax
jmp 0x402a6f
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4032f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403357
cmp dword [ebp + 0xc], 1
je 0x403330
cmp dword [ebp + 0xc], 2
je 0x403330
push 0xd
pop eax
jmp 0x403357
test edi, edi
mov eax, dword [ebp - 4]
je 0x403351
test eax, eax
je 0x40334d
test al, 1
jne 0x40332b
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x403351
jmp 0x40332b
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8
Function at 0x404139
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, eax
sub ecx, dword [esi + 0x18]
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x14]
mov edx, dword [esi]
push edi
push 1
push ecx
xor ebx, ebx
mov dword [ebp + 0x10], ecx
push eax
mov ecx, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [edx + 0x74]
mov edi, dword [esi + 0x100]
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x40427d
push edi
call fcn.0042a435
mov ebx, eax
test ebx, ebx
pop ecx
je 0x40424d
mov eax, dword [ebx + 0x10]
push 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x4041b3
lea eax, [ebx + 0x14]
push eax
call fcn.00420960
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x202
call fcn.0042a6c3
mov eax, dword [ebp - 0x10]
cmp dword [esi + 0x100], eax
jne 0x40420a
mov eax, dword [ebx + 0x40]
xor ecx, ecx
cmp eax, ecx
je 0x4041fc
cmp word [eax], cx
je 0x4041fc
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40424d
cmp dword [ebx + 0x10], ecx
je 0x40424d
mov dword [ebp - 4], 1
jmp 0x40424d
mov eax, dword [ebx]
push 1
push 0
mov ecx, ebx
call dword [eax + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x34]
test eax, eax
je 0x404229
lea eax, [ebx + 0x14]
push eax
call fcn.00420960
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, ebx
push 0x2a3
call fcn.0042a6c3
mov dword [ebp - 8], 1
xor ecx, ecx
cmp dword [ebp - 4], ecx
mov dword [esi + 0x100], ecx
je 0x40425e
push 0x67
jmp 0x404276
cmp dword [ebp - 8], ecx
je 0x40427d
cmp dword [ebp - 0xc], ecx
je 0x40427d
lea eax, [esi + 0xfc]
cmp edi, dword [eax]
jne 0x404274
mov dword [eax], ecx
push 0x6a
mov edi, ebx
call fcn.00403d63
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40573d
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4be7df
call fcn.004bd430
sub esp, 0x10
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
call fcn.00403217
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push str.__02d__02d__02d__03d__n
lea ecx, [ebp + 8]
call fcn.0040fb92
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4083f3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0049cce0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40844c
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4084fa
mov eax, dword [ebp - 0x94]
dec eax
je 0x4084e6
dec eax
jne 0x4084fa
cmp dword [ebp - 0xa0], 6
jne 0x408497
inc eax
cmp dword [ebp - 0x9c], eax
jne 0x40847f
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
add ecx, 8
jmp 0x408493
cmp dword [ebp - 0x9c], edi
jne 0x4084d3
xor ecx, ecx
cmp byte [ebp + 0x76], al
setne cl
lea ecx, [ecx + ecx + 7]
mov edi, ecx
jmp 0x4084fa
cmp dword [ebp - 0xa0], 5
jne 0x4084c6
cmp dword [ebp - 0x9c], 2
jne 0x4084ad
push 5
jmp 0x4084e3
cmp dword [ebp - 0x9c], 1
jne 0x4084ba
push 6
jmp 0x4084e3
cmp dword [ebp - 0x9c], edi
jne 0x4084fa
push 3
jmp 0x4084e3
cmp dword [ebp - 0xa0], 4
ja 0x4084fa
push 4
jmp 0x4084e3
cmp dword [ebp - 0x9c], 2
jne 0x4084fa
cmp byte [ebp + 0x76], al
jne 0x4084fa
push 0xa
pop edi
jmp 0x4084fa
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40a793
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x4e
jne 0x40a7c8
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40a7c8
mov ecx, esi
mov dword [esi + 0x3c8], edi
call fcn.0040a701
mov dword [ebx], eax
cmp dword [esi + 0x3c8], 0
je 0x40a7c8
mov eax, edi
jmp 0x40a80f
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040beff
test eax, eax
jne 0x40a7c4
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40a814
push 5
push dword [esi + 4]
lea eax, [esi + 0x3c8]
mov dword [ebp + 0xc], eax
mov dword [eax], edi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40a7c4
xor eax, eax
pop edi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40a84e
mov eax, dword [esi + 0x3cc]
mov dword [esi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [esi + 0x3c8], edi
mov dword [esi + 0x3b8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [esi + 0x3c8], 0
jmp 0x40a80b
cmp eax, 0x465
jne 0x40a87b
lea ecx, [esi + 0x2c]
mov dword [esi + 0x3c8], edi
call fcn.0040b4e2
mov dword [esi + 0x440], eax
mov eax, dword [esi + 0x30]
push 5
lea ecx, [esi + 0x404]
call fcn.0047e3ec
jmp 0x40a842
cmp eax, 0x110
jne 0x40a80d
lea eax, [esi + 0x3c8]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.00409f89
mov dword [ebx], eax
jmp 0x40a805
Function at 0x40aef8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [ebp + 0xc], 0x4e
push edi
mov edi, eax
jne 0x40af30
mov eax, dword [ebp + 0x14]
cmp dword [eax + 4], 0x3e8
jne 0x40af30
mov ecx, edi
mov dword [edi + 0x3c4], esi
call fcn.0040ae6e
mov dword [ebx], eax
cmp dword [edi + 0x3c4], 0
je 0x40af30
mov eax, esi
jmp 0x40af77
push 0
push ebx
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040beff
test eax, eax
jne 0x40af2c
mov eax, dword [ebp + 0xc]
cmp eax, 0x402
jne 0x40af7d
push 5
push dword [edi + 4]
lea eax, [edi + 0x3c4]
mov dword [ebp + 0xc], eax
mov dword [eax], esi
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebx], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x40af2c
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x10
cmp eax, 0x403
jne 0x40afb7
mov eax, dword [edi + 0x3cc]
mov dword [edi + 0x28], eax
xor eax, eax
push eax
push eax
push eax
mov dword [edi + 0x3c4], esi
mov dword [edi + 0x3b8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
and dword [ebx], 0
cmp dword [edi + 0x3c4], 0
jmp 0x40af73
cmp eax, 0x465
jne 0x40afe4
lea ecx, [edi + 0x2c]
mov dword [edi + 0x3c4], esi
call fcn.0040b4e2
mov dword [edi + 0x42c], eax
mov eax, dword [edi + 0x30]
push 5
lea ecx, [edi + 0x3fc]
call fcn.0043e214
jmp 0x40afab
cmp eax, 0x110
jne 0x40af75
lea eax, [edi + 0x3c4]
push ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax], esi
mov dword [ebp + 0xc], eax
mov eax, esp
mov dword [eax], ecx
call fcn.0040ab58
mov dword [ebx], eax
jmp 0x40af6d

Function at 0x40b3d9
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c26fc
call fcn.004bd430
push ecx
mov eax, dword [0x4f36c4]
push esi
push edi
mov ecx, 0x4f36c4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
call fcn.00402050
add eax, 0x10
lea edi, [ebp - 0x10]
call fcn.0040308d
push 3
push esi
push esi
mov eax, edi
push ebx
push eax
call fcn.004767b4
add esp, 0x14
test eax, eax
jne 0x40b42f
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b42f
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004027f9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x40bb79
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp ebp, esi
push edi
mov ebx, eax
mov dword [esp + 0x18], esi
jne 0x40bbb0
mov eax, dword [0x4f446c]
cmp eax, esi
je 0x40bb9e
mov ebp, dword [eax + 4]
jmp 0x40bba0
xor ebp, ebp
cmp ebp, esi
jne 0x40bbb0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, eax
cmp ebp, esi
je 0x40bbd5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebp, eax
je 0x40bbd5
push ebp
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40bbd5
push esi
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x18], 1
push ecx
mov eax, esp
mov dword [ebx + 0x3b8], esi
push ebp
mov dword [eax], esi
call fcn.0040cb1e
mov ecx, eax
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x40bc00
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40bcef
mov eax, dword [0x4f446c]
cmp eax, esi
mov dword [esp + 0x1c], esi
je 0x40bc17
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov dword [eax + 4], ecx
mov eax, ebp
call fcn.0040ccda
cmp dword [ebx + 0x3ac], esi
je 0x40bc8e
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push esi
push esi
push 0x2001
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp edi, dword [esp + 0x24]
je 0x40bc72
push 1
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, dword [esp + 0x24]
je 0x40bc8e
push esi
push edi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, ebx
call fcn.0042ed07
push 0x97
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 4]
mov dword [ebx + 0x3b8], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0x18], esi
je 0x40bcd3
push 1
push ebp
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebp, esi
je 0x40bcd3
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebx + 4]
jne 0x40bcd3
push ebp
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x4f446c]
cmp eax, esi
je 0x40bce3
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4