joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445a1c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x445a25
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x4010], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445c42
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x84], 0
je 0x445aa0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x294]
push eax
call sub.wsock32.dll_WSAAsyncSelect
mov eax, dword [ebp - 4]
cmp word [eax + 0x28e], 0
je 0x445aa0
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x290]
call dword [ebx + 0x28c]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x79], 0
jne 0x445c21
xor eax, eax
push ebp
push 0x445c1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 1
lea edx, [ebp - 0x4010]
mov eax, dword [0x454890]
call fcn.00404eb4
mov ecx, dword [ebp - 0x4010]
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0044606c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x29c]
mov eax, ebx
call fcn.0040ec0c
mov edx, eax
mov eax, ebx
call fcn.0040ec00
push 0
push 0x3fff
lea eax, [ebp - 0x4009]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x294]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x445b8f
lea edx, [ebp - 0x4009]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x29c]
mov ecx, ebx
call fcn.0040ecc0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x78], 0
je 0x445b67
mov eax, dword [ebp - 4]
add dword [eax + 0xc0], ebx
mov eax, dword [ebp - 4]
cmp word [eax + 0xc6], 0
je 0x445b67
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc8]
call dword [esi + 0xc4]
mov byte [ebp - 9], 1
cmp ebx, 0x3fff
jne 0x445be9
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x298]
push eax
call sub.user32.dll_PostMessageA
jmp 0x445be9
call sub.wsock32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x88], ebx
lea ecx, [ebp - 8]
mov edx, ebx
cmp edx, 0xffff
jbe 0x445bb1
call fcn.00402bf0
mov eax, dword [ebp - 4]
call fcn.00445320
mov eax, dword [ebp - 4]
cmp word [eax + 0x4a], 0
je 0x445be9
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
cmp ecx, 0xffff
jbe 0x445bdd
call fcn.00402bf0
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x4c]
call dword [ebx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445c21
mov eax, dword [ebp - 4]
mov byte [eax + 0x79], 0
cmp byte [ebp - 9], 0
je 0x445c19
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x445c19
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445c49
lea eax, [ebp - 0x4010]
call fcn.00403848
lea eax, [ebp - 8]
call fcn.00403848
ret
Function at 0x445c50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x445c59
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x4004], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x445ea5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x79], 0
jne 0x445e8c
mov byte [ebx + 0x79], 1
lea edx, [ebp - 0x4004]
mov eax, dword [0x454bac]
call fcn.00404eb4
mov ecx, dword [ebp - 0x4004]
mov dl, 8
mov eax, ebx
call fcn.0044606c
cmp byte [ebx + 0x288], 0
je 0x445cd3
mov eax, dword [ebx + 0xa8]
call fcn.0040ebf0
mov esi, eax
mov eax, dword [ebx + 0xa8]
call fcn.0040ec0c
cmp esi, eax
jl 0x445cf3
cmp byte [ebx + 0x288], 0
jne 0x445e88
mov eax, dword [ebx + 0xa8]
call fcn.0040ec0c
test eax, eax
je 0x445e88
cmp byte [ebx + 0x84], 0
jne 0x445e88
cmp byte [ebx + 0x288], 0
jne 0x445d18
xor edx, edx
mov eax, dword [ebx + 0xa8]
call fcn.0040ec00
jmp 0x445d29
mov edx, dword [ebx + 0x80]
mov eax, dword [ebx + 0xa8]
call fcn.0040ec00
lea edx, [ebp - 0x4000]
mov ecx, 0x3fff
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax]
call dword [esi + 4]
mov edi, eax
push 0
push edi
lea eax, [ebp - 0x4000]
push eax
movzx eax, word [ebx + 0x294]
push eax
call sub.wsock32.dll_send
mov esi, eax
cmp esi, 0xffffffff
jle 0x445e6c
mov eax, dword [ebx + 0xa8]
call fcn.0040ebf0
sub eax, edi
add eax, esi
push eax
mov eax, dword [ebx + 0xa8]
call fcn.0040ec0c
pop edx
cmp edx, eax
jl 0x445da3
cmp byte [ebx + 0x288], 0
jne 0x445d97
mov eax, dword [ebx + 0xa8]
call fcn.0040f050
mov byte [ebx + 0x286], 1
jmp 0x445e46
cmp byte [ebx + 0x288], 0
jne 0x445e16
mov eax, dword [ebx + 0xac]
call fcn.0040f050
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.0040ec00
mov edi, dword [ebx + 0xa8]
mov eax, edi
call fcn.0040ec0c
mov ecx, eax
sub ecx, esi
mov edx, edi
mov eax, dword [ebx + 0xac]
call fcn.0040ed3c
mov eax, dword [ebx + 0xa8]
call fcn.0040f050
mov eax, dword [ebx + 0xac]
mov edx, dword [ebx + 0xa8]
mov dword [ebx + 0xac], edx
mov edx, eax
mov dword [ebx + 0xa8], edx
mov eax, edx
xor edx, edx
call fcn.0040ec00
mov byte [ebx + 0x79], 0
jmp 0x445e32
mov eax, dword [ebx + 0xa8]
call fcn.0040ebf0
mov edx, eax
sub edx, edi
add edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.0040ec00
push ebx
push 0
push 0x467
mov eax, dword [ebx + 0x298]
push eax
call sub.user32.dll_PostMessageA
add dword [ebx + 0x80], esi
cmp byte [ebx + 0x78], 0
je 0x445e88
cmp word [ebx + 0xce], 0
je 0x445e88
mov edx, ebx
mov eax, dword [ebx + 0xd0]
call dword [ebx + 0xcc]
jmp 0x445e88
call sub.wsock32.dll_WSAGetLastError
mov dword [ebx + 0x88], eax
xor edx, edx
mov eax, dword [ebx + 0xa8]
call fcn.0040ec00
mov byte [ebx + 0x79], 0
mov byte [ebx + 0x79], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445eac
lea eax, [ebp - 0x4004]
call fcn.00403848
ret
Function at 0x445eb4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x445f82
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x454ab0]
call fcn.00404eb4
mov ecx, dword [ebp - 4]
mov dl, 4
mov eax, ebx
call fcn.0044606c
mov byte [ebx + 0x2a0], 0
mov si, word [ebx + 0x294]
cmp si, 0xffff
je 0x445f6c
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x445f5e
test byte [ebx + 0x20], 8
jne 0x445f1b
cmp word [ebx + 0x42], 0
je 0x445f1b
mov edx, ebx
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
cmp byte [ebx + 0x85], 0
jne 0x445f6c
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x445f3e
call fcn.00402bf0
mov word [ebx + 0x294], si
push 0x3f
push 0x465
mov eax, dword [ebx + 0x298]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x445f6c
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.00445f90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445f89
lea eax, [ebp - 4]
call fcn.00403848
ret

Function at 0x43b634
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
and esi, esi
dec edi
call fcn.0043b671
add edi, edi
sub esi, 0xeae2135d
xor dword [eax], ebx
sub edi, 1
sub edi, edi
inc eax
mov esi, edi
sub esi, edi
cmp eax, edx
jne fcn.0043b634
add edi, 0x55ceb15
add esi, 0x2a97261a
add edi, 1
ret
Function at 0x401ce0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x198
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [esp + 0x1a0]
lea ecx, [esp + 8]
push ecx
push 0x20
mov eax, dword [edi]
push 0
push edi
mov dword [esp + 0x24], 0
call dword [eax + 0x10]
test eax, eax
jne 0x401e84
mov edx, dword [esp + 0x1a8]
push ebx
inc edx
push ebp
push esi
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
cmp eax, 1
je 0x401e77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e77
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1b4]
add ecx, 0x40
push eax
call fcn.00498db0
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0x4c85e4
push 0
push ecx
push edi
call dword [edx + 0x14]
mov ebx, eax
cmp ebx, 1
je 0x401e77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e77
push 0x4209
lea edx, [esp + 0x4c]
push 0x160
push edx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
push ebp
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0x4e58d8
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401ddd
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x401e6f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x401e1a
mov edi, 0x4df1dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
push ebp
lea ecx, [edi + 0x70]
call sub.MFC42.DLL_CPtrList::AddTail
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, edi
mov dword [esp + 0x28], 0x37
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_CComboBoxEx::InsertItem
mov edi, dword [esp + 0x1ac]
inc esi
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x401d20
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x198
ret 0xc
Function at 0x404720
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ad308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4e5908]
test eax, eax
jne 0x4047cb
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.004abdba
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4047b2
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4047b2
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x4e5908], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4047e0
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 0x404842
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 0x404a50
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404b3d
lea ecx, [esp + 0xc]
push ecx
push str..htm
push bind
call fcn.004047e0
add esp, 0xc
test eax, eax
jne 0x404b3d
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push ecx
push bind
call fcn.004047e0
add esp, 0xc
test eax, eax
jne 0x404b3d
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x404b10
lea eax, [esp + 0x10]
push 0x4df690
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x404b10
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404b13
mov byte [esi], 0
push 0x4df68c
push esi
call edi
mov edx, dword [esp + 0x21c]
push edx
push esi
call edi
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x208
ret
Function at 0x408350
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ad6f0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
cmp esi, ebp
mov edi, ecx
je 0x408527
cmp dword [edi + 0x2c], 1
jne 0x408527
mov eax, dword [edi + 4]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x10]
shl esi, 5
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebp
mov byte [esp + 0x20], 0
mov eax, dword [esi + eax]
inc eax
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString_2
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ebx
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebp
call fcn.00408130
test al, al
je 0x408412
mov edx, dword [esp + 0x40]
push 1
lea eax, [esp + 0x44]
push edx
push eax
mov ecx, edi
call fcn.004088d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
sub ebp, ebx
inc ebp
jmp 0x4084b5
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
push 0x4df68c
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::operator
push ebx
lea ecx, [esp + 0x40]
call fcn.004abdba
push 0x4df954
lea ecx, [esp + 0x40]
call fcn.004abdba
mov ecx, dword [esp + 0x40]
push 1
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, edi
call fcn.004088d0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
push 0x4df950
lea ecx, [esp + 0x40]
call fcn.004abdba
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [edi + 0x10]
xor edx, edx
mov byte [esp + 0x30], 0
mov ecx, dword [esi + eax + 8]
mov ebx, dword [esi + eax + 4]
inc ecx
cmp ebx, ecx
lea ecx, [esp + 0x3c]
sete dl
sub ebx, edx
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push ebp
push ebx
call fcn.00408b70
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
push 0
mov eax, dword [ecx - 8]
mov ecx, dword [edi + 0x10]
sub eax, ebp
mov ebp, dword [esi + ecx + 4]
push eax
add ebp, eax
push edx
mov dword [esi + ecx + 4], ebp
mov ecx, dword [edi + 0x10]
mov ebx, dword [esi + ecx + 8]
add ebx, eax
mov dword [esi + ecx + 8], ebx
lea ecx, [esi + ecx + 0xc]
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov ecx, edi
call fcn.00408c40
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x40a3c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ad833
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004039c0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, 1
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], vtable.CBitmap.0
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov dword [esi], vtable.CMinTrayBtn.0
mov dword [esi + 0x24], eax
mov dword [esi + 0x5c], edi
call fcn.0040a4f0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40d560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adb30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CBrush::CBrush
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0xf00021
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40dae0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esi + 0x40]
mov dword [esp + 0xc], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], 1
mov dword [esi + 0x230], 1
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], 1
mov dword [esi + 0x234], ebx
mov dword [esi + 0x250], ebx
mov dword [esi + 0x268], ebx
mov dword [esi + 0x23c], ebx
mov dword [esi + 0x274], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x40db82
cmp dword [esp + 0x10], 5
jb 0x40db82
mov eax, 1
pop edi
mov dword [esi + 0x238], eax
pop esi
pop ebx
add esp, 0x94
ret
mov dword [esi + 0x238], ebx
pop edi
pop esi
pop ebx
add esp, 0x94
ret
Function at 0x40fb50
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x4addaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, 0x20
xor ecx, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], 1
lea edi, [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessWorkingSetSize]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
shr eax, 0xa
shr ecx, 0xa
push eax
mov eax, dword [esp + 0x34]
shr edx, 0xa
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
shr eax, 0xa
shr ecx, 0xa
push eax
mov eax, dword [esp + 0x2c]
shr edx, 0xa
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str.Memory_Used__lu____Total_Physical_Memory__luKB__Physical_Memory_Available__luKB__Total_Virtual_Memory__luKB__Available_Virtual_Memory__luKB__Working_Set_Min_:__luKB_Max_:__luKB_._r_n
push ecx
call sub.MFC42.DLL_CString::Format_1
mov esi, dword [esp + 0x6c]
add esp, 0x24
lea edx, [esp + 8]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 4

Function at 0x40fec0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ff36
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40ff36
mov eax, dword [esi + 0x3c]
xor ecx, ecx
add eax, esi
sub edi, esi
xor ebp, ebp
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov cx, word [eax + 6]
test ecx, ecx
jbe 0x40ff36
lea eax, [edx + 0x10]
mov edx, dword [eax]
mov esi, dword [eax - 8]
mov ebx, dword [eax - 4]
cmp edx, esi
ja 0x40ff24
mov edx, esi
cmp edi, ebx
jb 0x40ff2e
add edx, ebx
cmp edi, edx
jbe 0x40ff40
inc ebp
add eax, 0x28
cmp ebp, ecx
jb 0x40ff16
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebp
sub edi, ebx
mov dword [edx], ebp
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret

Function at 0x410730
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x404
lea eax, [esp + 0x40c]
lea edx, [esp + 4]
push esi
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
mov edx, dword [0x4e5988]
add esp, 0xc
mov esi, eax
lea eax, [esp + 4]
push 0
push eax
lea ecx, [esp + 0x10]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
pop esi
add esp, 0x404
ret
Function at 0x411f50
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8058]
test eax, eax
je 0x411f68
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [esi + 0x8040]
test eax, eax
je 0x411f7c
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [esi + 0x8050]
test eax, eax
jne 0x411f8d
mov ecx, esi
call fcn.00411f20
mov eax, dword [esi + 0x8050]
test eax, eax
jne 0x411f9c
pop edi
pop esi
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ProcessCommand
push eax
call edi
mov dword [esi + 0x8060], eax
mov eax, dword [esi + 0x8050]
push str.DecryptMessage
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.EncryptMessage
push ecx
mov dword [esi + 0x8064], eax
call edi
mov edx, dword [esi + 0x8050]
push str.EncryptData
push edx
mov dword [esi + 0x8068], eax
call edi
mov dword [esi + 0x806c], eax
mov eax, dword [esi + 0x8050]
push str.DecryptData
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.InitGSS
push ecx
mov dword [esi + 0x8070], eax
call edi
mov edx, dword [esi + 0x8050]
push str.KillGSS
push edx
mov dword [esi + 0x8074], eax
call edi
mov dword [esi + 0x8078], eax
mov eax, dword [esi + 0x8050]
push str.DoClientAuth
push eax
call edi
mov ecx, dword [esi + 0x8050]
push str.ProcessReply
push ecx
mov dword [esi + 0x807c], eax
call edi
mov edx, dword [esi + 0x8050]
push str.GetUserFromKrbTicket
push edx
mov dword [esi + 0x8080], eax
call edi
mov ecx, dword [esi + 0x8060]
mov dword [esi + 0x8084], eax
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x8074]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x8078]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x8064]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x8068]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x806c]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x8070]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x807c]
test ecx, ecx
je 0x4120c2
mov ecx, dword [esi + 0x8080]
test ecx, ecx
je 0x4120c2
test eax, eax
jne 0x4120c9
pop edi
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov edi, 1
test eax, eax
jne 0x4120fe
push 4
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x8054], eax
push ecx
push esi
push 0x412720
push eax
call dword [esi + 0x8074]
add esp, 0x14
mov dword [esi + 0x8040], edi
mov dword [esi + 0x8058], edi
mov eax, edi
pop edi
pop esi
ret 8