joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6900b320
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x30
push esi
lea eax, [esp + 4]
push edi
push eax
push 0x28
mov dword [esp + 0x14], 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x6900b34b
pop edi
pop esi
add esp, 0x30
ret
lea ecx, [esp + 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x6900b383
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], ecx
push edx
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push 0x10
push ecx
push 0
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call edi
test eax, eax
jne 0x6900b3e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x30]
push 0x10
push ecx
push 0
push edx
mov esi, eax
call edi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x30
ret
Function at 0x6900b430
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 8
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6900b5c0
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 2
push edx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x6900b4c0
call edi
mov esi, eax
cmp esi, 0x7a
je 0x6900b4c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
push 4
add ecx, 0xfff
push 0x1000
and ecx, 0xfffff000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x6900b503
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 2
push edx
call ebp
test eax, eax
je 0x6900b544
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x6900b572
call edi
push 0x8000
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esi]
xor edi, edi
test eax, eax
jbe 0x6900b59c
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jne 0x6900b5ca
mov eax, dword [esi]
inc edi
add ebp, 8
cmp edi, eax
jb 0x6900b583
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x6900b600
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov ecx, dword [0x690c0a6c]
sub esp, 0x10c
lea eax, [esp + 4]
push ebp
push eax
push 1
push ecx
call fcn.6900a530
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x6900b630
mov eax, 7
pop ebp
add esp, 0x10c
ret
push esi
push edi
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [esp + 0x14]
xor ecx, ecx
test al, al
je 0x6900b659
mov al, byte [esp + ecx + 0x15]
inc ecx
test al, al
jne 0x6900b650
mov eax, 0x690b9c5c
sub ecx, eax
lea ecx, [esp + ecx + 0x14]
mov dl, byte [eax]
mov byte [ecx + eax], dl
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6900b664
mov al, byte [esp + 0x14]
xor ecx, ecx
test al, al
je 0x6900b683
mov al, byte [esp + ecx + 0x15]
inc ecx
test al, al
jne 0x6900b67a
mov eax, dword [str.prodrv04.vxd]
sub ecx, eax
lea ecx, [esp + ecx + 0x14]
mov dl, byte [eax]
mov byte [ecx + eax], dl
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6900b68e
push 0
push 0x80
push 2
push 0
push 1
lea eax, [esp + 0x28]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6900b6c2
or esi, eax
jmp 0x6900b6fa
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push ebp
push esi
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x6900b6e3
or esi, 0xffffffff
jmp 0x6900b6fa
cmp dword [esp + 0xc], edi
je 0x6900b6ee
or esi, 0xffffffff
jmp 0x6900b6fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
push 0x8000
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x6900bed0
Capabilities:
Allocate thread local storage
Check mutex on windows
Check os version
Encode data using xor
Hash data with crc32
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
jmp dword [eax*4 + 0x6900c440]
Function at 0x4053a0
Capabilities:
Encrypt data using des

Disassembly:
mov eax, ecx
push esi
push edi
mov ecx, 0x20
lea edi, [eax + 4]
mov esi, 0x45e1d4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x84]
mov ecx, 0x20
mov esi, 0x45e254
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x104]
mov ecx, 0x20
mov esi, 0x45e2d4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x184]
mov ecx, 6
mov esi, 0x4578f4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x45790c]
lea ecx, [eax + 0x19c]
lea edi, [eax + 0x1ac]
mov esi, 0x45791c
mov dword [ecx], edx
mov edx, dword [0x457910]
mov dword [ecx + 4], edx
mov edx, dword [0x457914]
mov dword [ecx + 8], edx
mov edx, dword [0x457918]
mov dword [ecx + 0xc], edx
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x20c]
mov ecx, 0xe
mov esi, str.80_
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x4579b4]
lea ecx, [eax + 0x244]
lea edi, [eax + 0x254]
mov esi, 0x4579c4
mov dword [ecx], edx
mov edx, dword [0x4579b8]
mov dword [ecx + 4], edx
mov edx, dword [0x4579bc]
mov dword [ecx + 8], edx
mov edx, dword [0x4579c0]
mov dword [ecx + 0xc], edx
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x284]
mov ecx, 0x40
mov esi, 0x4579f4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x384]
mov ecx, 0x40
mov esi, 0x457af4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x484]
mov ecx, 0x40
mov esi, 0x457bf4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x584]
mov ecx, 0x40
mov esi, 0x457cf4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x684]
mov ecx, 0x40
mov esi, 0x457df4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x784]
mov ecx, 0x40
mov esi, 0x457ef4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x884]
mov ecx, 0x40
mov esi, 0x457ff4
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x984]
mov ecx, 0x40
mov esi, 0x4580f4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
Function at 0x405f50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [esp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareECMG
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405f88
mov esi, dword [esp + 8]
jmp 0x405fbf
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareECMG
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405fbf
mov esi, dword [esp + 8]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.ProcessID
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x405fe5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 8
ret

Function at 0x406560
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push 0
push 0x3f
push 2
push 0x23f1
mov ecx, 0x45e568
call fcn.0044394f
push 0
push 0x23f1
mov ecx, 0x45e568
call fcn.00443a7a
mov ecx, dword [0x45e56c]
lea eax, [esp]
push 4
push eax
push 0x20
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call sub.WSOCK32.dll_setsockopt
push 0xffffffffffffffff
push 0
mov ecx, 0x45e550
call fcn.004251de
lea edx, [esp + 4]
push edx
call fcn.00409c8c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [0x45e540], ecx
mov dword [0x45e544], edx
mov eax, dword [eax + 8]
push 1
mov dword [0x45e548], eax
call fcn.00406c50
add esp, 4
call fcn.00406eb0
call fcn.00406ca0
mov eax, dword [0x45e530]
test eax, eax
je 0x4065fe
call fcn.004082c0
mov eax, dword [0x45e538]
test eax, eax
je 0x40660c
call fcn.00407fd0
add esp, 0x10
ret

Function at 0x406810
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, eax
dec eax
test ecx, ecx
je 0x406843
mov ecx, dword [esp + 8]
push esi
lea edx, [eax + 1]
mov esi, dword [esp + 8]
xor eax, eax
mov al, byte [ecx]
and esi, 0xff
xor eax, esi
inc ecx
dec edx
mov al, byte [eax + 0x458320]
mov byte [esp + 8], al
jne 0x406823
pop esi
ret
mov al, byte [esp + 4]
ret

Function at 0x406850
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x406880
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
shr edx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x458420]
xor eax, edx
inc ecx
dec esi
jne 0x406862
pop ebx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret
Function at 0x407600
Capabilities:
Create directory
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4448f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x45e594]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor edi, edi
push eax
mov dword [esp + 0x74], edi
call esi
lea ecx, [esp + 0x4c]
call fcn.0040acfd
push edi
push 0x45897c
lea ecx, [esp + 0x54]
mov byte [esp + 0x78], 1
call fcn.0040adc0
test eax, eax
jne 0x407676
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0xc
push ecx
push 0x45897c
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [0x45e594]
push edx
call esi
lea eax, [esp + 0x1c]
push eax
call fcn.00409c8c
mov ecx, dword [0x458c40]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 2
call fcn.00409d34
push eax
lea ecx, [esp + 0x20]
call fcn.00409d0a
push eax
lea ecx, [esp + 0x24]
call fcn.00409ce0
push eax
lea edx, [esp + 0x20]
push str.LogECMG__.4d__.2d__.2d_.txt
push edx
call fcn.00423c2b
add esp, 0x14
lea ecx, [esp + 0x14]
push 0x458958
push 0x100
call fcn.00426400
push eax
call fcn.00412a51
mov esi, eax
add esp, 8
cmp esi, edi
je 0x407720
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push eax
call fcn.00409db2
push eax
lea ecx, [esp + 0x24]
call fcn.00409d88
push eax
lea ecx, [esp + 0x28]
call fcn.00409d5e
push eax
push str._.2d:_.2d:_.2d__s_r_n
push esi
call fcn.004129e4
push esi
call fcn.00412967
add esp, 0x1c
push edi
push edi
push edi
push 0x25
lea ecx, [esp + 0x44]
call fcn.0040a018
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00409eef
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 7
mov bl, 3
mov eax, dword [0x458c40]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], bl
call fcn.00409d34
push eax
lea ecx, [esp + 0x2c]
call fcn.00409d0a
push eax
lea ecx, [esp + 0x30]
call fcn.00409ce0
push eax
lea ecx, [esp + 0x1c]
push str.LogECMG__.4d__.2d__.2d_.txt
push ecx
call fcn.00423c2b
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0x45e594
push eax
call fcn.00426273
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 4
call fcn.0042617d
lea ecx, [esp + 0x18]
mov byte [esp + 0x70], bl
call fcn.00426044
mov ecx, dword [esp + 0x10]
push ecx
call edi
push 0
push 0
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.0040a018
lea edx, [esp + 0x34]
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00409e72
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 8]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], eax
mov byte [esp + 0x70], 2
call fcn.00426044
dec esi
jne 0x40774e
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 1
call fcn.00426044
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 0
call fcn.0040ad3a
lea ecx, [ebp + 8]
mov dword [esp + 0x70], 0xffffffff
call fcn.00426044
mov ecx, dword [esp + 0x68]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407850
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], esp
push eax
call fcn.00409c8c
lea ecx, [ebp - 0x40]
call fcn.00409d5e
test eax, eax
jne 0x407a78
lea ecx, [ebp - 0x40]
call fcn.00409d88
test eax, eax
jne 0x407a78
lea ecx, [ebp - 0x40]
call fcn.00409db2
test eax, eax
jne 0x407a78
push 0x45e1d0
lea ecx, [ebp - 0x2c]
call fcn.004260b2
push 0
push 0
push 0
push 7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0
call fcn.0040a018
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00409eef
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 7
jge 0x407a69
mov eax, dword [0x458c40]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00409d34
push eax
lea ecx, [ebp - 0x28]
call fcn.00409d0a
push eax
lea ecx, [ebp - 0x28]
call fcn.00409ce0
push eax
lea ecx, [ebp - 0x14]
push str.LogECMG__.4d__.2d__.2d_.txt
push ecx
call fcn.00423c2b
mov edx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ebp - 0x14]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00423844
push str..zip
lea ecx, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 2
call fcn.004262d9
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00426044
push 0
push 0x8000000
push 3
push 0
push 1
push SysReAllocStringLen
push 0x400
lea ecx, [ebp - 0x14]
call fcn.00426400
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x407a18
lea edx, [ebp - 0x34]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor edi, edi
cmp ebx, 0xffffffff
jne 0x4079a7
test edi, edi
je 0x4079ac
or edi, dword [ebp - 0x34]
jmp 0x4079b0
xor ebx, ebx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jl 0x407a18
jg 0x4079c5
cmp ebx, 0x100000
jbe 0x407a18
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
push ecx
lea ecx, [ebp - 0x164]
call fcn.0041dda0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x164]
push edx
call fcn.0041dc00
jmp 0x407a01
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 4
push eax
call esi
test eax, eax
jne 0x407a18
mov ecx, dword [ebp - 0x14]
push ecx
call esi
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040a018
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x58]
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00409e72
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
call fcn.00426044
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00426044
inc dword [ebp - 0x1c]
jmp 0x4078e8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00426044
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407fd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SoftwareGSTestLimit
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40804a
mov esi, dword [esp + 4]
lea ecx, [esp + 8]
mov dword [esp + 0xc], eax
lea edx, [esp + 4]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.TestLimitCASInfo
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40803f
mov eax, dword [esp + 4]
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov word [0x45e6bc], cx
test esi, esi
je 0x40804a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0xc
ret

Function at 0x408050
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4449e6
push eax
mov eax, 0x4e30
mov dword fs:[0], esp
call fcn.00412600
push ebx
push ebp
push esi
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x14], ebx
push 0x45e1d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x4e4c], edi
call fcn.004260b2
lea eax, [esp + 0x18]
mov byte [esp + 0x4e48], 1
push eax
push 0xf003f
push edi
push str.SoftwareGosSecKey
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x408110
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push edi
push str.SecKey
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x4e20
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x4080fd
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call fcn.004261cd
cmp esi, edi
je 0x40810c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0x45e1d0
push edx
call fcn.004127f9
add esp, 8
test eax, eax
je 0x408197
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x4e54]
mov esi, edi
mov eax, dword [eax - 8]
shr eax, 1
mov dword [ebp], eax
je 0x408174
mov ebx, dword [esp + 0x4e50]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 2
push edi
push ecx
lea ecx, [esp + 0x20]
call fcn.00423732
call fcn.00406630
add esp, 4
mov byte [esi + ebx], al
mov eax, dword [ebp]
inc esi
add edi, 2
cmp esi, eax
jb 0x408144
mov ebx, dword [esp + 0x14]
xor edi, edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e48], 0
call fcn.00426044
cmp ebx, edi
je 0x408190
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4081b5
lea ecx, [esp + 0x10]
mov byte [esp + 0x4e48], 0
call fcn.00426044
cmp ebx, edi
je 0x4081b3
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x4e40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4e3c
ret
Function at 0x4081d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
cmp eax, 0x205
push edi
je 0x4081ff
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Parse_second_key_failed_0x0301__
call fcn.004260b2
call fcn.00407600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x18]
push 0x1c4
push ebp
push 0xff
call fcn.00406810
mov cl, byte [ebp + 0x1c4]
add esp, 0xc
cmp cl, al
je 0x408240
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Parse_second_key_failed_0x0302__
call fcn.004260b2
call fcn.00407600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov cl, byte [ebp + 2]
mov ebx, dword [esp + 0x14]
xor cl, 0x99
mov byte [esp + 0x1c], cl
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov dl, byte [eax + ebp + 0x83]
sub dl, 5
test cl, cl
jbe 0x408281
mov ecx, eax
mov edi, ebx
mov ebx, ecx
lea esi, [ebp + 0x83]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
sub ecx, eax
test ecx, ecx
jle 0x4082a4
lea esi, [eax + ebp + 0x84]
lea edi, [eax + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx]
xor cl, dl
mov byte [eax + ebx], cl
inc eax
cmp eax, 0x100
jb 0x4082a6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4082c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2814
call fcn.00412600
lea eax, [esp]
lea ecx, [esp + 0x104]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00408050
add esp, 8
test eax, eax
je 0x408338
mov edx, dword [esp]
lea eax, [esp + 0x104]
push edx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004081d0
add esp, 0xc
test eax, eax
je 0x408338
mov al, byte [esp + 5]
mov dl, byte [esp + 4]
mov byte [0x45831f], al
mov byte [0x45831e], dl
xor eax, eax
mov cl, byte [esp + eax + 4]
mov dl, byte [eax + 0x45e598]
xor dl, cl
mov byte [eax + 0x45e598], dl
inc eax
cmp eax, 0x100
jl 0x40831e
add esp, 0x2814
ret
Function at 0x422fd0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00412600
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42309b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42309b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42304e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423059
or bh, 8
and edi, 0x8000000
je 0x423074
mov eax, dword [0x4b1e1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42309b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret