joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb47
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406d97
mov dword [ebp - 0x14], eax
cmp dword [0x817908], esi
jne 0x40bc3a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bbc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bd1a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bd1a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bd1a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x817908], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81790c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x817910], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x817918], eax
test eax, eax
je 0x40bc37
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x817914], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bc5f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bc52
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bc74
push 4
pop eax
jmp 0x40bd1c
cmp dword [ebp - 0x14], esi
je 0x40bc74
push dword [0x817908]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bc59
mov eax, dword [0x817914]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bcd2
cmp dword [0x817918], edi
je 0x40bcd2
push eax
call ebx
push dword [0x817918]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bcd2
test eax, eax
je 0x40bcd2
call ecx
test eax, eax
je 0x40bcc7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bcc7
test byte [ebp - 8], 1
jne 0x40bcd2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bd02
mov eax, dword [0x81790c]
cmp eax, edi
je 0x40bcff
push eax
call ebx
test eax, eax
je 0x40bcff
call eax
mov esi, eax
test esi, esi
je 0x40bcff
mov eax, dword [0x817910]
cmp eax, edi
je 0x40bcff
push eax
call ebx
test eax, eax
je 0x40bcff
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x817908]
call ebx
test eax, eax
je 0x40bd1a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bd1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040398d
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x73a21f7b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x351d6174
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407290
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407290
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407290
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407290
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407290
mov dword [0x41203c], eax
call fcn.00407290
test eax, eax
jge 0x402550
push 8
call fcn.00407290
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407290
pop ecx
push 1
call fcn.00407290
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407290
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407290
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407290
jmp 0x402495

Function at 0x407290
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40729f
pop dword [ebp - 0x20]
mov eax, 0x3acb67ef
sub eax, 0x3a8af550
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x36130
push 0
mov eax, 0xfea347ac
sub eax, 0xfe6266d4
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x3b2b
mov edi, eax
mov ebx, 0x63f46558
sub ebx, 0x63b32994
add ebx, dword [ebp - 0x20]
mov edx, 0x5415d374
add dword [ebp - 0x18], eax
mov esi, dword [ebx]
xor dword [ebp - 0xc], ebx
add esi, edx
xor dword [ebp - 0x1c], 0x7b86270a
mov dword [edi], esi
sub dword [ebp - 0x10], ecx
add edi, 4
add ebx, 4
loop 0x4072f2
add eax, 0x5db4ffaf
sub eax, 0x5db42030
mov ebx, eax
add eax, 0xd1e130a
sub eax, 0xd1e1305
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403cf8
nop
sub eax, 0x403c9e
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x413f0ba6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
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
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42f314
mov ecx, 0x2cf53505
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x44253d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x44256b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x442589
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004424a7
jmp 0x442589
mov eax, dword [esi + 0x14]
test eax, eax
je 0x442589
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004424a7
test edi, edi
mov eax, edi
jne 0x442573
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56c32c]
test ecx, ecx
je 0x44263c
jmp 0x44253c
ret 8

Function at 0x45df50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x436015
lea edi, [esi - 0x35015]
push edi
jmp 0x45df6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45df71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45df60
mov eax, 1
add ebx, ebx
jne 0x45df83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45df78
jne 0x45df94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45df78
xor ecx, ecx
sub eax, 3
jb 0x45dfa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45e01a
mov ebp, eax
add ebx, ebx
jne 0x45dfb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45dfc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45dfe4
inc ecx
add ebx, ebx
jne 0x45dfd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45dfc5
jne 0x45dfe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45dfc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45e004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45dff5
jmp 0x45df66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45e004
add edi, ecx
jmp 0x45df66
pop esi
mov edi, esi
mov ecx, 0x18
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45e022
cmp byte [edi], 0x96
jne 0x45e022
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x45e027
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45e096
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e244]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e2cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45e054
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5e2d4]
or eax, eax
je 0x45e090
mov dword [ebx], eax
add ebx, 4
jmp 0x45e071
call dword [esi + 0x5e2d0]
mov ebp, dword [esi + 0x5e2d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45e0ca
sub esp, 0xffffff80
jmp 0x4341b0
Function at 0x40102b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ecx]
and dword [esp + 0x18], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
sub edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004011dd
test eax, eax
je 0x40118f
lea ecx, [esp + 0x18]
call fcn.004011dd
lea ecx, [esp + 0x18]
test eax, eax
je 0x4010fe
call fcn.004011dd
test eax, eax
je 0x4010bc
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.004011dd
lea edi, [eax + edi*2]
dec ebx
jne 0x40108e
mov edx, dword [esp + 0x1c]
or edi, edi
je 0x4010af
push edx
pop eax
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4010b2
mov byte [edx], 0
mov ebx, dword [esp + 0x10]
inc edx
jmp 0x4011a1
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4010f2
or ecx, ecx
je 0x40118a
push edx
pop edi
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4010e4
jmp 0x401186
sub ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
jmp 0x40118a
call fcn.004011bc
or edi, edi
jne 0x401133
cmp eax, 2
jne 0x40112e
lea ecx, [esp + 0x18]
call fcn.004011bc
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x40118a
push edx
pop ecx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x401123
jmp 0x401186
sub eax, 3
jmp 0x401136
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
jmp section..htext
mov dword [esp + 0x1c], edx
sub edi, edi
inc edi
jmp 0x4011a7
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
or ebx, ebx
je 0x40105e
sub edx, dword [esp + 0x14]
pop edi
pop esi
push edx
pop eax
pop ebx
push ebp
pop esp
pop ebp
ret
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41a1e8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a1ec]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x2d345ac], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x454]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x41a1f0]
mov edx, dword [0x41a1f4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d345ac], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d345a8]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x2d345ac], 0x3eb
mov dword [0x2d345a8], eax
mov eax, dword [0x2d344fc]
cmove eax, dword [ebp - 8]
mov dword [0x2d344fc], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], edx
and dword [ebp - 8], 0
mov dword [0x2d345a4], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x2d345ac], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x401359
lea eax, [ebp - 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea eax, [ebp - 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x2d345ac], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139c
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb47
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419c10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406d97
mov dword [ebp - 0x14], eax
cmp dword [0x43ac88], esi
jne 0x40bc3a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bbc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40bd1a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40bd1a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40bd1a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ac88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ac8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ac90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ac98], eax
test eax, eax
je 0x40bc37
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ac94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bc5f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bc52
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bc74
push 4
pop eax
jmp 0x40bd1c
cmp dword [ebp - 0x14], esi
je 0x40bc74
push dword [0x43ac88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bc59
mov eax, dword [0x43ac94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40bcd2
cmp dword [0x43ac98], edi
je 0x40bcd2
push eax
call ebx
push dword [0x43ac98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40bcd2
test eax, eax
je 0x40bcd2
call ecx
test eax, eax
je 0x40bcc7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40bcc7
test byte [ebp - 8], 1
jne 0x40bcd2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40bd02
mov eax, dword [0x43ac8c]
cmp eax, edi
je 0x40bcff
push eax
call ebx
test eax, eax
je 0x40bcff
call eax
mov esi, eax
test esi, esi
je 0x40bcff
mov eax, dword [0x43ac90]
cmp eax, edi
je 0x40bcff
push eax
call ebx
test eax, eax
je 0x40bcff
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ac88]
call ebx
test eax, eax
je 0x40bd1a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40bd1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040398d
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
push edi
test edx, edx
je 0x40264a
mov edi, dword [ebp + 8]
test edi, edi
je 0x40264a
mov dword [edi + 0xf0], 0xa
mov ecx, dword [edx]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
push ebx
mov ebx, 0xff00ff
and ecx, ebx
or eax, ecx
mov dword [edi], eax
mov ecx, dword [edx + 4]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, ebx
or eax, ecx
push esi
lea esi, [edi + 4]
mov dword [esi], eax
mov ecx, dword [edx + 8]
mov eax, ecx
ror eax, 8
and eax, 0xff00ff00
rol ecx, 8
and ecx, ebx
or eax, ecx
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
mov edx, eax
rol eax, 8
and eax, ebx
ror edx, 8
and edx, 0xff00ff00
mov ebx, 0xff
or edx, eax
mov eax, edx
mov dword [edi + 0xc], edx
shr eax, 0x10
and eax, ebx
mov ecx, dword [eax*4 + 0x5e2c90]
mov eax, edx
shr eax, 8
xor ecx, 0x1000000
and eax, ebx
and ecx, 0xff000000
mov eax, dword [eax*4 + 0x5e2890]
and eax, 0xff0000
xor ecx, eax
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5e3090]
xor ecx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x5e3490]
and eax, 0xff00
xor ecx, eax
mov eax, dword [esi]
xor ecx, dword [edi]
xor eax, ecx
mov dword [edi + 0x10], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 0x14], eax
xor ecx, eax
mov eax, edx
mov dword [edi + 0x18], ecx
xor eax, ecx
mov dword [edi + 0x1c], eax
mov edi, 0x5e1764
lea esi, [esi + 0x10]
mov ecx, dword [esi + 8]
mov eax, ecx
shr eax, 8
and eax, ebx
mov edx, dword [eax*4 + 0x5e2890]
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
and eax, ebx
mov eax, dword [eax*4 + 0x5e2c90]
and eax, 0xff000000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5e3090]
xor edx, eax
movzx eax, cl
mov eax, dword [eax*4 + 0x5e3490]
and eax, 0xff00
xor edx, eax
xor edx, dword [esi - 4]
xor edx, dword [edi]
add edi, 4
mov dword [esi + 0xc], edx
mov eax, dword [esi]
xor eax, edx
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 4]
xor ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 8]
xor eax, ecx
mov dword [esi + 0x18], eax
cmp edi, 0x5e1788
jne 0x4025cb
pop esi
xor eax, eax
pop ebx
jmp 0x40264d
or eax, 0xffffffff
pop edi
pop ebp
ret