joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b1c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
push edi
je 0x41b333
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x41b333
mov eax, 0xaaaaaaab
mov ecx, edi
mul edi
push ebx
mov ebx, edx
shr ebx, 1
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebx + ebx*2]
sub ecx, eax
mov eax, 0
mov dword [ebp - 4], ecx
setne al
add eax, ebx
shl eax, 2
mov dword [ebp - 8], eax
test esi, esi
je 0x41b32c
xor eax, eax
test ebx, ebx
je 0x41b290
mov edi, dword [ebp + 8]
add edi, 2
lea ebx, [ebx]
movzx ecx, byte [edi - 2]
lea edi, [edi + 3]
shr ecx, 2
movzx ecx, byte [ecx + 0x4f4108]
mov byte [eax + esi], cl
movzx edx, byte [edi - 5]
movzx ecx, byte [edi - 4]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x4f4108]
mov byte [eax + esi + 1], cl
movzx edx, byte [edi - 4]
movzx ecx, byte [edi - 3]
and edx, 0xf
shr ecx, 6
shl edx, 2
or edx, ecx
movzx ecx, byte [edx + 0x4f4108]
mov byte [eax + esi + 2], cl
movzx ecx, byte [edi - 3]
and ecx, 0x3f
movzx ecx, byte [ecx + 0x4f4108]
mov byte [eax + esi + 3], cl
add eax, 4
sub ebx, 1
jne 0x41b220
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
sub ecx, 1
je 0x41b2f7
sub ecx, 1
jne 0x41b329
mov ebx, dword [ebp + 8]
movzx ecx, byte [ebx + edi - 2]
shr ecx, 2
movzx ecx, byte [ecx + 0x4f4108]
mov byte [eax + esi], cl
movzx edx, byte [ebx + edi - 2]
movzx ecx, byte [ebx + edi - 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x4f4108]
mov byte [eax + esi + 1], cl
lea ecx, [eax + 2]
movzx eax, byte [ebx + edi - 1]
and eax, 0xf
mov al, byte [eax*4 + 0x4f4108]
mov byte [ecx + esi], al
mov eax, dword [ebp - 8]
mov byte [ecx + esi + 1], 0x3d
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + edi - 1]
shr ecx, 2
movzx ecx, byte [ecx + 0x4f4108]
mov byte [eax + esi], cl
movzx ecx, byte [edx + edi - 1]
and ecx, 3
shl ecx, 4
movzx ecx, byte [ecx + 0x4f4108]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov eax, dword [ebp - 8]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41b720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de59c
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5421c0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x541058]
cmp eax, dword [ecx + 4]
jg 0x41b793
jmp 0x41b774
mov al, byte [ecx]
inc ecx
test al, al
je 0x41b898
jmp 0x41b767
mov eax, 0x541040
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
push 0x541058
call fcn.004bf206
add esp, 4
cmp dword [0x541058], 0xffffffff
jne 0x41b774
mov byte [ebp - 0x34], 0x69
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x4e
mov byte [ebp - 0x31], 0x69
mov byte [ebp - 0x30], 0x2c
mov byte [ebp - 0x2f], 0x11
mov byte [ebp - 0x2e], 0x25
mov byte [ebp - 0x2d], 0x4e
mov byte [ebp - 0x2c], 0x7d
mov byte [ebp - 0x2b], 0x2c
mov byte [ebp - 0x2a], 0x11
mov byte [ebp - 0x29], 0x2c
mov byte [ebp - 0x28], 0x54
mov byte [ebp - 0x27], 0x26
mov byte [ebp - 0x26], 0x18
mov byte [ebp - 0x25], 0x68
mov byte [ebp - 0x24], 0x3a
mov byte [ebp - 0x23], 0x18
mov byte [ebp - 0x22], 4
mov byte [ebp - 0x21], 0x3a
mov byte [ebp - 0x20], 0x25
mov byte [ebp - 0x1f], 0x4e
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x12
mov byte [ebp - 0x1b], 4
mov byte [ebp - 0x1a], 0x3a
mov byte [ebp - 0x19], 0x18
mov byte [ebp - 0x18], 0x7c
mov byte [ebp - 0x17], 4
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x25
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x34]
mov byte [ebp - 0x13], 0
cmp byte [ebp - 0x13], 0
mov dword [ebp - 4], 0
jne 0x41b872
xor ecx, ecx
mov byte [ebp - 0x13], 1
lea esi, [ecx + 0x7f]
jmp 0x41b850
mov al, byte [ebp + ecx - 0x34]
movsx eax, al
sub eax, 0x6c
imul eax, eax, 0x13
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + ecx - 0x34], dl
inc ecx
cmp ecx, 0x20
jb 0x41b850
jmp 0x41b872
lea ecx, [ebp - 0x34]
mov dword [0x541050], 0
mov dword [0x541054], 0xf
lea edx, [ecx + 1]
mov byte [0x541040], 0
jmp 0x41b767
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x541040
call fcn.0041ac00
push 0x4ebf20
call fcn.004bf0be
push 0x541058
call fcn.004bf1bc
add esp, 8
jmp 0x41b774
Function at 0x41db30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x53d9f8]
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 0x41dc8b
mov eax, dword [ebp - 0x214]
xor esi, esi
test eax, eax
je 0x41dbbc
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 0x41dc8b
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 0x41dc57
lea esp, [esp]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0041db30
mov esi, eax
test esi, esi
jne 0x41dc8b
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 0x41dc10
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x41dc6e
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.0041d180
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x41dc98
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret 4
Function at 0x41de50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de846
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x53d9f8]
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 0x41defc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41defc
call fcn.0041d0a0
mov esi, eax
jmp 0x41dfec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41df1f
call fcn.0041d0a0
jmp 0x41dfdf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41df3d
call fcn.0041d0a0
jmp 0x41dfdf
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 0x41df5e
mov esi, 0x8007000e
jmp 0x41dfe1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0041cec0
jmp 0x41df88
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41df9f
mov esi, 0x8007000e
jmp 0x41dfe1
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 0x41dfbf
call fcn.0041d0a0
jmp 0x41dfdf
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.0041dcb0
mov esi, eax
test edi, edi
je 0x41dfec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41e010
lea ecx, [ebp - 0x418]
call fcn.0041d2b0
jmp 0x41e010
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.004bee49
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421db9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x421db9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x421daa
cmp esi, edx
jae 0x421db9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x421d98
cmp esi, edx
jae 0x421db9
cmp word [esi], 0
je 0x421db9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x422e30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
fld qword [0x4fac70]
push ebx
mov ebx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
fdivr qword [0x4fac50]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
call fcn.004bf310
fldz
mov ecx, 1
cmp eax, ecx
fld st(0)
fld1
cmovl eax, ecx
mov dword [ebp - 4], eax
test eax, eax
jle 0x423010
mov edx, dword [ebx]
fld qword [0x4fac70]
push esi
push edi
cmp edx, 0x270
jne 0x422ed5
lea edx, [ebx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x422e97
mov edx, dword [ebx]
jmp 0x422fb3
cmp edx, 0x4e0
jb 0x422fb3
mov eax, dword [ebx + 0x9c4]
lea edi, [ebx + 0x9c4]
mov ebx, 0xe3
mov ecx, dword [edi + 4]
lea edx, [edi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x422ef2
mov edi, dword [ebp + 8]
mov ebx, 0x18c
add edi, 0xd50
mov eax, dword [edi]
mov ecx, eax
lea edx, [edi + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x422f3b
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
xor edx, edx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], 0
mov ecx, dword [ebx + edx*4 + 4]
mov eax, ecx
shr eax, 0xb
inc edx
and eax, dword [ebx + 0x1384]
xor ecx, eax
mov dword [ebx], edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 8], eax
fild dword [ebp - 8]
jns 0x422ff4
fadd qword [0x4fac70]
sub dword [ebp - 4], 1
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fsub st(4)
fmul st(2)
faddp st(3)
fmul st(1), st(0)
jne 0x422e87
pop edi
fstp st(0)
pop esi
fstp st(2)
fdivrp st(1)
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423c20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x138c
call fcn.004bf8f0
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x1388], eax
mov edx, 1
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x1388], eax
inc edx
cmp edx, 0x270
jl 0x423c54
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x138c], 0x270
push eax
call fcn.00422e30
fmul qword [0x4f0b00]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
fadd qword [0x4fac48]
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4264e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
mov edx, 2
push esi
mov esi, ecx
xor ecx, ecx
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bee3b
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x42650d
mov esi, dword [esi]
push esi
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 8]
mov ecx, edi
xor eax, eax
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426540
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.004033b0
push edi
call fcn.004bee44
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x42bf10
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df473
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x53d9f8]
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, ecx
mov ecx, dword [esi + 0xc]
mov edi, dword [ebp + 8]
cmp ecx, edi
je 0x42bf63
test edi, edi
je 0x42bf56
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], edi
test ecx, ecx
je 0x42bf63
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x28]
push 7
push eax
call fcn.00416f00
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
je 0x42bf95
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.WPS_OFFICE6_ROOT_DIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x854], 0
lea eax, [ebp - 0x854]
mov byte [ebp - 4], 1
push eax
call fcn.00493f00
add esp, 4
test eax, eax
jns 0x42bfca
push eax
mov edx, str.Failed_CreateUpdateInputFactory:_0x_08x.
mov ecx, 0xcd5
push edx
push str.kupdate::KWpsUpdateImpl::Init
push ecx
jmp 0x42c03b
mov eax, dword [ebp - 0x854]
lea edi, [esi + 0x4c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jns 0x42bff2
push eax
mov edx, str.Failed_CreateUpdateHttpRequest:_0x_08x.
mov ecx, 0xcdb
push edx
push str.kupdate::KWpsUpdateImpl::Init
push ecx
jmp 0x42c03b
push 0x824
lea eax, [ebp - 0x84c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x850], 0xffffffff
call fcn.00410410
lea edx, [ebp - 0x850]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x8c]
test eax, eax
jns 0x42c052
push eax
push 0x4f4e4c
push str.kupdate::KWpsUpdateImpl::Init
push 0xce4
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412750
mov al, byte [esi + 9]
add esp, 0x18
movzx esi, al
jmp 0x42c080
lea eax, [ebp - 0x850]
push eax
lea ecx, [esi + 0x2c]
call fcn.0046eca0
lea ecx, [esi + 0x44]
call fcn.00421520
push dword [edi]
call fcn.0042c1f0
mov ecx, eax
call fcn.0048de50
mov byte [esi + 9], 1
mov esi, 1
mov eax, dword [ebp - 0x854]
mov byte [ebp - 4], 0
test eax, eax
je 0x42c094
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42c0d0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c0c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42c0c6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
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.004bee49
mov esp, ebp
pop ebp
ret 4
Function at 0x430940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
mov esi, ecx
push esi
push 0x431980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi + 8], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4309c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x24], ebx
call fcn.0048f1a0
cmp dword [esi + 4], ebx
je 0x430afe
cmp byte [esi + 8], bl
jne 0x430afe
lea ecx, [esi + 0x2c]
mov byte [esi + 8], 1
call fcn.0046ee20
lea ecx, [esi + 0x44]
call fcn.00421d20
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 4], ebx
je 0x430afe
push dword [0x4fef60]
call fcn.004104b0
mov ecx, eax
call fcn.00413b30
test al, al
je 0x430a5b
push dword [0x4fef60]
lea eax, [ebp - 0x1c]
push eax
call fcn.004104b0
mov ecx, eax
call fcn.00413a10
push dword [0x4fef64]
mov ecx, eax
mov ebx, 1
call fcn.00432570
mov byte [ebp - 0x1d], bl
test al, al
jne 0x430a5f
mov byte [ebp - 0x1d], 0
test bl, 1
je 0x430aa0
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x430aa0
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430a96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x430a96
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
cmp byte [ebp - 0x1d], 0
je 0x430ab3
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x430ad5
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
xor edi, edi
lea esp, [esp]
push 0x1388
push dword [esi + 4]
call ebx
test eax, eax
je 0x430ad4
inc edi
cmp edi, 6
jl 0x430ac0
pop edi
cmp eax, 0x102
jne 0x430aee
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x43e1a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e09ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53d9f8]
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.004bedfd
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 0x43e23c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43e231
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.004033b0
push 1
push 0x4f0efc
mov ecx, edi
call fcn.00403230
push 0x10
push str.cfgsproduct.dat
mov ecx, eax
call fcn.00403230
cmp ebx, esi
je 0x43e271
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43e266
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.004033b0
push 1
push 0x4f0efc
mov ecx, ebx
call fcn.00403230
push 0xc
push str.cfgsoem.ini
mov ecx, eax
call fcn.00403230
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 0x43f660
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x158], 0
jne 0x43f6e7
push 0x3ea
lea eax, [ebp - 0x3f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3f4], 0x1f4
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x43f6e7
lea ecx, [ebp - 0x3f0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43f6c5
sub ecx, edx
lea eax, [ebp - 0x3f0]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x148]
call fcn.004033b0
lea eax, [edi + 0x148]
cmp esi, eax
je 0x43f706
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x43f6fb
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.004033b0
cmp dword [esi + 0x14], 8
jb 0x43f70e
mov esi, dword [esi]
push esi
push str.ComputerName_is:__s.
push str.kupdate::KClientInfoGetter::GetComputerNameW
push 0x82c
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
call fcn.00412750
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8

Function at 0x43fff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0b62
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x53d9f8]
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
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push 1
push eax
push edi
mov dword [ebp - 0x220], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4400be
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4400a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004033b0
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.004bee49
mov esp, ebp
pop ebp
ret