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

Disassembly:
push 0xffffffffffffffff
push 0x405f26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
mov byte [esp + 0x12c], 1
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ebp, [esi + 0xc4]
mov ecx, 0x82f
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jbe 0x4027b8
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
push str._sKTEMAIN.CFG
push edx
jmp 0x4027c8
movsx eax, byte [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
push str._c:KTEMAIN.CFG
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0x8000
push edx
call sub.MFC42.DLL_CFile::Open
test eax, eax
push 0
je 0x402810
push 0x64
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Seek
push 0x20bc
push ebp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
jmp 0x40281c
push 0x10
push str.KTEMAIN.CFG_
call sub.MFC42.DLL_AfxMessageBox
xor esi, esi
lea ecx, [esp + 0xc]
mov si, word [ebp]
mov byte [esp + 0x12c], 0
call fcn.00405716
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00405830
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x4028f0
Capabilities:
Inspect load icon resource

Disassembly:
push 0xffffffffffffffff
push 0x405f74
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esi + 0x68]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x6c]
mov byte [esp + 0x14], 1
call fcn.00401000
lea ecx, [esi + 0x164]
mov byte [esp + 0x14], 2
call fcn.00401000
lea edi, [esi + 0x260]
mov byte [esp + 0x14], 3
mov ecx, edi
call sub.MFC42.DLL_CString::CString
push 0x40907c
mov ecx, edi
mov byte [esp + 0x18], 4
mov dword [esi], 0x407930
call fcn.004058ae
mov dword [esi + 0x64], 0
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0xa0
mov dword [esi + 0x264], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 5
je 0x4029be
push esi
mov ecx, eax
call fcn.00404030
jmp 0x4029c0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x25c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4053f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov edx, dword [esp + 0x418]
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 4]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405482
push edi
mov edx, dword [esp + 0x424]
mov esi, dword [esp + 0x418]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop esi
add esp, 0x410
ret 0x10
Function at 0x4154be
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x14], 0
jne 0x4154cd
push 0xd
pop eax
leave
ret
and dword [ebp - 4], 0
cmp dword [eax + 0x1c], 8
jb 0x4154dc
mov ecx, dword [eax + 8]
jmp 0x4154df
lea ecx, [eax + 8]
push edi
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push ecx
push dword [eax + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x415523
cmp dword [ebp - 4], eax
je 0x415523
cmp dword [esi + 0x18], 8
jb 0x41550b
mov eax, dword [esi + 4]
jmp 0x41550e
lea eax, [esi + 4]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x415ab2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x505b5d
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x571268]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
mov eax, dword [0x571268]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
push ecx
push eax
mov eax, 0x20019
lea ecx, [esp + 0x18]
mov dword [esp + 0x260], ebx
call fcn.00411b36
cmp eax, ebx
je 0x415b52
mov ebx, 0x3e80
lea esi, [esp + 0x10]
call fcn.00411b1f
mov eax, ebx
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004e6e1c
mov esp, ebp
pop ebp
ret
xor edi, edi
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x58]
push eax
push edi
push dword [esp + 0x2c]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x415bb8
cmp eax, ebx
jne 0x415bb5
lea eax, [esp + 0x44]
push eax
lea esi, [esp + 0x2c]
call fcn.004076aa
mov eax, esi
push eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x25c], 1
call fcn.0041812b
push ebx
push 1
mov byte [esp + 0x260], bl
call fcn.0040754f
inc edi
jmp 0x415b54
lea esi, [esp + 0x10]
call fcn.00411b1f
jmp 0x415b23
Function at 0x415bc6
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareMicrosoftInternet_ExplorerUser_Preferences
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x415c69
mov eax, edi
mov dword [ebp - 0x14], edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x415bff
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x415c3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x415c69
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 3
push esi
push str.88D7D0879DAB32E14DE5B3A805A34F98AFF34F5977
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4694a1
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x5047f0
call fcn.004ec766
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4695b3
cmp byte [esi + 0x42], bl
je 0x4695b3
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4694dd
xor al, al
jmp 0x4695b5
push ebx
push 8
lea ecx, [ebp - 0x30]
call fcn.004693d6
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.004693fc
mov ecx, eax
call fcn.00469620
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.004693fc
mov ecx, eax
call fcn.00469620
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x46954d
dec eax
je 0x469551
dec eax
dec eax
je 0x4695af
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004065f9
mov al, bl
jmp 0x4695b5
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.004693fc
mov ecx, eax
call fcn.00469620
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x469591
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.004693fc
mov ecx, eax
call fcn.00469620
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004e981b
add esp, 0x10
cmp edi, eax
jne 0x46953b
cmp byte [esi + 0x42], 0
je 0x4695af
test edi, edi
jne 0x4694eb
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.004047b9
jmp 0x4694eb
mov bl, 1
jmp 0x46953d
mov al, 1
call fcn.004ec7e9
ret

Function at 0x47079c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x28], 0
push ebx
push esi
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
lea ebx, [ebp - 0x28]
mov esi, edx
mov byte [ebp - 0x21], 0
call fcn.00470834
cmp dword [ebp - 0xc], 0
jbe 0x470815
cmp dword [esi + 0x18], 8
jb 0x4707da
mov esi, dword [esi + 4]
jmp 0x4707dd
add esi, 4
push 0x538ec8
push esi
call fcn.004e8897
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x470815
cmp dword [ebp - 8], 0x10
mov eax, dword [ebp - 0x1c]
jae 0x4707fc
lea eax, [ebp - 0x1c]
push esi
push dword [ebp - 0x28]
push 1
push eax
call fcn.004e981b
push esi
call fcn.004e7463
add esp, 0x14
mov byte [ebp - 0x21], 1
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004065f9
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x21]
pop esi
xor ecx, ebp
pop ebx
call fcn.004e6e1c
leave
ret 4
Function at 0x4e6e1c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x571268]
jne 0x4e6e26
repz ret
jmp fcn.004f155c
Function at 0x4fe8f9
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.004f1812
and dword [ebp - 4], 0
cmp dword [0x574ce8], 0
mov ebx, eax
jne 0x4fe9aa
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4fea5b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4fea5b
push eax
call fcn.004f17a0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x574ce8], eax
call esi
push eax
call fcn.004f17a0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x574cec], eax
call esi
push eax
call fcn.004f17a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x574cf0], eax
call esi
push eax
call fcn.004f17a0
pop ecx
mov dword [0x574cf8], eax
test eax, eax
je 0x4fe9aa
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f17a0
pop ecx
mov dword [0x574cf4], eax
mov eax, dword [0x574cf4]
cmp eax, ebx
je 0x4fea02
cmp dword [0x574cf8], ebx
je 0x4fea02
push eax
call fcn.004f181b
push dword [0x574cf8]
mov esi, eax
call fcn.004f181b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4fea02
test edi, edi
je 0x4fea02
call esi
test eax, eax
je 0x4fe9f9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4fe9f9
test byte [ebp - 0xc], 1
jne 0x4fea02
or dword [ebp + 0x10], 0x200000
jmp 0x4fea3b
mov eax, dword [0x574cec]
cmp eax, ebx
je 0x4fea3b
push eax
call fcn.004f181b
pop ecx
test eax, eax
je 0x4fea3b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4fea3b
mov eax, dword [0x574cf0]
cmp eax, ebx
je 0x4fea3b
push eax
call fcn.004f181b
pop ecx
test eax, eax
je 0x4fea3b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x574ce8]
call fcn.004f181b
pop ecx
test eax, eax
je 0x4fea5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4fea5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e7
xor eax, eax
test eax, eax
je 0x4065f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f9
xor ecx, ecx
jmp 0x4065fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232e4], 0
push esi
jne 0x40671f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f9
mov dword [ecx*4 + 0x4232e0], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406750
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232e0]
xor eax, esi
inc ecx
dec edx
jne 0x406732
pop edi
not eax
pop esi
ret 0xc

Function at 0x409de6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 9
xor eax, eax
lea edi, [ebp - 0x2c]
pop ecx
xor ebx, ebx
mov esi, 0x421720
rep stosd dword es:[edi], eax
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x421720], eax
je 0x409e51
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x10
push ebx
push dword [esi]
push edi
call dword [eax + 0x10]
test eax, eax
jne 0x409e4a
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 4]
call fcn.0040a6e8
test eax, eax
jne 0x409eab
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], ebx
add esi, 0x10
cmp dword [esi], ebx
jne 0x409e19
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
mov edi, dword [ebp - 0x2c]
push ecx
push 2
push dword [ebp - 0x20]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x34]
test eax, eax
jne 0x409eab
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
add edx, 4
test edi, edi
je 0x409e91
mov eax, dword [edx]
xor eax, dword [ecx]
movzx eax, ax
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 0x10]
sub edi, 1
jne 0x409e78
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], ebx
je 0x409ea1
mov eax, dword [esi]
push ebx
push ecx
push dword [ebp - 0x2c]
push esi
call dword [eax + 0x20]
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00409c81
push dword [ebp - 8]
call fcn.00415f94
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x409ec3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409b6c
mov esp, ebp
pop ebp
ret 8
Function at 0x401560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473593
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
or dword [ebx + 0x48], 0x400
push edi
xor edi, edi
cmp dword [ebx + 0x30], edi
jne 0x4015ec
push esi
push 0x20
call fcn.00411e4b
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x4015d5
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.PBUIWebInterface::WEB_MSG_RESP_open_webbrowser_ack.0
call fcn.00441cc0
mov dword [esi + 0x14], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [ebx + 0x30], esi
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebx + 0x30], esi
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x30]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x404420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4872e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00412ae0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0x3ff
lea edx, [ebp - 0x404]
push edx
push eax
mov dword [ebp - 0x408], 0
call edi
test eax, eax
je 0x4044ba
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40449b
mov eax, dword [ebp - 0x408]
mov edx, dword [ecx]
mov edx, dword [edx]
push eax
lea eax, [ebp - 0x404]
push eax
call edx
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x408]
push eax
push 0x3ff
lea ecx, [ebp - 0x404]
push ecx
push edx
call edi
test eax, eax
jne 0x404480
cmp dword [esi], 1
pop edi
jne 0x4044d4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4044d4
mov dword [esi], 0
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004123dd
mov esp, ebp
pop ebp
ret
Function at 0x40c210
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473348
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4872e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 4]
mov dword [esi], vtable.PBUIWebInterface::WEB_MSG_RESP.0
call fcn.00441cc0
mov dword [esi + 0x44], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40c5a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4735b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4872e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4c
call fcn.00411e4b
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x40c635
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
mov dword [esi], vtable.PBUIWebInterface::WEB_MSG_RESP.0
call fcn.00441cc0
mov dword [esi + 0x44], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x48], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4123dd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4872e0]
jne 0x4123e7
repz ret
jmp fcn.00415f6e
Function at 0x41a940
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4872e0]
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.00413f92
and dword [ebp - 0x14], 0
cmp dword [0x48a464], 0
mov dword [ebp - 0x18], eax
jne 0x41a9f3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41aa9b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41aa9b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48a464], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48a468], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48a46c], eax
call edi
push eax
call esi
mov dword [0x48a474], eax
test eax, eax
je 0x41a9f3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48a470], eax
mov eax, dword [0x48a470]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41aa4c
cmp dword [0x48a474], ecx
je 0x41aa4c
push eax
call esi
push dword [0x48a474]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41aa4c
test ebx, ebx
je 0x41aa4c
call edi
test eax, eax
je 0x41aa43
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41aa43
test byte [ebp - 8], 1
jne 0x41aa4c
or dword [ebp + 0x10], 0x200000
jmp 0x41aa7f
mov eax, dword [0x48a468]
cmp eax, dword [ebp - 0x18]
je 0x41aa7f
push eax
call esi
test eax, eax
je 0x41aa7f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41aa7f
mov eax, dword [0x48a46c]
cmp eax, dword [ebp - 0x18]
je 0x41aa7f
push eax
call esi
test eax, eax
je 0x41aa7f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48a464]
call esi
test eax, eax
je 0x41aa9b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41aa9d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004123dd
leave
ret

Function at 0x41f320
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, edx
push esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41f330
sub eax, esi
add eax, edx
mov ecx, 0x811c9dc5
cmp edx, eax
je 0x41f354
movsx esi, byte [edx]
imul ecx, ecx, 0x1000193
inc edx
xor ecx, esi
cmp edx, eax
jne 0x41f344
and ecx, 0x7fffffff
push 0x1f31d
push ecx
call fcn.00468aa9
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
pop esi
mov eax, edx
jns 0x41f380
add eax, 0x7fffffff
pop ebp
ret 4
Function at 0x429a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f2a6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4872e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 0x20], bl
push 0x14
mov byte [ebp - 4], 1
mov dword [esi + 0x4c], ebx
call fcn.00411e4b
add esp, 4
cmp eax, ebx
je 0x429ae4
mov dword [esi + 0x48], eax
mov dword [eax], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x48]
mov dword [eax + 8], eax
mov eax, dword [esi + 0x48]
mov byte [eax + 0x10], 1
mov ecx, dword [esi + 0x48]
mov byte [ecx + 0x11], 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], 0xf
mov dword [esi + 0x68], ebx
mov byte [esi + 0x58], bl
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call fcn.00411758
push 0x485118
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.00412f3e
int3