joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ecbec
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x240]
mov ebp, dword [esp + 0x23c]
mov dword [esp + 0x14], 0
mov edx, dword [0x52a1ec]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2a]
mov dword [esp + 0x23c], 0
push edx
mov word [esp + 0x2c], cx
call fcn.004cf830
add esp, 0xc
cmp esi, 0x29
jne 0x413334
call fcn.00419c20
test al, al
je 0x413334
call fcn.004199a0
cmp eax, 2
jge 0x413334
push 0x104
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x413362
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [ebp], eax
mov esi, ebp
call fcn.004062d0
lea eax, [edi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4133fa
mov ecx, dword [eax]
push eax
jmp 0x4133f3
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x413362
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [ebp], eax
jmp 0x413304
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call fcn.00405cc0
lea eax, [esp + 0x18]
lea edi, [esp + 0x14]
mov byte [esp + 0x234], 3
call fcn.00403900
mov byte [esp + 0x234], 0
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 0x4133ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4133c2
lea esi, [esp + 0x14]
call fcn.00414530
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
mov eax, esi
call fcn.00406260
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x234], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4133fa
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004c9392
add esp, 0x228
ret
Function at 0x413460
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4efa48
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41362b
mov edi, 0x44
push edi
mov dword [esp + 0x1c], edi
call fcn.004c83da
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x18]
push ecx
push ebp
push ebx
mov dword [esp + 0x58], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
push 1
call esi
test eax, eax
je 0x413507
push edi
mov dword [esp + 0x1c], edi
call fcn.004c83da
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push 0x54
mov byte [esp + 0x5c], 3
call esi
push edi
test eax, eax
jne 0x41352e
mov dword [esp + 0x50], ebx
call fcn.004c9b0b
add esp, 4
push ebp
mov dword [esp + 0x50], 0xffffffff
call fcn.004c9b0b
add esp, 4
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov esi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
call esi
push ebp
mov ebx, eax
call esi
lea ebx, [ebx + eax + 0x18]
push ebx
call fcn.004c83da
add esp, 4
mov esi, eax
push ebx
push 0
push esi
call fcn.004cf830
add esp, 0xc
push 2
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x41357d
mov dword [esp + 0x4c], 3
push esi
call fcn.004c9b0b
add esp, 4
mov byte [esp + 0x4c], 0
push edi
jmp 0x4134ff
mov ebx, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAceEx]
push ebp
push 0xc01f0000
push 3
push 2
push esi
call ebx
test eax, eax
je 0x413564
push edi
push 0xc01f0000
push 3
push 2
push esi
call ebx
test eax, eax
je 0x413564
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x413564
push 0
push esi
push 1
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x413564
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x38]
push 0
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov byte [esp + 0x4c], 3
push esi
test eax, eax
jne 0x41356d
call fcn.004c9b0b
add esp, 4
push edi
mov byte [esp + 0x50], 0
call fcn.004c9b0b
add esp, 4
push ebp
mov dword [esp + 0x50], 0xffffffff
call fcn.004c9b0b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x413650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e9e01
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x52a1ec]
mov edx, dword [eax + 0xc]
mov ecx, 0x52a1ec
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea edi, [esp + 0x14]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x30], 0
call fcn.00414f00
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
je 0x413711
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 0x10]
push 0x14
call fcn.004c958c
mov esi, eax
add esp, 4
test esi, esi
je 0x41374b
mov ecx, dword [edi + 4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 4]
lea ebp, [esi + 0xc]
mov dword [esi + 8], eax
mov word [esi + 0x10], 0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x30], 2
test ebp, ebp
je 0x413700
lea eax, [ebx - 0x10]
call fcn.00406260
add eax, 0x10
mov dword [ebp], eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push edi
mov byte [esp + 0x3c], 0
call fcn.004148a0
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413735
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], vtable.stdext::bad_alloc.0
lea esi, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.00406640
int3

Function at 0x413770
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x507530
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x4137be
push str.EnumProcessModulesEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4137b3
mov ecx, dword [esp + 0x10]
push 3
push ebx
push 0x1000
push ebp
push ecx
call eax
test eax, eax
je 0x4137b3
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x4137d9
mov edx, dword [esp + 0x10]
push ebx
push 0x1000
push ebp
push edx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
mov eax, 1
jne 0x4137db
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4139c0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x4f17ca
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00404590
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
push 0x14
mov dword [esi + 8], ebx
mov dword [esp + 0x24], ebx
call fcn.004c958c
add esp, 4
cmp eax, ebx
je 0x413ae5
mov dword [esp + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov edx, dword [esp + 0x1c]
mov al, 1
mov byte [edx + 0x10], al
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 0x11], al
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
mov byte [esp + 0x38], 0xa
call fcn.00414660
lea eax, [esp + 0x18]
push eax
push 0x4137e0
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov byte [esp + 0x34], 0xb
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x20]
call fcn.00403e80
mov byte [esp + 0x34], bl
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004c9387
add esp, 4
mov dword [esp + 0x34], 0xc
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x18]
lea esi, [esp + 0x44]
call fcn.00403e80
mov dword [esp + 0x34], 0xffffffff
mov edx, dword [esp + 0x40]
push edx
call fcn.004c9387
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], vtable.stdext::bad_alloc.0
lea esi, [esp + 0x10]
mov byte [esp + 0x34], 9
call fcn.00406640
int3

Function at 0x413b00
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x413b36
xor al, al
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c9392
add esp, 0x18
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413b25
push 0x80020003
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x14]
test eax, eax
setne al
xor ecx, esp
call fcn.004c9392
add esp, 0x18
ret
Function at 0x413ba0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x1218
call fcn.004de210
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x1214], eax
mov eax, dword [esp + 0x121c]
push ebx
lea ecx, [esp + 4]
push ecx
push 0x1000
lea edx, [esp + 0x18]
xor ebx, ebx
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x413cde
push 0x206
lea ecx, [esp + 0x1016]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x101c], ax
call fcn.004cf830
add esp, 0xc
test dword [esp + 4], 0xfffffffc
jbe 0x413cde
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push edi
mov edi, edi
mov edx, dword [esp + ebx*4 + 0x1c]
push edx
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x413ccb
push 0x104
lea eax, [esp + 0x1020]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x413c98
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x413ccb
push str.QueryFullProcessImageNameW
push edi
call ebp
mov dword [esp + 0x18], 0x104
test eax, eax
je 0x413cf4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x1020]
push edx
push 0
push esi
call eax
test eax, eax
je 0x413cf4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
lea ecx, [esp + 0x101c]
push ecx
push eax
call fcn.004cc109
add esp, 8
test eax, eax
jne 0x413cc4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
inc ebx
shr edx, 2
cmp ebx, edx
jb 0x413c20
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1218]
pop ebx
xor ecx, esp
call fcn.004c9392
add esp, 0x1218
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x413ccb

Function at 0x413d00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.004cf830
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov dword [esp + 0x1c], edx
add esp, 0xc
lea edx, [esp]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x440
mov dword [esp + 0x10], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x413d8e
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x40]
add esp, 0x3c
ret
or eax, 0xffffffff
add esp, 0x3c
ret
Function at 0x413da0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4ecba0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test edx, 0x200
jne 0x413ddf
or edx, 0x100
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
or edx, 0x20019
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00404dd0
test eax, eax
je 0x413e42
mov esi, dword [esp + 0x34]
push esi
mov ecx, 0x506c24
call fcn.00405cc0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x413e2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
push esi
mov dword [esp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x413ea7
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x413e73
cmp eax, 2
jne 0x413ea7
mov edi, dword [esp + 0x38]
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
shr edi, 1
mov ecx, 0x52a1ec
mov dword [esp + 0x14], edi
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
mov byte [esp + 0x2c], 1
cmp edi, ebx
jge 0x413ed7
push 0x80070057
call fcn.004065a0
mov edi, dword [esp + 0x34]
push edi
mov ecx, 0x506c24
call fcn.00405cc0
cmp esi, ebx
je 0x413ec1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x413ef7
mov eax, edi
lea ecx, [esp + 0x38]
call fcn.00406490
mov esi, dword [esp + 0x38]
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edi, [esp + 0x1c]
call fcn.00414e80
test eax, eax
je 0x413f4e
mov edi, dword [esp + 0x34]
push edi
mov ecx, 0x506c24
call fcn.00405cc0
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413f3c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x413ec1
push eax
jmp 0x413ebb
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004c9a98
add esp, 8
cmp eax, ebx
jl 0x413e9d
cmp eax, dword [esi - 8]
jg 0x413e9d
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov eax, esi
call fcn.00406260
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x2c], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x413f3c
mov ecx, dword [esi]
push esi
jmp 0x413f35
Function at 0x413fa0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov eax, dword [eax]
lea ecx, [esp]
push ecx
mov edx, 0x2011f
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00404dd0
test eax, eax
je 0x413fe8
mov eax, dword [esp]
test eax, eax
je 0x413fe2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 4]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [eax]
test esi, esi
je 0x414018
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x414023
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x414d60
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
mov ecx, dword [edi]
or edx, 0x2001f
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00404dd0
mov ebp, eax
cmp ebp, esi
je 0x414dc4
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x414dbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x414e5d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push esi
push esi
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
push edx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
jne 0x414e2a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00414d60
mov ebp, eax
cmp ebp, esi
jne 0x414dae
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push esi
push esi
push esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push ecx
mov dword [esp + 0x40], 0x100
call ebx
test eax, eax
je 0x414df0
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x414e3f
push eax
call ebp
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x24]
mov eax, edi
mov dword [esp + 0x18], esi
call fcn.00414cb0
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x414e5b
push eax
call ebp
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c9392
add esp, 0x228
ret 4

Function at 0x414e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
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 0x414eee
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x414ebf
cmp eax, 2
jne 0x414eda
mov eax, dword [esp]
test esi, esi
je 0x414ee8
test eax, eax
je 0x414ee3
test al, 1
jne 0x414eda
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x414ee8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x414f00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x414f1b
push 0x80070057
call fcn.004065a0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x414f37
mov eax, esi
mov ecx, edi
call fcn.00406490
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414f5e
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x414f62
push ecx
push eax
call fcn.004c9a98
add esp, 8
test eax, eax
js 0x414f11
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x414f11
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret

Function at 0x415480
Capabilities:
Check for peb beingdebugged flag
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4ecab1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push eax
push ebx
mov dword [esp + 0x1c], ebx
call ebp
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c83da
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x30], 1
call ebp
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x2b
mov eax, str.SoftwareGoogleGoogle_Pinyin_2_Preferences
mov word [esi], cx
call fcn.00404e70
push 1
mov eax, 0x507618
mov ecx, esi
mov dword [esp + 0x1c], 1
call fcn.00416d00
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x415530
sub eax, edx
sar eax, 1
push eax
mov eax, edi
mov ecx, esi
call fcn.00416d00
push edi
mov byte [esp + 0x2c], bl
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 ebp
pop ebx
add esp, 0x18
ret
Function at 0x415610
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4ef9c9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
push 0xa
lea esi, [esp + 0x14]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
call fcn.00417aa0
add esp, 4
mov dword [esp + 0x44], 1
mov eax, dword [eax]
xor ecx, ecx
mov word [esp + 0x1c], cx
mov ecx, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x415680
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x20]
call fcn.00404e70
push ebp
mov edx, esi
mov ecx, edi
mov byte [esp + 0x48], 2
call fcn.00414f80
add esp, 4
mov byte [esp + 0x44], 1
cmp dword [esp + 0x30], 8
mov dword [esp + 0x14], 1
jb 0x4156cc
mov edx, dword [esp + 0x1c]
push edx
call fcn.004c9387
add esp, 4
xor eax, eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415703
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c9392
add esp, 0x38
ret