joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f330
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
call fcn.0047ee50
lea edi, [eax*4]
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0xc], eax
test edi, edi
jle 0x47f3a5
lea edx, [esi + edi*4 + 8]
lea ecx, [esi + 8]
push ebp
mov eax, dword [edx - 8]
mov ebp, dword [ecx - 8]
mov dword [ecx - 8], eax
mov dword [edx - 8], ebp
mov ebp, dword [edx - 4]
mov eax, dword [ecx - 4]
mov dword [ecx - 4], ebp
mov ebp, dword [edx]
mov dword [edx - 4], eax
mov eax, dword [ecx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [ecx + 4], ebp
mov dword [edx + 4], eax
add ebx, 4
sub edi, 4
add ecx, 0x10
sub edx, 0x10
cmp ebx, edi
jl 0x47f364
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 1
jle 0x47f560
lea edx, [eax - 1]
mov ecx, dword [esi + 0x10]
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4be150]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be950]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be550]
movzx ebx, byte [esi + 5]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4bed50]
mov ecx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4be150]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be950]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be550]
movzx ebx, byte [esi + 9]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4bed50]
mov ecx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4be150]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be950]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be550]
movzx ebx, byte [esi + 0xd]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4bed50]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, ecx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, 0xff
mov edi, dword [edi*4 + 0x4be150]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be950]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ecx, 0xff
mov ecx, dword [ecx*4 + str.ccccwwww]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4be550]
and ecx, 0xff
xor edi, dword [ecx*4 + 0x4bed50]
sub edx, 1
mov dword [esi + 0xc], edi
jne 0x47f3b1
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4877d0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
movdqa xmm0, xmmword [eax]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
movdqa xmm1, xmmword [esi]
mov edx, 1
cmp ecx, edx
push edi
mov edi, dword [ebp + 0x14]
pxor xmm0, xmm1
jle 0x487814
dec ecx
lea eax, [esi + 0x10]
lea edx, [ecx + 1]
movdqa xmm1, xmmword [eax]
add eax, 0x10
sub ecx, 1
aesenc xmm0, xmm1
jne 0x487803
shl edx, 4
movdqa xmm1, xmmword [edx + esi]
aesenclast xmm0, xmm1
movdqa xmmword [edi], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x487830
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
movdqa xmm0, xmmword [eax]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
movdqa xmm1, xmmword [esi]
mov edx, 1
cmp ecx, edx
push edi
mov edi, dword [ebp + 0x14]
pxor xmm0, xmm1
jle 0x487874
dec ecx
lea eax, [esi + 0x10]
lea edx, [ecx + 1]
movdqa xmm1, xmmword [eax]
add eax, 0x10
sub ecx, 1
aesdec xmm0, xmm1
jne 0x487863
shl edx, 4
movdqa xmm1, xmmword [edx + esi]
aesdeclast xmm0, xmm1
movdqa xmmword [edi], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x487890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movdqa xmm0, xmmword [edx]
sub esp, 0x1c
push esi
test ecx, ecx
jbe 0x4878f2
jmp 0x4878b0
pshufd xmm1, xmm0, 0xd
psrad xmm1, 0x1f
psllq xmm1, 1
movdqa xmmword [esp + 0x10], xmm1
mov esi, dword [esp + 0x14]
and esi, 3
shl esi, 4
movdqa xmmword [eax], xmm0
add esi, 0x4c23c0
movdqa xmm1, xmmword [esi]
psllq xmm0, 1
add eax, 0x10
sub ecx, 1
pxor xmm1, xmm0
movdqa xmm0, xmm1
jne 0x4878b0
movdqa xmmword [edx], xmm0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x487900
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa4
mov eax, dword [0x4dd704]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x1c]
mov ebx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
test edi, edi
jbe 0x487a74
jmp 0x487944
mov edi, dword [ebp + 0x1c]
cmp edi, 8
jb 0x48794e
mov edi, 8
mov eax, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00487890
add esp, 0xc
test edi, edi
jbe 0x4879bb
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
mov edx, eax
sub ecx, edx
mov esi, eax
mov edx, ebx
sub edx, esi
mov esi, edi
lea esp, [esp]
movdqa xmm0, xmmword [ecx + eax]
movdqa xmm1, xmmword [eax]
pxor xmm0, xmm1
movdqa xmmword [edx + eax], xmm0
add eax, 0x10
sub esi, 1
jne 0x487980
mov eax, ebx
mov ecx, edi
mov edi, edi
movdqa xmm0, xmmword [eax]
mov edx, dword [ebp + 8]
movdqa xmm1, xmmword [edx]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
add eax, 0x10
sub ecx, 1
jne 0x4879a0
mov eax, dword [ebp + 0x10]
mov esi, 1
cmp eax, esi
jle 0x487a05
mov edx, dword [ebp + 8]
lea ebx, [eax - 1]
add edx, 0x10
lea esi, [ebx + 1]
test edi, edi
jbe 0x4879f9
mov eax, dword [esp + 0x14]
mov ecx, edi
lea ecx, [ecx]
movdqa xmm1, xmmword [eax]
movdqa xmm0, xmmword [edx]
aesdec xmm1, xmm0
movdqa xmmword [eax], xmm1
add eax, 0x10
sub ecx, 1
jne 0x4879e0
add edx, 0x10
sub ebx, 1
jne 0x4879d3
mov ebx, dword [esp + 0x14]
test edi, edi
jbe 0x487a5c
mov eax, dword [ebp + 8]
shl esi, 4
lea edx, [esi + eax]
mov eax, ebx
mov ecx, edi
jmp 0x487a20
movdqa xmm1, xmmword [eax]
movdqa xmm0, xmmword [edx]
aesdeclast xmm1, xmm0
movdqa xmmword [eax], xmm1
add eax, 0x10
sub ecx, 1
jne 0x487a20
lea ecx, [esp + 0x20]
mov eax, ebx
sub ecx, ebx
mov edx, edi
movdqa xmm0, xmmword [eax]
movdqa xmm1, xmmword [ecx + eax]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
add eax, 0x10
sub edx, 1
jne 0x487a43
mov eax, edi
shl eax, 4
add dword [esp + 0x18], eax
add ebx, eax
sub dword [ebp + 0x1c], edi
mov dword [esp + 0x14], ebx
jne 0x487941
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049bf8d
mov esp, ebp
pop ebp
ret
Function at 0x489220
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b13e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esi], vtable.CRMultipleVolumeLockerImp.0
cmp ecx, edi
je 0x489272
mov eax, dword [ecx]
mov eax, dword [eax]
push 0x10010
push edi
lea edx, [esp + 0x2c]
push edx
call eax
jmp 0x48927f
lea ecx, [esp + 0x10]
push ecx
call fcn.00404250
add esp, 4
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0x10
Function at 0x48a130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b1578
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push esi
mov dword [esp + 0x34], edi
call fcn.00489ba0
mov eax, dword [esp + 0x20]
add esp, 0x14
cmp eax, edi
je 0x48a199
push eax
call fcn.0049ba00
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x48b640
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b16de
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esi], vtable.CRArrObjVolumeLocatorImp.0
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esp + 0x14], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0x18], 2
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
call fcn.0048b1b0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
Function at 0x492ff0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x49304c
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x49304c
mov ebp, dword [esp + 0x14]
cmp ebp, 3
jb 0x49304c
test bl, 3
jne 0x49304c
xor edx, edx
test ebx, ebx
jbe 0x493046
push esi
lea esi, [ebp - 1]
jmp 0x493020
xor ecx, ecx
xor eax, eax
test esi, esi
jbe 0x493037
mov ebp, dword [edi + eax*4]
xor ecx, dword [edx + ebp]
inc eax
cmp eax, esi
jb 0x493028
mov ebp, dword [esp + 0x18]
mov eax, dword [edi + ebp*4 - 4]
mov dword [edx + eax], ecx
add edx, 4
cmp edx, ebx
jb 0x493020
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop ebp
xor al, al
pop ebx
ret

Function at 0x493060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
test eax, eax
je 0x49311a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49311a
mov ebx, dword [esp + 0x14]
cmp ebx, 4
jb 0x49311a
test cl, 3
jne 0x49311a
mov edx, dword [eax + ebx*4 - 4]
push esi
mov esi, dword [eax + ebx*4 - 8]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
test ecx, ecx
jbe 0x493111
sub esi, edx
push ebp
mov dword [esp + 0x14], esi
lea ecx, [ecx]
mov ecx, dword [eax + ebx*4 - 0xc]
mov ecx, dword [edi + ecx]
lea esi, [ebx - 4]
mov ebp, ecx
test esi, esi
jl 0x4930f8
mov edx, dword [eax + esi*4]
mov edx, dword [edi + edx]
mov eax, ecx
and eax, 0x80808080
mov ebx, eax
add eax, eax
shr ebx, 7
sub eax, ebx
and ecx, 0xff7f7f7f
and eax, 0x1d1d1d1d
add ecx, ecx
xor eax, ecx
xor eax, edx
xor ebp, edx
sub esi, 1
mov ecx, eax
mov eax, dword [esp + 0x1c]
jns 0x4930c0
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add edx, edi
add edi, 4
mov dword [esi + edx], ebp
mov dword [edx], ecx
cmp edi, dword [esp + 0x24]
jb 0x4930b0
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
xor al, al
pop ebx
add esp, 8
ret

Function at 0x493130
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
push edi
xor edi, edi
mov ebx, ebp
jmp 0x493140
xor esi, esi
push esi
push edi
call fcn.00492f50
mov byte [ebx + esi], al
inc esi
add esp, 8
cmp esi, 0x100
jl 0x493142
inc edi
add ebx, 0x100
cmp edi, 0x100
jl 0x493140
mov al, 1
mov byte [esp + 0x10], al
xor esi, esi
nop
mov byte [esi + ebp + 0x10000], al
mov eax, dword [esp + 0x10]
push 2
push eax
call fcn.00492f50
add esp, 8
mov byte [esp + 0x10], al
cmp al, 1
jne 0x493194
xor al, al
mov byte [esp + 0x10], al
inc esi
cmp esi, 0x100
jl 0x493170
xor esi, esi
nop
push 0xfe
push esi
call fcn.00492f80
mov byte [esi + ebp + 0x10100], al
inc esi
add esp, 8
cmp esi, 0x100
jl 0x4931a0
lea eax, [ebp + 0x10200]
mov ecx, 0x100
lea esp, [esp]
movzx edx, byte [eax - 0x200]
xor edx, 1
mov dl, byte [edx + ebp + 0x10100]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x4931d0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x493460
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
test esi, esi
je 0x493490
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x493490
mov ebp, dword [esp + 0x18]
cmp ebp, 4
jb 0x493490
mov ebx, dword [esp + 0x20]
lea edx, [ebp - 2]
cmp ebx, edx
jae 0x493490
test al, 3
je 0x493499
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
mov edx, dword [esi + ebp*4 - 8]
push edi
mov edi, dword [esi + ebx*4]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + ebp*4 - 4]
push eax
mov dword [esp + 0x1c], edx
call fcn.004931f0
mov dword [esi + ebx*4], eax
test eax, eax
je 0x4934d1
mov eax, dword [esp + 0x20]
push eax
push ebp
push esi
mov dword [esi + ebp*4 - 4], edi
call fcn.00493060
add esp, 0xc
test al, al
jne 0x4934db
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esi + ebx*4], edi
mov dword [esi + ebp*4 - 4], edx
movzx ecx, byte [ebx + eax + 0x10000]
movzx ecx, byte [ecx + eax + 0x10100]
mov ebp, dword [esp + 0x20]
shl ecx, 8
add ecx, eax
test ebp, ebp
jbe 0x49352c
mov esi, dword [esp + 0x1c]
mov ebx, edx
sub ebx, edi
mov eax, edi
sub esi, edi
mov edi, ebp
movzx edx, byte [ebx + eax]
movzx ebp, byte [eax]
xor edx, ebp
mov dl, byte [edx + ecx]
mov byte [eax], dl
xor byte [esi + eax], dl
inc eax
sub edi, 1
jne 0x493515
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 0x10
Function at 0x49a4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2028
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x4dd704]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
push 0x90
push 0
push esi
call fcn.0049c630
mov ecx, dword [esp + 0x4c]
add esp, 0xc
test ecx, ecx
je 0x49a50c
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov edi, eax
jmp 0x49a50e
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x38], 0
test edi, edi
jne 0x49a533
lea eax, [edi + 0x57]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
lea ecx, [esp + 0x40]
push ecx
push 0x90
push esi
push 0
mov dword [esp + 0x50], 0
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 0
push 0x70048
mov ecx, edi
call edx
cmp dword [esp + 0x40], 0
jne 0x49a572
cmp eax, 0x90
jae 0x49a623
mov dword [esp + 0x40], 0x57
call fcn.00413aa0
cmp dword [eax + 0x24], 3
jge 0x49a623
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
push 0x20
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
mov eax, dword [edi]
mov eax, dword [eax + 8]
push 0
push 0x74004
mov ecx, edi
call eax
cmp dword [esp + 0x40], 0
jne 0x49a623
cmp eax, 0x20
jae 0x49a5db
mov dword [esp + 0x40], 0x57
jmp 0x49a623
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x10], eax
mov al, byte [esp + 0x2b]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x2a]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x20]
mov byte [esi + 0x1c], al
mov eax, dword [esp + 0x28]
mov dword [esi], 0
mov byte [esi + 0x20], al
mov byte [esi + 0x21], ah
mov byte [esi + 0x22], cl
mov dword [esi + 0x24], edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x40]
push 1
mov ecx, edi
mov dword [esp + 0x3c], 0xffffffff
call edx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x49bf8d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4dd704]
jne 0x49bf97
repz ret
jmp fcn.004a14cc

Function at 0x4a6efe
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.004a0e0a
and dword [ebp - 4], 0
cmp dword [0x4f0cd0], 0
mov ebx, eax
jne 0x4a6faf
push 0x4c45ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4a7060
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x4a7060
push eax
call fcn.004a0d98
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4f0cd0], eax
call esi
push eax
call fcn.004a0d98
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4f0cd4], eax
call esi
push eax
call fcn.004a0d98
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x4f0cd8], eax
call esi
push eax
call fcn.004a0d98
pop ecx
mov dword [0x4f0ce0], eax
test eax, eax
je 0x4a6faf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a0d98
pop ecx
mov dword [0x4f0cdc], eax
mov eax, dword [0x4f0cdc]
cmp eax, ebx
je 0x4a7007
cmp dword [0x4f0ce0], ebx
je 0x4a7007
push eax
call fcn.004a0e13
push dword [0x4f0ce0]
mov esi, eax
call fcn.004a0e13
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a7007
test edi, edi
je 0x4a7007
call esi
test eax, eax
je 0x4a6ffe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a6ffe
test byte [ebp - 0xc], 1
jne 0x4a7007
or dword [ebp + 0x10], 0x200000
jmp 0x4a7040
mov eax, dword [0x4f0cd4]
cmp eax, ebx
je 0x4a7040
push eax
call fcn.004a0e13
pop ecx
test eax, eax
je 0x4a7040
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a7040
mov eax, dword [0x4f0cd8]
cmp eax, ebx
je 0x4a7040
push eax
call fcn.004a0e13
pop ecx
test eax, eax
je 0x4a7040
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f0cd0]
call fcn.004a0e13
pop ecx
test eax, eax
je 0x4a7060
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a7062
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a7652
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.004a0e0a
and dword [ebp - 4], 0
cmp dword [0x4f0cec], 0
mov ebx, eax
jne 0x4a7703
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a77b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a77b4
push eax
call fcn.004a0d98
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4f0cec], eax
call esi
push eax
call fcn.004a0d98
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4f0cf0], eax
call esi
push eax
call fcn.004a0d98
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4f0cf4], eax
call esi
push eax
call fcn.004a0d98
pop ecx
mov dword [0x4f0cfc], eax
test eax, eax
je 0x4a7703
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a0d98
pop ecx
mov dword [0x4f0cf8], eax
mov eax, dword [0x4f0cf8]
cmp eax, ebx
je 0x4a775b
cmp dword [0x4f0cfc], ebx
je 0x4a775b
push eax
call fcn.004a0e13
push dword [0x4f0cfc]
mov esi, eax
call fcn.004a0e13
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a775b
test edi, edi
je 0x4a775b
call esi
test eax, eax
je 0x4a7752
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a7752
test byte [ebp - 0xc], 1
jne 0x4a775b
or dword [ebp + 0x10], 0x200000
jmp 0x4a7794
mov eax, dword [0x4f0cf0]
cmp eax, ebx
je 0x4a7794
push eax
call fcn.004a0e13
pop ecx
test eax, eax
je 0x4a7794
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a7794
mov eax, dword [0x4f0cf4]
cmp eax, ebx
je 0x4a7794
push eax
call fcn.004a0e13
pop ecx
test eax, eax
je 0x4a7794
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f0cec]
call fcn.004a0e13
pop ecx
test eax, eax
je 0x4a77b4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a77b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x419640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x5604d8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4196d7
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea edx, [ecx + ecx]
push esi
lea ecx, [ebp - 0xc]
push ecx
push 0
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
push str.Path
push edx
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4196b0
sub eax, edx
sar eax, 1
je 0x4196d2
cmp word [esi + eax*2 - 2], 0x5c
je 0x4196d2
mov ecx, 0x5c
mov word [esi + eax*2], cx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41d581
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [ebp - 0x500]
add edx, 1
mov dword [ebp - 0x500], edx
add esp, 4
and edi, 0x6c49
sub edi, 0x58cd
pop edi
push edi
push ecx
add esp, 4
xor edi, 0x65ec
or edi, 0x8cf2
pop edi
mov edx, dword [ebp - 0xac0]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0xabc]
movzx edx, byte [ecx]
cmp eax, edx
je 0x41d625
push eax
and eax, 0xec73
sub eax, 0x16b84
xor eax, 0xdf7a
pop eax
push ecx
push ecx
add esp, 4
add ecx, 0x147b
xor ecx, 0x1513
xor ecx, 0xf607
or ecx, 0x8d7b
pop ecx
mov eax, dword [ebp - 0xac0]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0xabc]
movzx eax, byte [edx]
cmp ecx, eax
jle 0x41d60d
mov dword [ebp - 0x15a0], 1
jmp 0x41d617
mov dword [ebp - 0x15a0], 0xffffffff
mov ecx, dword [ebp - 0x15a0]
mov dword [ebp - 0xc8c], ecx
jmp 0x41d689
push ebx
and ebx, 0x12f73
jmp 0x41d632
pop ebx
push eax
push ebx
add esp, 4
add eax, 0x492e
xor eax, 0x1e75
call 0x41d653
add byte [ebx], dh
inc ebx
aaa
cmp byte [edx], bh
inc esi
cmp bh, byte [esi]
inc esi
inc ebp
xor al, byte [ebx - 0x74a7fb3c]
xchg ebp, eax
js 0x41d64e
invalid
mov edx, dword [ebp - 0xc8c]
mov dword [ebp - 0x15d4], edx
cmp dword [ebp - 0x15d4], 0
jne 0x41d6de
push edi
push edx
add esp, 4
xor edi, 0x93fc
pop edi
push eax
and eax, 0xbe10
or eax, 0xc3ec
pop eax
push edx
push esi
add esp, 4
and edx, 0x1802b
or edx, 0x10777
and edx, 0x67cf
pop edx
mov eax, dword [ebp - 0x500]
mov dword [ebp - 0xab8], eax
jmp 0x41d71f
jmp 0x41d42c