joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48f3c2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f3fa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048d44f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d427
jmp 0x48f406
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x490ab3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x490af5
call fcn.00496571
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x490af5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x490aec
xor eax, eax
jmp 0x490afd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00490b03
pop edi
pop esi
pop ebx
ret 4

Function at 0x496aa1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x496acf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496aed
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496a07
jmp 0x496aed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496aed
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496a07
test edi, edi
mov eax, edi
jne 0x496ad7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x407c9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea eax, [esp + 8]
mov dword [esp + 0x1a0], 0
push eax
push 0x202
mov dword [esi], 0x4093d8
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40107b
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x40106e
push 0
push 0
push 0x40b020
call sub.MFC42.DLL_AfxMessageBox
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1a8]
mov dword [esi + 0x808], ecx
mov ecx, dword [esp + 0x198]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret 4

Function at 0x4010c0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov ax, word [edx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x401110
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push 1
push eax
push 1
push 6
push ecx
mov byte [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov eax, edx
pop esi
add esp, 0x10
ret 8

Function at 0x401140
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebx, [ebp + 8]
mov ecx, 0x200
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
test esi, esi
mov ecx, dword [eax]
mov dword [ebx], ecx
je 0x4011ac
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40118f
mov al, byte [edx + esi]
mov edi, esi
not al
mov byte [edx + esi], al
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x401176
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp + 0xc]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 4]
xor eax, eax
push 0
mov ax, word [ecx + 2]
add eax, 4
push eax
push ebx
push edx
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
jne 0x4011e3
push 0
push 0
push str.SendPacket
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x4011f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x808
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
mov esi, ecx
push edi
push 0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push 4
push eax
push ecx
mov dword [esp + 0x1c], 0
call ebx
mov edx, dword [esp + 0xe]
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
push eax
and edx, 0xffff
lea eax, [esp + 0x18]
push edx
push eax
push ecx
call ebx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esi + 0x808]
call fcn.00404cd0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x401288
mov al, byte [esp + edx + 0x14]
lea edi, [esp + 0x14]
not al
mov byte [esp + edx + 0x14], al
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x40126b
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x808]
push edx
call fcn.00404cf0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x808
ret

Function at 0x401b40
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
test eax, eax
je 0x401b81
call fcn.00402760
test eax, eax
je 0x401b88
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x402080
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x94], eax
test eax, eax
je 0x401b81
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x401b81
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x9c]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x9c]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x54]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x7c]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x401b81
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x401c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401cbf
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x401cbf
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401cbf
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401cb8
test edi, edi
je 0x401cb8
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.00401490
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

Function at 0x402ba0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, ecx
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x402bee
movsx edx, word [esi + 0xf0]
mov ecx, dword [esi + 0xf4]
lea eax, [esi + 0xfc]
push eax
push ecx
lea eax, [esi + 0xb0]
push edx
lea ecx, [esi + 0xa0]
push eax
lea edx, [esi + 0x60]
push ecx
lea eax, [esi + 0x200]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s_actionTheGunClient_ClickKeyWord.exe_1239893217__s__s__s__d__d__s_Y
push ecx
jmp 0x402c27
movsx ecx, word [esi + 0xf0]
mov eax, dword [esi + 0xf4]
lea edx, [esi + 0xfc]
push edx
push eax
lea edx, [esi + 0xb0]
push ecx
lea eax, [esi + 0xa0]
push edx
lea ecx, [esi + 0x60]
push eax
lea edx, [esi + 0x200]
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_actionTheGunClient_ClickKeyWord.exe_1239893217__s__s__s__d__d__s_N
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea ecx, [esp + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
add esp, 0x104
ret
Function at 0x4035e0
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWARETheGunClient
mov esi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40367a
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARETheGunClient
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40364c
push 0
push 0
push 0x40b44c
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push 0x104
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 8

Function at 0x4050d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp + 4]
push eax
push 0x40b1b0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
add esp, 0x400
ret 4
Function at 0x4059e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x407f70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push closesocket
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405a46
push 0
push 0x40b990
push str.error
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
push 0x320
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov dword [esp + 0x1c], 1
push 0x40b990
mov dword [esp + 0x1c], 0x320
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push ebp
push eax
push 0
push ecx
push edx
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405aac
push 0
push 0x40b990
push str.error3
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004078a6
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004078a6
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4062a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
push 0xf003f
push eax
push str.SOFTWARETheGunClient
push closesocket
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4063d5
push 0x104
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov ecx, 0x41
xor eax, eax
mov edi, esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push str.UserID
push ecx
call ebp
push 0x3f
lea edx, [esp + 0x30]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
call sub.MFC42.DLL_operatordelete
push 0x104
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x41
xor eax, eax
mov edi, esi
add esp, 0x14
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
push 0
push str.UserPassword
push edx
call ebp
mov edi, eax
push 0xf
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push ecx
call ebp
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x4063d5
push 0
push 0
push 0x40b44c
mov ecx, ebx
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 0x3ef
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ecx, ebx
jne 0x406408
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf1
push eax
call esi
jmp 0x406433
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0xf1
push ecx
call esi
lea edx, [esp + 0x2c]
mov ecx, ebx
push edx
push 0x3e8
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
push 0x3f0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ecx, ebx
jne 0x406466
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push 0xf1
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push ecx
call esi
lea edx, [esp + 0x1c]
mov ecx, ebx
push edx
push 0x3e9
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x406520
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWARETheGunClient
mov esi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4065b6
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARETheGunClient
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40658c
push 0
push 0
push 0x40b44c
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 4
push 0x3ef
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
mov eax, dword [esp + 0xc]
je 0x4065e3
jmp 0x4065de
push 0x3ef
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
mov eax, dword [esp + 0xc]
je 0x4065e3
mov eax, 0x40b990
mov ecx, dword [esp + 4]
push 0x104
push eax
push 1
push 0
push str.UserID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 4

Function at 0x406610
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWARETheGunClient
mov esi, ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4066a6
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARETheGunClient
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40667c
push 0
push 0
push 0x40b44c
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 4
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
mov eax, dword [esp + 0xc]
je 0x4066d3
jmp 0x4066ce
push 0x3f0
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov eax, dword [eax + 0x20]
push 0
push 0
push pe_nt_image_headers32
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 1
mov eax, dword [esp + 0xc]
je 0x4066d3
mov eax, 0x40b990
mov ecx, dword [esp + 4]
push 0x104
push eax
push 1
push 0
push str.UserPassWord
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 4
Function at 0x406c70
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x408086
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x610
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push edi
mov dword [esp + 0x18], ecx
call esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x628], 0
call esi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x628], 1
call sub.MFC42.DLL_CString::MakeUpper
push str..EXE
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov ebp, eax
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x11c]
push eax
push 0x40b1b0
push ecx
call ebx
mov edx, dword [esp + 0x24]
mov ecx, 0x41
xor eax, eax
add esp, 0xc
lea esi, [edx + 0x194]
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [ebp + 4]
test ecx, ecx
jle 0x406d3c
mov edi, esi
mov dl, byte [esp + eax + 0x11c]
cmp dl, 0x22
je 0x406d37
mov byte [edi], dl
inc edi
inc eax
cmp eax, ecx
jl 0x406d28
mov eax, dword [esp + 0x18]
mov ecx, 0x41
lea edx, [eax + 0x29c]
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, esi
or ecx, 0xffffffff
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
test ecx, ecx
jle 0x406d97
cmp byte [edx + ecx], 0x5c
jne 0x406d89
inc esi
cmp esi, 1
mov byte [edx + ecx], 0
je 0x406d97
dec ecx
test ecx, ecx
jg 0x406d82
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x220]
lea edx, [esp + 0x220]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
push 0x40b1b0
push edx
call ebx
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebp + 5]
xor edx, edx
xor edi, edi
cmp esi, ecx
jge 0x406e10
mov al, byte [esp + esi + 0x220]
cmp al, 0x3b
je 0x406e08
test edi, edi
jne 0x406df0
mov byte [esp + edx + 0x1c], al
inc edx
jmp 0x406e0b
cmp edi, 1
jne 0x406dfc
mov byte [esp + edx + 0x1c], al
inc edx
jmp 0x406e0b
cmp edi, 2
jne 0x406e05
mov byte [esp + edx + 0x1c], al
inc edx
jmp 0x406e0b
inc edi
xor edx, edx
inc esi
cmp esi, ecx
jl 0x406dda
mov esi, dword [esp + 0x18]
push 0x40b924
lea ecx, [esp + 0x14]
mov dword [esi + 0x298], 0
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x406e4a
mov eax, dword [esi + 0x20]
push 0
push 0x64
push 0x64
push eax
mov dword [esi + 0x298], 1
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 0x10]
mov byte [esp + 0x628], 0
call fcn.004078a6
lea ecx, [esp + 0x14]
mov dword [esp + 0x628], 0xffffffff
call fcn.004078a6
mov ecx, dword [esp + 0x620]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x61c
ret