joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002bba1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002bb1d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002bd10
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002bd10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002bcc5
jg 0x1002bbfd
test eax, eax
je 0x1002bcbb
push 1
push 0x1000
call fcn.1001ec89
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002bc20
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002bcb2
push 0x8000
push ebx
call fcn.1002ba4e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002bc49
jg 0x1002bc44
cmp ecx, 0x1000
jb 0x1002bc49
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10020425
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002bc8e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1002bc44
jl 0x1002bc75
test ecx, ecx
jne 0x1002bc36
push dword [ebp - 0xc]
push ebx
call fcn.1002ba4e
push esi
call fcn.1001f11b
add esp, 0xc
xor ebx, ebx
jmp 0x1002bd1e
cmp byte [edi + 0x24], 0
je 0x1002bca5
cmp dword [edi + 0x20], 5
jne 0x1002bca5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002bcb0
mov ebx, dword [edi + 0x18]
jmp 0x1002bcb2
xor ebx, ebx
push esi
call fcn.1001f11b
pop ecx
jmp 0x1002bd1e
test ecx, ecx
jg 0x1002bc87
jl 0x1002bcc5
test eax, eax
jae 0x1002bc87
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1002372d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002bce5
cmp byte [edi + 0x1c], 0
je 0x1002bc87
jmp 0x1002bd16
push ebx
call fcn.10026bbc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002bc87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002bd1e
cmp byte [edi + 0x1c], 0
je 0x1002bd1b
mov ebx, dword [edi + 0x18]
jmp 0x1002bd1e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1002372d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002dac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002daed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002daed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x43b656
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
add ebx, eax
add eax, 0xd1363063
add ebx, eax
call fcn.0043b6ab
sub ebx, eax
xor dword [edi], esi
sub ebx, eax
sub ebx, eax
sub ebx, 1
add edi, 1
and eax, eax
sub eax, 0x9991d863
cmp edi, ecx
jne fcn.0043b656
push 0x1bf12921
pop ebx
and eax, ebx
push eax
mov ebx, dword [esp]
add esp, 4
ret
Function at 0x4104c0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x410648
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x4104ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4104f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4104e0
mov eax, 1
add ebx, ebx
jne 0x410503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4104f8
jne 0x410514
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4104f8
xor ecx, ecx
sub eax, 3
jb 0x410528
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41059a
mov ebp, eax
add ebx, ebx
jne 0x410533
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x410540
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x410564
inc ecx
add ebx, ebx
jne 0x410550
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x410545
jne 0x410561
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x410545
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x410584
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x410575
jmp 0x4104e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x410584
add edi, ecx
jmp 0x4104e6
pop esi
mov edi, esi
mov ecx, 0x3bc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4105a2
cmp byte [edi], 1
jne 0x4105a2
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 eax, ebx
loop 0x4105a7
lea edi, [esi + 0xe000]
mov eax, dword [edi]
or eax, eax
je 0x410616
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x104b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4105d4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x104bc]
or eax, eax
je 0x410610
mov dword [ebx], eax
add ebx, 4
jmp 0x4105f1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x410647
cmp al, 0xef
ja 0x41063a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41061c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x410629
popal
jmp 0x4081b8
Function at 0x420826
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440480]
jne 0x420830
repz ret
jmp fcn.004253b1

Function at 0x432a11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440480]
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.00426493
and dword [ebp - 0x14], 0
cmp dword [0x44395c], 0
mov dword [ebp - 0x18], eax
jne 0x432ac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x432b6c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x432b6c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44395c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x443960], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x443964], eax
call edi
push eax
call esi
mov dword [0x44396c], eax
test eax, eax
je 0x432ac4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x443968], eax
mov eax, dword [0x443968]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x432b1d
cmp dword [0x44396c], ecx
je 0x432b1d
push eax
call esi
push dword [0x44396c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x432b1d
test ebx, ebx
je 0x432b1d
call edi
test eax, eax
je 0x432b14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x432b14
test byte [ebp - 8], 1
jne 0x432b1d
or dword [ebp + 0x10], 0x200000
jmp 0x432b50
mov eax, dword [0x443960]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x432b50
mov eax, dword [0x443964]
cmp eax, dword [ebp - 0x18]
je 0x432b50
push eax
call esi
test eax, eax
je 0x432b50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44395c]
call esi
test eax, eax
je 0x432b6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x432b6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420826
leave
ret

Function at 0x401974
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x10032d88]
jne 0x10003687
repz ret
jmp fcn.10004fc3

Function at 0x100050c9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100019d4
and dword [ebp - 4], 0
cmp dword [0x10034384], 0
mov ebx, eax
jne 0x1000517a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000522b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000522b
push eax
call fcn.10001962
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10034384], eax
call esi
push eax
call fcn.10001962
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10034388], eax
call esi
push eax
call fcn.10001962
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1003438c], eax
call esi
push eax
call fcn.10001962
pop ecx
mov dword [0x10034394], eax
test eax, eax
je 0x1000517a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001962
pop ecx
mov dword [0x10034390], eax
mov eax, dword [0x10034390]
cmp eax, ebx
je 0x100051d2
cmp dword [0x10034394], ebx
je 0x100051d2
push eax
call fcn.100019dd
push dword [0x10034394]
mov esi, eax
call fcn.100019dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100051d2
test edi, edi
je 0x100051d2
call esi
test eax, eax
je 0x100051c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100051c9
test byte [ebp - 0xc], 1
jne 0x100051d2
or dword [ebp + 0x10], 0x200000
jmp 0x1000520b
mov eax, dword [0x10034388]
cmp eax, ebx
je 0x1000520b
push eax
call fcn.100019dd
pop ecx
test eax, eax
je 0x1000520b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000520b
mov eax, dword [0x1003438c]
cmp eax, ebx
je 0x1000520b
push eax
call fcn.100019dd
pop ecx
test eax, eax
je 0x1000520b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10034384]
call fcn.100019dd
pop ecx
test eax, eax
je 0x1000522b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000522d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100061e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x100324a8], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov byte [0x100324ac], 0
mov dword [0x1003249c], 0x223a
mov dword [0x100324a4], 0
jmp 0x10006236
mov dword [0x100324a4], 0
jmp 0x10006267
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x1003249c], 0x23f6
mov eax, dword [0x100324a4]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100324a4]
add eax, 1
mov dword [0x100324a4], eax
cmp eax, 0x100
jl 0x10006236
jmp 0x10006222
mov eax, 0x100
mov dword [0x100324b0], 0
mov ecx, dword [0x100324a8]
mov edx, dword [0x100324a4]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x100324b0], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x100324a8], edx
mov dword [0x1003249c], 0x9d4
mov edx, dword [0x100324a4]
mov cl, byte [esi + edx]
mov byte [0x100324ac], cl
mov dword [0x1003249c], 0xfffff859
mov edx, dword [0x100324a8]
mov cl, byte [esi + edx]
mov edx, dword [0x100324a4]
mov byte [esi + edx], cl
mov dword [0x1003249c], 0x1f37
mov cl, byte [0x100324ac]
mov edx, dword [0x100324a8]
mov byte [esi + edx], cl
mov edx, dword [0x1003249c]
add edx, 0xfffffbe3
mov dword [0x1003249c], edx
mov edx, dword [0x100324a4]
add edx, 1
mov dword [0x100324a4], edx
cmp edx, 0x100
jl 0x10006267
jmp 0x1000622e

Function at 0x10006a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.10006a10]
mov ecx, 0x2a
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10006a43
mov eax, 0x1e0d
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [ecx], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jne 0x10006a29
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x10006a29
mov eax, dword [ebp - 0x10]
mov dword [0x1003249c], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
Function at 0x10006c20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x100324a4], 0
mov dword [0x100324a8], 0
mov dword [0x100324b4], 0
mov dword [0x100324a0], 0x1d00
mov dword [0x1003249c], 0x24ab
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x10006d82
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, eax
add edx, 1
mov esi, dword [0x100324a4]
add esi, 1
mov dword [ebp - 0x24], eax
mov eax, esi
mov dword [ebp - 0x28], edx
cdq
idiv ecx
mov dword [0x100324a4], edx
mov dword [0x1003249c], 0x11eb
mov esi, dword [0x100324a8]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x100324a8], edx
mov ecx, dword [0x1003249c]
add ecx, 0x1cfe
mov dword [0x100324a0], ecx
mov ecx, dword [0x100324a4]
mov bl, byte [edi + ecx]
mov byte [0x100324ac], bl
mov dword [0x1003249c], 0x7d5
mov ecx, dword [0x100324a8]
mov bl, byte [edi + ecx]
mov ecx, dword [0x100324a4]
mov byte [edi + ecx], bl
mov bl, byte [0x100324ac]
mov ecx, dword [0x100324a8]
mov byte [edi + ecx], bl
mov dword [0x100324a0], 0x2207
mov ecx, dword [0x100324a4]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x100324a8]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x100324b4], edx
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x10006c83
mov eax, dword [0x1003249c]
add eax, 0xfffff597
mov dword [0x1003249c], eax
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007210
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [0x1003249c], 0x6a9
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
mov dword [0x100324a0], 0x9a7
mov esi, dword [0x1003249c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
jmp 0x10007291
mov dword [0x100324a0], 0xfffff24c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x22], dx
mov ax, word [ebp - 0x22]
cmp ax, 0x64
je 0x10007326
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x1000737b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffbee
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], esi
je 0x100072d0
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], eax
jl 0x10007291
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [0x1003249c], ecx
mov dword [0x100324a0], 0x85f
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10007287
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10007287
mov dword [0x100324a0], 0x18d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10007260
jmp 0x10007287
mov dword [0x1003249c], 0x144b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10007287
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10007287
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff9
mov dword [ebp - 0x38], eax
mov eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x38]
cmp word [ecx + edx*2], 0x6c
mov dword [ebp - 0x28], eax
jne 0x10007287
mov eax, dword [ebp - 0x28]
add esp, 0x34
pop esi
pop ebp
ret
Function at 0x40d3d8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418418]
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.00408a8b
mov dword [ebp - 0x14], eax
cmp dword [0x812cc4], esi
jne 0x40d4cb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5ab
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5ab
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5ab
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x812cc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x812cc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x812ccc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x812cd4], eax
test eax, eax
je 0x40d4c8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x812cd0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4f0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4e3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d505
push 4
pop eax
jmp 0x40d5ad
cmp dword [ebp - 0x14], esi
je 0x40d505
push dword [0x812cc4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4ea
mov eax, dword [0x812cd0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d563
cmp dword [0x812cd4], edi
je 0x40d563
push eax
call ebx
push dword [0x812cd4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d563
test eax, eax
je 0x40d563
call ecx
test eax, eax
je 0x40d558
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 0x40d558
test byte [ebp - 8], 1
jne 0x40d563
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d593
mov eax, dword [0x812cc8]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
call eax
mov esi, eax
test esi, esi
je 0x40d590
mov eax, dword [0x812ccc]
cmp eax, edi
je 0x40d590
push eax
call ebx
test eax, eax
je 0x40d590
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x812cc4]
call ebx
test eax, eax
je 0x40d5ab
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5ad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403f8b
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d542
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call fcn.0055dd90
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4031cf
mov eax, dword [esi]
jmp 0x4031d1
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push SysReAllocStringLen
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40327a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x5bc96c
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40326e
cmp word [ebp - 0x21c], ax
jne 0x403244
xor ecx, ecx
jmp 0x40325f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403250
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00404cf0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055ab1b
mov esp, ebp
pop ebp
ret 0x10