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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x10005bb1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10005ba0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x10008580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10014362
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1001b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
lea esi, [edi + 0x14]
mov dword [edi], eax
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [edi + 8], eax
mov ecx, esi
lea eax, [ebp + 0xc]
mov dword [ebp + 0x10], esi
push eax
push 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [ebp + 0xc], 0
call fcn.10009b00
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, esi
push 0
call fcn.100080a0
mov dword [ebp - 4], 2
push 0x24
call fcn.10012683
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 0x20], 0
mov dword [eax], vtable.std::_Node_base.0
mov dword [eax + 4], 0x14
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov byte [ebp - 4], 4
mov dword [eax], vtable.std::_Root_node.0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov eax, edx
shr eax, 3
not eax
mov dword [edi + 0x2c], edx
and eax, 0x100
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
mov eax, edx
shr eax, 9
not eax
and eax, 4
mov dword [edi + 0x38], eax
mov dword [edi + 0x40], edx
and edx, 0x3f
mov dword [edi + 0x3c], ecx
cmp edx, 1
je 0x100086ec
test edx, edx
je 0x100086ec
cmp edx, 2
jne 0x100086b9
mov eax, 0x6e000300
jmp 0x100086f1
cmp edx, 4
jne 0x100086c5
mov eax, 0x7080001b
jmp 0x100086f1
cmp edx, 8
jne 0x100086d1
mov eax, 0x7181a01b
jmp 0x100086f1
cmp edx, 0x10
jne 0x100086dd
mov eax, 0x6e080304
jmp 0x100086f1
xor eax, eax
mov ecx, 0x7088001f
cmp edx, 0x20
cmove eax, ecx
jmp 0x100086f1
mov eax, 0x8775dfb
mov dword [edi + 0x50], eax
test eax, 0x40000000
je 0x10008702
mov eax, dword [edi + 0x24]
or dword [eax + 8], 8
mov ecx, edi
call fcn.1000a450
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10011a80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015368
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1001b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10011ab6
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10011b31
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100016f0
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.10001980
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10011b50
test al, al
je 0x10011b22
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100015f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10012672
mov esp, ebp
pop ebp
ret
Function at 0x4171c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4171e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4171e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4171d8
mov eax, 1
add ebx, ebx
jne 0x4171fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4171f0
jne 0x41720c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4171f0
xor ecx, ecx
sub eax, 3
jb 0x417220
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417292
mov ebp, eax
add ebx, ebx
jne 0x41722b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417238
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41725c
inc ecx
add ebx, ebx
jne 0x417248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41723d
jne 0x417259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41723d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41727c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41726d
jmp 0x4171de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41727c
add edi, ecx
jmp 0x4171de
pop esi
mov edi, esi
mov ecx, 0x47
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41729a
cmp byte [edi], 1
jne 0x41729a
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 0x41729f
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417317
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d700]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d73c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4172cc
mov ecx, edi
jns 0x4172fb
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 + 0x1d740]
or eax, eax
je 0x417311
mov dword [ebx], eax
add ebx, 4
jmp 0x4172e9
call dword [esi + 0x1d750]
mov ebp, dword [esi + 0x1d744]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x41734b
sub esp, 0xffffff80
jmp 0x401550
Function at 0x100011f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CDialog.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x10006d9f
cmp dword [edi + 0x54], 0
jne 0x10006d9f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.100080de
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10006d46
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x100014c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push ebp
mov ebp, dword [ebx + 4]
push esi
push edi
mov dword [esp + 0x14], ebp
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
jbe 0x100015b4
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1000153d
mov edx, dword [esp + 0x20]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x10001598
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100015cb
mov eax, dword [esi - 4]
add eax, ebp
test edi, edi
mov dword [esi - 8], eax
je 0x10001598
push edi
push 0
push eax
call fcn.100122f0
add esp, 0xc
jmp 0x10001598
mov ecx, dword [esi + 4]
add ecx, eax
cmp ecx, 0x22600
ja 0x100015c3
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100015cb
mov eax, dword [esi - 4]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
add edx, dword [esp + 0x1c]
add eax, ebp
test ebx, ebx
jbe 0x10001591
mov edi, edx
mov ecx, eax
sub edi, eax
mov ebp, ebx
lea esp, [esp]
mov dl, byte [edi + ecx]
mov byte [ecx], dl
add ecx, 1
sub ebp, 1
jne 0x10001580
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov dword [esi - 8], eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
add eax, 1
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100014f2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x10002090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov ecx, dword [0x10055760]
push ebx
push ebp
push esi
mov esi, dword [0x10055768]
push edi
mov edi, esi
imul edi, ecx
lea ebp, [edi + 2]
xor eax, eax
mov dword [esp + 0x1c], eax
mov eax, dword [0x1005575c]
lea edx, [eax + ecx]
mov eax, dword [0x1005576c]
imul ebp, eax
mov dword [esp + 0x14], edx
lea ebx, [edx + eax + 5]
mov edx, dword [0x10055764]
imul ebx, edx
add ebx, ebp
mov ebp, dword [esp + 0x44]
sub ebx, ecx
lea ebx, [ebp + ebx*4]
mov dword [esp + 0x28], ebx
mov ebp, 2
sub ebp, edi
imul ebp, eax
lea edi, [ebp + ebp - 2]
mov ebx, edx
imul edi, ecx
add edi, dword [esp + 0x44]
imul ebx, edx
mov dword [esp + 0x18], ebx
lea ebx, [ebx + ebx - 2]
imul ebx, esi
add ebx, edi
mov edi, dword [0x1005575c]
mov dword [esp + 0x2c], ebx
lea ebx, [eax + 1]
imul ebx, edx
add ebx, esi
lea ebx, [ebx + edi + 1]
imul ebx, ecx
mov ebp, 2
sub ebp, eax
imul ebp, esi
add ebx, ebp
mov ebp, dword [esp + 0x44]
sub ebx, eax
add ebx, edi
imul edi, eax
add ebx, ebp
mov dword [esp + 0x10], edi
add edi, edx
lea ebp, [edi*8]
sub ebp, edi
mov edi, dword [esp + 0x14]
imul edi, esi
sub ebp, 7
imul ebp, edx
mov dword [esp + 0x30], ebx
lea ebx, [edi*8]
sub ebx, edi
mov edi, dword [0x1005575c]
sub ebp, ebx
mov ebx, dword [esp + 0x44]
add ebp, ebx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
add edi, eax
imul edi, eax
add ebp, 1
imul ebp, edx
lea edi, [edi + ecx*2 + 1]
imul ebp, edx
imul edi, esi
add edi, ebp
mov ebp, dword [0x1005575c]
lea edi, [edi + ebp*2]
lea ebp, [ebx + edi*2]
add edi, ebp
mov dword [esp + 0x34], edi
mov edi, ecx
imul edi, ecx
add edi, dword [esp + 0x10]
lea ebp, [ecx + 2]
lea edi, [edi + edi*2]
imul ebp, eax
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
imul edi, edx
imul edi, edx
sub ebp, edi
mov edi, dword [0x1005575c]
sub ebp, edi
lea ebp, [ebx + ebp*2]
mov dword [esp + 0x18], ebp
lea ebp, [esi*4]
mov dword [esp + 0x38], ebp
mov ebp, esi
imul ebp, eax
sub ebp, 1
imul ebp, edx
mov edx, esi
imul edx, edi
add ebp, 1
imul ebp, eax
sub ebp, edx
lea edx, [ecx + ebp - 1]
imul edx, esi
mov esi, 1
sub esi, ecx
imul esi, edi
sub esi, 1
imul esi, eax
mov eax, dword [esp + 0x48]
add edx, esi
sub edx, ecx
mov ecx, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x3c], edx
mov esi, ecx
mov edi, ecx
xor edx, edx
lea eax, [ecx + 1]
mov ecx, 0x44f5
div ecx
mov ebp, dword [esp + 0x14]
add edi, 1
mov ecx, edx
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + ecx]
add eax, esi
xor edx, edx
mov esi, 0x44f5
div esi
mov eax, dword [esp + 0x2c]
mov al, byte [eax + ecx]
mov esi, edx
mov edx, dword [esp + 0x30]
mov dl, byte [edx + esi]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x34]
mov byte [edx + esi], al
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + ecx]
mov eax, esi
sub eax, dword [esp + 0x10]
mov ebp, 0x44f5
movzx eax, byte [eax + ebx]
add eax, edx
xor edx, edx
div ebp
mov ebp, dword [esp + 0x3c]
add edx, dword [esp + 0x38]
movzx eax, byte [edx + ebx]
xor byte [edi + ebp - 1], al
cmp edi, 0x22600
jb 0x10002224
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x1000d2f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000d334
call fcn.100080de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000d334
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000d34f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000ceab
test ebx, ebx
mov esi, eax
je 0x1000d34d
test edi, edi
je 0x1000d34d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1001029b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10031be0]
jne 0x100102a5
repz ret
jmp fcn.10013bc7
Function at 0x1001ce40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10013e2b
xor ebx, ebx
cmp dword [0x1005829c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001cf15
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001ce80
xor eax, eax
jmp 0x1001cfd9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001ce79
push eax
call fcn.10013dc8
mov dword [esp], 0x1002a0b8
push edi
mov dword [0x1005829c], eax
call esi
push eax
call fcn.10013dc8
mov dword [esp], 0x1002a0a4
push edi
mov dword [0x100582a0], eax
call esi
push eax
call fcn.10013dc8
mov dword [0x100582a4], eax
lea eax, [ebp - 8]
push eax
call fcn.1001292d
test eax, eax
pop ecx
pop ecx
je 0x1001cee3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10015465
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001cf15
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10013dc8
cmp eax, ebx
pop ecx
mov dword [0x100582ac], eax
je 0x1001cf15
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10013dc8
pop ecx
mov dword [0x100582a8], eax
mov eax, dword [0x100582a8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001cf8e
cmp dword [0x100582ac], esi
je 0x1001cf8e
push eax
call fcn.10013e34
pop ecx
call eax
cmp eax, ebx
je 0x1001cf5b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100582ac]
call fcn.10013e34
pop ecx
call eax
test eax, eax
je 0x1001cf5b
test byte [ebp - 0x18], 1
jne 0x1001cf8e
lea eax, [ebp - 0xc]
push eax
call fcn.10012964
test eax, eax
pop ecx
je 0x1001cf76
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10015465
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1001cf85
or dword [ebp + 0x10], 0x200000
jmp 0x1001cfbf
or dword [ebp + 0x10], 0x40000
jmp 0x1001cfbf
mov eax, dword [0x100582a0]
cmp eax, esi
je 0x1001cfbf
push eax
call fcn.10013e34
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001cfbf
mov eax, dword [0x100582a4]
cmp eax, esi
je 0x1001cfbf
push dword [ebp - 4]
push eax
call fcn.10013e34
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1005829c]
call fcn.10013e34
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438ca1
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
mov ebx, dword [esp]
add esp, 4
sub ecx, edx
add ecx, ecx
and edx, edx
call fcn.00438cea
sub edx, 0xedf7627e
mov edx, 0x726137f4
xor dword [esi], ebx
or edx, edx
add edx, 0x3606f8d
or edx, edx
add esi, 1
inc ecx
or edx, ecx
mov edx, edx
cmp esi, edi
jne fcn.00438ca1
add edx, ecx
dec ecx
ret
Function at 0x402580
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x43800c]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], esi
mov eax, dword [eax]
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
push edi
test eax, eax
jne 0x4025db
push eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push 0x43336b
mov byte [esi], al
call fcn.00415960
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.00416b62
mov esp, ebp
pop ebp
ret
mov ecx, eax
xor edi, edi
and ecx, 3
jne 0x4025f5
cmp byte [eax + edx - 1], 0x3d
je 0x4025f5
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
jmp 0x402617
mov dword [esp + 0x18], 1
cmp ecx, 2
ja 0x40260f
cmp byte [eax + edx - 2], 0x3d
jne 0x40260f
mov dword [esp + 0x20], edi
jmp 0x402617
mov dword [esp + 0x20], 1
sub eax, dword [esp + 0x18]
and eax, 0xfffffffc
mov dword [esp + 0x40], edi
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
shr ecx, 2
push 0
mov dword [esp + 0x48], 0xf
mov byte [esp + 0x34], 0
lea eax, [eax + ecx*2]
add eax, ecx
lea ecx, [esp + 0x34]
add eax, dword [esp + 0x1c]
push eax
call fcn.00415820
cmp dword [esp + 0x44], 0x10
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4026e5
mov esi, dword [esp + 0x2c]
lea eax, [edx - 1]
shr eax, 2
add esi, 2
inc eax
mov dword [esp + 0x28], eax
nop dword [eax]
movzx eax, byte [esi - 2]
lea esi, [esi + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax*4 + 0x433f68]
movzx eax, byte [esi - 5]
shl ecx, 6
or ecx, dword [eax*4 + 0x433f68]
movzx eax, byte [esi - 4]
shl ecx, 6
or ecx, dword [eax*4 + 0x433f68]
movzx eax, byte [esi - 3]
shl ecx, 6
or ecx, dword [eax*4 + 0x433f68]
mov eax, ecx
sar eax, 0x10
mov byte [edx + edi], al
mov eax, ecx
sar eax, 8
mov byte [edx + edi + 1], al
mov eax, edx
mov byte [eax + edi + 2], cl
add edi, 3
sub dword [esp + 0x28], 1
jne 0x402680
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x402742
mov eax, dword [esp + 0x2c]
add eax, edx
mov dword [esp + 0x24], eax
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
mov edx, dword [eax*4 + 0x433f68]
shl edx, 6
or edx, dword [ecx*4 + 0x433f68]
mov ecx, dword [esp + 0x1c]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
cmp dword [esp + 0x20], 0
mov byte [ecx + edi], al
je 0x402742
mov eax, dword [esp + 0x24]
sar edx, 8
movzx eax, byte [eax + 2]
mov eax, dword [eax*4 + 0x433f68]
shl eax, 6
sar eax, 8
or al, dl
mov byte [ecx + edi + 1], al
movups xmm0, xmmword [esp + 0x30]
mov ecx, dword [esp + 0x5c]
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
pop edi
movq xmm0, qword [esp + 0x3c]
movq qword [esi + 0x10], xmm0
pop esi
xor ecx, esp
call fcn.00416b62
mov esp, ebp
pop ebp
ret
Function at 0x402af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4281c0
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x414], edi
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00418230
add esp, 0xc
mov dword [ebp - 0x414], 0x400
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x418]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ba0
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push 0
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x410]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bc6
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.00415960
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x402c0e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402c04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c6d
push edx
push ecx
call fcn.004171d4
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x402c50
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402c46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c6d
push edx
push ecx
call fcn.004171d4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416b62
mov esp, ebp
pop ebp
ret
call fcn.0041b83c
int3
Function at 0x402c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 8]
push ecx
push 0xf003f
lea eax, [ebp + 8]
mov dword [ebp - 8], 0x80000001
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ce7
cmp dword [ebp + 0x4c], 0x10
lea edx, [ebp + 0x38]
mov eax, dword [ebp + 0x48]
lea ecx, [ebp + 0x20]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
cmovae ecx, dword [ebp + 0x20]
inc eax
push eax
push edx
push 2
push 0
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x402d24
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d1a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.004171d4
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x402d66
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.004171d4
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x402da8
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402d9e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402db6
push edx
push ecx
call fcn.004171d4
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416b62
mov esp, ebp
pop ebp
ret
call fcn.0041b83c
int3