joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f384
Capabilities:
Hash data using sha1

Disassembly:
call fcn.0046c49e
test al, al
je 0x46f3a2
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0047649e
add esp, 0x10
ret
jmp fcn.0046c62b

Function at 0x46f3a7
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
call fcn.0046c49e
test al, al
je 0x46f3c5
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00476735
add esp, 0x10
ret
jmp fcn.0046d6cc

Function at 0x470ef7
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
movzx edi, byte [edx + 0x484858]
mov dword [esp + 0x10], edi
mov eax, edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 3
xor ecx, dword [esp + 0x10]
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
imul eax, edi, 0x11b
or ebp, ecx
mov ecx, dword [esp + 0x10]
shl ecx, 2
xor ecx, dword [esp + 0x10]
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x4b2ee0], eax
mov dword [edx*8 + 0x4b2ee4], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x470f04
pop edi
pop esi
pop ebp
pop ebx
mov byte [0x4b36e1], 1
add esp, 0x10
ret

Function at 0x47104f
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
xor edi, edi
movzx edx, byte [edi + str.cw]
mov ecx, edx
mov eax, edx
shr ecx, 7
imul esi, ecx, 0x1b000000
shl eax, 0x19
imul ecx, ecx, 0x11b
xor esi, eax
mov eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or esi, eax
lea eax, [edx + edx]
xor ecx, eax
xor eax, eax
xor ecx, edx
or eax, esi
or ecx, esi
mov dword [edi*8 + 0x4b26d0], eax
mov dword [edi*8 + 0x4b26d4], ecx
inc edi
cmp edi, 0x100
jl 0x471053
xorps xmm0, xmm0
pop edi
movlpd qword [0x4b2ed8], xmm0
movlpd qword [0x4b2ed0], xmm0
pop esi
mov byte [0x4b36e0], 1
ret
Function at 0x472ba0
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x44
mov eax, 0x47d6e8
call fcn.00477b4c
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4b3ae8]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4b36e8]
cmp eax, dword [ecx + 4]
jg 0x472be8
push 0
push dword [ebp + 0xc]
push esi
push dword [0x4b36e4]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x472c23
call fcn.00477b0a
ret 8
mov edi, 0x4b36e8
push edi
call fcn.004772e4
cmp dword [0x4b36e8], 0xffffffff
pop ecx
jne 0x472bcb
and dword [ebp - 4], 0
mov ecx, 0x4b36e4
call fcn.004729e7
push 0x47de51
call fcn.00477699
or dword [ebp - 4], 0xffffffff
push edi
call fcn.00477293
pop ecx
pop ecx
jmp 0x472bcb
push eax
call fcn.00472c60
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x483518
lea ecx, [ebp - 0x28]
call fcn.0043e440
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00472a91
push 0x494104
lea eax, [ebp - 0x50]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x4739f7
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
cmp edi, 4
jb 0x473a57
push ebp
mov ebp, edi
shr ebp, 2
push 4
lea eax, [esp + 0x18]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x34]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
add esp, 0x18
xor eax, dword [esp + 0x14]
add ebx, 4
mov ecx, dword [esp + 0x10]
add esi, 4
or ecx, eax
sub edi, 4
mov dword [esp + 0x10], ecx
sub ebp, 1
jne 0x473a19
pop ebp
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test edi, edi
je 0x473a8a
sub ebx, esi
movzx ecx, byte [ebx + esi]
movzx eax, byte [esi]
xor ecx, eax
or edx, ecx
inc esi
sub edi, 1
jne 0x473a79
pop edi
test edx, edx
pop esi
sete al
pop ebx
pop ecx
pop ecx
ret

Function at 0x473a95
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x473b20
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x28]
cmp edi, 4
jb 0x473b07
mov eax, edi
shr eax, 2
mov dword [esp + 0x2c], eax
push 4
lea eax, [esp + 0x18]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x20]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x28]
xor eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push 4
push eax
push ebp
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
add ebp, 4
add ebx, 4
add esi, 4
sub edi, 4
sub dword [esp + 0x2c], 1
jne 0x473abe
test edi, edi
je 0x473b1d
sub ebx, esi
sub ebp, esi
mov al, byte [ebx + esi]
xor al, byte [esi]
mov byte [esi + ebp], al
inc esi
sub edi, 1
jne 0x473b0f
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x473b25
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x473b9d
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
cmp edi, 4
jb 0x473b8a
push ebp
mov ebp, edi
shr ebp, 2
push 4
lea eax, [esp + 0x14]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
push 4
lea eax, [esp + 0x34]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x3c]
xor eax, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 4
push eax
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
add esi, 4
add ebx, 4
sub edi, 4
sub ebp, 1
jne 0x473b45
pop ebp
test edi, edi
je 0x473b9b
sub ebx, esi
mov al, byte [ebx + esi]
xor byte [esi], al
inc esi
sub edi, 1
jne 0x473b90
pop esi
pop ebx
pop edi
pop ecx
pop ecx
ret

Function at 0x476ed0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
mov edx, dword [esp + 4]
add eax, eax
push 4
lea ecx, [ecx*4 - 4]
movups xmm0, xmmword [edx + eax*8]
movups xmm1, xmmword [edx]
movups xmmword [edx], xmm0
movups xmmword [edx + eax*8], xmm1
pop eax
cmp ecx, eax
jbe 0x476f16
aesimc xmm0, xmmword [edx + ecx*4]
aesimc xmm1, xmmword [edx + eax*4]
movups xmmword [edx + eax*4], xmm0
add eax, 4
movups xmmword [edx + ecx*4], xmm1
sub ecx, 4
cmp eax, ecx
jb 0x476ef8
aesimc xmm0, xmmword [edx + eax*4]
movups xmmword [edx + eax*4], xmm0
ret
Function at 0x476f21
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
push esi
movups xmm0, xmmword [eax + edi - 0x10]
movaps xmmword [esp + 0x2c], xmm0
call sub.VCRUNTIME140.dll_memcpy
movaps xmm1, xmmword [esp + 0x2c]
mov eax, edi
shr eax, 2
add esp, 0xc
mov edx, eax
mov dword [esp + 0x14], eax
aeskeygenassist xmm0, xmm1, 0
shl edx, 2
lea ecx, [eax + 7]
mov dword [esp + 0x18], 0x484714
shl ecx, 4
add ecx, esi
mov dword [esp + 0x1c], ecx
pextrd ecx, xmm0, 3
xor ecx, dword [esi]
xor ecx, 1
mov dword [edx + esi], ecx
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [esi + 0x10]
add eax, edx
jmp 0x47705d
cmp edi, 0x18
jne 0x476fd0
mov eax, dword [esi + 0x24]
xor eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
xor ecx, eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
pinsrd xmm1, ecx, 3
jmp 0x477015
cmp edi, 0x20
jne 0x47700e
pinsrd xmm1, dword [esi + 0x2c], 3
mov eax, dword [esi + 0x14]
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 2
xor ecx, dword [esi + 0x10]
xor eax, ecx
mov dword [esi + 0x30], ecx
mov ecx, dword [esi + 0x18]
xor ecx, eax
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x1c]
xor eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
pinsrd xmm1, eax, 3
jmp 0x477015
pinsrd xmm1, dword [esi + 0x1c], 3
mov eax, dword [esp + 0x18]
add esi, edx
aeskeygenassist xmm0, xmm1, 0
pextrd ecx, xmm0, 3
xor ecx, dword [eax]
add eax, 4
xor ecx, dword [esi]
mov dword [edx + esi], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
xor eax, ecx
mov dword [edx + esi + 4], eax
mov ecx, dword [esi + 8]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esi + eax*4 + 8], ecx
mov eax, dword [esi + 0xc]
xor eax, ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + ecx*4 + 0xc], eax
lea eax, [edx + 0x10]
add eax, esi
cmp eax, dword [esp + 0x1c]
jne 0x476fb2
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47854a
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x100]
jne 0x4015e7
push str._auto
push eax
call edi
pop ecx
pop ecx
jmp 0x4015f3
push 0x416522
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], ebx
je 0x40160a
push str.__scheduled
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push ebx
lea eax, [ebp - 0x100]
push eax
mov esi, 0x41bf88
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x401633
push esi
push str.Started_UpdateChecker_process_Successfully:_s_n
jmp 0x401641
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.Failed_to_start_UpdateChecker_process:_d_n
mov esi, 0x41c3b0
push esi
call edi
add esp, 0xc
push esi
call fcn.00406d72
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40288e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4157c9
call fcn.0040a6a4
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x41b050]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x402937
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x402900
push edi
call fcn.004022a3
test al, al
pop ecx
je 0x402900
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040a890
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x402916
lea eax, [edi + 8]
push eax
call fcn.0040a875
cmp eax, ebx
pop ecx
je 0x402937
mov dword [eax], ebx
mov dword [ebp - 0x18], eax
lea esi, [eax + 8]
cmp esi, ebx
je 0x402937
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x402939
xor eax, eax
cmp eax, ebx
jne 0x402960
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x402956
lea ecx, [ebp - 0x424]
call fcn.00403bbb
mov esi, 0x8007000e
jmp 0x402a53
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x40297f
call fcn.004022fc
mov esi, eax
jmp 0x402a3a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x4029a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x4029ab
call fcn.004022fc
jmp 0x402a2f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
inc eax
cmp eax, 0x400
mov byte [ebp - 4], 2
jbe 0x4029d6
push eax
lea ecx, [ebp - 0x424]
call fcn.00402a74
jmp 0x4029e6
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x4029e6
mov edi, dword [ebp - 0x424]
cmp edi, ebx
mov dword [ebp - 4], 1
jne 0x4029fe
mov esi, 0x8007000e
jmp 0x402a31
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], bl
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.00402aba
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x402a53
lea ecx, [ebp - 0x424]
call fcn.00403bbb
lea ecx, [ebp - 0x18]
call fcn.00402582
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40367a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004035bb
cmp eax, esi
jne 0x4036f2
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4036bb
lea eax, [ebp - 0x110]
push eax
call fcn.0040367a
cmp eax, esi
jne 0x4036f1
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x4036ab
call fcn.004035a4
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.004035a4
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403ac7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x403ad2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x404118
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x404167
cmp dword [ebp - 4], ebx
jbe 0x404164
cmp dword [ebp - 4], 2
jbe 0x40416e
cmp dword [ebp - 4], 7
jne 0x404164
mov ecx, dword [edi]
cmp ecx, 2
jb 0x404164
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x404164
cmp byte [ecx - 2], bl
je 0x404167
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x404162
Function at 0x404642
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x218
push edi
lea eax, [ebp + 0x6c]
push 1
push eax
call fcn.00407261
test eax, eax
pop ecx
pop ecx
je 0x404820
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
push 0x416c58
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x70], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x416c5c
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x416c64
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], 0
mov dword [ebp + 0x70], pe_nt_image_headers32
call esi
push 0x416c74
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x416c78
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x416c8c
lea eax, [ebp - 0xa4]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x68]
push eax
xor edi, edi
push edi
push 0x416c90
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x416ca0
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
call esi
test eax, eax
jne 0x40477f
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x416cb0
lea eax, [ebp - 0x1a4]
push 0x416cb4
push eax
call fcn.004086d6
add esp, 0x20
test eax, eax
je 0x40477f
push 0x416cb8
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x416cc8
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], edi
call esi
test eax, eax
jne 0x404813
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x416cd8
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x5c], edi
call esi
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x60]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x416cec
lea eax, [ebp - 0x1a4]
push 0x416cf0
push eax
call fcn.004086d6
add esp, 0x20
test eax, eax
je 0x404813
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x416cf4
push dword [ebp + 0x6c]
call esi
push 0x416d08
push dword [ebp + 0x6c]
call esi
push 0x416d1c
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x404822
xor edi, edi
mov dword [0x41c538], edi
xor eax, eax
pop edi
add ebp, 0x74
leave
ret 4
Function at 0x404832
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.00407ec1
test eax, eax
jne 0x404843
leave
ret
push ebx
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call fcn.00407261
test eax, eax
pop ecx
pop ecx
je 0x4048ef
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x416d2c
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x4048ad
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x416d3c
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
pop esi
je 0x4048ef
cmp dword [0x41c538], ebx
jne 0x4048ef
cmp dword [ebp + 8], ebx
jne 0x4048df
push 0x41c538
push ebx
push ebx
push fcn.00404642
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x4048ef
push ebx
mov dword [0x41c538], 1
call fcn.00404642
xor eax, eax
inc eax
pop ebx
leave
ret
Function at 0x406080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x41c5bc]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x34], eax
call fcn.004066d2
mov dword [esi + 0x38], eax
call fcn.0040425d
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x3c], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x34]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x405fa9
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call fcn.00405a23
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4064a6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x417694
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4064d9
xor eax, eax
jmp 0x406532
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x1e
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetTimeFromSystemTime]
test eax, eax
jne 0x4064fb
mov byte [ebp - 0x38], bl
lea eax, [ebp - 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406501
push esi
sub eax, edx
push eax
lea eax, [ebp - 0x38]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret