joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020330
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x1005f010]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
xorps xmm1, xmm1
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
push edi
mov edi, edx
call fcn.100201f0
cmp dword [eax + 0x14], 0x10
jb 0x10020362
mov eax, dword [eax]
push ebx
push 0x20
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x100203ab
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100203a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100203a1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100434cb
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
mov ecx, dword [esp + 0x50]
add esp, 4
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004305e
mov esp, ebp
pop ebp
ret

Function at 0x10020470
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x48
mov eax, dword [0x1005f010]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [esp + 0x58]
mov ebx, edx
mov edx, dword [esp + 0x54]
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.10024010
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x2c]
push esi
push 0x20
push ecx
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x100204ed
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100204e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100204e3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100434cb
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004305e
add esp, 0x48
ret
Function at 0x100264b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1005f010]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
mov dword [0x10110b5c], 0
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call fcn.1001cf00
mov eax, dword [esp + 0x26]
cmp eax, 0xffffffff
je 0x10026514
test eax, 0x68000
jne 0x10026514
mov eax, dword [esp + 0x22]
test eax, eax
je 0x100265a0
cmp eax, 5
je 0x10026564
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call fcn.1001cf00
mov eax, dword [esp + 0x26]
cmp eax, 0xffffffff
je 0x10026548
test eax, 0x68000
jne 0x10026548
mov ecx, dword [esp + 0x22]
jmp 0x1002654b
or ecx, 0xffffffff
mov eax, dword [0x10110b5c]
add eax, ecx
add esi, eax
mov dword [0x10110b5c], eax
cmp eax, 5
jl 0x100264d5
jmp 0x10026571
mov eax, dword [0x10110b5c]
add eax, 4
mov dword [0x10110b5c], eax
push eax
call fcn.10043705
add esp, 4
mov dword [0x10110b64], eax
mov dword [0x10110b60], edi
push 0x40
push 0x3000
push dword [0x10110b5c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100265b5
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004305e
mov esp, ebp
pop ebp
ret 8
push dword [0x10110b5c]
push edi
push dword [0x10110b64]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [0x10110b5c]
push dword [0x10110b64]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [0x10110b5c]
mov eax, edi
sub eax, esi
mov byte [esp + 0x20], 0xe9
sub eax, 5
add esp, 0xc
mov dword [esp + 0x15], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov al, byte [esp + 0x18]
mov byte [ecx + esi + 4], al
lea eax, [esp + 0x1c]
push eax
push 0x40
push dword [0x10110b5c]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [0x10110b5c], 5
mov cl, 5
jle 0x10026641
mov eax, 5
nop dword [eax + eax]
inc cl
mov byte [eax + edi], 0x90
movzx eax, cl
cmp eax, dword [0x10110b5c]
jl 0x10026630
mov eax, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
mov dword [esp + 0x15], eax
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov al, byte [esp + 0x18]
mov byte [edi + 4], al
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push dword [0x10110b5c]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1004305e
mov esp, ebp
pop ebp
ret 8

Function at 0x1002b6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov ecx, 0x1f
xor eax, eax
nop
mov dl, byte [edi + eax + 0x19afbfa7]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1002b6fd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x1002b6e0
pop edi
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
ret 4
Function at 0x1002b8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov ecx, 0x2f
xor eax, eax
nop
mov dl, byte [edi + eax + 0x76ec5c90]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1002b8fd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xb
jl 0x1002b8e0
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
ret 4

Function at 0x1002b910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov ecx, 0xc5
xor eax, eax
nop
mov dl, byte [edi + eax - 0x41f135cf]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1002b93d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xb
jl 0x1002b920
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
ret 4

Function at 0x1002bab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
mov ecx, 0x8a
xor eax, eax
nop
mov dl, byte [edi + eax - 0x411d0f9e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
and ecx, 0x800000ff
jns 0x1002badd
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1002bac0
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
ret 4
Function at 0x1002d230
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x10]
push ebx
push ebp
push esi
mov ebp, dword [edx*4 + 0x10111738]
mov ebx, ecx
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
push ecx
lea eax, [ebp + 0x1b]
mov dword [esp + 0x20], ebp
mov dword [edx*4 + 0x10111738], eax
mov eax, esp
mov esi, dword [edx*4 + 0x10111730]
mov dword [esp + 0x28], esi
mov dword [eax], 0xffffffff
lea eax, [ebp + 0x32]
push eax
lea eax, [esi + 0xf]
push eax
push 1
push 0
push 0x10110b59
call fcn.10026d40
add esp, 0x1c
lea edi, [ebp + 0x27]
cmp byte [0x10111d4f], 0
lea eax, [esi + 0x9f]
je 0x1002d2d6
mov ecx, dword [0x10111c30]
cmp ecx, eax
jle 0x1002d2d6
add eax, 0x81
cmp eax, ecx
jle 0x1002d2d6
mov ecx, dword [0x10111c34]
cmp ecx, edi
jle 0x1002d2d6
lea eax, [edi + 0x11]
cmp eax, ecx
jle 0x1002d2d6
cmp byte [ebx + 0x18], 0
jne 0x1002d2d6
cmp byte [ebx + 0x19], 0
jne 0x1002d2d6
mov byte [ebx + 0x18], 1
mov ebx, dword [esp + 0x28]
mov byte [ebx], 1
jmp 0x1002d2da
mov ebx, dword [esp + 0x28]
mov ecx, dword [0x10111b90]
add esi, 0xa4
push ecx
mov eax, esp
mov dword [eax], 0xff000000
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10111b90]
lea eax, [edi + 0x17]
push eax
lea eax, [esi + 0x69]
push eax
mov edx, dword [ecx]
push edi
push esi
mov eax, dword [edx + 0x30]
call eax
mov ecx, dword [0x10111b90]
lea edi, [ebp + 0x28]
mov esi, dword [esp + 0x20]
push ecx
mov eax, esp
add esi, 0xa5
mov dword [eax], 0xff1b1b1b
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
mov ecx, dword [0x10111b90]
lea eax, [edi + 0x15]
push eax
lea eax, [esi + 0x67]
push eax
mov edx, dword [ecx]
push edi
push esi
mov eax, dword [edx + 0x30]
call eax
cmp byte [ebx], 1
jne 0x1002d3ad
xor esi, esi
mov ebp, 0x10053438
mov ebx, 0x10104128
xor edi, edi
nop word [eax + eax]
cmp esi, 0x7c
mov eax, 0x10104128
cmovbe eax, ebx
cmp dword [eax + 0x14], 0x10
jb 0x1002d373
mov eax, dword [eax]
cmp eax, 0x100515cc
je 0x1002d385
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1002d396
add edi, 0x18
inc esi
add ebx, 0x18
cmp edi, 0xba0
jb 0x1002d360
jmp 0x1002d3d2
mov eax, dword [esp + 0x24]
mov dword [eax], esi
mov eax, dword [esp + 0x28]
mov byte [eax], 0
mov eax, dword [esp + 0x14]
mov byte [eax + 0x18], 0
jmp 0x1002d3d2
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
cmp eax, 0x7c
jbe 0x1002d3bf
mov ebp, 0x10104128
jmp 0x1002d3c9
lea eax, [eax + eax*2]
lea ebp, [eax*8 + 0x10104128]
cmp dword [ebp + 0x14], 0x10
jb 0x1002d3d2
mov ebp, dword [ebp]
push ebp
push 0x10053428
push ecx
mov eax, esp
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0x2c
push eax
mov eax, dword [esp + 0x30]
add eax, 0xd8
push eax
push 0
push 1
push 0x10110b59
call fcn.10026d40
add esp, 0x20
inc dword [0x102fe8f4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x10031680
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
push edi
call fcn.100314e0
mov ecx, dword [0x10111a70]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x100316c2
cmp byte [0x1010e7bc], 0
je 0x100316c2
push dword [0x1010e42c]
push dword [0x1010e428]
push dword [0x1010e424]
push dword [0x1010e420]
call fcn.10030c80
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2d
call esi
test al, 1
je 0x100316e1
cmp byte [0x10110b5b], 0
sete al
mov byte [0x10110b5b], al
jmp 0x100316e6
mov al, byte [0x10110b5b]
test al, al
je 0x100318b3
push 1
call esi
test al, 1
je 0x100316ff
mov byte [0x10111d4f], 1
jmp 0x1003170f
push 1
call esi
and al, 1
neg al
sbb al, al
and byte [0x10111d4f], al
push 2
call esi
test al, 1
je 0x10031720
mov byte [0x10111d4d], 1
jmp 0x10031730
push 2
call esi
and al, 1
neg al
sbb al, al
and byte [0x10111d4d], al
push 1
call esi
test ax, ax
je 0x10031742
mov byte [0x10111d61], 1
jmp 0x10031751
push 1
call esi
neg ax
sbb al, al
and byte [0x10111d61], al
push 2
call esi
test ax, ax
je 0x10031763
mov byte [0x10111d4e], 1
jmp 0x10031772
push 2
call esi
neg ax
sbb al, al
and byte [0x10111d4e], al
cmp byte [0x1010e84c], 0
je 0x1003179b
sub esp, 0x18
mov ecx, esp
push 0x1010e878
call fcn.10031940
mov ecx, 0x10110b48
call fcn.10020d50
mov byte [0x1010e84c], 0
cmp byte [0x1010e84b], 0
je 0x100317c4
sub esp, 0x18
mov ecx, esp
push 0x1010e878
call fcn.10031940
mov ecx, 0x10110b48
call fcn.10022490
mov byte [0x1010e84b], 0
push dword [0x1010e41c]
mov ecx, 0x10111678
push dword [0x1010e418]
push dword [0x1010e414]
push dword [0x1010e410]
call fcn.1002e800
mov al, byte [0x1010eeb4]
push ecx
mov ecx, esp
push ecx
mov byte [ecx], al
mov al, byte [0x1010eeb5]
mov byte [ecx + 1], al
mov al, byte [0x1010eeb6]
mov byte [ecx + 2], al
mov al, byte [0x1010eeb7]
mov byte [ecx + 3], al
mov ecx, esp
mov al, byte [0x1010eeac]
mov byte [ecx], al
mov al, byte [0x1010eead]
mov byte [ecx + 1], al
mov al, byte [0x1010eeae]
mov byte [ecx + 2], al
mov al, byte [0x1010eeaf]
mov byte [ecx + 3], al
call fcn.1003e4d0
mov esi, dword [0x1010e420]
xor eax, eax
mov edx, dword [0x1010e424]
test esi, esi
mov edi, dword [0x10111740]
mov ebx, dword [0x10111674]
cmovs esi, eax
test edx, edx
mov ecx, ebx
cmovs edx, eax
sub ecx, dword [0x1010e428]
mov eax, edi
sub eax, dword [0x1010e42c]
cmp esi, eax
cmovg esi, eax
cmp edx, ecx
mov dword [0x1010e420], esi
cmovg edx, ecx
mov ecx, dword [0x1010e410]
xor eax, eax
mov dword [0x1010e424], edx
test ecx, ecx
cmovs ecx, eax
mov eax, dword [0x1010e414]
xor edx, edx
test eax, eax
cmovs eax, edx
sub edi, dword [0x1010e418]
sub ebx, dword [0x1010e41c]
cmp ecx, edi
cmovg ecx, edi
cmp eax, ebx
mov dword [0x1010e410], ecx
cmovg eax, ebx
mov dword [0x1010e414], eax
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1003b960
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
mov dword [edi + 0xd60], 0
mov dword [0x2438ff74], 0xffffffff
mov dword [0x243b2ef8], 0
cmp byte [0x1010e841], 0
je 0x1003b9a5
push 0x45
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1003b9a5
cmp byte [0x1010e841], 0
jne 0x1003b9d5
mov ecx, dword [esi + 8]
cmp ecx, dword [esi]
jne 0x1003b9c8
mov eax, dword [esi + 4]
inc eax
add ecx, eax
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [edi + 0xe08], ecx
mov eax, dword [esi + 8]
pop edi
mov dword [esi], eax
pop esi
ret 8
mov dword [esi + 4], 0
mov dword [edi + 0xe08], ecx
mov eax, dword [esi + 8]
pop edi
mov dword [esi], eax
pop esi
ret 8
Function at 0x1003df70
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x1005f010]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x1003e00c
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.1003d8d0
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x1003e01b
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.1003d8d0
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.1004305e
add esp, 0x68
ret

Function at 0x1003e0e0
Capabilities:
Parse pe header

Disassembly:
push ecx
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x1003e0ed
mov eax, dword [eax]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x1003e1a5
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1003e1a5
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x1003e1a5
mov eax, dword [eax + esi + 0x50]
xor ebx, ebx
mov ebp, dword [esp + 0x1c]
mov edx, ebp
lea eax, [esi + eax*4]
cmp dword [ebp + 0x14], 0x10
mov dword [esp + 0x10], eax
jb 0x1003e13c
mov edx, dword [ebp]
cmp esi, eax
jae 0x1003e1a5
mov ecx, 0x3f3f
mov al, byte [edx]
mov byte [esp + 0x18], al
cmp al, 0x3f
je 0x1003e1b4
movzx ecx, al
sub al, 0x30
cmp al, 9
ja 0x1003e15d
add ecx, 0xffffffd0
jmp 0x1003e163
and ecx, 0xffffffdf
sub ecx, 0x37
mov al, byte [edx + 1]
movzx edi, al
sub al, 0x30
cmp al, 9
ja 0x1003e174
add edi, 0xffffffd0
jmp 0x1003e17a
and edi, 0xffffffdf
sub edi, 0x37
movzx eax, byte [esi]
shl ecx, 4
or ecx, edi
cmp eax, ecx
je 0x1003e1af
test ebx, ebx
je 0x1003e199
cmp dword [ebp + 0x14], 0x10
mov esi, ebx
mov edx, ebp
jb 0x1003e197
mov edx, dword [ebp]
xor ebx, ebx
mov ecx, 0x3f3f
inc esi
cmp esi, dword [esp + 0x10]
jb 0x1003e145
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov ecx, 0x3f3f
test ebx, ebx
mov eax, esi
cmovne eax, ebx
cmp byte [edx + 2], 0
mov ebx, eax
je 0x1003e1e0
cmp word [edx], cx
je 0x1003e1d4
cmp byte [esp + 0x18], 0x3f
mov eax, 2
je 0x1003e1d9
mov eax, 3
add edx, eax
cmp byte [edx], 0
jne 0x1003e19e
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 8
Function at 0x409130
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push 0x200
lea eax, [ebp - 0x204]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
jne 0x409171
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x204]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40917c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
mov eax, edi
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push esi
call sub.advapi32.dll_RegQueryValueW
test eax, eax
jne 0x4091ca
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x208]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a0d8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a212
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
mov eax, ebx
call sub.RtlVcl160.bpl__System__GetMem_qqri
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
test ebx, ebx
jbe 0x41a1e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41a220
push esi
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
shr edx, 0x10
mov word [ebp - 0x16], dx
movzx edx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x18], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1a], dx
movzx eax, word [eax + 0xc]
and ax, 0xffff
mov word [ebp - 0x1c], ax
mov edx, ebx
mov eax, esi
call sub.RtlVcl160.bpl__System__FreeMem_qqrpv
lea edx, [ebp - 0x20]
movzx eax, word [ebp - 0x16]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x20]
push 0x41a230
lea edx, [ebp - 0x24]
movzx eax, word [ebp - 0x18]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x24]
push 0x41a230
lea edx, [ebp - 0x28]
movzx eax, word [ebp - 0x1a]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x28]
push 0x41a230
lea edx, [ebp - 0x2c]
movzx eax, word [ebp - 0x1c]
call sub.RtlVcl160.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov edx, 7
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
jmp 0x41a1ef
mov eax, dword [ebp - 8]
mov edx, 0x41a240
call sub.RtlVcl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a219
lea eax, [ebp - 0x2c]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
ret
Function at 0x42fcb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.GetPrimaryTokenFromExplorer:
lea ecx, [ebp - 0x22c]
call main
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 2
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call main
lea ecx, [ebp - 0x10]
call main
mov dword [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.00414840
add esp, 0xc
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x42fd79
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x10]
call main
push 0x4461e0
lea ecx, [ebp - 0x10]
call main
jmp 0x42fde3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x228], eax
push 0x4461fc
lea ecx, [ebp - 0x230]
call main
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x230]
push eax
push 1
call main
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call main
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call main
mov eax, dword [ebp - 0x234]
jmp 0x42fe19
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call main
add esp, 0xc
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call main
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret
Function at 0x4081f0
Capabilities:
Parse pe header

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

Function at 0x413f46
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x413f81
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x413f68
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x413f79
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x413f83
inc edi
add eax, 0x28
cmp edi, esi
jb 0x413f5e
xor eax, eax
pop edi
pop esi
ret

Function at 0x4142ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.00413ecb
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00413f16
push eax
push esi
push dword [ebp + 8]
call fcn.00413ecb
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
pop ebp
xlatb

Function at 0x418680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4186ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4186ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401d2b
Capabilities:
Parse pe header

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