joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401465
Capabilities:
Encode data using xor

Disassembly:
jmp 0x418f56
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x41901d
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, str.1110
mov ebp, 0x5bfe18
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x47
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x95
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xaa
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0xa4
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0xd6
push ebx
push ebp
call fcn.004032a6
add esp, 0x44
push eax
call fcn.00406ff5
add byte [esi + edi], 0xf7
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
add byte [esi + edi], 0x92
push ebx
push ebp
call fcn.004032a6
push eax
call fcn.00406ff5
xor byte [esi + edi], 0x94
add esp, 0x28
inc esi
cmp esi, dword [esp + 0x18]
jb 0x418f74
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x403c7e
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa49
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aa5a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0040665e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403e09
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a45a2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a45b3
pop esi
ret
push ebx
push edi
push esi
call fcn.004a4489
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040488b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a45db
push ebx
push esi
push edi
call fcn.004063fc
add esp, 0xc
push 0
call fcn.00407185
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4064d3
Capabilities:
Parse pe header

Disassembly:
jmp 0x44987f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4498be
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4498be
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4498be
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4498be
cmp dword [ecx + 0x74], 0xe
jbe 0x4498be
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x419668
sub esp, 0x20
mov eax, dword [0x5bbf28]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4196e0
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040209f
test esi, esi
je 0x4196cd
cmp dword [esp + 0x38], 3
jbe 0x4196cd
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004031f2
pop ecx
pop ecx
test eax, eax
je 0x4196cd
cmp eax, dword [esp + 0x38]
je 0x4196f8
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402de7
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x419699
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035df
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402de7
jmp 0x4196e2
Function at 0x49ae95
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040201d
mov eax, dword [0x5bbf28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406cd0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49aed7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49b033
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e5b
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5c1458]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403855
mov ecx, dword [esi*4 + 0x5c1458]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49b02c
cmp eax, dword [edi + ecx + 0x24]
jne 0x49b02c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b02c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403855
add esp, 0x14
test edx, edx
jl 0x49b02c
jg 0x49afa2
test eax, eax
jb 0x49b02c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49b02c
jl 0x49afbc
cmp dword [ebp - 0x1008], eax
ja 0x49b02c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x49afda
test ebx, ebx
je 0x49b013
cmp ecx, edi
jae 0x49b013
mov al, byte [ecx]
cmp al, 0xd
jne 0x49aff4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49b000
cmp byte [ecx + 1], 0xa
jne 0x49b000
inc ecx
jmp 0x49b000
movzx eax, al
movsx eax, byte [eax + 0x5bc240]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49afda
cmp edx, ebx
jne 0x49afda
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49b031
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x49b238
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5c1458]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b278
cmp byte [ebx], 0xa
jne 0x49b278
or byte [eax + edi + 0x28], 4
jmp 0x49b27d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49b37b
mov al, byte [edx]
cmp al, 0x1a
je 0x49b35d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x49b2ac
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x49b2d1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x49b2db
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x49b28e
jmp 0x49b37b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b358
cmp dword [ebp - 0xc], 0
je 0x49b358
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5c1458]
test byte [eax + edi + 0x28], 0x48
je 0x49b332
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49b31d
mov byte [esi], dl
jmp 0x49b32e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5c1458]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49b37b
cmp byte [ebp - 1], 0xa
jne 0x49b341
cmp esi, ebx
jne 0x49b341
mov byte [esi], 0xa
jmp 0x49b37a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49b37b
mov byte [esi], 0xd
jmp 0x49b37a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5c1458]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b377
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b37b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49b3d7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5c1458]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49b41a
cmp word [esi], dx
jne 0x49b41a
or byte [edi + eax + 0x28], 4
jmp 0x49b41f
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x49b572
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x49b552
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x49b461
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49b497
cmp eax, edx
jae 0x49b4a3
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49b439
jmp 0x49b572
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49b54e
cmp dword [ebp - 0x14], 0
je 0x49b54e
mov eax, dword [ebx*4 + 0x5c1458]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49b526
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x49b4ef
mov word [esi], cx
jmp 0x49b522
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5c1458]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5c1458]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5c1458]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x49b572
pop ebx
cmp word [ebp - 4], bx
jne 0x49b537
cmp esi, dword [ebp + 0xc]
jne 0x49b537
mov word [esi], bx
jmp 0x49b56f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401af5
add esp, 0x10
cmp word [ebp - 4], bx
je 0x49b572
push 0xd
jmp 0x49b56b
mov ecx, dword [ebx*4 + 0x5c1458]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49b569
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49b572
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2b41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5bbf28]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a2b8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a3003
test al, al
jne 0x4a2b86
sub edx, 2
cmp edx, edi
jne 0x4a2b6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a2bae
lea eax, [edi + 2]
cmp edx, eax
je 0x4a2bae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a273a
add esp, 0x10
jmp 0x4a2ca8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a3003
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a2bf1
push dword [ebp - 0x25c]
jmp 0x4a2b9e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a2c2e
cmp word [ebp - 0x226], 0
je 0x4a2c4f
cmp word [ebp - 0x226], ax
jne 0x4a2c2e
cmp word [ebp - 0x224], 0
je 0x4a2c4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a273a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a2c9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a2c08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a2c83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a2ca8
push 0x4a2122
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004061fe
add esp, 0x10
jmp 0x4a2c78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035df
leave
ret
Function at 0x4014b0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4014d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x4014e6
push 0x80004005
call fcn.004010a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x401510
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401528
push 0x80004005
call fcn.004010a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x401535
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x401c80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
push 0x200
call fcn.0042fbb0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 4
mov edi, eax
lea eax, [esp + 8]
push eax
push str.SoftwareAdobeAdobe_Acrobat9.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x401d15
lea ecx, [esp + 8]
push ecx
push str.SoftwareAdobeAdobe_Acrobat9.0LanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x401d15
lea edx, [esp + 8]
push edx
push str.SoftwareAdobeAcrobat_Reader9.0LanguageNext
push SysReAllocString
call esi
test eax, eax
je 0x401d15
lea eax, [esp + 8]
push eax
push str.SoftwareAdobeAcrobat_Reader9.0LanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x401d15
lea ecx, [esp + 8]
push ecx
push str.SoftwareAdobeAcrobat_Reader9.0LanguageCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
je 0x401d15
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push edi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
shr eax, 1
test esi, esi
jne 0x401d03
cmp dword [esp + 0x10], 1
jne 0x401d03
cmp eax, 4
jb 0x401d03
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea esi, [edi + eax*2 - 8]
push 0x4327f0
push esi
call ebx
add esp, 8
test eax, eax
je 0x401da5
push 0x4327e8
push esi
call ebx
add esp, 8
test eax, eax
je 0x401da5
mov eax, dword [esp + 0x1c]
push esi
push 4
push eax
call fcn.00401040
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x402050
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x43c510]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x4020be
test ecx, ecx
je 0x4020b0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4020cc
test ecx, ecx
je 0x402171
push ecx
jmp 0x40216b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40213e
jmp 0x402100
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.00402050
mov edi, eax
test edi, edi
jne 0x40218d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x402100
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402155
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402171
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042fc34
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40219c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402173

Function at 0x402440
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x40245c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x402020
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x402484
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x403d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x430a30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x43c510]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x43c4f0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x403e0d
call fcn.00401230
mov esi, eax
jmp 0x403ef5
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x403e29
call fcn.00401230
jmp 0x403eec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x403e42
call fcn.00401230
jmp 0x403eec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x403e78
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x403e66
lea ecx, [ebp]
call fcn.00401c40
lea ecx, [ebp - 0x1c]
call fcn.00401bc0
mov eax, 0x8007000e
jmp 0x403f12
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402950
mov dword [ebp - 4], 1
jmp 0x403ea1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x403eaf
mov esi, 0x8007000e
jmp 0x403eee
call dword [0x43c4f0]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x403ed0
call fcn.00401230
jmp 0x403eec
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x403f10
lea ecx, [ebp]
call fcn.00401c40
jmp 0x403f10
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 + 0x404]
xor ecx, ebp
call fcn.0042fc34
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404380
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4043f6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x4043c5
cmp eax, 2
jne 0x4043e1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x4043f0
test eax, eax
je 0x4043eb
test al, 1
jne 0x4043e1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4043f0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc

Function at 0x404560
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x430b58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x43c510]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.0040bc10
add esp, 8
test eax, eax
jne 0x4045b4
mov eax, 0x80004005
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x18
mov edx, dword [esp + 0x40]
push edx
call fcn.00404410
add esp, 4
mov esi, eax
call dword [0x43c4f0]
lea ecx, [esp + 0xc]
call fcn.0040c830
mov edi, dword [esp + 0x44]
push edi
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], 0
call fcn.0040c530
test al, al
jne 0x404617
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c110
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x18
lea eax, [esp + 0x38]
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40464a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040c110
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x18