joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459050
Capabilities:
Get session user name
Set socket configuration

Disassembly:
sub esp, 0x20c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x294]
test eax, eax
jle 0x45906a
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x218]
push esi
push edi
push ebx
call sub.WSOCK32.dll_inet_addr
mov esi, eax
xor edi, edi
cmp esi, 0xffffffff
jne 0x459094
push str.0.0.0.1
call sub.WSOCK32.dll_inet_addr
mov esi, eax
mov edi, 1
mov eax, dword [esp + 0x224]
mov byte [esp + 0x1c], 4
push eax
mov byte [esp + 0x21], 1
call sub.WSOCK32.dll_htons
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
mov word [esp + 0x26], ax
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4590dc
mov byte [esp + 0x24], al
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test edi, edi
lea edx, [esp + eax + 0x24]
je 0x459117
mov edi, ebx
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
mov eax, dword [ebp]
lea ecx, [esp + 0x1c]
sub edx, ecx
push 0
push edx
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call dword [eax + 0x20]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x45913e
pop ebp
add esp, 0x20c
ret 8
push 0
lea eax, [esp + 0xc]
push 8
push eax
mov ecx, ebp
call fcn.0045a910
test eax, eax
jne 0x45915c
pop ebp
add esp, 0x20c
ret 8
mov cl, byte [esp + 9]
xor eax, eax
cmp cl, 0x5a
pop ebp
sete al
add esp, 0x20c
ret 8
Function at 0x459180
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x294]
test eax, eax
jle 0x45919d
mov dword [esp + 0x230], eax
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x14]
push 4
push ecx
mov ecx, esi
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], 2
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 2
call dword [eax + 0x20]
test eax, eax
jne 0x4591d2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea edx, [esp + 0x1a]
push 2
push edx
mov ecx, esi
call fcn.0045a910
test eax, eax
jne 0x4591f3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov ax, word [esp + 0x16]
test ah, ah
je 0x459210
cmp ah, 2
je 0x459210
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
cmp al, 2
jne 0x4592cc
lea edx, [esi + 0x1ac]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebp, [esi + 0x1ec]
mov ebx, ecx
mov edi, ebp
or ecx, 0xffffffff
push ebx
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
lea eax, [esp + 0x2e]
not ecx
dec ecx
push edx
push eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x34], 1
mov byte [esp + 0x35], bl
call edi
mov eax, dword [esp + 0x24]
lea ecx, [esp + ebx + 0x37]
push eax
push ebp
push ecx
mov byte [esp + ebx + 0x42], al
call edi
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
add esp, 0x18
lea ecx, [eax + ebx + 3]
lea eax, [esp + 0x28]
push 0
push ecx
push eax
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x459294
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea ecx, [esp + 0x18]
push 2
push ecx
mov ecx, esi
call fcn.0045a910
test eax, eax
jne 0x4592b5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov al, byte [esp + 0x15]
test al, al
je 0x4592cc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 8
mov ebp, dword [esp + 0x22c]
mov byte [esp + 0x28], 5
push ebp
mov byte [esp + 0x2d], 1
mov byte [esp + 0x2e], 0
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x4592fc
mov byte [esp + 0x2b], 1
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x30]
jmp 0x459327
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x2b], 3
mov ebx, ecx
push ebx
push ebp
push edx
mov byte [esp + 0x38], bl
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
lea edi, [esp + ebx + 0x2d]
mov eax, dword [esp + 0x230]
push eax
call sub.WSOCK32.dll_htons
mov word [edi], ax
mov edx, dword [esi]
lea eax, [esp + 0x28]
push 0
sub edi, eax
lea ecx, [esp + 0x2c]
add edi, 2
push edi
push ecx
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
jne 0x459360
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
push 0
lea edx, [esp + 0x20]
push 0xa
push edx
mov ecx, esi
call fcn.0045a910
test eax, eax
jne 0x459381
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 8
mov cl, byte [esp + 0x1d]
xor eax, eax
pop edi
pop esi
test cl, cl
pop ebp
pop ebx
sete al
add esp, 0x218
ret 8
Function at 0x459490
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4595a0
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x45962b
xor eax, eax
push ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edi
mov dword [esp + 0x1c], eax
mov word [esp + 0x1a], bx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
je 0x45961a
mov edx, dword [esi + 0x84]
push edx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x459645
mov eax, dword [esi + 0x84]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x45963a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 0x8c], eax
push edi
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x80], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov cx, word [esi + 0x88]
push ecx
call sub.WSOCK32.dll_htons
lea edx, [esp + 0xc]
push 0x10
push edx
push edi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x45967a
cmp dword [esi + 0x1c], ebx
je 0x45961a
mov dword [esi + 0x8c], 0x27d9
jmp 0x459625
mov dword [esi + 0x6c], edi
mov dword [esi + 0x80], 2
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x4599e0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
test eax, eax
je 0x459a0e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x68], 0
mov dword [esi + 0x80], 0
pop esi
ret
Function at 0x45b8c0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareGlobalLinkGameShareSettingsMPID
push bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x45b92b
cmp esi, 1
jne 0x45b910
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x45b920
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.switch_window
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x45b94b
push 0
push esi
push 0x1212
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x45bcd0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x104]
test eax, eax
je 0x45bcf9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x104], 0
lea ebp, [esi + 0x108]
xor eax, eax
mov ecx, ebp
lea edi, [esi + 0x110]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x120]
test edi, edi
je 0x45bd39
cmp byte [edi], 0
jne 0x45bd55
mov ecx, esi
call fcn.0045c000
lea edx, [esp + 0x18]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x18]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x45bd70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x104], eax
test eax, eax
jne 0x45bd90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
push eax
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
mov edx, dword [esi + 0x104]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x4d6160
push edx
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
shr ecx, 0x10
mov word [ebp], cx
mov dx, word [eax + 8]
mov word [esi + 0x10a], dx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [esi + 0x10c], cx
mov ax, word [eax + 0xc]
mov word [esi + 0x10e], ax
and eax, 0xffff
xor edx, edx
push eax
mov dx, cx
xor eax, eax
mov ax, word [esi + 0x10a]
xor ecx, ecx
mov cx, word [ebp]
push edx
push eax
push ecx
push str._d._d._d._d
lea eax, [esi + 0x110]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x103
push edi
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x45bf50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push str.SoftwareGloballinkGame_s
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x14]
mov dword [esp + 8], 0
push edx
push 1
push 0
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x45bfec
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.path
push ecx
mov dword [esp + 0x24], 0x103
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
sete al
pop esi
add esp, 0x10c
ret 8
Function at 0x45c4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
test ebx, ebx
mov edi, ecx
jne 0x45c4df
mov eax, dword [esp + 0x10]
push eax
push 2
push eax
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
pop edi
pop esi
pop ebx
ret 8
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x45c4ff
pop edi
pop esi
pop ebx
ret 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, edi
call fcn.0045c3e0
pop edi
pop esi
pop ebx
ret 8
Function at 0x467110
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 0
test edi, edi
jne 0x4671dc
mov eax, dword [esp + 0x1c]
push edi
push 0x80
push 3
push edi
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x467153
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call ebp
mov ebx, eax
push ebx
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
jne 0x467179
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4671a5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
cmp eax, ebx
je 0x4671bc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.00466e30
push edi
mov esi, eax
call sub.MFC42.DLL_operatordelete
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x4671fe
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x46721a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x46722b
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push ebx
push eax
call fcn.00466e30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x46b120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b83a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_5
lea eax, [esp + 0x34]
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.USER32.dll_CopyRect]
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0xa0]
push eax
mov ecx, edi
mov ebx, dword [esi]
call fcn.00479940
push eax
mov ecx, esi
call dword [ebx + 0x30]
mov ecx, dword [edi + 0x84]
lea edx, [esp + 0xc]
push ecx
push 0x4d6364
push edx
mov ebx, eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esp + 0x50]
mov eax, dword [esi]
add esp, 0xc
push ecx
mov ecx, esi
call dword [eax + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [esp + 0xc]
mov edx, dword [esi]
lea edi, [esp + 0x10]
push 0x25
mov ecx, dword [eax - 8]
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x18

Function at 0x46e950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b84a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push esi
mov esi, ecx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [esp + 0x34]
push 0
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 4]
mov ecx, esi
push edx
mov dword [esp + 0xc], eax
call fcn.004596b0
push eax
mov ecx, esi
call fcn.0046f230
lea ecx, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x46f8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b84fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00454d4e
mov dword [esi], 0x4bdbd0
xor ebx, ebx
lea ecx, [esi + 0x14c]
mov dword [esp + 0x1c], ebx
call fcn.00480e30
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x1c], 1
call fcn.00479410
push 0x46fad0
push 0x46fa60
push 2
lea eax, [esi + 0x620]
push 0x10
push eax
mov byte [esp + 0x30], 2
call fcn.00455728
push ebx
mov ecx, esi
mov byte [esp + 0x20], 3
mov dword [esi], 0x4c3490
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x44], ebx
call fcn.0046fc00
mov ebp, 1
push ebx
push ebx
mov ecx, esi
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4f4], ebp
mov dword [esi + 0x68], ebp
mov byte [esi + 0x64], bl
call fcn.00471640
lea edi, [esi + 0xac]
mov ecx, 0xf
xor eax, eax
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x4fc], 0x1f
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x4f8], ebx
push ebx
rep stosd dword es:[edi], eax
push ebx
mov ecx, esi
call fcn.00471720
push ebx
mov ecx, esi
mov dword [esi + 0x1cc], ebx
mov dword [esi + 0x500], ebx
mov dword [esi + 0x48], ebx
call fcn.00471840
mov eax, 3
lea edx, [esi + 0x640]
xor ecx, ecx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x12c], ebp
mov dword [esi + 0x130], eax
mov dword [esi + 0x134], eax
mov dword [edx], ecx
xor eax, eax
lea edi, [esi + 0x650]
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, 0x88
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x4ec], ebp
mov dword [esi + 0x4f0], ebx
mov dword [esi + 0x148], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x473740
Capabilities:
Encode data using add xor sub operations

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x243c]
test eax, eax
je 0x4737a9
mov ecx, dword [esi + 0x2434]
test ecx, ecx
jl 0x4737a9
cdq
xor eax, edx
push edi
sub eax, edx
xor edi, edi
test eax, eax
jle 0x47379e
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0x2434]
add eax, edi
mov dl, byte [eax + ecx]
mov eax, dword [ebx]
push edx
mov ecx, dword [eax - 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Insert_1
mov eax, dword [esi + 0x243c]
inc edi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jl 0x47376f
mov edx, dword [ebx]
pop edi
pop esi
pop ebx
mov eax, dword [edx - 8]
ret 4
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x473745
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esi + 0x243c]
test eax, eax
je 0x4737a9
mov ecx, dword [esi + 0x2434]
test ecx, ecx
jl 0x4737a9
cdq
xor eax, edx
push edi
sub eax, edx
xor edi, edi
test eax, eax
jle 0x47379e
mov eax, dword [esi + 0xa2c]
mov ecx, dword [esi + 0x2434]
add eax, edi
mov dl, byte [eax + ecx]
mov eax, dword [ebx]
push edx
mov ecx, dword [eax - 8]
push ecx
mov ecx, ebx
call sub.MFC42.DLL_CString::Insert_1
mov eax, dword [esi + 0x243c]
inc edi
cdq
xor eax, edx
sub eax, edx
cmp edi, eax
jl 0x47376f
mov edx, dword [ebx]
pop edi
pop esi
pop ebx
mov eax, dword [edx - 8]
ret 4
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x475250
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax - 8]
test edx, edx
je 0x4752cb
mov ecx, dword [ecx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4752cb
mov edx, dword [esi]
mov eax, dword [edx - 8]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4752cb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [esi]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret 4
Function at 0x478fc0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8d88
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, dword [esp + 0x44]
test esi, esi
je 0x47913c
push ebx
push ebp
push edi
lea ecx, [esp + 0x10]
call fcn.00454cc4
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x40], 0
test ebp, ebp
jne 0x479005
xor eax, eax
jmp 0x479008
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CDC::Attach
lea eax, [esp + 0x20]
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
cmp eax, 3
jne 0x479098
mov esi, dword [esp + 0x4c]
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
sub ecx, eax
mov eax, dword [esi]
sub edx, eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
push edx
mov edx, dword [ebp + 4]
push ebx
push edi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 8]
add edi, ecx
cmp edi, edx
jl 0x47904c
mov ecx, dword [esp + 0x28]
mov eax, dword [esi + 0xc]
add ebx, ecx
cmp ebx, eax
jl 0x479047
jmp 0x47910f
dec eax
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 0xc]
je 0x4790e0
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
mov ebx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
push 0
push 0
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x47910f
mov edi, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push 0
push 0
push eax
push ecx
mov ecx, dword [ebp + 4]
push edx
push esi
push edi
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::DeleteDC
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret