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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 4
movsd dword es:[edi], dword [esi]
mov ebx, ecx
lea esi, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 4
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.00405c42
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.00405bf0
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405c17
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405c6d
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
mov byte [eax - 4], cl
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.00405c17
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.00405c42
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405c6d
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405bf0
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
mov byte [eax], cl
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.00405c6d
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.00405c17
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405bf0
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405c42
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], cl
movzx eax, byte [esi + 4]
push eax
mov ecx, ebx
call fcn.00405bf0
mov byte [ebp - 0x15], al
movzx eax, byte [esi + 8]
push eax
mov ecx, ebx
call fcn.00405c6d
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405c42
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [esi - 4]
mov byte [ebp - 0x15], cl
push eax
mov ecx, ebx
call fcn.00405c17
mov cl, byte [ebp - 0x15]
xor cl, al
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
inc esi
dec dword [ebp - 0x20]
mov byte [eax + 8], cl
jne 0x405e7b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret 4
Function at 0x406720
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
jbe 0x40681a
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 8], 1
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 2
sub dword [ebp - 0xc], ecx
push esi
mov esi, dword [ebp + 0x10]
jmp 0x406758
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
mov cl, byte [ecx + 0x50b780]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, dword [ebp + 0xc]
jae 0x4067ef
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea edx, [ebx + edx + 1]
mov bl, byte [edx]
shr bl, 4
add bl, cl
movzx ecx, bl
mov cl, byte [ecx + 0x50b780]
mov byte [eax + esi + 1], cl
mov cl, byte [edx]
mov edx, dword [ebp - 0xc]
and cl, 0xf
add edx, edi
shl cl, 2
cmp edx, dword [ebp + 0xc]
jae 0x4067db
mov edx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
and bl, 0x3f
shr dl, 6
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + 0x50b780]
mov byte [eax + esi + 2], cl
movzx ecx, bl
mov cl, byte [ecx + 0x50b780]
mov byte [eax + esi + 3], cl
jmp 0x406803
movzx ecx, cl
mov cl, byte [ecx + 0x50b780]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x406803
movzx ecx, cl
mov cl, byte [ecx + 0x50b780]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edi, dword [ebp - 4]
add edi, 3
add eax, 4
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 0xc]
jb 0x406755
pop esi
pop ebx
pop edi
leave
ret

Function at 0x40681d
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
sub esp, 0xc
cmp byte [ecx + eax - 1], 0x3d
jne 0x40683b
dec eax
cmp byte [ecx + eax - 1], 0x3d
je 0x406830
mov dword [ebp + 0xc], eax
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
jbe 0x4068ed
push ebx
mov dword [ebp - 8], 2
sub dword [ebp - 8], ecx
mov dword [ebp - 0xc], 3
sub dword [ebp - 0xc], ecx
push edi
mov edi, dword [ebp + 0x10]
movsx eax, byte [ecx + 1]
movsx edx, byte [ecx]
mov al, byte [eax + 0x50b7c8]
mov dl, byte [edx + 0x50b7c8]
shl dl, 2
mov bl, al
sar bl, 4
and bl, 3
or dl, bl
mov byte [esi + edi], dl
mov edx, dword [ebp - 8]
add edx, ecx
inc esi
cmp edx, dword [ebp + 0xc]
jae 0x4068d8
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x50b7c8]
mov bl, dl
sar bl, 2
shl al, 4
and bl, 0xf
or bl, al
mov eax, dword [ebp - 0xc]
mov byte [esi + edi], bl
add eax, ecx
inc esi
cmp eax, dword [ebp + 0xc]
jae 0x4068d8
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
movsx eax, byte [eax + ebx + 3]
mov al, byte [eax + 0x50b7c8]
and al, 0x3f
shl dl, 6
or al, dl
mov byte [esi + edi], al
inc esi
add dword [ebp - 4], 4
mov eax, dword [ebp - 4]
add ecx, 4
cmp eax, dword [ebp + 0xc]
jb 0x406862
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x407172
Capabilities:
Read file on windows

Disassembly:
push 0x4d8
mov eax, 0x501499
call fcn.004dead8
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x4e4], esi
mov dword [ebp - 0x4e0], ebx
mov dword [ebp - 0x45c], 7
mov dword [ebp - 0x460], ebx
mov word [ebp - 0x470], ax
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x40729b
push 0x3ff
lea eax, [ebp - 0x453]
push ebx
push eax
mov byte [ebp - 0x454], bl
call fcn.004de430
push 0x50b8c4
push edi
call fcn.004df8a2
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x40729b
lea ecx, [ebp - 0x4dc]
call fcn.004db152
mov esi, 0x400
jmp 0x40720e
push eax
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x4dc]
call fcn.004db845
push edi
push esi
lea eax, [ebp - 0x454]
push 1
push eax
call fcn.004df7c7
add esp, 0x10
cmp eax, ebx
jne 0x4071fb
push edi
call fcn.004df509
pop ecx
lea ecx, [ebp - 0x4dc]
call fcn.00407092
mov dword [ebp - 0x4e0], eax
xor eax, eax
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call fcn.004de430
add esp, 0xc
xor edi, edi
lea esi, [ebp - 0x54]
mov eax, dword [ebp - 0x4e0]
movzx eax, byte [edi + eax]
push eax
push 0x50b8b8
push 3
push esi
call fcn.004df3cc
add esp, 0x10
inc edi
add esi, 4
cmp edi, 0x10
jl 0x407257
lea eax, [ebp - 0x54]
push eax
call fcn.004df380
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x470]
call fcn.00406caa
mov esi, dword [ebp - 0x4e4]
lea eax, [ebp - 0x470]
push eax
mov ecx, esi
call fcn.00406db5
push ebx
push 1
lea ecx, [ebp - 0x470]
call fcn.00406991
mov eax, esi
call fcn.004deb5b
ret
Function at 0x407373
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, edx
shr eax, 4
xor eax, ecx
and eax, 0xf0f0f0f
xor ecx, eax
shl eax, 4
xor edx, eax
mov eax, edx
shr eax, 0x10
xor eax, ecx
and eax, 0xffff
xor ecx, eax
shl eax, 0x10
xor edx, eax
mov eax, ecx
shr eax, 2
xor eax, edx
and eax, 0x33333333
xor edx, eax
shl eax, 2
xor ecx, eax
mov eax, ecx
shr eax, 8
xor eax, edx
and eax, 0xff00ff
xor edx, eax
shl eax, 8
xor eax, ecx
rol eax, 1
mov ecx, eax
xor ecx, edx
and ecx, 0xaaaaaaaa
xor eax, ecx
xor ecx, edx
rol ecx, 1
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
mov esi, eax
ror esi, 4
xor esi, dword [edi]
push 0x3f
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov edx, dword [ecx*4 + 0x5422d0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or edx, dword [ebx*4 + 0x5424d0]
mov ecx, esi
shr ecx, 8
and ecx, 0x3f
or edx, dword [ecx*4 + 0x5426d0]
and esi, 0x3f
or edx, dword [esi*4 + 0x5428d0]
mov esi, dword [edi + 4]
xor esi, eax
mov ecx, esi
shr ecx, 0x18
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x5423d0]
mov ebx, esi
shr ebx, 0x10
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x5425d0]
mov ebx, esi
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x5427d0]
add edi, 0x10
mov ebx, ecx
pop ecx
and esi, ecx
or ebx, dword [esi*4 + 0x5429d0]
or ebx, edx
xor dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
ror esi, 4
xor esi, dword [edi - 8]
mov edx, esi
shr edx, 0x18
and edx, ecx
mov edx, dword [edx*4 + 0x5422d0]
mov ebx, esi
shr ebx, 0x10
and ebx, ecx
or edx, dword [ebx*4 + 0x5424d0]
mov ebx, esi
shr ebx, 8
and ebx, ecx
or edx, dword [ebx*4 + 0x5426d0]
and esi, ecx
or edx, dword [esi*4 + 0x5428d0]
mov esi, dword [edi - 4]
xor esi, dword [ebp - 4]
mov ebx, esi
shr ebx, 0x18
and ebx, ecx
mov ebx, dword [ebx*4 + 0x5423d0]
mov ecx, esi
shr ecx, 0x10
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x5425d0]
mov ecx, esi
shr ecx, 8
and ecx, 0x3f
or ebx, dword [ecx*4 + 0x5427d0]
and esi, 0x3f
or ebx, dword [esi*4 + 0x5429d0]
or ebx, edx
xor eax, ebx
dec dword [ebp - 8]
jne 0x4073ee
ror eax, 1
mov edx, eax
xor edx, dword [ebp - 4]
pop edi
and edx, 0xaaaaaaaa
xor eax, edx
xor edx, dword [ebp - 4]
ror edx, 1
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
shl esi, 4
xor esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor ecx, edx
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 8
Function at 0x4076f7
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x100], ecx
xor edx, edx
movzx eax, byte [edx + str.80_]
mov esi, dword [ebp + 8]
mov ecx, eax
sar ecx, 3
mov cl, byte [ecx + esi]
and eax, 7
test byte [eax*2 + 0x5421e8], cl
setne al
mov byte [ebp + edx - 0x74], al
inc edx
cmp edx, 0x38
jl 0x407717
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xfc], 0x1e
cmp dword [ebp + 0xc], 1
jne 0x40775e
mov eax, dword [ebp - 0xfc]
jmp 0x407766
mov eax, dword [ebp - 0xf8]
add eax, eax
lea edx, [ebp + eax*4 - 0xf0]
lea esi, [ebp + eax*4 - 0xf4]
mov eax, dword [ebp - 0xf8]
movzx eax, byte [eax + 0x542290]
mov dword [edx], ebx
mov dword [esi], ebx
xor ecx, ecx
mov edi, eax
cmp edi, 0x1c
jge 0x407794
mov bl, byte [ebp + edi - 0x74]
jmp 0x40779b
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + ecx - 0x3c], bl
inc ecx
inc edi
cmp ecx, 0x1c
jl 0x407789
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x4077b6
mov cl, byte [ebp + eax - 0x74]
jmp 0x4077bd
mov cl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], cl
inc edi
inc eax
cmp edi, 0x38
jl 0x4077ab
xor ebx, ebx
xor eax, eax
movzx edi, byte [eax + 0x5422a0]
cmp byte [ebp + edi - 0x3c], bl
je 0x4077e2
mov edi, dword [eax*4 + 0x5421f8]
or dword [esi], edi
movzx ecx, byte [eax + 0x5422b8]
cmp byte [ebp + ecx - 0x3c], bl
je 0x4077f8
mov ecx, dword [eax*4 + 0x5421f8]
or dword [edx], ecx
inc eax
cmp eax, 0x18
jl 0x4077cc
sub dword [ebp - 0xfc], 2
inc dword [ebp - 0xf8]
cmp dword [ebp - 0xfc], 0xfffffffe
jg 0x407750
mov ecx, dword [ebp - 0x100]
lea eax, [ebp - 0xf4]
push eax
call fcn.004075db
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret 8

Function at 0x407e54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x548770]
cmp dword [0x548770], 0x64
mov eax, ecx
jl 0x407eb5
and dword [0x548770], 0
push esi
lea esi, [eax + 0x1c]
cmp dword [esi + 0x14], 8
jb 0x407e8a
mov eax, dword [esi]
jmp 0x407e8c
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x407eb4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jbe 0x407eb4
cmp dword [esi + 0x14], 8
jb 0x407ead
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dea60
leave
ret 4
Function at 0x408652
Capabilities:
Delete file

Disassembly:
push 0xe88
mov eax, 0x50155d
call fcn.004dead8
cmp dword [ebp + 8], 0xffffffff
mov edi, ecx
jne 0x40844b
mov dword [ebp + 8], SysReAllocStringLen
lea eax, [ebp - 0xe94]
push eax
call fcn.004dfb68
mov dword [ebp - 0xe94], eax
lea eax, [ebp - 0xe94]
push eax
mov dword [ebp - 0xe90], edx
call fcn.004dfb41
cmp dword [edi + 0x30], 8
pop ecx
pop ecx
mov esi, eax
jb 0x40847e
mov eax, dword [edi + 0x1c]
jmp 0x408481
lea eax, [edi + 0x1c]
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0xa38]
push ecx
lea ecx, [ebp - 0xc40]
push ecx
push eax
call fcn.004e0cc5
lea eax, [ebp - 0x628]
push eax
push dword [esi + 0xc]
mov eax, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xc40]
push eax
push str._s_s_s__d__02d__02d_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004df3cc
lea eax, [ebp - 0x218]
push eax
call fcn.004df380
add esp, 0x40
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x1c]
call fcn.00406caa
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004e06a4
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004e081c
lea eax, [ebp - 0x420]
push 0x50bac4
push eax
call fcn.004e07eb
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004e07eb
lea eax, [ebp - 0xe8c]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004e0863
mov edi, eax
add esp, 0x28
cmp edi, 0xffffffff
je 0x40864a
mov esi, 0x50bac0
test byte [ebp - 0xe8c], 0x10
jne 0x40862b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xe94]
imul eax, eax, 0x15180
cdq
sub ecx, eax
mov eax, dword [ebp - 0xe90]
sbb eax, edx
cmp dword [ebp - 0xe80], eax
jg 0x40862b
jl 0x4085b2
cmp dword [ebp - 0xe84], ecx
jae 0x40862b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00406d28
and dword [ebp - 4], 0
push esi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc5c]
call fcn.004082b9
lea eax, [ebp - 0xe68]
push eax
call fcn.004df380
pop ecx
push eax
lea eax, [ebp - 0xe68]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.004082b9
cmp dword [ebp - 0xc48], 8
mov eax, dword [ebp - 0xc5c]
jae 0x408611
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc5c]
call fcn.00406991
lea eax, [ebp - 0xe8c]
push eax
push edi
call fcn.004e098a
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x408575
push edi
call fcn.004e083d
pop ecx
call fcn.004deb5b
ret 4
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x3c]
test al, 1
je 0x408662
pop ebp
jmp 0x40842d
test al, 2
je 0x40866c
pop ebp
jmp fcn.00407e54
pop ebp
ret 4
Function at 0x40a68a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0040a094
mov ebx, eax
cmp ebx, esi
je 0x40a6fb
lea ecx, [ebp - 0x214]
call fcn.0040a011
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dea60
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a719
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040a68a
cmp eax, esi
jne 0x40a760
lea eax, [ebp - 0x220]
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]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x40a703
lea ecx, [ebp - 0x214]
call fcn.0040a011
push dword [ebp - 0x218]
mov ecx, edi
call fcn.00409fa1
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040a011
mov eax, esi
jmp 0x40a6ea
Function at 0x40bbc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x501832
call fcn.004deb0e
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40bc1f
call fcn.00409db2
mov esi, eax
jmp 0x40bcf5
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x40bc38
call fcn.00409db2
jmp 0x40bce7
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40bc2e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40bc72
mov esi, 0x8007000e
jmp 0x40bce9
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040ac96
mov dword [ebp - 4], 1
jmp 0x40bca0
cmp dword [ebp - 0x418], esi
je 0x40bc6b
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40bc2e
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040b943
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40bd0e
lea ecx, [ebp - 0x418]
call fcn.0040a633
mov eax, esi
call fcn.004deb6a
ret 0x10

Function at 0x40cb29
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x547240]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push 0x13
push eax
call fcn.00441178
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.004de430
mov eax, dword [ebp - 0xa0]
add esp, 0x14
cmp dword [ebp - 0x8c], 8
jae 0x40cb7a
lea eax, [ebp - 0xa0]
push esi
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push str.false
push str.InstallPerUser
push 0x50bbbc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x84]
push str.true
push eax
call fcn.004e2c8f
pop ecx
pop ecx
push 0
neg eax
push 1
lea ecx, [ebp - 0xa0]
sbb esi, esi
call fcn.00406991
mov ecx, dword [ebp - 4]
lea eax, [esi + 1]
xor ecx, ebp
pop esi
call fcn.004dea60
leave
ret 4
Function at 0x40d599
Capabilities:
Read .ini file

Disassembly:
push 0x5c
mov eax, 0x501925
call fcn.004dead8
mov esi, dword [ebp + 8]
cmp dword [esi + 0x194], 0xffffffff
mov ebx, str.kupdate::KClientInfoGetter::GetLanguageID
mov edi, str.D:_fun_pow_4_20190808Coding_supportminisite_srcmiscKClientInfoGetter.cpp
jne 0x40d6ad
or dword [ebp - 0x68], 0xffffffff
lea eax, [ebp - 0x64]
push 0x15
push eax
call fcn.00441178
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x40d5e0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040ccd0
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
jae 0x40d5f9
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push str.UILanguage
push str.Local
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
jne 0x40d68b
push str.Failed_to_read_from_setupcfg.
push ebx
push 0x12a
push edi
push 5
call fcn.004081cf
add esp, 0x14
lea eax, [ebp - 0x2c]
push 7
push eax
call fcn.0044ff30
mov ecx, eax
call fcn.0044fa5e
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
jae 0x40d64c
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.004433a0
pop ecx
pop ecx
test eax, eax
jns 0x40d672
push str.Failed_to_read_from_reg.
push ebx
push 0x12e
push edi
push 5
call fcn.004081cf
add esp, 0x14
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406991
mov eax, dword [ebp - 0x68]
cmp eax, 0xffffffff
jne 0x40d68b
mov eax, 0x409
push 0
push 1
lea ecx, [ebp - 0x48]
mov dword [esi + 0x194], eax
call fcn.00406991
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00406991
push dword [esi + 0x194]
push str.Language_id_is:__u.
push ebx
push 0x133
push edi
push 9
call fcn.004081cf
mov eax, dword [esi + 0x194]
add esp, 0x18
call fcn.004deb5b
ret 4

Function at 0x40db93
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, ecx
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004dc6d3
mov ebx, eax
lea eax, [edi + edi]
push eax
push 0
push ebx
call fcn.004de430
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x40dbd2
mov esi, dword [esi]
push esi
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
push ebx
call fcn.00406d28
push ebx
call fcn.004de5b0
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40e4a5
Capabilities:
Query environment variable

Disassembly:
push 0x218
mov eax, 0x501afe
call fcn.004dead8
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x21c], eax
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov dword [ebp - 0x224], esi
mov word [esi], cx
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 4], eax
inc eax
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x220]
push eax
push ebx
call edi
test eax, eax
je 0x40e53f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004de430
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call edi
lea eax, [ebp - 0x218]
push eax
call fcn.004df380
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00406caa
mov eax, esi
call fcn.004deb5b
ret