joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023bd0
Capabilities:
Parse pe header

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

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x45595883
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xf42376
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x72cb776e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x3d8a37a1
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40bbf2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc ebp
clc
add dword [ebx + 0x79c24ec], eax
add byte [ebx + eax*4], cl
mov al, byte ds:[0x234840f]
add byte [eax], al
mov eax, dword fs:[0xe8002c]
mov byte [ebp - 1], 0
mov ecx, dword [eax]
mov eax, dword [0x4d2540]
cmp eax, dword [ecx - 0x17fffffc]
jg 0x40be92
push ebx
mov dword [0x54d2560], 0x40d4e40
mov dword [0x54d255c], 0x40d4e40
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x10], 0x54d2544
mov dword [ebp - 0xc], 0x54d2544
mov edi, dword [ebp + 8]
call 0x5dc9c09b
clc
mov edx, dword [edi + 4]
mov dword [ebp - 0x18], edx
call edx
je 0x4503f0
push eax
add byte [esi + edi - 0x75], dh
add edi, dword [ebx]
ror dword [edi], 1
xor byte [esi], 0xc7
add eax, 0xdb85da8b
mov eax, dword [ebx]
cmp edx, ecx
jb 0x607bce3
mov ebx, edx
test ebx, ebx
je 0x40bc8b
mov edi, dword [edi]
sub edi, eax
movzx ecx, word [edi + eax]
movzx edx, word [eax]
cmp cx, dx
jne 0x40bc8f
add eax, 2
sub ebx, 1
jne 0x40bc77
xor eax, eax
jmp 0x40bc95
sbb eax, eax
and eax, 0xfffffffe
inc eax
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
ror dword [ebx + 0x487e4e78], 0x8b
dec ebx
sbb al, 0x89
dec ebp
call 0xf04fbcfb
mov ebp, 0x8a80dce8
pop ebp
dec dword [ebx - 0xbb274fa]
mov bl, byte [ebp - 1]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
pop edi
mov eax, dword [eax + 0x18]
push ecx
inc ecx
sbb al, 0x8a
ret
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x40bcaf
mov eax, dword [edi + 4]
cmp edx, eax
ja 0x607bd84
mov ecx, dword [edi]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], ecx
test edx, edx
je 0x607bd2c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, ecx
mov dword [ebp - 0x18], eax
movzx ecx, word [eax + ecx]
mov eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x7589f08b]
in al, 7
add byte [esi], cl
cmp ecx, eax
je 0x885be13
cmp cx, ax
jae 0x40bd55
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov dword [esi], edi
cmp dword [edi + 0x18], 0
je 0xc029bcaf
call 0x6ccadaf
mov dword [edx + 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov ebx, dword [eax + 0x18]
mov dword [esi], ebx
jmp 0xc028c248
push 0x4d2540
call 0x85420254
add esp, 4
cmp dword [0x4d2540], 0xffffffff
jne 0xba40bc22
mov ecx, 0x54d2544
call 0xe841a973
push 0x442449
call fcn.004200b5
push 0x4d2540
call 0x8542020a
add esp, 8
jmp 0x40bc22
test ecx, ecx
je 0x40bc63
jmp 0x40bced
Function at 0x472067
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x47208a
push 0
call fcn.0042e509
pop ecx
mov ecx, eax
call 0x51472027
mov dword [0x4d06e0], 0x458b0270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7f458bfe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x458b0634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x47209f
mov eax, dword [esi]
mov dword [ebp - 4], 0x5c7018c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7f458bfe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720d9
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7f458bfe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x47291f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call 0x647276f
std
jne 0x472945
lea ecx, [ebp - 0xdc]
call fcn.004727b3
xor esi, esi
test ebx, ebx
je 0x472963
invalid
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call 0x45d328f3
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x47294e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47c0fb
Capabilities:
Encode data using xor

Disassembly:
inc esp
mov esi, ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x47c0e6
mov ecx, edi
call 0xff48bf90
push 0x7e8310e0
push edi
call 0x3bbfe14
mov ecx, dword [ecx + 0x6a]
or al, 0x56
push 0xc
push esi
call 0x3bbfe14
mov ecx, dword [ecx + 0x5f]
mov eax, esi
mov eax, dword [eax]
add al, 0x8b
inc ebp
or byte [ebx - 0xe74a9ad], cl
push edi
xor edi, edi
mov ebx, edi
mov ecx, dword [esi + 9]
call fcn.00407d11
push esi
add al, 0x8b
add cl, byte [ebp + 0x58030452]
add al, 0xf9
test byte [ebp + 0x4d8bf344], cl
or byte [ebx - 0x18], dl
test eax, 0x5756ec4d
mov ecx, dword [ebx + 0x84d89df]
cmp dword [esi + 8], edi
jbe 0x47c158
push ecx
push edi
push dword [eax]
add al, 0x98
push dword [eax + 8]
xor al, 0xf9
inc dword [edi + ecx]
push eax
call 0x4420e67
cmp bh, al
inc eax
add bh, cl
dec dword [ebp + 0x430084d]
cwde
add edi, dword [eax + 4]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x47c12f
pop edi
mov ebx, dword [ebx + 0x5d]
add byte [ebx + ecx*4], al
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
clc
test dword [esi + 0x36], esp
pop ecx
std
sbb byte fs:[ebp + 0x573e894c], cl
push edi
push 1
push edi
call dword [0x147d80d0]
add byte [edi], cl
mov dword [esi], eax
pop edi
setne al
pop esi
mov edi, 0xfffe83f0
je 0x47c10e
jge 0x47c19c
mov edx, dword [esi - 0x75]
int1
je 0x47c1a6
add byte [ebp + 0x89075c0], al
call 0x7cc7c29a
jmp 0xc772d5ca
cmovbe edx, dword [ebx + edx*2 - 0x18]
add byte [edi], cl
test dl, cl
fist dword [ebx + 0x53]
mov dword [ebp + 0xc], eax
push dword [edi + 0x70]
movzx eax, word [edi + 0x78]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
cmp dword [esi + 4], esi
call dword [0x4c8dc7a8]
mov dword [esi], eax
cmp byte [ebx], dh
fild dword [eax + 0x1518088b]
mov ah, 0xfa
call [ecx - 3]
pop eax
stc
inc dword [ebx - 0x74e3b977]
xchg ah, dl
adc eax, 0x2444fff9
adc al, 0x56
push eax
call dword [0x458be6d4]
add byte [edx + 3], ch
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x402ea0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40a048
call sym._EnterCriticalSection_4
mov ebx, dword [0x40a040]
sub esp, 4
test ebx, ebx
je 0x402eeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402ee4
test esi, esi
je 0x402ee4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402ec0
mov dword [esp], 0x40a048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4030d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x403120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4031f8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40315e
cmp eax, 4
jne 0x403180
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40316e
cmp edx, 4
je 0x40316e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004030d0

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x44f010bd
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x345e4ba2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452463
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x424]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.0043eb00
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x402901
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x402901
call fcn.00401a80
mov esi, eax
jmp 0x4029ee
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402924
call fcn.00401a80
jmp 0x4029e1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x402942
call fcn.00401a80
jmp 0x4029e1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x402963
mov esi, 0x8007000e
jmp 0x4029e3
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.00423bb0
jmp 0x40298d
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x4029a4
mov esi, 0x8007000e
jmp 0x4029e3
push esi
push dword [ebp - 0x424]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4029c4
call fcn.00401a80
jmp 0x4029e1
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00403690
mov esi, eax
test edi, edi
je 0x4029ee
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x402a10
lea ecx, [ebp - 0x424]
call fcn.00424170
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042520b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409e20
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x409e70
push ebx
push edi
push 0x2000
call fcn.00425254
add esp, 4
mov edi, eax
push 0x1000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x409e5c
push edi
call fcn.0042524f
add esp, 4
mov eax, esi
pop edi
pop ebx
pop esi
ret
push dword [esi]
call fcn.0042524f
add esp, 4
mov dword [esi], edi
lea eax, [ebx - 1]
mov dword [esi + 4], eax
pop edi
pop ebx
mov eax, esi
pop esi
ret

Function at 0x40c6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00404a90
mov eax, dword [ebx]
test eax, eax
je 0x40c7b3
lea edi, [esi + 4]
push edi
push 0
lea ecx, [esi + 8]
push ecx
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c7b3
mov eax, dword [edi]
test eax, eax
je 0x40c7c1
add eax, 4
push eax
call fcn.00425254
mov dword [esi], eax
add esp, 4
mov ecx, dword [edi]
push edi
mov byte [eax + ecx], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 1], 0
mov ecx, dword [edi]
mov eax, dword [esi]
mov byte [ecx + eax + 2], 0
mov eax, dword [esi]
mov ecx, dword [edi]
mov byte [ecx + eax + 3], 0
lea eax, [esi + 8]
push dword [esi]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esi + 8], 7
jne 0x40c7c7
mov ecx, dword [edi]
cmp ecx, 4
jbe 0x40c7c7
mov edx, dword [esi]
xor eax, eax
shr ecx, 1
sub ecx, 1
je 0x40c79f
lea ebx, [eax + 0xa]
xor ecx, ecx
cmp cx, word [edx + eax*2]
jne 0x40c795
cmp word [edx + eax*2 + 2], cx
je 0x40c795
mov word [edx + eax*2], bx
mov ecx, dword [edi]
inc eax
shr ecx, 1
dec ecx
cmp eax, ecx
jb 0x40c782
mov eax, dword [edi]
shr eax, 1
xor ecx, ecx
pop edi
mov word [edx + eax*2 - 2], cx
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi], 0
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40c800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x40c835
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042520b
mov esp, ebp
pop ebp
ret 8
push edi
test eax, eax
mov edi, 0x46c60c
mov ecx, esi
cmovne edi, eax
call fcn.00409b00
mov eax, dword [ebx]
test eax, eax
je 0x40c8de
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c8de
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40c889
cmp eax, 2
je 0x40c889
cmp eax, 7
jne 0x40c8de
mov ebx, dword [ebp - 8]
mov ecx, esi
add ebx, 4
mov dword [ebp - 8], ebx
push 0
shr ebx, 1
push ebx
call fcn.00409f00
lea eax, [ebx - 1]
mov ecx, esi
push eax
call fcn.00409ca0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx - 2]
push eax
mov ecx, esi
call fcn.00409ca0
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.00409c40
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40c8f3
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042520b
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0xc], 7
jne 0x40c929
cmp ebx, 3
jbe 0x40c929
mov ecx, esi
call fcn.00409c40
lea edx, [ebx - 1]
xor ecx, ecx
test edx, edx
je 0x40c929
lea edi, [ecx + 0xa]
xor esi, esi
cmp si, word [eax + ecx*2]
jne 0x40c924
cmp word [eax + ecx*2 + 2], si
je 0x40c924
mov word [eax + ecx*2], di
inc ecx
cmp ecx, edx
jb 0x40c911
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042520b
mov esp, ebp
pop ebp
ret 8

Function at 0x40c9d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040c530
cmp dword [edi], 0
je 0x40ca43
push 0x1fe
mov dword [ebp - 8], 0x1fe
call fcn.00425254
add esp, 4
mov dword [esi], eax
lea ecx, [ebp - 8]
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40ca35
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
jmp 0x40ca3c
mov dword [esi + 4], 0xfffffffe
mov dword [esi + 8], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042520b
mov esp, ebp
pop ebp
ret 8
Function at 0x40ca60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.0040c530
cmp dword [edi], 0
je 0x40cacb
push ebx
push 0x7ffe
mov dword [ebp - 8], 0x7ffe
call fcn.00425254
add esp, 4
mov dword [esi], eax
lea ebx, [esi + 8]
lea ecx, [esi + 4]
push ebx
push 0
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40caca
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], 0xffffffff
mov dword [ebx], ecx
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042520b
mov esp, ebp
pop ebp
ret 8

Function at 0x40cba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x40cbb2
xor al, al
pop ebx
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x40cbce
cmp edx, 1
jae 0x40cbce
mov edx, edi
call fcn.0040cf70
mov edx, eax
cmp edi, 7
jne 0x40cbfa
cmp edx, 2
jbe 0x40cbfa
push esi
mov esi, edx
xor eax, eax
shr esi, 1
sub esi, 1
je 0x40cbf9
cmp word [ecx + eax*2], 0xa
jne 0x40cbf1
xor edi, edi
mov word [ecx + eax*2], di
inc eax
cmp eax, esi
jb 0x40cbe4
mov edi, dword [ebp + 0xc]
pop esi
push edx
push ecx
push edi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
sete al
pop ebx
pop ebp
ret 0x10
Function at 0x40cd80
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452940
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x47d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
call fcn.004099b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [ebp - 0x40], xmm0
call fcn.0040c5a0
push ecx
push 0x20019
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040c690
mov ecx, edi
call fcn.0040cae0
test eax, eax
je 0x40ce74
lea esi, [eax - 1]
test esi, esi
js 0x40ce74
nop dword [eax]
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040c9d0
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x40]
call fcn.0040c620
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40ce6f
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
push 0x46d668
push ebx
call fcn.00409be0
lea ecx, [ebp - 0x34]
call fcn.00409c40
push eax
mov ecx, edi
call fcn.0040cd80
sub esi, 1
jns 0x40ce10
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ebx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.00409a00
push ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00409d50
cmp byte [eax + 8], 0
jne 0x40cea4
xor bl, bl
jmp 0x40cf0f
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push ebx
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.00409a00
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00409b70
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a730
push ecx
push 0x20019
lea ecx, [ebp - 0x28]
call fcn.00409c40
push eax
mov ecx, edi
call fcn.0040c690
test al, al
jne 0x40cef1
xor bl, bl
jmp 0x40cf07
lea ecx, [ebp - 0x1c]
call fcn.00409c40
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
lea ecx, [ebp - 0x28]
call fcn.00409af0
lea ecx, [ebp - 0x1c]
call fcn.00409af0
lea ecx, [ebp - 0x40]
call fcn.00409af0
lea ecx, [ebp - 0x34]
call fcn.00409af0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042520b
mov esp, ebp
pop ebp
ret 4