joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb780
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50b3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
lea edi, [eax + 0x2c]
mov eax, dword [edi]
test eax, eax
jne 0x44467e
push dword [0x50a424]
call fcn.00443820
add esp, 4
mov ecx, dword [edi]
mov dword [ebp - 4], 0
mov dword [edi], eax
test ecx, ecx
je 0x44465d
push ecx
mov ecx, edi
call fcn.00443800
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x44467e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x14
call fcn.0048c62e
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp - 0x18], esi
xor ecx, ecx
mov dword [ebp - 4], 1
push ecx
mov dword [eax], ecx
push ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
push ecx
mov dword [eax + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 2
mov dword [eax + 0x10], ebx
mov dword [eax + 8], ecx
mov eax, dword [edi]
test eax, eax
jne 0x4446f3
push dword [0x50a424]
call fcn.00443820
add esp, 4
mov ecx, dword [edi]
mov byte [ebp - 4], 3
mov dword [edi], eax
test ecx, ecx
je 0x4446ef
push ecx
mov ecx, edi
call fcn.00443800
mov eax, dword [edi]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x10]
push edi
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444721
mov eax, dword [ebp + 8]
push eax
push 0x4dcf9c
call fcn.00409190
add esp, 8
mov byte [ebp + 0xb], 1
jmp 0x44474a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x444782
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push str._ld_readfile_failed:__ld
call fcn.00409190
add esp, 0xc
mov byte [ebp + 0xb], 0
test ebx, ebx
je 0x44475a
cmp ebx, 0xffffffff
je 0x44475a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp + 0xb]
test esi, esi
je 0x44476c
push 0x14
push esi
call fcn.0048c65e
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x14]
xor esi, esi
add ecx, 0xc
mov dword [ebp - 0x18], esi
mov dword [ebp + 8], edi
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4447a0
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x4447aa
lea edx, [ebp + 8]
push edx
push eax
call fcn.004089b0
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp + 8], ebx
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4447c8
mov dword [eax], ebx
mov bl, 1
add dword [ecx + 4], 4
jmp 0x44475d
lea edx, [ebp + 8]
push edx
push eax
call fcn.004089b0
mov bl, 1
jmp 0x44475d
Function at 0x444c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x444c40
xor edi, edi
jmp 0x444c82
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
test esi, esi
cmove edi, dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
mov esi, eax
call fcn.0049e665
push 0
push edi
push edx
push eax
call fcn.0049f104
fld qword [0x4dcff8]
add esp, 0x14
fcompi st(1)
jbe 0x444cd6
mov eax, 0x10624dd3
mul esi
shr edx, 6
mov dword [ebp - 0x10], edx
fild dword [ebp - 0x10]
test edx, edx
jns 0x444cc2
fadd qword [0x4dc5b8]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fcompi st(1)
fstp st(0)
jbe 0x444cd8
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
fstp st(0)
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x444ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444d4c
mov esi, dword [ebp + 0x18]
mov dword [ebp - 8], 3
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
jne 0x444d4c
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x444d60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call fcn.0049e665
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x444dc7
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x4468f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbb20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x3c]
push eax
call fcn.00433860
mov ebx, dword [ebp - 0x38]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 4], 0
mov edx, 4
mov dword [ebp - 0x34], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048c7b5
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov edx, eax
mov dword [ebp - 0x2c], edx
mov esi, dword [ecx]
cmp esi, ecx
je 0x446a55
mov ebx, edx
jmp 0x446970
lea ecx, [esi + 8]
mov dword [ebx], 0
call fcn.004339d0
test eax, eax
jne 0x446a41
lea ecx, [esi + 8]
call fcn.00409d30
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x446a41
lea ecx, [esi + 8]
call fcn.004339c0
test eax, eax
jne 0x446af0
lea ecx, [esi + 8]
call fcn.00409840
test eax, eax
je 0x446af0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 8]
call fcn.00409d00
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x4469df
mov eax, dword [eax]
push 0
push 0
push 0
push str._NOTIFY_EXIT_
push eax
call fcn.00403f90
mov ecx, eax
call fcn.00403fd0
mov ecx, eax
call fcn.004476a0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x446a3c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446a32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x446b01
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov edi, dword [ebp - 0x30]
mov dword [ebx], edi
mov esi, dword [esi]
add ebx, 4
cmp esi, dword [ebp - 0x3c]
jne 0x446970
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
push 0x2710
push 1
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test ebx, ebx
jle 0x446ac1
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea esp, [esp]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x446abb
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push eax
call ebx
test eax, eax
je 0x446ab0
cmp dword [ebp - 0x30], 0x103
jne 0x446ab0
mov eax, dword [ebp - 0x2c]
push 0
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x2c]
push dword [eax + esi*4]
call edi
mov ecx, dword [ebp - 0x2c]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x446a80
push dword [ebp - 0x2c]
call fcn.0048c7be
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00433310
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x446a3f
call fcn.00497fa9
int3
Function at 0x448800
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0048ee50
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00402960
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048c66c
mov esp, ebp
pop ebp
ret 4
Function at 0x44ac50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc202
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x50b3e0]
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 ecx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x834], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x82c], 0
mov word [esi], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ecx
mov dword [ebp - 0x834], 1
jb 0x44acc8
mov eax, dword [eax]
lea ecx, [ebp - 0x82c]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44ae08
push 0x800
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0048ee50
add esp, 0xc
mov dword [ebp - 0x838], 0x400
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x830], 1
jb 0x44ad1b
mov edi, dword [edi]
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x830]
push eax
push 0
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44adfc
cmp dword [ebp - 0x830], 1
jne 0x44adfc
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x828]
call fcn.00402960
mov edi, eax
cmp esi, edi
je 0x44adf1
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x44ada9
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x44ad9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ae25
mov eax, edx
push ecx
push eax
call fcn.0048c65e
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x828]
call fcn.00402b00
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
int3
Function at 0x44f7c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
xor dl, dl
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 8], eax
push ebp
push esi
push edi
test bl, 3
jne 0x44f8f1
test al, 3
jne 0x44f8f1
mov edi, ecx
mov dword [esp + 0x10], 0
shr edi, 2
xor esi, esi
test edi, edi
je 0x44f8ac
cmp edi, 8
jb 0x44f875
mov ebp, dword [esp + 0x20]
mov edx, edi
mov dword [esp + 0x14], ebx
and edx, 0xfffffff8
add eax, 0x10
xorps xmm3, xmm3
sub dword [esp + 0x14], ebp
xorps xmm2, xmm2
mov ebp, dword [esp + 0x14]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + esi*4]
add esi, 8
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp esi, edx
jb 0x44f824
mov eax, dword [esp + 0x20]
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd dword [esp + 0x10], xmm2
cmp esi, edi
jae 0x44f8b0
mov ebp, ebx
lea edx, [eax + esi*4]
sub ebp, eax
mov dword [esp + 0x14], ebp
mov ebp, edi
mov ebx, dword [esp + 0x14]
sub ebp, esi
mov esi, edi
mov edi, dword [esp + 0x10]
mov eax, dword [edx + ebx]
lea edx, [edx + 4]
xor eax, dword [edx - 4]
or edi, eax
sub ebp, 1
jne 0x44f892
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
jmp 0x44f8b4
xor edi, edi
jmp 0x44f8b4
mov edi, dword [esp + 0x10]
shl esi, 2
sub ecx, esi
jne 0x44f8c8
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
add ebx, esi
mov ebp, dword [esp + 0x20]
mov edx, eax
shr eax, 0x10
add ebp, esi
shr edx, 0x18
or dl, al
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
shr eax, 8
or dl, al
mov eax, ebp
or dl, byte [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x44f9b4
cmp ecx, 0x20
jb 0x44f995
mov esi, ecx
add eax, 0x10
and esi, 0xffffffe0
xorps xmm3, xmm3
mov dword [esp + 0x1c], esi
xorps xmm2, xmm2
mov esi, ebx
sub esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [edi + ebx]
add edi, 0x20
pxor xmm1, xmm0
por xmm3, xmm1
movups xmm1, xmmword [eax + ebp - 0x20]
movups xmm0, xmmword [eax - 0x20]
pxor xmm1, xmm0
por xmm2, xmm1
cmp edi, esi
jb 0x44f930
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd eax, xmm2
or dl, al
mov ebp, dword [esp + 0x14]
cmp edi, ecx
jae 0x44f9b4
sub ebx, ebp
lea esi, [edi + ebp]
sub ecx, edi
mov al, byte [ebx + esi]
lea esi, [esi + 1]
xor al, byte [esi - 1]
or dl, al
sub ecx, 1
jne 0x44f9a4
pop edi
pop esi
test dl, dl
pop ebp
sete al
pop ebx
add esp, 8
ret
Function at 0x4682b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7040
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x50b3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.0044f7b0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x468307
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x468318
push 0x3c
push esi
call fcn.0048c65e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x471d60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce14d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x50b3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ebx, [edi + 0x18]
mov dword [ebp - 4], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [edi + 0x30]
mov byte [ebp - 4], 1
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0048c62e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
cmp edi, esi
je 0x471dfc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x471df1
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00408330
push 1
push 0x4d70f4
mov ecx, edi
call fcn.00402d70
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.00402d70
cmp ebx, esi
je 0x471e31
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x471e26
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00408330
push 1
push 0x4d70f4
mov ecx, ebx
call fcn.00402d70
push 0xc
push str.cfgsoem.ini
mov ecx, eax
call fcn.00402d70
push 0x24
call fcn.0048c62e
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x471e6f
push esi
mov ecx, eax
call fcn.0040e890
mov dword [edi + 0x38], eax
jmp 0x471e76
mov dword [edi + 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x472310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, edx
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 0x1c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0xc], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 8], 7
mov dword [ebp - 0x20], eax
jmp 0x472350
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472350
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.00408330
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x24]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4723d3
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4723d3
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x4723cf
cmp eax, 2
jne 0x4723d3
xor esi, esi
jmp 0x4723d8
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x47240e
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x472404
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x472421
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
int3

Function at 0x472660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x472694
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4726a4
mov ecx, dword [esi]
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4768d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7418
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x50b3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5146c4]
mov ebx, dword [ebp + 8]
test al, 1
jne 0x476938
or eax, 1
mov dword [0x5146bc], 0
mov dword [0x5146c4], eax
xor eax, eax
push 0x4d3580
mov dword [0x5146c0], 7
mov word [0x5146ac], ax
call fcn.0048c9ff
add esp, 4
cmp dword [0x5146bc], 0
jne 0x476a65
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
sub eax, dword [0x50a5fc]
mov dword [ebp - 4], ecx
js 0x4769ec
test eax, eax
jne 0x47698e
mov edx, dword [0x50a5f8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476981
jmp 0x4769db
xor esi, esi
mov edi, 0x112
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 1
lea ecx, [eax + eax*2]
sub edx, dword [ecx*4 + 0x50a5fc]
jns 0x4769b0
mov edi, eax
jmp 0x4769b6
test edx, edx
jle 0x4769c1
mov esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
jg 0x476995
jmp 0x4769e9
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x50a5f8]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4769d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00408330
mov esi, dword [ebp - 0x18]
mov edx, dword [0x5146c0]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x476a33
mov ecx, dword [0x5146ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x476a29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476ab9
push edx
push ecx
call fcn.0048c65e
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [0x5146ac], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5146b0], eax
mov eax, dword [ebp - 0x20]
mov dword [0x5146b4], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x5146b8], eax
mov eax, dword [ebp - 0x14]
mov dword [0x5146bc], esi
mov dword [0x5146c0], eax
test esi, esi
je 0x476a87
mov eax, dword [ebx + 4]
push 0x5146ac
cmp eax, dword [ebx + 8]
je 0x476a7f
mov ecx, eax
call fcn.00403070
add dword [ebx + 4], 0x18
jmp 0x476a87
push eax
mov ecx, ebx
call fcn.0040d790
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048c66c
mov esp, ebp
pop ebp
ret
call fcn.00497fa9
int3
Function at 0x476e40
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x476e61
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x476e55
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x476f18
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x476e90
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4e3718]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4e3718]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x476f04
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4e3718]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x476f01
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4e3718]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x476e90
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret