joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415dd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ec9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x690
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x688], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x6a4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6b4]
xor ebx, ebx
push 0x206
mov edi, ecx
lea ecx, [esp + 0x49a]
xor eax, eax
push ebx
mov dword [esp + 0x20], ebx
push ecx
mov word [esp + 0x4a0], ax
call fcn.004cf830
push 0x206
lea eax, [esp + 0x29e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x2a4], dx
call fcn.004cf830
add esp, 0x18
push 0x50752c
push ebp
lea ecx, [esp + 0x49c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x24c
lea edx, [esp + 0x44]
push ebx
push edx
mov dword [esp + 0x48], ebx
call fcn.004cf830
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x498]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], ebx
cmp eax, 0xffffffff
je 0x415ea2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x6ac], ebx
cmp dword [esp + 0x1c], ebx
jne 0x415eb6
xor al, al
jmp 0x415fed
cmp dword [esp + 0x3c], 0x10
je 0x415f20
mov edx, fcn.0043e290
test edx, edx
je 0x415f19
xor eax, eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x68]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415ee0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x6c]
lea esi, [esp + 0x24]
call fcn.00404e70
mov ecx, esi
mov byte [esp + 0x6ac], 1
or dword [esp + 0x18], 1
push ecx
call fcn.0043e290
add esp, 4
test al, al
je 0x415f20
mov byte [esp + 0x17], 1
jmp 0x415f24
mov byte [esp + 0x17], bl
mov dword [esp + 0x6ac], ebx
test byte [esp + 0x18], 1
je 0x415f4b
and dword [esp + 0x18], 0xfffffffe
cmp dword [esp + 0x34], 8
jb 0x415f4b
mov edx, dword [esp + 0x20]
push edx
call fcn.004c9387
add esp, 4
cmp byte [esp + 0x17], bl
je 0x415fcc
lea eax, [esp + 0x68]
push eax
push ebp
lea ecx, [esp + 0x294]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
lea eax, [esp + 0x28c]
mov word [esp + 0x20], dx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415f82
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x290]
lea esi, [esp + 0x24]
call fcn.00404e70
mov ecx, esi
mov byte [esp + 0x6ac], 2
call fcn.00416b10
mov byte [esp + 0x6ac], bl
cmp dword [esp + 0x34], 8
jb 0x415fcc
mov eax, dword [esp + 0x20]
push eax
call fcn.004c9387
add esp, 4
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415eb6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
mov ecx, dword [esp + 0x6a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x688]
xor ecx, esp
call fcn.004c9392
add esp, 0x69c
ret
Function at 0x416420
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f1726
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x474]
push 0x206
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x25a]
xor eax, eax
push ebx
push ecx
mov esi, edx
mov word [esp + 0x260], ax
call fcn.004cf830
mov ecx, 8
add esp, 0xc
cmp dword [esi + 0x14], ecx
jb 0x416496
mov eax, dword [esi]
jmp 0x416498
mov eax, esi
cmp dword [edi + 0x14], ecx
jb 0x41649f
mov edi, dword [edi]
push eax
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x25c]
push edx
call edi
push 0x206
lea ecx, [esp + 0x52]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x58], ax
call fcn.004cf830
mov eax, 8
add esp, 0xc
cmp dword [esi + 0x14], eax
jb 0x4164d7
mov esi, dword [esi]
cmp dword [ebp + 0x14], eax
jb 0x4164e1
mov eax, dword [ebp]
jmp 0x4164e3
mov eax, ebp
push esi
push eax
lea edx, [esp + 0x54]
push edx
call edi
xor eax, eax
mov word [esp + 0x30], ax
mov ebp, 7
lea eax, [esp + 0x4c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416507
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x34]
call fcn.00404e70
mov dword [esp + 0x46c], ebx
xor ecx, ecx
lea eax, [esp + 0x254]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416544
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x258]
lea esi, [esp + 0x18]
call fcn.00404e70
mov byte [esp + 0x46c], 1
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x41657d
mov eax, esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x4165ac
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], edi
jae 0x416598
lea eax, [esp + 0x30]
push eax
call esi
test eax, eax
jne 0x4165ac
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
call fcn.00416620
mov byte [esp + 0x46c], bl
cmp dword [esp + 0x28], edi
jb 0x4165c6
mov edx, dword [esp + 0x14]
push edx
call fcn.004c9387
add esp, 4
xor eax, eax
mov dword [esp + 0x46c], 0xffffffff
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], ax
cmp dword [esp + 0x44], edi
jb 0x4165f3
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004c9387
add esp, 4
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.004c9392
add esp, 0x45c
ret

Function at 0x417310
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417349
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8
Function at 0x4173d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ec968
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
cmp dword [esi + 0x14], 8
jb 0x417404
mov eax, dword [esi]
jmp 0x417406
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4174fe
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x417456
cmp eax, 2
je 0x417456
mov eax, 0xd
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x10]
shr eax, 1
inc eax
xor ecx, ecx
mov dword [esp + 0x18], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c83da
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], 0
cmp dword [esi + 0x14], 8
jb 0x417490
mov esi, dword [esi]
push esi
push edi
lea edi, [esp + 0x20]
mov esi, ebx
call fcn.00414e80
mov esi, eax
test esi, esi
je 0x4174cb
push ebx
mov dword [esp + 0x2c], 0xffffffff
call fcn.004c9b0b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4174d0
mov esi, dword [esp + 0x30]
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
call fcn.00404e70
push ebx
mov dword [esp + 0x2c], 0xffffffff
call fcn.004c9b0b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x417520
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ef820
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, edx
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x14], 8
mov edi, ecx
jb 0x417565
mov eax, dword [esi]
jmp 0x417567
mov eax, esi
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x18]
push edx
push ebp
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x4176d2
cmp dword [esp + 0x10], 7
je 0x41759a
mov eax, 0xd
jmp 0x4176d2
mov ebp, dword [esp + 0x14]
shr ebp, 1
inc ebp
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x10], ebp
neg ecx
or ecx, eax
push ecx
call fcn.004c83da
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
mov eax, 8
mov dword [esp + 0x40], eax
cmp dword [esi + 0x14], eax
jb 0x4175d6
mov esi, dword [esi]
push esi
push edi
lea edi, [esp + 0x18]
mov esi, ebp
call fcn.00417a10
mov esi, eax
test esi, esi
je 0x417601
push ebp
mov dword [esp + 0x44], 0xffffffff
call fcn.004c9b0b
add esp, 4
mov eax, esi
jmp 0x4176d2
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
cmp eax, ecx
je 0x417625
mov edx, dword [esp + 0x10]
push edx
push ecx
call fcn.00417990
mov edi, dword [ebx + 4]
add esp, 8
mov esi, eax
call fcn.00417150
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x14]
cmp word [eax], 0
je 0x4176bb
xor ecx, ecx
mov eax, ebp
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417650
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x1c]
call fcn.00404e70
mov ecx, esi
mov edi, ebx
mov byte [esp + 0x40], 9
call fcn.00416b10
mov edx, dword [esp + 0x28]
mov byte [esp + 0x40], 8
cmp dword [esp + 0x2c], 8
lea ebp, [ebp + edx*2 + 2]
jb 0x41769a
mov eax, dword [esp + 0x18]
push eax
call fcn.004c9387
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
cmp word [ebp], cx
jne 0x417633
mov dword [esp + 0x40], 0xffffffff
mov edx, dword [esp + 0x14]
push edx
call fcn.004c9b0b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c9392
add esp, 0x34
ret
Function at 0x4177c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x14], 8
push edi
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
jb 0x4177e0
mov eax, dword [esi]
jmp 0x4177e2
mov eax, esi
lea edx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x14]
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417822
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41780b
mov byte [eax], 1
test ebp, ebp
je 0x417860
mov edx, dword [esp + 0x14]
push ebp
mov ecx, esi
call fcn.004173d0
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
cmp dword [edi + 0x14], 8
jb 0x41782a
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x417832
mov esi, dword [esi]
test edi, edi
je 0x417855
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push edi
push 1
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x417860
mov byte [eax], 0
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc

Function at 0x417a10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test esi, esi
je 0x417a23
cmp dword [edi], 2
jae 0x417a23
mov eax, 0x7a
pop ecx
ret 8
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417a93
cmp dword [esp + 0xc], 7
je 0x417a63
mov eax, 0xd
pop ecx
ret 8
mov ecx, dword [esp]
test esi, esi
je 0x417a8d
test cl, 1
jne 0x417a5a
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x417a5a
cmp word [esi + eax*2 - 2], 0
jne 0x417a5a
cmp eax, 1
jbe 0x417a8d
cmp word [esi + eax*2 - 4], 0
jne 0x417a5a
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop ecx
ret 8
Function at 0x419880
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
xor ebx, ebx
cmp esi, ebx
je 0x4198ec
push 0x38
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004cf830
mov ecx, dword [esp + 0x50]
add esp, 0xc
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [esp + 0x48], bl
je 0x4198ec
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebx
add esp, 0x3c
ret
Function at 0x419a80
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x4ef688
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
push 8
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x419ba8
push 0x400
call fcn.004c83da
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
push ecx
push 0x400
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
push 2
push edx
mov dword [esp + 0x30], ebx
call ebp
mov edi, eax
cmp edi, ebx
jne 0x419b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419b52
mov eax, dword [esp + 0x1c]
push eax
call fcn.004c83da
mov edi, eax
add esp, 4
cmp esi, edi
je 0x419b3c
push esi
call fcn.004c9b0b
add esp, 4
mov esi, edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push 2
push eax
call ebp
mov edi, eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x419be2
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x419bac
push esi
mov dword [esp + 0x38], 0xffffffff
call fcn.004c9b0b
add esp, 4
xor al, al
jmp 0x419bfb
xor edi, edi
cmp dword [esi], ebx
jbe 0x419bd7
lea ebp, [esi + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x419bd2
inc ebx
add ebp, 8
cmp ebx, dword [esi]
jb 0x419bb5
jmp 0x419bd7
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, 1
push esi
sete bl
mov dword [esp + 0x38], 0xffffffff
call fcn.004c9b0b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c9392
add esp, 0x24
ret
Function at 0x419c20
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
push esi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x419c3c
xor al, al
pop esi
add esp, 0x28
ret
push edi
push str.IsWow64Process
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x419c65
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 8], 0
pop edi
je 0x419c7b
mov al, 1
pop esi
add esp, 0x28
ret
xor eax, eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [esp + 8]
cmp ax, 9
je 0x419cc7
cmp ax, 6
je 0x419cc7
xor eax, eax
pop esi
add esp, 0x28
ret
mov eax, 1
pop esi
add esp, 0x28
ret
Function at 0x41a7d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f15f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
call fcn.004199a0
xor ebx, ebx
cmp eax, 4
jne 0x41a8f4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
push 0x6011f
lea ecx, [esp + 0x1c]
push ecx
mov eax, str.SoftwareGoogleGoogle_Pinyin_2_Preferences
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x58], ebx
call fcn.00405df0
test eax, eax
je 0x41a85d
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x41a93c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41a93c
xor edx, edx
push 0x24
mov eax, str.D:AI_A_OICI_KA___WD__A_OICI_KA___AC_
lea esi, [esp + 0x2c]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
call fcn.00404e70
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jae 0x41a895
mov eax, esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [esp + 0x3c], 8
jb 0x41a8ce
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004c9387
add esp, 4
xor edx, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], dx
mov dword [esp + 0x50], 0xffffffff
cmp esi, ebx
je 0x41a8f4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00415bb0
mov esi, eax
cmp esi, ebx
je 0x41a93c
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.SettingWizardEverLaunched
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0xc], ebx
je 0x41a936
mov ecx, dword [esp + 0x14]
mov byte [ecx + 0x21], bl
push esi
call fcn.00416bf0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004c9392
add esp, 0x48
ret 4
Function at 0x41b4e0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f35d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov bl, cl
movzx esi, bl
neg esi
sbb esi, esi
xor ebp, ebp
and esi, 0x100
add esi, 0x2011f
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
push esi
lea eax, [esp + 0x20]
push eax
mov eax, str.CLSID4966A555_1B67_45c0_B82F_627FD19AAD22
mov ecx, SysReAllocString
mov dword [esp + 0x44], ebp
call fcn.00405df0
test eax, eax
je 0x41b56c
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x41b556
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
push esi
mov byte [esp + 0x40], 1
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
mov eax, str.InprocServer32
mov ecx, esi
call fcn.00405df0
test eax, eax
je 0x41b5c5
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebp
je 0x41b5a8
push eax
call edi
cmp esi, ebp
je 0x41b5af
push esi
call edi
xor al, al
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x505890
call edi
lea edx, [eax + eax + 2]
push edx
push 0x505890
push 1
push ebp
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call ebp
xor eax, eax
test bl, bl
sete al
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x505f74
lea esi, [eax + 2]
call fcn.00405cc0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
mov byte [esp + 0x48], 2
call fcn.00417ef0
mov esi, dword [eax]
mov ebx, dword [esp + 0x34]
xor eax, eax
add esp, 0xc
test esi, esi
setne al
test eax, eax
je 0x41b63d
push esi
call edi
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0
push ebx
call ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b65d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x3c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b682
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Apartment
call edi
lea ecx, [eax + eax + 2]
push ecx
push str.Apartment
push 1
push 0
push str.ThreadingModel
push ebx
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x41b6ac
push ebx
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41b6b7
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x41bd30
Capabilities:
Set file attributes

Disassembly:
sub esp, 8
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, eax
push ebp
push edi
xor edi, edi
sar ecx, 4
mov dword [esp + 0xc], edi
test ecx, ecx
je 0x41bdbb
mov ecx, dword [ebx]
test ecx, ecx
je 0x41bd5d
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [edi + eax + 0xc]
push eax
push 2
call edx
mov eax, dword [esi]
mov ecx, dword [eax + edi + 4]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
add eax, edi
lea ecx, [eax + 4]
push ecx
push eax
push edx
call fcn.0041f5c0
test al, al
je 0x41bdc5
mov ecx, dword [ebx]
test ecx, ecx
je 0x41bda1
inc dword [ebx + 8]
mov eax, dword [ebx + 8]
imul eax, eax, 0x64
cdq
idiv dword [ebx + 4]
mov ebp, dword [ecx]
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0xc]
sub edx, eax
inc ecx
sar edx, 4
add edi, 0x10
mov dword [esp + 0xc], ecx
cmp ecx, edx
jb 0x41bd49
xor eax, eax
pop edi
pop ebp
add esp, 8
ret 4
pop edi
mov eax, 2
pop ebp
add esp, 8
ret 4