joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401237
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [str._I2]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b2fc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b300]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b304]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xae300c]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x4012c4
push 0x418028
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xae300c]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xae3008]
cmove eax, edx
xor edx, edx
mov dword [0xae3008], eax
cmp ecx, 0x3eb
mov eax, dword [0xae2f60]
cmove eax, edx
mov dword [0xae2f60], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xae3004], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x401292
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d464
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
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.00409cee
mov dword [ebp - 0x14], eax
cmp dword [0x43e7fc], esi
jne 0x40d557
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d4e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d637
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d637
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d637
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43e7fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43e800], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43e804], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e80c], eax
test eax, eax
je 0x40d554
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43e808], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d57c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d56f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d591
push 4
pop eax
jmp 0x40d639
cmp dword [ebp - 0x14], esi
je 0x40d591
push dword [0x43e7fc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d576
mov eax, dword [0x43e808]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d5ef
cmp dword [0x43e80c], edi
je 0x40d5ef
push eax
call ebx
push dword [0x43e80c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d5ef
test eax, eax
je 0x40d5ef
call ecx
test eax, eax
je 0x40d5e4
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 0x40d5e4
test byte [ebp - 8], 1
jne 0x40d5ef
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d61f
mov eax, dword [0x43e800]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
call eax
mov esi, eax
test esi, esi
je 0x40d61c
mov eax, dword [0x43e804]
cmp eax, edi
je 0x40d61c
push eax
call ebx
test eax, eax
je 0x40d61c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43e7fc]
call ebx
test eax, eax
je 0x40d637
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d639
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042a7
mov esp, ebp
pop ebp
ret
Function at 0x7b82b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20f000]
mov dword [edi + 0x2cd47c], 0x88f013c
push edi
jmp 0x7b82da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b82e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b82d0
mov eax, 1
add ebx, ebx
jne 0x7b82f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b8304
jne 0x7b8323
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b8323
dec eax
add ebx, ebx
jne 0x7b8310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b82e8
add ebx, ebx
jne 0x7b831f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b8375
xor ecx, ecx
sub eax, 3
jb 0x7b833b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b83aa
sar eax, 1
mov ebp, eax
jmp 0x7b8346
add ebx, ebx
jne 0x7b8346
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b8314
inc ecx
add ebx, ebx
jne 0x7b8354
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b8314
add ebx, ebx
jne 0x7b8361
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b8356
jne 0x7b8372
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b8356
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b8394
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b8386
jmp 0x7b82d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b8394
add edi, ecx
jmp 0x7b82d6
pop esi
mov edi, esi
mov ecx, 0xef8c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b83b2
cmp byte [edi], 0x26
jne 0x7b83b2
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 0x7b83b7
lea edi, [esi + 0x3a7000]
mov eax, dword [edi]
or eax, eax
je 0x7b842f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3e9c9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3e9e70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b83e4
mov ecx, edi
jns 0x7b8413
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3e9e78]
or eax, eax
je 0x7b8429
mov dword [ebx], eax
add ebx, 4
jmp 0x7b8401
call dword [esi + 0x3e9e74]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b8460
cmp al, 0xef
ja 0x7b8453
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b8435
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7b8442
mov ebp, dword [esi + 0x3e9e7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x26f]
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 0x7b8494
sub esp, 0xffffff80
jmp 0x5c9f5a
Function at 0x100153e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
je 0x100154c7
push str._FreeImage_Initialise_4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx], eax
push str._FreeImage_DeInitialise_0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push str._FreeImage_GetFileTypeFromHandle_12
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
push str._FreeImage_FIFSupportsReading_4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push str._FreeImage_LoadFromHandle_16
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
push str._FreeImage_GetWidth_4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push str._FreeImage_GetHeight_4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push str._FreeImage_Unload_4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov al, 1
jmp 0x100154c9
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x1001dd50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cddb
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x100c6068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x234], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10077bf0
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 0xc]
call fcn.10015ae0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x240], eax
push 1
push 3
lea ecx, [ebp - 0x2f8]
call fcn.10015c20
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2e8]
push str.img_
push edx
call fcn.100196d0
add esp, 8
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x23c]
call fcn.100245b0
mov ecx, dword [ebp - 0x240]
push ecx
push eax
call fcn.100196d0
add esp, 8
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x2f8]
call fcn.10015b80
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
call fcn.10015ae0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x230]
call fcn.10015b30
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10019250
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f8]
call fcn.10015a70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005fd95
mov esp, ebp
pop ebp
ret 8

Function at 0x100208e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d32c
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100c6068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x21c]
call fcn.10023a90
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
mov dword [ecx], vtable.pdfcore::Pdf2WordOCRTask.1.0
mov edx, dword [ebp - 0x21c]
mov dword [edx + 4], vtable.pdfcore::Pdf2WordOCRTask.0
mov ecx, dword [ebp - 0x21c]
add ecx, 0xac
call fcn.10018bd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x21c]
mov byte [eax + 0xc4], 0
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.10077bf0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100b2c18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x21c]
add ecx, 0xac
call fcn.100242f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005fd95
mov esp, ebp
pop ebp
ret 4
Function at 0x100495b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
je 0x100495dc
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
je 0x100495f2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0
push str.TaskWorker_Stop_n
call fcn.10028d90
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x100496c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100c6068]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x400
push 0
lea eax, [ebp - 0x404]
push eax
call fcn.10077bf0
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x408], ecx
mov edx, dword [ebp - 0x408]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x3ff
lea ecx, [ebp - 0x404]
push ecx
call fcn.1004a040
add esp, 0x10
mov dword [ebp - 0x408], 0
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005fd95
mov esp, ebp
pop ebp
ret

Function at 0x10062a7d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1008d99d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008d81c

Function at 0x10093b01
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100937c1

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401cd5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42907c]
jne 0x401cdf
repz ret
jmp fcn.00402908

Function at 0x40837a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42907c]
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.00405b1d
and dword [ebp - 0x14], 0
cmp dword [0x42be64], 0
mov dword [ebp - 0x18], eax
jne 0x40842d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4084d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4084d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42be64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42be68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42be6c], eax
call edi
push eax
call esi
mov dword [0x42be74], eax
test eax, eax
je 0x40842d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42be70], eax
mov eax, dword [0x42be70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408486
cmp dword [0x42be74], ecx
je 0x408486
push eax
call esi
push dword [0x42be74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408486
test ebx, ebx
je 0x408486
call edi
test eax, eax
je 0x40847d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40847d
test byte [ebp - 8], 1
jne 0x408486
or dword [ebp + 0x10], 0x200000
jmp 0x4084b9
mov eax, dword [0x42be68]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4084b9
mov eax, dword [0x42be6c]
cmp eax, dword [ebp - 0x18]
je 0x4084b9
push eax
call esi
test eax, eax
je 0x4084b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42be64]
call esi
test eax, eax
je 0x4084d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4084d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd5
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443004]
jne 0x40100a
repz ret
jmp fcn.00401424

Function at 0x406ecc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x443004]
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.00404a1c
and dword [ebp - 0x14], 0
cmp dword [0x445d78], 0
mov dword [ebp - 0x18], eax
jne 0x406f7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407027
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407027
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x445d78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x445d7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x445d80], eax
call edi
push eax
call esi
mov dword [0x445d88], eax
test eax, eax
je 0x406f7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x445d84], eax
mov eax, dword [0x445d84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406fd8
cmp dword [0x445d88], ecx
je 0x406fd8
push eax
call esi
push dword [0x445d88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406fd8
test ebx, ebx
je 0x406fd8
call edi
test eax, eax
je 0x406fcf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406fcf
test byte [ebp - 8], 1
jne 0x406fd8
or dword [ebp + 0x10], 0x200000
jmp 0x40700b
mov eax, dword [0x445d7c]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40700b
mov eax, dword [0x445d80]
cmp eax, dword [ebp - 0x18]
je 0x40700b
push eax
call esi
test eax, eax
je 0x40700b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445d78]
call esi
test eax, eax
je 0x407027
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407029
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0xddce6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xddce76
pushal
call 0xddce7c
pop ebp
sub ebp, 0x10
sub ebp, 0x9dce6c
jmp 0xddce92
mov eax, 0x9dce6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0xe79e0445
xor byte [eax], dl
inc eax
dec ecx
jne 0xddcea9
jmp 0xddcebc
into
mov dh, cl
int3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx