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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x1004ca43
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 4], eax
add eax, edx
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x1004ca7d
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x1004ca7d
mov eax, dword [edi]
jmp 0x1004ca70
mov esi, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x1004cac0
cmp esi, dword [edx + ecx*8]
jne 0x1004ca70
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x1004caa7
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x1004caf0
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x1004cb12
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x1004caf8
mov dword [ecx], edi
jmp 0x1004cb12
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x1004cb12
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.1004e780
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1004fb30
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x1004fb83
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov edi, dword [edx + ecx*4]
inc ecx
lea ecx, [edx + ecx*4]
mov dword [ebp + 0xc], ecx
cmp edi, esi
jne 0x1004fb9f
mov ecx, esi
jmp 0x1004fba3
mov ecx, dword [ecx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1004fbf3
mov ecx, dword [eax + 8]
cmp ecx, dword [ebx]
je 0x1004fbb5
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
jmp 0x1004fb97
mov ecx, dword [ebx]
mov edx, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
nop
cmp edi, esi
jne 0x1004fbc8
mov ecx, esi
jmp 0x1004fbcc
mov ecx, dword [ebx]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1004fbdc
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jne 0x1004fbdc
mov eax, dword [eax]
jmp 0x1004fbc0
cmp edx, eax
je 0x1004fbf3
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1004fc70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x1004fcc3
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x1004fcef
cmp dword [ecx], edi
jne 0x1004fce7
mov eax, dword [ebx]
mov dword [ecx], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ebx]
mov dword [ecx + edx + 4], eax
jmp 0x1004fcf7
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x1004fcf7
cmp dword [ecx], edi
jne 0x1004fcfa
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 4]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10051390
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x100513e2
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x100513fa
mov ecx, esi
jmp 0x100513ff
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x1005142c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x1005140e
mov eax, dword [eax]
jmp 0x100513f2
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x1005141e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1005b000
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100af6e9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100e4618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push 9
push str.Breakline
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov ecx, ebx
mov byte [ebp - 4], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QObject::constructor_class_QObject__]
lea eax, [ebp - 0x10]
mov dword [ebx], vtable.hikvision::video_control::ToolBase.0
push eax
lea ecx, [ebx + 0xc]
mov dword [ebx + 8], 7
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x10], eax
mov al, byte [ebp + 0x2c]
mov byte [ebx + 0x14], al
mov byte [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x34]
movq xmm0, qword [ebp + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], vtable.hikvision::video_control::ToolBreakline.0
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x1c]
movq qword [ebx + 0x24], xmm0
mov word [ebx + 0x2c], ax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x30], eax
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov al, byte [ebp + 0x30]
mov byte [ebx + 0x38], al
mov al, byte [ebp + 0x34]
mov byte [ebx + 0x39], al
mov eax, dword [ebp + 0x38]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
lea ecx, [ebx + 0x58]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
lea ecx, [ebx + 0x60]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
movsd xmm0, qword [0x100be900]
lea ecx, [ebx + 0x58]
push str.below
mov byte [ebp - 4], 6
mov word [ebx + 0x5c], 0
movsd qword [ebx + 0x50], xmm0
call dword [0x100bb614]
push str.number
lea ecx, [ebx + 0x60]
call dword [0x100bb614]
lea ecx, [ebp + 0x24]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x100610c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0539
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100e4618]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
push str.Zoom
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x10], eax
push 0
mov ecx, esi
mov dword [ebp - 4], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QObject::constructor_class_QObject__]
lea eax, [ebp - 0x10]
mov dword [esi], vtable.hikvision::video_control::ToolBase.0
push eax
lea ecx, [esi + 0xc]
mov dword [esi + 8], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
lea ecx, [ebp - 0x10]
mov dword [esi + 0x10], 0xffffffff
mov byte [esi + 0x14], 1
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esi + 0x18], eax
mov eax, esi
mov dword [esi], vtable.hikvision::video_control::ToolZoom.0
movups xmmword [esi + 0x20], xmm0
movaps xmm0, xmmword [0x100bd4b0]
movups xmmword [esi + 0x30], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10067e60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b19f3
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x100e4618]
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, dword [ebp + 8]
xor eax, eax
push 0x7fe
mov dword [ebp - 0x818], 0
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x81c], esi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x800
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10067f05
mov edx, dword [str.C:Program_Data]
test edx, edx
je 0x10067ef3
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10067ee8
sub ecx, edi
jmp 0x10067ef6
or ecx, 0xffffffff
push ecx
push edx
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [esi], eax
jmp 0x10067f4a
push 0xffffffffffffffff
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString__]
lea ecx, [ebp - 0x814]
mov dword [ebp - 4], 0
mov dword [ebp - 0x818], 1
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
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.100a3b70
mov esp, ebp
pop ebp
ret 4
Function at 0x40fb40
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
cmp ebx, 0x40
jae 0x40fb4e
xor al, al
pop ebx
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [edi], eax
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [edi + 4], ecx
cmp word [eax], 0x5a4d
jne 0x40fbb6
cmp ebx, dword [eax + 0x3c]
jb 0x40fbb6
mov edx, ecx
sub edx, eax
add edx, 0xf8
cmp ebx, edx
jb 0x40fbb6
push esi
lea esi, [ecx + 0xf8]
mov dword [edi + 8], esi
cmp dword [ecx], 0x4550
jne 0x40fbb0
mov dx, word [ecx + 6]
movzx ecx, dx
lea ecx, [ecx + ecx*4]
shl ecx, 3
sub ecx, eax
add ecx, esi
cmp ecx, ebx
jae 0x40fbb0
and edx, 0x7f
pop esi
mov word [edi + 0xc], dx
pop edi
setne al
pop ebx
ret
pop esi
pop edi
xor al, al
pop ebx
ret
pop edi
xor al, al
pop ebx
ret

Function at 0x40fe00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
test eax, eax
mov dl, byte [ecx + 0x101]
push ebx
mov bl, byte [ecx + 0x100]
je 0x40fe68
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov dword [esp + 0x1c], eax
inc bl
movzx eax, bl
lea esi, [eax + ecx]
movzx eax, byte [esi]
add dl, al
mov byte [esp + 0x14], dl
movzx edx, dl
lea edi, [edx + ecx]
movzx edx, byte [edi]
mov byte [esi], dl
add edx, eax
and edx, 0xff
mov byte [edi], al
mov al, byte [edx + ecx]
mov dl, byte [ebp]
xor dl, al
mov eax, dword [esp + 0x1c]
mov byte [ebp], dl
mov dl, byte [esp + 0x14]
inc ebp
dec eax
mov dword [esp + 0x1c], eax
jne 0x40fe24
pop edi
pop esi
pop ebp
mov byte [ecx + 0x100], bl
mov byte [ecx + 0x101], dl
pop ebx
ret
Function at 0x404637
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x404651
xor esi, esi
jmp 0x40467f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00407960
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x4046ba
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4046b3
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40474f
xor esi, esi
jmp 0x40474f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x4046dd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x4046f0
xor esi, esi
jmp 0x404746
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x404702
jmp 0x4046cd
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x404746
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x404738
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.00407960
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.00407280
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.004047b6
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4051c5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x40e458
call fcn.004070bc
sub esp, 0x114
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00405187
mov edi, eax
cmp edi, esi
je 0x40520f
cmp dword [ebp - 0x10], esi
je 0x405208
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4052ac
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x405280
lea eax, [ebp - 0x120]
lea ecx, [ebp - 0x10]
push eax
call fcn.004051c5
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x40526d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x120]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x405232
cmp dword [ebp - 0x10], esi
je 0x40527b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x4052ac
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x405293
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x4052aa
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4052bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00407960
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.0040490f
xor edi, edi
cmp eax, edi
jl 0x405475
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00405482
pop ecx
test eax, eax
pop ecx
jne 0x405308
mov eax, 0x80020009
jmp 0x405475
mov ecx, esi
call fcn.004048e7
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.0040490f
cmp eax, edi
jl 0x405475
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x40543d
sub eax, 9
je 0x4053a2
dec eax
dec eax
jne 0x405464
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x40534d
xor ebx, ebx
jmp 0x405382
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00407960
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x405455
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x4053de
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00407960
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.00407220
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x4053e8
mov eax, 0x80004005
jmp 0x405475
cmp dword [ebp - 8], 0
jle 0x405422
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00405509
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x4053ee
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x405464
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040490f
cmp eax, edi
jl 0x405475
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4056b7
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x4056d6
xor al, al
jmp 0x4056f0
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4056f4
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x4d3200
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5633cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00556fff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4d3282
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0055473a
mov eax, dword [eax]
push 0x16972b4
push eax
call fcn.00546164
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0055728a
test bl, bl
je 0x4d3282
push 0x16972b4
lea ecx, [esp + 0xc]
call fcn.0055761a
push 0x169ae38
lea ecx, [esp + 0xc]
call fcn.0055761a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4d32be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0055728a
jmp 0x4d3389
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4d3342
lea edx, [esp + 0x7c]
push 0x169ae34
push edx
call fcn.00546164
add esp, 8
test eax, eax
je 0x4d3342
lea eax, [esp + 0x7c]
push 0x169ae30
push eax
call fcn.00546164
add esp, 8
test eax, eax
je 0x4d3342
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4d32d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0055728a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4d4600
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4d4662
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc