joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480ff0
Capabilities:
Encode data using xor
Encrypt data using xxtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x14], 0
push edi
mov edi, dword [ebp + 8]
je 0x481133
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
test eax, eax
je 0x481141
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x481026
push dword [edi]
call fcn.006fa499
add esp, 4
mov dword [edi + 0xc], eax
push esi
push dword [edi]
push dword [ebp + 0x10]
push eax
call fcn.006f6ff0
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [edi + 0xc]
xor ecx, ecx
cdq
and edx, 3
mov dword [ebp - 0xc], esi
lea edi, [edx + eax]
sar edi, 2
mov eax, dword [esi + edi*4 - 4]
lea edx, [edi - 1]
mov dword [ebp + 0x14], eax
lea edx, [esi + edx*4]
mov dword [ebp - 0x14], edx
mov eax, 0x34
cdq
idiv edi
add eax, 6
test eax, eax
jle 0x48112b
mov edx, dword [ebp + 0x14]
dec edi
mov dword [ebp - 0x10], edi
push ebx
sub ecx, 0x61c88647
dec eax
mov ebx, ecx
mov dword [ebp - 0x18], eax
shr ebx, 2
xor eax, eax
and ebx, 3
mov dword [ebp - 8], ecx
test edi, edi
jle 0x4810d9
nop
mov esi, dword [esi + eax*4 + 4]
mov edi, edx
shl edi, 4
mov ecx, esi
shr ecx, 3
xor edi, ecx
shr edx, 5
lea ecx, [esi*4]
xor edx, ecx
mov ecx, eax
add edi, edx
and ecx, 3
mov edx, dword [ebp - 4]
xor ecx, ebx
mov edx, dword [edx + ecx*4]
xor edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
xor ecx, esi
mov esi, dword [ebp - 0xc]
add edx, ecx
xor edi, edx
add dword [esi + eax*4], edi
mov edx, dword [esi + eax*4]
inc eax
mov dword [ebp + 0x14], edx
cmp eax, dword [ebp - 0x10]
jl 0x481090
mov esi, dword [esi]
mov edi, edx
shl edi, 4
mov ecx, esi
shr ecx, 3
and eax, 3
xor edi, ecx
shr edx, 5
lea ecx, [esi*4]
xor eax, ebx
xor edx, ecx
mov ecx, dword [ebp - 4]
add edi, edx
mov ecx, dword [ecx + eax*4]
xor ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
xor eax, esi
mov esi, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0x14]
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [eax], edi
mov edx, dword [eax]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov dword [ebp + 0x14], edx
test eax, eax
jg 0x481074
pop ebx
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x481012
mov eax, dword [ebp + 0x10]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4837a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov edx, dword [ebx + 0x3c]
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x4837df
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
mov eax, dword [ecx + 0x18]
push edx
push edi
push ecx
call eax
mov edi, eax
add esp, 0x14
mov dword [ebp - 4], edi
test edi, edi
jne 0x48390d
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x483818
mov eax, dword [ebx + 0x80]
push 0
cdq
push ecx
push edx
push eax
call fcn.006f4f60
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
push 5
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x28]
call eax
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
mov esi, dword [ebp + 0xc]
nop dword [eax + eax]
test esi, esi
je 0x48390d
mov edi, dword [esi + 0xc]
cmp edi, dword [ebx + 0x18]
ja 0x4838fc
test byte [esi + 0x14], 0x20
jne 0x4838fc
mov eax, dword [ebx + 0x80]
lea ecx, [edi - 1]
cdq
push edx
push eax
push 0
push ecx
call fcn.006f4f60
mov ecx, dword [ebx + 0xa4]
mov dword [ebp - 4], edx
mov edx, dword [esi]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
test ecx, ecx
je 0x483883
push 6
push edi
push edx
push dword [ebx + 0xb0]
call ecx
mov edx, eax
mov dword [ebp - 8], eax
add esp, 0x10
test edx, edx
je 0x483916
push dword [ebp - 4]
mov ecx, dword [ebx + 0x3c]
push dword [ebp - 0xc]
push dword [ebx + 0x80]
mov eax, dword [ecx]
push edx
push ecx
mov eax, dword [eax + 0xc]
call eax
add esp, 0x14
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4838b1
mov eax, dword [ebp - 8]
movups xmm0, xmmword [eax + 0x18]
movups xmmword [ebx + 0x64], xmm0
cmp edi, dword [ebx + 0x20]
jbe 0x4838b9
mov dword [ebx + 0x20], edi
mov eax, dword [esi]
mov esi, dword [ebx + 0x58]
mov dword [ebp - 0xc], eax
test esi, esi
je 0x4838f9
mov ebx, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4838d8
cmp eax, 5
je 0x4838d8
cmp eax, 6
jne 0x4838ef
cmp edi, dword [esi + 0x10]
jae 0x4838ef
push ebx
push edi
push esi
call fcn.0046a230
add esp, 0xc
test eax, eax
je 0x4838ef
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x4838c7
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
mov esi, dword [esi + 8]
mov dword [ebp + 0xc], esi
test edi, edi
je 0x483820
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
push edi
xor edi, edi
mov ebx, edx
test edx, edx
jne 0x499a38
mov dword [ebp - 4], edi
jmp 0x499a51
cmp byte [edx], 0
je 0x499a46
nop dword [eax]
inc ebx
cmp byte [ebx], 0
jne 0x499a40
sub ebx, edx
and ebx, 0x3fffffff
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
test ebx, ebx
jle 0x499b5d
mov ebx, dword [eax + 8]
mov dword [ebp - 0x10], ebx
push esi
nop
mov eax, ecx
xor eax, 1
cmp ecx, 2
cmovge eax, ecx
mov ecx, dword [ebp + 0x10]
add eax, eax
mov esi, dword [ebx + eax*8 + 0xc]
mov dword [ebp + 8], esi
test ecx, ecx
je 0x499adf
mov edx, dword [ebx + eax*8]
mov bl, byte [ecx]
test bl, bl
je 0x499ac4
mov esi, ecx
mov al, bl
sub esi, edx
nop word [eax + eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x72f6c8]
cmp al, byte [ecx + 0x72f6c8]
jne 0x499ac1
mov al, byte [esi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x499aa0
mov esi, dword [ebp + 8]
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x72f6c8]
movzx eax, bl
movzx eax, byte [eax + 0x72f6c8]
sub eax, ecx
jne 0x499b46
mov edx, dword [ebp + 0xc]
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebp + 8], ecx
je 0x499b20
mov edi, edx
mov esi, ebx
xor edx, edx
test ebx, ebx
je 0x499b18
movzx eax, byte [edi]
lea edi, [edi + 1]
dec esi
movzx ecx, byte [eax + 0x72f6c8]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
test esi, esi
jg 0x499af8
mov ecx, dword [ebp + 8]
mov eax, edx
xor edx, edx
div dword [ecx]
jmp 0x499b22
xor edx, edx
push edx
push ebx
push dword [ebp + 0xc]
push ecx
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x499b44
mov edi, dword [eax + 8]
test edi, edi
je 0x499b46
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0xc]
jge 0x499b3b
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x10]
jmp 0x499a70
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 8], eax
push ebx
mov ebx, edx
push esi
test edx, edx
jne 0x499b8b
mov dword [ebp - 4], eax
jmp 0x499ba0
cmp byte [edx], al
je 0x499b95
nop
inc ebx
cmp byte [ebx], al
jne 0x499b90
sub ebx, edx
and ebx, 0x3fffffff
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, dword [ebx + 4]
mov dword [ebp - 0x10], esi
test esi, esi
jle 0x499c8c
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
xor esi, 1
cmp ecx, 2
cmovge esi, ecx
test edi, edi
je 0x499c23
mov eax, dword [ebx + 8]
mov ecx, esi
mov bl, byte [edi]
add ecx, ecx
mov edx, dword [eax + ecx*8]
test bl, bl
je 0x499c01
mov al, bl
sub edi, edx
nop dword [eax]
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x72f6c8]
cmp al, byte [ecx + 0x72f6c8]
jne 0x499c01
mov al, byte [edi + edx + 1]
inc edx
mov bl, al
test al, al
jne 0x499be0
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x72f6c8]
movzx eax, bl
movzx eax, byte [eax + 0x72f6c8]
sub eax, ecx
jne 0x499c99
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
add esi, esi
mov ebx, dword [ebp - 4]
mov ecx, dword [eax + esi*8 + 0xc]
add ecx, 4
mov dword [ebp - 8], ecx
cmp dword [ecx + 0xc], 0
je 0x499c6d
mov edi, edx
mov esi, ebx
xor edx, edx
test ebx, ebx
je 0x499c65
movzx eax, byte [edi]
lea edi, [edi + 1]
dec esi
movzx ecx, byte [eax + 0x72f6c8]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
test esi, esi
jg 0x499c45
mov ecx, dword [ebp - 8]
mov eax, edx
xor edx, edx
div dword [ecx]
jmp 0x499c6f
xor edx, edx
push edx
push ebx
push dword [ebp + 0xc]
push ecx
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x499c92
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
je 0x499c9c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x499c9c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x10]
jge 0x499c8b
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
jmp 0x499bb7
Function at 0x49b0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
mov eax, dword [eax]
push esi
xor esi, esi
test dword [eax + 0xc], 0x4000000
je 0x49b1fd
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov ebx, dword [eax + 0x24]
test ebx, ebx
je 0x49b118
mov edi, dword [ebx + 0x14]
test edi, edi
jle 0x49b10e
lea edx, [ebx + 0x24]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x49b0fd
or eax, 0xffffffff
jmp 0x49b104
mov eax, 1
shl eax, cl
or esi, eax
add edx, 8
sub edi, 1
jne 0x49b0f1
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x49b0e7
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edi, ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x49b136
cmp byte [ecx], 0
je 0x49b12e
inc edi
cmp byte [edi], 0
jne 0x49b128
sub edi, ecx
and edi, 0x3fffffff
mov eax, dword [eax + 0x44]
xor edx, edx
add eax, 0x34
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
cmp dword [eax + 0xc], edx
je 0x49b182
mov dword [ebp - 0xc], ecx
mov ebx, edi
test edi, edi
je 0x49b177
mov edi, ecx
movzx eax, byte [edi]
lea edi, [edi + 1]
dec ebx
movzx ecx, byte [eax + 0x72f6c8]
lea eax, [edx*8]
xor ecx, eax
xor edx, ecx
test ebx, ebx
jg 0x49b154
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 8]
mov eax, edx
xor edx, edx
div dword [ebx]
mov eax, ebx
push edx
push edi
push ecx
push eax
call fcn.00476cb0
add esp, 0x10
test eax, eax
je 0x49b1f4
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x49b1f4
nop dword [eax]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047cab0
mov edx, dword [ebp - 8]
add esp, 0x14
test edx, edx
je 0x49b1ed
mov edi, dword [edx + 4]
test edi, edi
jle 0x49b1ed
mov edx, dword [edx + 8]
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, 0x1f
jle 0x49b1dc
or eax, 0xffffffff
jmp 0x49b1e3
mov eax, 1
shl eax, cl
or esi, eax
add edx, 4
sub edi, 1
jne 0x49b1d0
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x49b1a0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c32d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
jle 0x4c3300
push ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x72f6c8]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x4c32e2
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4cbfd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x720f10
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi], vtable.ATL::CComPolyObject_class_ATL::CAxHostWindow_.0
mov dword [esi + 0x58], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0xe0], 0
mov dword [esi + 0xe4], 0
mov dword [esi + 0xf0], 0
mov eax, dword [esi + 0xd0]
and dword [esi + 0xa0], 0xffffff40
and eax, 0xfffffffb
or eax, 3
mov dword [esi + 0x20], 0
push 8
mov dword [esi + 0x24], 0
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], 0
call dword [sym.imp.USER32.dll_GetSysColor]
and dword [esi + 0xa0], 0xffffffbf
mov ecx, esi
mov dword [esi + 0xd8], eax
xorps xmm0, xmm0
mov eax, dword [esi + 0xd0]
and eax, 0xffffffaf
mov dword [esi + 0xdc], 0x400
or eax, 0x28
mov dword [esi + 0x98], 0
mov dword [esi + 0xd0], eax
mov eax, dword [ebp + 8]
test eax, eax
movups xmmword [esi + 0x88], xmm0
cmovne ecx, eax
mov dword [esi + 0x9c], 0xcdcdcdcd
mov dword [esi + 0xe8], 4
mov dword [esi + 0xec], 0
mov dword [esi + 0x60], 0
mov byte [esi + 0x64], 1
mov dword [esi + 0xcc], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb8], 0
movups xmmword [esi + 0xbc], xmm0
mov dword [esi + 8], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.0
mov dword [esi + 0x2c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.1.0
mov dword [esi + 0x30], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.2.0
mov dword [esi + 0x34], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.3.0
mov dword [esi + 0x38], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.4.0
mov dword [esi + 0x3c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.5.0
mov dword [esi + 0x40], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.6.0
mov dword [esi + 0x48], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.7.0
mov dword [esi + 0x4c], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.8.0
mov dword [esi + 0x50], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.9.0
mov dword [esi + 0x54], vtable.ATL::CComContainedObject_class_ATL::CAxHostWindow_.10.0
mov dword [esi + 0x58], ecx
mov ecx, dword [0x7df22c]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4d1b40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
test esi, esi
je 0x4d1c92
test edi, edi
je 0x4d1c92
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x7d9a60
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d9a78]
mov dword [esi + 8], eax
push 0x7d9a60
mov dword [0x7d9a78], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [edi + 0x20], 1
mov dword [edi + 0x24], 0
mov esi, dword [0x7f44f0]
mov dword [ebp - 8], esi
call fcn.004dbd40
push 5
push 0x67
push esi
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4d1c74
push 0xf0
push 0x67
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], 0
test eax, eax
je 0x4d1bf2
push eax
push esi
call ecx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
xor esi, esi
push dword [ebp - 8]
call ecx
test eax, eax
je 0x4d1c61
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4d1c61
push dword [ebp - 4]
push eax
call fcn.004d8c10
add esp, 8
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push 0x4d8f40
push dword [ebp + 8]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov ebx, eax
test ebx, ebx
je 0x4d1c3d
cmp ebx, 0xffffffff
jne 0x4d1c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
je 0x4d1c69
test eax, eax
je 0x4d1c69
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4d1c69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4d1c74
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x24]
test eax, eax
jns 0x4d1c87
cmp ebx, 0xffffffff
jne 0x4d1c87
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0xc0000005
call fcn.004d9b20
int3
Function at 0x4d1e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x7f44f0]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x10c], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d1fc0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d1fc0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4d1fc0
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4d1f96
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x110], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x4d1f0e
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.004d3aa0
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x10c]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmove edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x4d1f83
push eax
call fcn.006fa47e
add esp, 4
jmp 0x4d1f83
cmp dx, ax
jne 0x4d1f88
push 3
lea eax, [ebp - 0x104]
mov dword [ebp - 0x134], 1
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x130], 0xffffffff
mov dword [ebp - 0x108], eax
call fcn.004d3aa0
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x12c], eax
cmp eax, ecx
je 0x4d1f60
push eax
call fcn.006fa47e
add esp, 4
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 0x10c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x4d1fab
mov edx, 0x1234
add esi, dword [ebp - 0x110]
test edi, edi
jne 0x4d1e86
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 4
Function at 0x4d6b50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x214], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x4d6cab
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x4d6bdc
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x4d6cab
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x208], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x4d6c77
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.004d6b50
mov esi, eax
test esi, esi
jne 0x4d6cab
lea eax, [ebp - 0x228]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call edi
test eax, eax
je 0x4d6c30
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4d6c8e
push eax
call ebx
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x210], 0
call fcn.004d1430
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4d6cb8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72180b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x7db1e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4d72bc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4d72bc
call fcn.004cee20
mov esi, eax
jmp 0x4d73ac
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4d72df
call fcn.004cee20
jmp 0x4d739f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4d72fd
call fcn.004cee20
jmp 0x4d739f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4d731e
mov esi, 0x8007000e
jmp 0x4d73a1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004ce4d0
jmp 0x4d7348
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4d735f
mov esi, 0x8007000e
jmp 0x4d73a1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4d737f
call fcn.004cee20
jmp 0x4d739f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004d7070
mov esi, eax
test edi, edi
je 0x4d73ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4d73c5
lea ecx, [ebp - 0x418]
call fcn.004d2510
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 - 0x14]
xor ecx, ebp
call fcn.006f4db8
mov esp, ebp
pop ebp
ret 0x10