joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416b20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xa000
mov esi, ecx
mov dword [ebp - 0x20], eax
call fcn.004c6f7d
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x416b55
mov esi, dword [esi]
push esi
push 0x5000
push edi
push 0x516c74
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416b85
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403a70
push edi
call fcn.004c6f86
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
add esp, 4
cmp ebx, 8
cmovae ecx, edi
cmp dword [ebp - 0xc], 1
mov dword [ebp - 0x20], ecx
jne 0x416bf9
movzx ecx, word [ecx]
mov esi, 0x31
mov edx, 1
mov eax, 0x517ccc
cmp ecx, esi
jb 0x416bf9
sub dword [ebp - 0x20], eax
cmp cx, si
ja 0x416bf9
cmp edx, 1
je 0x416c8e
mov ecx, dword [ebp - 0x20]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx esi, word [eax]
cmp cx, si
jae 0x416bdb
cmp ebx, 8
lea eax, [ebp - 0x1c]
push 0x517cd0
cmovae eax, edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [ebp - 8]
add esp, 8
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x416c8e
cmp ebx, 8
lea ecx, [ebp - 0x1c]
cmovae ecx, edi
cmp dword [ebp - 0xc], 1
mov dword [ebp - 0x20], ecx
jne 0x416c63
movzx ecx, word [ecx]
mov esi, 0x30
mov edx, 1
mov eax, 0x517cdc
cmp ecx, esi
jb 0x416c63
sub dword [ebp - 0x20], eax
cmp cx, si
ja 0x416c63
cmp edx, 1
je 0x416c85
mov ecx, dword [ebp - 0x20]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx esi, word [eax]
cmp cx, si
jae 0x416c49
cmp ebx, 8
lea eax, [ebp - 0x1c]
push 0x517ce0
cmovae eax, edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [ebp - 8]
add esp, 8
mov edi, dword [ebp - 0x1c]
test eax, eax
jne 0x416c89
xor esi, esi
jmp 0x416c93
mov esi, dword [ebp + 0x10]
jmp 0x416c93
mov esi, 1
cmp ebx, 8
jb 0x416cc9
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x416cbf
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x416cbf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.004c6f6f
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4181b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5009a7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x41825d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418250
jmp 0x4182ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4182be
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
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4182be
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4182a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x41b0b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500e71
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x567e00]
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 [0x56d69c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x56c540]
cmp eax, dword [ecx + 4]
jg 0x41b123
jmp 0x41b104
mov al, byte [ecx]
inc ecx
test al, al
je 0x41b22b
jmp 0x41b0f7
mov eax, 0x56c528
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
push 0x56c540
call fcn.004c7345
add esp, 4
cmp dword [0x56c540], 0xffffffff
jne 0x41b104
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 0x41b202
xor ecx, ecx
mov byte [ebp - 0x13], 1
lea esi, [ecx + 0x7f]
jmp 0x41b1e0
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 0x41b1e0
jmp 0x41b202
lea ecx, [ebp - 0x34]
mov dword [0x56c528], 0
mov dword [0x56c538], 0
lea edx, [ecx + 1]
mov dword [0x56c53c], 0xf
jmp 0x41b0f7
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x56c528
call fcn.0041a800
push 0x511440
call fcn.004c71fd
push 0x56c540
call fcn.004c72fb
add esp, 8
jmp 0x41b104
Function at 0x41be80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500fdd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x14], 0
je 0x41c083
push 0x11
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x517d48
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00403a70
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004186d0
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
call fcn.0041ad00
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 2
push eax
call fcn.004180c0
mov edx, dword [ebp - 0x34]
add esp, 0x18
cmp edx, 0x10
jb 0x41bf55
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41bf4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bfd5
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp edx, 0x10
jb 0x41bf97
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41bf8d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41bfd5
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 8
jb 0x41bfe5
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41bfdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bfdb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
mov ecx, esi
jb 0x41bff2
mov ecx, dword [esi]
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push ecx
cmovae eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 0
push eax
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41c01e
mov word [edi + 0x3c], 0x101
jmp 0x41c047
cmp dword [esi + 0x14], 8
jb 0x41c026
mov esi, dword [esi]
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push 0
push 0x517d48
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41c047
mov byte [edi + 0x3d], 1
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x41c083
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41c079
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41c079
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x41db00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5011d0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x567e00]
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, ecx
mov dword [ebp - 0x22c], eax
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
or ebx, 0x2001f
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x224]
mov dword [ebp - 0x224], 0
push edx
push ebx
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x21c]
test esi, esi
jne 0x41dc8e
xor esi, esi
test eax, eax
je 0x41dba4
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0x224]
and ebx, 0x300
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
test esi, esi
jne 0x41dc8e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x234]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call ebx
test eax, eax
jne 0x41dc47
jmp 0x41dc00
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041db00
mov esi, eax
test esi, esi
jne 0x41dc88
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x41dc00
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41dc5e
push eax
call edi
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
call fcn.0041d0d0
mov ecx, dword [ebp - 0x21c]
mov esi, eax
test ecx, ecx
je 0x41dc95
push ecx
jmp 0x41dc93
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41dc95
push eax
call edi
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 - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 4
Function at 0x41de60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50121b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x567e00]
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 0x41df0c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x41df0c
call fcn.0041cfe0
mov esi, eax
jmp 0x41dffc
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41df2f
call fcn.0041cfe0
jmp 0x41dfef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x41df4d
call fcn.0041cfe0
jmp 0x41dfef
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 0x41df6e
mov esi, 0x8007000e
jmp 0x41dff1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0041ce10
jmp 0x41df98
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41dfaf
mov esi, 0x8007000e
jmp 0x41dff1
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 0x41dfcf
call fcn.0041cfe0
jmp 0x41dfef
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.0041dcc0
mov esi, eax
test edi, edi
je 0x41dffc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x41e015
lea ecx, [ebp - 0x418]
call fcn.0041d250
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.004c6f8b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421d70
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 0x421dc9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x421dc9
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 0x421dba
cmp esi, edx
jae 0x421dc9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x421da8
cmp esi, edx
jae 0x421dc9
cmp word [esi], 0
je 0x421dc9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4231f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
fld qword [0x51e658]
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 [0x51e638]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
call fcn.004c7450
fldz
mov ecx, 1
cmp eax, ecx
fld st(0)
fld1
cmovl eax, ecx
mov dword [ebp - 4], eax
test eax, eax
jle 0x4233d0
mov edx, dword [ebx]
fld qword [0x51e658]
push esi
push edi
cmp edx, 0x270
jne 0x423295
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 0x423257
mov edx, dword [ebx]
jmp 0x423373
cmp edx, 0x4e0
jb 0x423373
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 0x4232b2
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 0x4232fb
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 0x4233b4
fadd qword [0x51e658]
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 0x423247
pop edi
fstp st(0)
pop esi
fstp st(2)
fdivrp st(1)
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424100
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x138c
call fcn.004c7830
mov eax, dword [0x567e00]
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
jb 0x424134
lea eax, [ebp - 0x138c]
mov dword [ebp - 0x138c], 0x270
push eax
call fcn.004231f0
fmul qword [0x516920]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
fadd qword [0x51e630]
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x426b40
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.004c6f7d
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x426b6d
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], 0
lea edx, [ecx + 2]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426ba2
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00403a70
push edi
call fcn.004c6f86
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x42c7e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502018
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x567e00]
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 0x42c848
mov dword [ebp - 4], 0
test edi, edi
je 0x42c82d
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0xc], edi
mov dword [ebp - 4], 1
test ecx, ecx
je 0x42c841
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x28]
push 7
push eax
call fcn.00417040
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
je 0x42c87a
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], 3
push eax
call fcn.00498900
add esp, 4
test eax, eax
jns 0x42c8af
push eax
mov edx, str.Failed_CreateUpdateInputFactory:_0x_08x.
mov ecx, 0xd0a
push edx
push str.kupdate::KWpsUpdateImpl::Init
push ecx
jmp 0x42c920
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 0x42c8d7
push eax
mov edx, str.Failed_CreateUpdateHttpRequest:_0x_08x.
mov ecx, 0xd10
push edx
push str.kupdate::KWpsUpdateImpl::Init
push ecx
jmp 0x42c920
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.00410170
lea edx, [ebp - 0x850]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x8c]
test eax, eax
jns 0x42c937
push eax
push 0x518a24
push str.kupdate::KWpsUpdateImpl::Init
push 0xd19
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcmiscKWpsUpdateImpl.cpp
push 0
call fcn.00412230
mov al, byte [esi + 9]
add esp, 0x18
movzx esi, al
jmp 0x42c965
lea eax, [ebp - 0x850]
lea ecx, [esi + 0x2c]
push eax
call fcn.004726f0
lea ecx, [esi + 0x44]
call fcn.00421530
call fcn.0042cae0
push dword [edi]
mov ecx, eax
call fcn.00491560
mov byte [esi + 9], 1
mov esi, 1
mov eax, dword [ebp - 0x854]
mov byte [ebp - 4], 7
test eax, eax
je 0x42c979
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42c9b5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42c9ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42c9ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret 4
Function at 0x431280
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 0x4322f0
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 0x431300
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x24], ebx
call fcn.00492a10
cmp dword [edi + 4], ebx
je 0x431427
cmp byte [edi + 8], bl
jne 0x431427
lea ecx, [edi + 0x2c]
mov byte [edi + 8], 1
call fcn.00472870
lea ecx, [edi + 0x44]
call fcn.00421d30
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 4], ebx
je 0x431427
call fcn.00410210
push dword [0x522b9c]
mov ecx, eax
call fcn.004136a0
test al, al
je 0x4313a0
push esi
mov esi, dword [str.onkso]
call fcn.00410210
push dword [0x522b9c]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00413540
push esi
push eax
mov ebx, 1
call fcn.004221e0
add esp, 8
mov byte [ebp - 0x1d], bl
pop esi
test al, al
jne 0x4313a4
mov byte [ebp - 0x1d], 0
test bl, 1
je 0x4313e5
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4313e5
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4313db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4313db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
add esp, 8
cmp byte [ebp - 0x1d], 0
mov eax, dword [edi + 4]
je 0x4313f2
push 0xffffffffffffffff
jmp 0x4313f7
push 0x7530
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x431417
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret