joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016a6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push str.ICMP.DLL
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x10], eax
je 0x40176e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
push str.IcmpCloseHandle
push eax
call edi
mov ecx, dword [esi + 0x10]
push str.IcmpSendEcho
push ecx
mov dword [esi + 8], eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
test ecx, ecx
pop edi
je 0x401764
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x401764
test eax, eax
je 0x401764
lea edx, [esp + 4]
push edx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x401732
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
add esp, 0x190
ret
cmp word [esp + 4], 0x101
je 0x401754
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
add esp, 0x190
ret
mov dword [esi], 1
mov eax, esi
pop esi
add esp, 0x190
ret
mov edx, dword [esi + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x4017a0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
push edi
mov al, byte [esi]
mov ebp, ecx
cmp al, bl
jne 0x4017c1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
cmp dword [ebp], ebx
jne 0x4017d2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
jne 0x4017fe
push esi
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x4017f7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
mov eax, dword [eax + 0xc]
mov edi, dword [eax]
jmp 0x40181b
push 2
lea ecx, [esp + 0x3c]
push 4
push ecx
call sub.WSOCK32.dll_gethostbyaddr
cmp eax, ebx
jne 0x401816
lea edi, [esp + 0x38]
jmp 0x40181b
mov edx, dword [eax + 0xc]
mov edi, dword [edx]
call dword [ebp + 4]
mov esi, eax
mov al, byte [esp + 0x3c]
push 0x3e8
lea ecx, [esp + 0x1c]
push 0x1c
lea edx, [esp + 0x18]
push ecx
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [edi]
push edx
push ebx
push ebx
push eax
push esi
call dword [ebp + 0xc]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x38], ecx
je 0x401872
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 8
push esi
call dword [ebp + 8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret 8
Function at 0x4021b0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x41b3c0]
push esi
test eax, eax
mov esi, ecx
jle 0x4021c0
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x124]
test eax, eax
je 0x4021da
mov dword [esi + 0x124], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esi + 0xc4]
lea ecx, [esi + 0xc4]
call dword [edx + 0x60]
call fcn.0040cf10
mov ecx, dword [eax + 0x260]
test ecx, ecx
je 0x40220f
call fcn.0040cf10
mov eax, dword [eax + 0x260]
push 1
mov eax, dword [eax + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x41b3c0]
pop esi
inc eax
mov dword [0x41b3c0], eax
mov eax, 1
ret
Function at 0x404350
Capabilities:
Connect socket
Get socket status

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x10], 1
mov ax, word [edi + 0x68]
mov word [esp + 0x1c], 2
push eax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x134]
mov word [esp + 0x1e], ax
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
push ebp
push 1
push 2
inc ebx
call sub.WSOCK32.dll_socket
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x40440a
lea eax, [esp + 0x1c]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_connect
mov ecx, dword [edi + 0x6c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
mov dword [esp + 0x18], ecx
push ebp
push eax
lea ecx, [esi + 1]
push ebp
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x40440a
cmp eax, ebp
je 0x404404
lea edx, [esp + 0x2c]
push edx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x40441c
jmp 0x404412
push esi
call sub.WSOCK32.dll_closesocket
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 2
jge 0x404445
jmp 0x404390
lea eax, [esp + 0x10]
mov dword [edi + 0x70], esi
push eax
push 0x8004667e
push esi
mov dword [esp + 0x1c], ebp
call sub.WSOCK32.dll_ioctlsocket
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
push esi
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret 4
Function at 0x404470
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x64
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
je 0x4044b8
mov ecx, dword [0x4156c4]
push 6
push ecx
push eax
mov ecx, esi
call fcn.00404320
lea edx, [esi + 4]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4044b8
push eax
mov ecx, esi
call fcn.00404350
test eax, eax
je 0x4044b8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x64
ret 8
mov eax, dword [0x4156c4]
mov ecx, dword [str.ddns.gnway.com]
push 6
push eax
push ecx
mov ecx, esi
call fcn.00404320
lea ebx, [esi + 4]
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4044f5
push eax
mov ecx, esi
call fcn.00404350
test eax, eax
je 0x4044f5
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x64
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call edi
mov edx, dword [0x4156c4]
push 6
push edx
push str.ddns.gnway.cn
mov ecx, esi
call fcn.00404320
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x404538
push eax
mov ecx, esi
call fcn.00404350
test eax, eax
je 0x404538
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x64
ret 8
push 0x32
call edi
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call fcn.00411ce0
add esp, 4
test eax, eax
je 0x404593
mov ecx, dword [0x4156c4]
push 6
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00404320
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x404593
push eax
mov ecx, esi
call fcn.00404350
test eax, eax
je 0x404593
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x64
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x64
ret 8

Function at 0x4045b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x400
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x70]
not ecx
dec ecx
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
test eax, eax
jge 0x4045e8
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10
mov eax, dword [esp + 0x418]
test eax, eax
je 0x40464b
mov edx, dword [esi + 0x70]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0xc]
push 0x400
push ecx
push edx
call sub.WSOCK32.dll_recv
test eax, eax
jge 0x404625
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, 1
pop esi
add esp, 0x400
ret 0x10
Function at 0x407280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41382b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a8
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CWindowDC::CWindowDC
mov ecx, esi
mov dword [esp + 0x1b8], 0
mov dword [esp + 0x5c], 0x154
call fcn.004074a0
lea eax, [esp + 0x5c]
push 0
push eax
push 0x154
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x20]
push 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
push 0
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
mov ecx, dword [esp + 0xfc]
mov byte [esp + 0x37], al
mov al, byte [esp + 0x110]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x34], al
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10c]
not ecx
sub edi, ecx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dl, byte [esp + 0x113]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, 2
cmp cl, dl
sbb edx, edx
neg edx
mov dword [esp + 0x1c], edx
jne 0x4073ad
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
push 0
and eax, edx
push 0x407460
push 0
push eax
call dword [sym.imp.GDI32.dll_EnumFontFamiliesA]
test eax, eax
lea edx, [esp + 0x3c]
mov edi, str.Tahoma
je 0x407390
mov edi, str.MS_Sans_Serif
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 8
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x4073cc
mov dword [eax + 4], 0
mov dword [eax], 0x416488
mov esi, eax
jmp 0x4073ce
xor esi, esi
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
lea ecx, [esp + 0x20]
push ecx
mov dword [0x41c3ec], esi
call edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
push 8
mov dword [esp + 0x34], 0x2bc
call sub.MFC42.DLL_operatornew
add esp, 4
test eax, eax
je 0x407410
mov dword [eax + 4], 0
mov dword [eax], 0x416488
mov esi, eax
jmp 0x407412
xor esi, esi
lea edx, [esp + 0x20]
mov dword [0x41c3e8], esi
push edx
call edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CGdiObject::Attach
lea ecx, [esp + 8]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00412b70
mov ecx, dword [esp + 0x1b0]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1b4
ret
Function at 0x409bc0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x413958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00412a62
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x409c3b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [edi + 0x50], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40fbf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push 0x41a668
push str.userprofie.dat
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x40fc8c
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call ebx
add esp, 0x10
test eax, eax
jbe 0x40fc8c
mov ecx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push 1
push 0x2c
lea edi, [ebp + 8]
mov dword [ebp], ecx
push edi
call ebx
add esp, 0x10
test eax, eax
je 0x40fc71
jle 0x40fc62
mov ecx, dword [esp + 0x10]
inc ecx
add edi, 0x2c
mov dword [esp + 0x10], ecx
push esi
push 1
push 0x2c
push edi
call ebx
add esp, 0x10
test eax, eax
jne 0x40fc54
mov edx, dword [esp + 0x10]
push esi
mov dword [ebp + 4], edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x18]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], 0xffffffff
pop ebx
add esp, 8
ret 4
Function at 0x40fcb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c0
mov edx, ecx
mov ecx, 0x70
xor eax, eax
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov ecx, edx
push eax
call fcn.0040fbf0
mov esi, dword [esp + 0x14]
xor ebp, ebp
test esi, esi
jle 0x40fd27
lea edx, [esp + 0x18]
mov edi, dword [esp + 0x1d4]
mov eax, edx
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [edi]
jne 0x40fd10
test cl, cl
je 0x40fd0c
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [edi + 1]
jne 0x40fd10
add eax, 2
add edi, 2
test cl, cl
jne 0x40fcec
xor eax, eax
jmp 0x40fd15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40fd23
inc ebp
add edx, 0x2c
cmp ebp, esi
jl 0x40fce3
jmp 0x40fd27
cmp ebp, esi
jl 0x40fd84
cmp esi, 0xa
jl 0x40fd53
mov eax, dword [esp + 0x1d8]
mov esi, dword [esp + 0x1d4]
mov ecx, 0xb
lea edi, [esp + 0x18]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x40fdad
mov dword [esp + 0x10], 0
jmp 0x40fdad
mov eax, dword [esp + 0x1d8]
lea ecx, [esi + esi*4]
test eax, eax
lea edx, [esi + ecx*2]
mov esi, dword [esp + 0x1d4]
mov ecx, 0xb
lea edi, [esp + edx*4 + 0x18]
rep movsd dword es:[edi], dword [esi]
je 0x40fd7e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
inc dword [esp + 0x14]
jmp 0x40fdad
mov eax, dword [esp + 0x1d8]
mov esi, dword [esp + 0x1d4]
lea ecx, [ebp + ebp*4]
test eax, eax
lea edx, [ebp + ecx*2]
mov ecx, 0xb
lea edi, [esp + edx*4 + 0x18]
rep movsd dword es:[edi], dword [esi]
je 0x40fdad
mov dword [esp + 0x10], ebp
push 0x41a66c
push str.userprofie.dat
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40fe0a
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
lea eax, [esp + 0x18]
push 4
push eax
call ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x40fe00
lea edi, [esp + 0x18]
push ebx
push 1
push 0x2c
push edi
call ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
inc esi
add edi, 0x2c
cmp esi, eax
jl 0x40fde9
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0
ret 8

Function at 0x40ff80
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410007
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ffec
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
pop edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x410010
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, 0x40
xor eax, eax
push edi
mov edi, 0x41ca10
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4100da
push ebx
push 0x100
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0xc]
mov ebx, eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ebx
push edx
push 0
push eax
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4100a9
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov edx, ecx
mov esi, edi
mov edi, 0x41ca10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MFC42.DLL_operatordelete
mov edi, 0x41ca10
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop ebx
mov eax, ecx
pop edi
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
xor eax, eax
pop edi
add esp, 0xc
ret

Function at 0x4100f0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov edx, dword [str.SOFTWAREgnway]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x410150
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 8
ret
Function at 0x410160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, 0x40
xor eax, eax
push ebx
push edi
mov edi, 0x41c910
rep stosd dword es:[edi], eax
mov ecx, dword [str.SOFTWAREgnway]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41021a
push 0x100
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
lea edx, [esp + 0xc]
mov ebx, eax
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push ebx
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41021a
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov eax, ecx
mov esi, edi
mov edi, 0x41c910
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0x41c910
pop esi
pop edi
pop ebx
add esp, 0xc
ret
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x4114d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413f90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x130]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [ebp + 0x10]
lea ecx, [ebp + 8]
push eax
call fcn.0041283a
push str..lnk
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00412a62
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x130]
push ecx
push edx
lea eax, [ebp - 0x14]
push str._s_s
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041283a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
push eax
lea ecx, [ebp + 8]
push str._s_s
push ecx
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 6
push edx
call sub.MFC42.DLL_CFile::Remove
mov dword [ebp - 4], 4
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413fe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
mov dword [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [eax]
call dword [edx + 8]
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x134]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str._s_s
push edx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.0041283a
push str..lnk
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00412a62
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push edx
push eax
lea ecx, [ebp - 0x18]
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [ebp + 0x14]
lea ecx, [ebp + 8]
push edx
call fcn.0041283a
push str..lnk
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00412a62
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
push ecx
push edx
lea eax, [ebp + 8]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::Rename
mov dword [ebp - 4], 6
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret