joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100470e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x10047111
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10046200
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1004721c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x100471a1
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10047212
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x100471db
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x100471d3
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x1004720f
cmp edi, edx
je 0x100471ec
nop
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10047225
cmp edi, edx
jne 0x100471e0
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x10047150
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1004720f
Function at 0x10047300
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059aa5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1006b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push edx
push eax
call fcn.10047250
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004738a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100474db
cmp dword [ebx + 8], 0xccccccc
jne 0x1004739e
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x14
mov dword [ebp - 0x28], 0
call fcn.10056caf
mov ecx, dword [ebp - 0x1c]
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
movq xmm0, qword [ecx]
movq qword [esi + 8], xmm0
mov ecx, dword [ecx + 8]
mov dword [esi + 0x10], ecx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10064550]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10064550]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1004748e
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10057db0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10047470
cmp eax, 0x200
jae 0x1004746e
shl eax, 3
cmp eax, ecx
jae 0x10047470
mov eax, ecx
push eax
mov ecx, ebx
call fcn.100470e0
push dword [ebp - 0x20]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10047250
mov edx, dword [eax]
jmp 0x10047491
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x20]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100474bc
mov dword [ecx + eax*8], esi
jmp 0x100474ce
cmp ebx, edx
jne 0x100474c5
mov dword [ecx + eax*8], esi
jmp 0x100474d2
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100474d2
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1004a570
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1006b040]
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 esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
mov dword [esi], vtable.Xbyak::CodeArray.0
push 0x18
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10056caf
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp edi, 1
jne 0x1004a5dd
lea eax, [edi + 2]
jmp 0x1004a5f0
test edi, edi
je 0x1004a5eb
mov eax, 1
cmp edi, 2
jne 0x1004a5f0
mov eax, 2
push 0x1005c41d
lea ecx, [ebp - 0x2c]
mov dword [esi + 0xc], eax
lea ebx, [esi + 0x10]
call fcn.10004e10
mov dword [ebx], vtable.Xbyak::Allocator.0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1004a643
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a639
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004a639
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10056ce4
add esp, 8
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, dword [ebp + 8]
cmovne ebx, eax
mov dword [esi + 0x18], ecx
cmp dword [esi + 0xc], 1
mov dword [esi + 0x14], ebx
jne 0x1004a65e
mov eax, edi
jmp 0x1004a66f
mov eax, dword [ebx]
mov edx, 1
cmp ecx, edx
cmovb ecx, edx
push ecx
mov ecx, ebx
call dword [eax]
cmp dword [esi + 0x18], 0
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 0
jbe 0x1004a687
test eax, eax
je 0x1004a6e5
cmp dword [esi + 0xc], 2
jne 0x1004a6c5
cmp edi, 2
je 0x1004a6c5
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x1004a6c5
lea eax, [ebp - 0x14]
push eax
push 0x40
push dword [esi + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1004a6c5
mov ecx, dword [esi + 0x14]
push dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 4]
push 0xe
jmp 0x1004a6e7
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 - 0x10]
xor ecx, ebp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret 0xc
push 0x16
lea ecx, [ebp - 0x24]
call fcn.10043ea0
push 0x10068670
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1004d570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a169
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1006b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
push 0x24
mov dword [ebp - 0x14], edi
mov eax, dword [ebx]
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10056caf
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push ecx
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.1004cd10
mov ecx, dword [edi + 4]
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 4], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0xc], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], 7
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x1c], 8
mov dword [edi + 0x1c], eax
add edi, 0x20
mov dword [ebp - 4], 2
mov eax, dword [ebx + 0x20]
push 0x30
mov dword [ebp + 8], edi
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10056caf
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push eax
push ecx
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 4
call fcn.1004cd10
mov ecx, dword [edi + 4]
mov eax, dword [ebx + 0x24]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x24], ecx
mov ecx, dword [edi + 8]
mov dword [edi + 8], eax
mov dword [ebx + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x30], ecx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x38], 7
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x3c], 8
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10051610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a56d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1006b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push pe_nt_image_headers32
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
call fcn.10056caf
push 0x104
mov esi, eax
mov dword [ebp - 0x18], 0x104
push 0
push esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0x10f
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov byte [esi + 0x104], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
push 0x104
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10051744
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.100065d0
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 9
push str.d3d9.dll
cmp eax, 9
jb 0x100516ea
cmp edx, 0xf
lea esi, [ebp - 0x28]
lea eax, [ecx + 9]
cmova esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 9], 0
jmp 0x100516f7
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push 9
call fcn.10007f10
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
lea eax, [esi + 0x128000]
cmp esi, eax
jae 0x1005173c
mov edx, 0x6c7
mov ecx, 0x8689
nop
inc esi
cmp word [esi], dx
jne 0x10051732
cmp word [esi + 6], cx
jne 0x10051732
cmp word [esi + 0xc], cx
je 0x1005173f
lea eax, [esi + 0x128000]
cmp esi, eax
jb 0x10051720
inc esi
jmp 0x10051746
add esi, 2
jmp 0x10051746
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005177c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10051772
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10051772
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10056ce4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret 4
Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x414ac0
Capabilities:
Encode data using xor

Disassembly:
cwde
call 0xb20970ed
xchg ebx, eax
mov eax, dword [0x30aa60cd]
mov dr0, edx
mov bh, byte [ebx]
mov dword [eax - 0x6d61ccdb], edi
or byte [ecx - 0x59], ch
cmp al, 0x1f
je 0x414b3f
and ah, byte [edx + 0xc6dbcd]
invalid
cmp byte [edi + 0x5b], cl
inc esp
pop ebx
add dh, byte [eax]
mov byte [0x849ee4a5], al
pop ecx
int 0x71
and al, 0x4c
cmpsb byte [esi], byte es:[edi]
ret
Function at 0x40666e
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax]
test eax, eax
jne 0x40667b
mov eax, 0x8000ffff
jmp 0x40669f
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x40669f
and eax, 0xffff
or eax, 0x80070000
ret 8
Function at 0x407e62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407eba
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407eab
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x407ea7
cmp esi, eax
jae 0x407eab
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407e99
cmp esi, eax
jb 0x407eaf
xor eax, eax
jmp 0x407eb9
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4095cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3b0]
push ebx
push esi
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3b4]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [0x415018]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x64], ebx
je 0x409673
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
call fcn.004089c6
test eax, eax
jl 0x409673
mov edi, dword [ebp - 0x70]
cmp edi, 0x400
jg 0x40965b
push edi
call fcn.00408919
test al, al
je 0x40965b
mov eax, edi
call fcn.00412c40
mov eax, esp
jmp 0x409664
push edi
lea ecx, [ebp - 0x6c]
call fcn.004088cf
push dword [ebp - 0x78]
push edi
push esi
push eax
call fcn.0040898e
cmp eax, ebx
jne 0x4096b0
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x409683
lea eax, [ebp - 0x64]
call fcn.0040979c
lea ecx, [ebp - 0x6c]
call fcn.004089f6
mov eax, 0x8007000e
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
call fcn.0040fdc4
add ebp, 0x3a4
leave
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x4096cc
call fcn.00409281
mov esi, eax
jmp 0x40978a
push dword [ebp - 0x74]
push dword [ebp - 0x68]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4096e9
call fcn.00409281
jmp 0x409781
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x4096df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x40972d
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x409719
lea eax, [ebp - 0x64]
call fcn.0040979c
mov esi, 0x8007000e
lea ecx, [ebp - 0x6c]
call fcn.004089f6
mov eax, esi
jmp 0x409690
push 1
push eax
call fcn.00408a10
cmp eax, 0x400
jbe 0x409748
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040a701
jmp 0x40974e
lea eax, [ebp - 0x60]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], ebx
jne 0x40975a
mov esi, 0x8007000e
jmp 0x409783
push esi
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x64]
call fcn.00408841
mov eax, dword [ebp - 0x64]
add esp, 0x10
push dword [ebp + 0x3b8]
mov byte [eax + esi], bl
mov ecx, dword [ebp - 0x64]
lea edx, [ebp - 0x80]
call fcn.004097a6
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x64], eax
je 0x40971e
lea eax, [ebp - 0x64]
call fcn.0040979c
jmp 0x40971e
Function at 0x40a6ba
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40a6cd
push 0x80004005
call fcn.00408a33
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x40a6d4
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40a7b3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x114]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x120], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x40a8d0
xor eax, eax
cmp dword [ebp - 0x110], esi
je 0x40a821
push dword [ebp - 0x110]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x114]
mov edi, eax
mov dword [ebp - 0x110], ecx
jne 0x40a8d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push ecx
jmp 0x40a894
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x110]
call fcn.0040a7b3
cmp eax, esi
mov dword [ebp - 0x114], eax
jne 0x40a8f3
lea eax, [ebp - 0x128]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x110]
mov dword [ebp - 0x118], 0x100
call edi
test eax, eax
je 0x40a859
cmp dword [ebp - 0x110], esi
je 0x40a8ba
push dword [ebp - 0x110]
call ebx
mov dword [ebp - 0x110], esi
push dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
cmp dword [ebp - 0x110], esi
je 0x40a8e0
push dword [ebp - 0x110]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fdc4
leave
ret 4
cmp dword [ebp - 0x110], esi
je 0x40a903
push dword [ebp - 0x110]
call ebx
mov eax, dword [ebp - 0x114]
jmp 0x40a8e2
Function at 0x40af73
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x415010]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
xor ecx, ecx
cmp dword [esi], ecx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x78], eax
jne 0x40afaa
mov eax, 0x8000ffff
jmp 0x40b074
cmp eax, ecx
jne 0x40afb8
mov eax, 0x80004003
jmp 0x40b074
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
push ecx
push edx
push dword [esi]
mov dword [ebp - 0x74], 0x208
mov dword [ebp - 0x70], ecx
call ebx
mov edi, eax
test edi, edi
je 0x40afec
cmp edi, 0xea
jne 0x40b060
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x40b060
cmp dword [ebp - 0x70], 1
je 0x40b00c
cmp dword [ebp - 0x70], 7
je 0x40b00c
cmp dword [ebp - 0x70], 2
je 0x40b00c
mov edi, 0x3f4
jmp 0x40b064
and word [ebp + 0x19a], 0
test edi, edi
jne 0x40b029
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
jmp 0x40b070
shr eax, 1
dec eax
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
mov dword [ebp - 0x7c], eax
je 0x40b08b
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0
push 0
push dword [ebp - 0x80]
push dword [esi]
call ebx
mov edi, eax
test edi, edi
jne 0x40b057
mov eax, dword [ebp - 0x7c]
jmp 0x40b022
push dword [ebp - 0x7c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jle 0x40b070
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
call fcn.0040fdc4
add ebp, 0x1a0
leave
ret 4
mov eax, 0x8007000e
jmp 0x40b072