joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10012cf0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
cmp esi, 0x201
jae 0x10012b10
jmp 0x10012afe
jbe 0x10012b96
cmp esi, 0x201
jae 0x10012b10
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x444]
mov edi, esi
jmp 0x10012b41
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x10012b35
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.10032e10
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x10012b65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10012bf9
cmp esi, edi
jne 0x10012af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10012c18
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x10012afe
jmp 0x10012b10
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x10012c35
lea eax, [ebp - 0x44]
push esi
push ebx
push eax
call fcn.10010620
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x10012be3
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.10004d70
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10012bd3
jmp 0x10012be3
mov dword [ebp - 0x10], 0
push 0x1009c6bc
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.10033190
add esp, 0xc
jmp 0x10012c44
push 0x1009c684
push eax
push esi
call fcn.10033510
add esp, 0xc
ud2
Function at 0x10022010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10022068
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x10022060
cmp ebx, ebp
ja 0x100220d5
cmp ebp, dword [esp + 0x1c]
ja 0x100220e1
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x10022062
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x10022050
jmp 0x100220be
ja 0x10022068
cmp edx, edi
mov ebx, ebp
jne 0x10022025
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100220c2
mov esi, dword [esp + 0x20]
cmp eax, 1
movzx ecx, cx
mov ebx, esi
lea edi, [esi + eax]
mov al, 1
sbb ebx, 0xffffffff
nop word cs:[eax + eax]
nop
movzx edx, byte [esi]
test dl, dl
jns 0x100220a7
cmp ebx, edi
je 0x100220cb
movzx esi, byte [ebx]
and edx, 0x7f
inc ebx
shl edx, 8
or edx, esi
mov esi, ebx
sub ecx, edx
js 0x100220c4
xor al, 1
xor ebx, ebx
cmp esi, edi
setne bl
add ebx, esi
cmp esi, edi
jne 0x10022090
jmp 0x100220c4
xor eax, eax
jmp 0x100220c4
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1009f0f8
call fcn.10033080
push 0x1009f108
push ebp
push ebx
call fcn.10033530
push 0x1009f108
push dword [esp + 0x20]
push ebp
call fcn.10033510

Function at 0x10029062
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100290a1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100290a1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100290a1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100290a1
cmp dword [ecx + 0x74], 0xe
jbe 0x100290a1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1002a10f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a0c58
push 0x100a0c50
push str.FlsAlloc
push 0x1f
call fcn.1002a02b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002a143
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034194]
call esi
jmp 0x1002a149
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002a18d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a0c68
push 0x100a0c60
push str.FlsGetValue
push 0x21
call fcn.1002a02b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002a1c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10034194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002a1cc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a0c70
push 0x100a0c68
push str.FlsSetValue
push 0x22
call fcn.1002a02b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002a206
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10034194]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1002c9be
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1002ca5b
push ebx
push esi
call fcn.1002c987
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1002c91b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002ca08
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ca5a
push edi
push eax
call fcn.1002aa7f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002ca28
call fcn.10029ed8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1002ca59
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002c91b
add esp, 0x20
test eax, eax
jne 0x1002ca47
push edi
call fcn.10029ed8
jmp 0x1002ca4f
push ebx
call fcn.10029ed8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1002dfd1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100bc790]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002e011
cmp byte [ebx], 0xa
jne 0x1002e011
or byte [edi + eax + 0x28], 4
jmp 0x1002e016
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1002e115
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002e0f8
inc eax
cmp dl, 0xd
je 0x1002e042
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1002e068
cmp eax, ecx
jae 0x1002e076
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1002e02a
jmp 0x1002e115
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002e0f3
cmp dword [ebp - 0x10], 0
je 0x1002e0f3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100bc790]
test byte [eax + edi + 0x28], 0x48
je 0x1002e0cd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1002e0b8
mov byte [esi], dl
jmp 0x1002e0c9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100bc790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1002e115
cmp byte [ebp - 1], 0xa
jne 0x1002e0dc
cmp esi, ebx
jne 0x1002e0dc
mov byte [esi], 0xa
jmp 0x1002e114
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1002ff18
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1002e115
mov byte [esi], 0xd
jmp 0x1002e114
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100bc790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1002e112
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1002e115
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1002e11e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100bc790]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1002e164
cmp word [ebx], dx
jne 0x1002e164
or byte [eax + edi + 0x28], 4
jmp 0x1002e169
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1002e2cc
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1002e2ac
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1002e1aa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1002e1e0
cmp eax, edx
jae 0x1002e1ee
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1002e185
jmp 0x1002e2cc
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002e2a7
cmp dword [ebp - 0x18], 0
je 0x1002e2a7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100bc790]
test byte [eax + edi + 0x28], 0x48
je 0x1002e27d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1002e241
mov word [esi], cx
jmp 0x1002e278
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100bc790]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100bc790]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100bc790]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1002e2cc
pop eax
cmp word [ebp - 4], ax
jne 0x1002e28d
cmp esi, ebx
jne 0x1002e28d
mov word [esi], ax
jmp 0x1002e2c9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1002ff18
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1002e2cc
push 0xd
pop eax
jmp 0x1002e288
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100bc790]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1002e2c6
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1002e2cc
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10032080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100320ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100320ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100332a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x100332f1
cmp eax, 1
jne 0x1003336e
mov dword [esp], 0x1009e224
jmp 0x100332f8
mov dword [esp], 0x1009e222
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x1003338a
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x1009e260
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x1001fc70
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x1001fc50
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x1001fc50
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 3
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100330b0
mov edx, 7
mov dword [esp], 0x1009e226
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x1003330d
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 0x50]
mov dword [esp + 0x38], 0x1009e294
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 8]
mov dword [esp + 0x1c], 0x1001fc70
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x1001ec80
lea esi, [esp + 0x10]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x1001fc50
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x1001fc50
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100330b0
int3
Function at 0x401207
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], edx
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [0x41a2f8]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41a2fc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x28], eax
call fcn.00401200
mov ebx, dword [ebp - 4]
add ebx, 0x23f
cmp dword [0xae22ec], 0x14
jne 0x401261
push edx
lea eax, [ebp - 0x830]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a300]
mov edx, dword [0x41a304]
mov esi, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
mov dword [ebp - 4], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xae22ec], 0xfa9
mov dword [ebp - 0x10], eax
mov eax, dword [0xae22e8]
cmove eax, dword [ebp - 4]
and dword [ebp - 4], 0
cmp dword [0xae22ec], 0x3eb
mov dword [0xae22e8], eax
mov eax, dword [0xae2240]
cmove eax, dword [ebp - 4]
mov dword [0xae2240], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], edx
and dword [ebp - 0xc], 0
mov dword [0xae22e4], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub esi, eax
mov dword [ebp - 0x14], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
lea eax, [ebx + esi]
mov edx, esi
lea ebx, [ebx + 0x61c88647]
shr edx, cl
add edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
xor edx, eax
mov eax, dword [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0x24]
sub edi, eax
mov dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
jne 0x40127d
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cb9e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419f20]
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.00408d4c
mov dword [ebp - 0x14], eax
cmp dword [0x43dadc], esi
jne 0x40cc91
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cc1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cd71
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40cd71
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cd71
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43dadc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43dae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43dae4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43daec], eax
test eax, eax
je 0x40cc8e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43dae8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ccb6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cca9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cccb
push 4
pop eax
jmp 0x40cd73
cmp dword [ebp - 0x14], esi
je 0x40cccb
push dword [0x43dadc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ccb0
mov eax, dword [0x43dae8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cd29
cmp dword [0x43daec], edi
je 0x40cd29
push eax
call ebx
push dword [0x43daec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cd29
test eax, eax
je 0x40cd29
call ecx
test eax, eax
je 0x40cd1e
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 0x40cd1e
test byte [ebp - 8], 1
jne 0x40cd29
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cd59
mov eax, dword [0x43dae0]
cmp eax, edi
je 0x40cd56
push eax
call ebx
test eax, eax
je 0x40cd56
call eax
mov esi, eax
test esi, esi
je 0x40cd56
mov eax, dword [0x43dae4]
cmp eax, edi
je 0x40cd56
push eax
call ebx
test eax, eax
je 0x40cd56
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43dadc]
call ebx
test eax, eax
je 0x40cd71
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40cd73
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042f8
mov esp, ebp
pop ebp
ret
Function at 0x51a6c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbd000]
mov dword [edi + 0xcf740], 0xae53712b
push edi
jmp 0x51a6ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51a6f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a6e0
mov eax, 1
add ebx, ebx
jne 0x51a703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51a714
jne 0x51a733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a733
dec eax
add ebx, ebx
jne 0x51a720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51a6f8
add ebx, ebx
jne 0x51a72f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51a785
xor ecx, ecx
sub eax, 3
jb 0x51a74b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51a7ba
sar eax, 1
mov ebp, eax
jmp 0x51a756
add ebx, ebx
jne 0x51a756
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a724
inc ecx
add ebx, ebx
jne 0x51a764
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51a724
add ebx, ebx
jne 0x51a771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51a766
jne 0x51a782
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51a766
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51a7a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51a796
jmp 0x51a6e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51a7a4
add edi, ecx
jmp 0x51a6e6
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51a7c2
cmp byte [edi], 0x11
jne 0x51a7c2
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 0x51a7c7
lea edi, [esi + 0x113000]
mov eax, dword [edi]
or eax, eax
je 0x51a83f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14f1ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14f328]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51a7f4
mov ecx, edi
jns 0x51a823
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 + 0x14f32c]
or eax, eax
je 0x51a839
mov dword [ebx], eax
add ebx, 4
jmp 0x51a811
call dword [esi + 0x14f33c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51a870
cmp al, 0xef
ja 0x51a863
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51a845
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51a852
mov ebp, dword [esi + 0x14f330]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x51a8a4
sub esp, 0xffffff80
jmp 0x420577