joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032de
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032fb
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x40330a
mov ebx, 0x4100e8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40331f
mov ecx, dword [0x425b98]
add ecx, eax
push ecx
call fcn.004034e7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034d1
test eax, eax
je 0x40347c
test byte [ebp + 0x17], 0x80
je 0x403465
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c058
mov dword [ebp - 0xc], eax
call fcn.004066c9
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034c7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40336f
mov esi, dword [ebp + 0x14]
mov edi, 0x40c0e8
push esi
push edi
call fcn.004034d1
test eax, eax
je 0x40347c
sub dword [ebp + 0x14], esi
mov dword [0x40c070], edi
mov dword [0x40c074], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c058
mov dword [0x40c078], ebx
mov dword [0x40c07c], eax
call fcn.004066e9
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40345d
mov esi, dword [0x40c078]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x425bf4], 1
mov edi, eax
je 0x403411
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033de
cmp dword [ebp + 0x14], 0
jne 0x403411
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405372
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403452
cmp dword [ebp + 0x10], eax
jne 0x40343a
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403461
cmp dword [ebp - 0x10], esi
jne 0x403461
add dword [ebp - 4], esi
jmp 0x403446
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c078]
cmp dword [ebp - 0x14], 1
jne 0x403392
jmp 0x4034c7
cmp dword [ebp + 0x14], eax
jg 0x403362
jmp 0x4034c7
push 0xfffffffffffffffc
jmp 0x40347e
push 0xfffffffffffffffe
jmp 0x40347e
test edi, edi
je 0x4034bc
cmp dword [ebp + 0x14], esi
jge 0x403471
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034d1
test eax, eax
jne 0x4034c4
push 0xfffffffffffffffd
pop eax
jmp 0x4034ca
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40348c
mov esi, dword [ebp + 0x14]
mov edi, 0x40c0e8
push esi
push edi
call fcn.004034d1
test eax, eax
je 0x40347c
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403461
cmp esi, dword [ebp + 0x10]
jne 0x403461
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403481
jmp 0x4034c7
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40586f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422d38], 0x44
push eax
xor eax, eax
push 0x422d38
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058aa
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405934
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d7d
mov edi, eax
cmp edi, 0xffffffff
je 0x405975
test byte [esp + 0x10], 1
push esi
je 0x405957
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40595d
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405966
xor eax, eax
inc eax
jmp 0x405977
test byte [esp + 0x10], 4
jne 0x405975
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c8f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422938
push esi
call fcn.00406111
push esi
call fcn.00405c3a
mov edi, eax
test edi, edi
jne 0x405cb0
xor eax, eax
jmp 0x405d02
push edi
call fcn.0040637c
test byte [0x425b58], 0x80
je 0x405cc9
mov al, byte [edi]
test al, al
je 0x405cac
cmp al, 0x5c
je 0x405cac
sub edi, esi
jmp 0x405ce1
call fcn.004065c2
test eax, eax
je 0x405cdb
test byte [eax], 0x10
je 0x405cac
push esi
call fcn.00405be8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405ccd
call fcn.00405ba1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d7d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d9c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405da2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405dd1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40ab38]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e16
test edi, edi
jne 0x405ddc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e10
Function at 0x405e49
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x4232c0
push 0x40ab54
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405e98
push 1
push 0
push esi
call fcn.00405da2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405fbf
cmp eax, ebx
jg 0x405fbf
mov esi, 0x4236c0
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405fbf
cmp eax, ebx
jg 0x405fbf
push esi
push edi
push str._s_s_r_n
push 0x422ec0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425b50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406133
push 4
push 0xc0000000
push esi
call fcn.00405da2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405fbf
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405fb8
push edi
push esi
push ebp
call fcn.00405e1a
test eax, eax
je 0x405fb8
push str._Rename__r_n
push esi
call fcn.00405d07
test eax, eax
jne 0x405f4e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f83
add eax, 0xa
push 0x40ab3c
push eax
call fcn.00405d07
mov ebp, eax
test ebp, ebp
je 0x405f7f
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f70
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f6a
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405f85
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x422ec0
push eax
call fcn.00405d5d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405ff8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406069
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406058
cmp dword [ebp + 0x14], 1
je 0x40605a
cmp dword [ebp + 0x14], 2
je 0x40605a
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406415
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40643a
mov eax, dword [0x40a908]
cmp eax, 0xffffffff
je 0x406431
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a908], 0xffffffff
jmp 0x4064ad
cmp dword [0x4242c0], ebx
je 0x4064ad
cmp byte [0x423ec0], bl
je 0x406479
cmp dword [0x40a908], 0xffffffff
jne 0x406482
push 4
push 0x40000000
push 0x423ec0
call fcn.00405da2
cmp eax, 0xffffffff
mov dword [0x40a908], eax
je 0x4064ad
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a908], 0xffffffff
je 0x4064ad
push esi
mov esi, 0x424ae0
push 0x40ab64
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a908]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40665b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x423ac4], 0
push esi
jne 0x406692
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40666c
mov dword [ecx*4 + 0x423ac0], eax
inc ecx
cmp ecx, 0x100
jl 0x406667
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4066c3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x423ac0]
xor eax, esi
inc ecx
dec edx
jne 0x4066a5
pop edi
not eax
pop esi
ret 0xc

Function at 0x4081c0
Capabilities:
Encode data using xor

Disassembly:
test byte [edi], 0x84
add dword [eax], 0x568b0000
cld
mov edi, eax
test edx, edx
jle 0x408248
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081fb
test edx, 3
jne 0x4081ea
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081f5
jmp 0x4081fb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081fb
cmp dword [ecx - 8], 1
je 0x408205
mov edx, ebx
or edx, 3
call fcn.00404e24
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408217
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046d8

Function at 0x41e860
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41e866
ret
Function at 0x411390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x4113b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4113b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4113a8
mov eax, 1
add ebx, ebx
jne 0x4113cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4113c0
jne 0x4113dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4113c0
xor ecx, ecx
sub eax, 3
jb 0x4113f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411462
mov ebp, eax
add ebx, ebx
jne 0x4113fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411408
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41142c
inc ecx
add ebx, ebx
jne 0x411418
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41140d
jne 0x411429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41140d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41144c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41143d
jmp 0x4113ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41144c
add edi, ecx
jmp 0x4113ae
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41146a
cmp byte [edi], 1
jne 0x41146a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41146f
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x4114e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1db50]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1db8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41149c
mov ecx, edi
jns 0x4114cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1db90]
or eax, eax
je 0x4114e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4114b9
call dword [esi + 0x1dba0]
mov ebp, dword [esi + 0x1db94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41151b
sub esp, 0xffffff80
jmp 0x401114
Function at 0x4040d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004178b0

Function at 0x4064b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4064d4
xor eax, eax
jmp 0x406554
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4064eb
xor eax, eax
jmp 0x406554
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x406537
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x406537
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40650e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x406543
xor eax, eax
jmp 0x406554
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x406551
xor eax, eax
jmp 0x406554
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x407f79
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x407fbc
mov eax, dword [ebp - 8]
jmp 0x408022
cmp dword [ebp - 0xc], 1
je 0x407fcf
cmp dword [ebp - 0xc], 2
je 0x407fcf
mov eax, 0xd
jmp 0x408022
cmp dword [ebp + 0xc], 0
je 0x408016
cmp dword [ebp - 4], 0
je 0x408005
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x407ffc
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x408003
mov eax, 0xd
jmp 0x408022
jmp 0x408016
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408160
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5ce180]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x214]
call fcn.00407c90
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x4081f0
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x214]
call fcn.00406f80
mov eax, dword [ebp - 0x220]
jmp 0x4082d4
mov dword [ebp - 0x21c], 0x100
lea eax, [ebp - 0x234]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x408274
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x214]
call fcn.00408160
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x408268
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x214]
call fcn.00406f80
mov eax, dword [ebp - 0x224]
jmp 0x4082d4
mov dword [ebp - 0x21c], 0x100
jmp 0x4081fa
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x214], 0
je 0x4082a4
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.00407770
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x214]
call fcn.00406f80
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c4e2
mov esp, ebp
pop ebp
ret 4
Function at 0x4083b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40840f
push 0x57bd64
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4083dc
mov eax, 1
jmp 0x40842d
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40840d
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40842d
jmp 0x408428
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x408428
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40842d
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40f5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.0041fc4b
mov ebx, eax
test ebx, ebx
jne 0x40f5c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x40f68e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40f5ef
xor esi, esi
jmp 0x40f632
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40f632
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x40f622
nop
cmp esi, ecx
jae 0x40f626
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x40f610
cmp esi, ecx
jb 0x40f62a
xor esi, esi
jmp 0x40f632
xor eax, eax
cmp word [esi], ax
cmove esi, eax
test esi, esi
je 0x40f68e
mov ebx, dword [ebp - 4]
mov ecx, 1
movzx edi, word [esi]
mov eax, dword [ebx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40f657
push edi
mov ecx, ebx
call fcn.00403d20
movzx ecx, word [esi]
lea eax, [esi + 2]
push ecx
push eax
push edi
push dword [ebx]
call fcn.00552bac
push eax
call fcn.0040e480
mov eax, dword [ebx]
add esp, 0x14
cmp edi, dword [eax - 8]
jg 0x40f699
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebx]
pop esi
mov word [eax + edi*2], cx
lea eax, [ecx + 1]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00403dc0
int3