joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035f50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x10], esp
call sym.EoRezoTools_3.dll_public:_void___thiscall_md5::Init_void_
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x47c]
push 0x10054fa0
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10014ae0
push esi
push 0x400
lea ecx, [ebp - 0x47c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x10014aaa
lea edx, [ebp - 0x47c]
push eax
push edx
lea ecx, [ebp - 0x7c]
call sym.EoRezoTools_3.dll_public:_void___thiscall_md5::Update_unsigned_char___unsigned_int_
jmp 0x10014a7c
lea ecx, [ebp - 0x7c]
call sym.EoRezoTools_3.dll_public:_void___thiscall_md5::Finalize_void_
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
call sym.EoRezoTools_3.dll_public:_char____thiscall_md5::PrintMD5_unsigned_char__const_
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10014b00
Capabilities:
Hash data with md5

Disassembly:
lea edx, [ecx + 0x10]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x10015aa0
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
sub esp, 0x438
push ebx
push ebp
push esi
xor eax, eax
push edi
push eax
push eax
mov ecx, 9
lea edi, [esp + 0x2c]
push eax
push 1
push str.Microsoft_Internet_Explorer
rep stosd dword es:[edi], eax
mov dword [esp + 0x34], 0x28
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x10015ae9
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
mov ecx, dword [esp + 0x44c]
push 0
push 0
push 3
push 0x1005a050
push 0x1005a050
push 0x50
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10015b24
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
mov esi, dword [esp + 0x450]
push 0
push 0
push 0
push 0x1005a050
push str.HTTP_1.0
push esi
push 0x10054fb0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
jne 0x10015b60
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10015b92
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 8
lea edx, [esp + 0x28]
push 0
push edx
push edi
mov dword [esp + 0x50], eax
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x10015bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebp, ebp
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x50]
push 0x400
push ecx
push esi
call ebx
test eax, eax
je 0x10015c2f
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x10015c59
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add ebp, ecx
cmp eax, 0x400
jne 0x10015c41
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x50]
push 0x400
push eax
push esi
call ebx
test eax, eax
jne 0x10015bec
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne 0x10015c6b
pop edi
pop esi
pop ebp
mov eax, 0xffeffffe
pop ebx
add esp, 0x438
ret 8
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x438
ret 8
Function at 0x10015ca0
Capabilities:
Create http request
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x10035fe1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84c
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x864], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x864], 1
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x870]
mov eax, dword [esp + 0x86c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x868], 2
mov dword [ebp], ebx
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebx
je 0x10015e02
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, 0x400
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x30], ecx
push eax
push ebx
lea ecx, [esp + 0x464]
push ebx
push edx
mov dword [esp + 0x30], 0x3c
mov dword [esp + 0x5c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_class_CString___thiscall_CNetwork::GetUserAgent_void_
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
lea ecx, [esp + 0x1c]
mov esi, eax
call sub.MFC42.DLL_CString::CString
cmp esi, ebx
je 0x10015e02
mov edx, dword [esp + 0x10]
push ebx
push SysReAllocString
push ebx
push ebx
push edx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
cmp edi, ebx
je 0x10015e02
lea eax, [esp + 0x1c]
push ebx
push eax
push ebp
push 0x20000013
push edi
mov dword [esp + 0x30], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x864], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x864], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x864], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x10015e3c
lea ecx, [esp + 0x10]
mov byte [esp + 0x864], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x864], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x864], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xffeffffe
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x858
ret 8
Function at 0x10016730
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Query or enumerate registry key
Set registry value
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1003609b
push eax
mov dword fs:[0], esp
sub esp, 0x220
lea eax, [esp + 4]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
push edi
push eax
push str..DEFAULTRemoteAccessProfile
push reloc.WSOCK32.dll_closesocket
call ebp
test eax, eax
jne 0x10016838
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x30]
xor esi, esi
push 0x200
push ecx
push esi
push edx
call edi
cmp eax, 0x103
je 0x10016838
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x30]
lea ecx, [esp + 0x10]
push eax
push str..DEFAULTRemoteAccessProfile_s
push ecx
mov dword [esp + 0x244], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push eax
push reloc.WSOCK32.dll_closesocket
call ebp
test eax, eax
jne 0x10016806
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push eax
push str.AutoConnect
push edx
mov dword [esp + 0x34], 1
call ebx
test eax, eax
mov eax, dword [esp + 0x18]
push eax
jne 0x10016859
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
inc esi
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push 0x200
push ecx
push esi
push edx
call edi
cmp eax, 0x103
jne 0x10016799
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x10016881
or eax, eax
jmp 0x100168c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x238], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x100168c8
push str.127.0.0.1
mov word [esp + 0x24], 2
call sub.WSOCK32.dll_inet_addr
push 0x50
mov dword [esp + 0x28], eax
call sub.WSOCK32.dll_htons
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
push 2
push esi
jne 0x100168c1
call sub.WSOCK32.dll_shutdown
or eax, 0xffffffff
jmp 0x100168c8
call sub.WSOCK32.dll_shutdown
xor eax, eax
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret
Function at 0x100168f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x74
lea eax, [esp + 0x24]
push esi
push edi
push 0x50
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x10016a55
lea ecx, [esp + 0x2c]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
mov dword [esp + 8], eax
je 0x10016a55
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
xor edx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov dword [esp + 0x14], edx
test ecx, ecx
mov dword [esp + 0x18], edx
je 0x100169dd
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
push ebp
xor ebp, ebp
mov edx, dword [eax + ebp]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov edi, eax
push 0x1005510c
push edi
call dword [sym.imp.MSVCRT.dll_strcspn]
mov esi, eax
push esi
push 0x10055108
push edi
call ebx
add esp, 0x14
test eax, eax
je 0x100169cb
push esi
push 0x10055104
push edi
call ebx
add esp, 0xc
test eax, eax
je 0x100169aa
push esi
push 0x10055100
push edi
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
test eax, eax
jne 0x100169ae
lea edx, [esp + 0x24]
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]
mov ecx, dword [esp + 0x10]
add ebp, 4
mov eax, dword [ecx + 0xc]
cmp dword [eax + ebp], 0
jne 0x1001695b
pop ebp
pop ebx
mov al, byte [esp + 0xc]
test al, al
je 0x10016a13
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x80]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x74
ret 4
mov al, byte [esp + 0x1c]
test al, al
je 0x10016a4b
lea edi, [esp + 0x1c]
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 + 0x80]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x74
ret 4
mov ecx, dword [esp + 0x80]
mov byte [ecx], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x74
ret 4

Function at 0x10016a60
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
add esp, 0x190
ret
Function at 0x10017360
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0xac]
test eax, eax
je 0x100174bd
mov eax, dword [esi + 0xc4]
test eax, eax
jne 0x100174bd
mov eax, dword [esp + 0x18]
dec eax
je 0x10017446
dec eax
jne 0x100174d3
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb8]
add ecx, eax
mov dword [esi + 0xb8], ecx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x40]
lea edx, [esp + 0xc]
push edx
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call sym.EoRezoTools_3.dll_protected:_class_COXToolTipInfo____thiscall_COXToolTipCtrl::FindToolFromPoint_struct_tagPOINT__
test eax, eax
je 0x100173f7
cmp eax, dword [esi + 0xac]
je 0x100173f7
mov eax, dword [esi + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_void___thiscall_COXToolTipCtrl::Pop_void_
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esi + 0xac]
push ecx
mov ecx, esi
call sym.EoRezoTools_3.dll_protected:_int___thiscall_COXToolTipCtrl::IsCursorInTool_class_COXToolTipInfo__const
test eax, eax
je 0x1001741d
mov edx, dword [esi + 0xb8]
mov eax, dword [esi + 0xb4]
cmp edx, eax
jb 0x100174d3
mov ecx, esi
call sym.EoRezoTools_3.dll_protected:_int___thiscall_COXToolTipCtrl::IsCursorInToolTip_void_const
test eax, eax
jne 0x100174d3
mov eax, dword [esi + 0x20]
push 2
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_void___thiscall_COXToolTipCtrl::Pop_void_
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esi + 0x20]
push 1
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov edx, dword [esi + 0xac]
mov ecx, esi
push edx
call sym.EoRezoTools_3.dll_protected:_int___thiscall_COXToolTipCtrl::IsCursorInTool_class_COXToolTipInfo__const
test eax, eax
je 0x100174d3
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x58]
mov edx, dword [esp + 4]
mov ecx, dword [esi + 0x5c]
add edx, eax
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
add edx, ecx
lea ecx, [esp + 4]
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x10], edx
call sym.EoRezoTools_3.dll_protected:_void___thiscall_COXToolTipCtrl::DisplayToolTip_class_CPoint___int_
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0x20]
push 0
push edx
push 2
push eax
mov dword [esi + 0xb8], 0
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_void___thiscall_COXToolTipCtrl::Pop_void_
pop esi
add esp, 0x10
ret 4

Function at 0x10018ea0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x10018ed8
mov ax, word [esp]
cmp al, 2
jne 0x10018ed3
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x10018ed3
mov al, 1
add esp, 0x190
ret
call fcn.10033832
xor al, al
add esp, 0x190
ret
Function at 0x10019c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100364c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
lea edi, [esi + 0x108]
push edi
call sym.EoRezoTools_3.dll_public:_bool___thiscall_CPOP3Handler::SetOutputFile_char_const__
push 0x1005a050
lea ecx, [esp + 0x10]
call fcn.10032dca
push 0x1005a050
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 1
call fcn.10032dca
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x30], 2
sub eax, 0
je 0x10019d1d
dec eax
je 0x10019d09
dec eax
je 0x10019cf8
push 0
push 0x10
push str.Error_in__Get__Procedure:_Invalid_Data_Type
call sub.MFC42.DLL_AfxMessageBox
jmp 0x10019d37
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_bool___thiscall_CPOP3Handler::List_void_
test al, al
je 0x10019d37
add esi, 4
push esi
jmp 0x10019d2e
mov eax, dword [esp + 0x40]
push 0
push eax
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_bool___thiscall_CPOP3Handler::GetTop_int__int_
test al, al
je 0x10019d37
jmp 0x10019d2d
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, esi
call sym.EoRezoTools_3.dll_public:_bool___thiscall_CPOP3Handler::Retrieve_int_
test al, al
je 0x10019d37
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 8]
push 0x1005a050
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x10019dd2
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov eax, dword [esp + 8]
push 0
push 0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x10019db6
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x10019db6
lea edx, [esp + 0x40]
lea ecx, [esp + 0xc]
push edx
call fcn.100330ac
lea eax, [esp + 0x40]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x10019d96
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.1003310c
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x1001a9f0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x1001aa04
pop edi
mov eax, 1
pop esi
ret 0x10
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0xd8]
lea eax, [esp + 0xc]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001aa30
pop edi
mov eax, 1
pop esi
ret 0x10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
cmp eax, esi
mov dword [ecx], eax
jne 0x1001aa42
test eax, eax
jne 0x1001aa54
mov eax, dword [edi + 0xd8]
cmp eax, 0xffffffff
je 0x1001aa54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x1001ad70
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
jne 0x1001ad95
xor eax, eax
pop esi
add esp, 0x12c
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1001adbd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x12c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
lea ecx, [esp + 0x3c]
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esp + 0x1c]
push edx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x1001adfa
push esi
call ebp
push esi
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1001add2
mov edx, dword [esp + 0x10]
push edx
call ebx
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x12c
ret
Function at 0x1001ae30
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100366f8
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push ebp
push esi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
or esi, 0xffffffff
cmp ebp, esi
je 0x1001ae7f
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1001ae99
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x1001af49
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x148]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x1001aef7
mov eax, dword [esp + 0x14c]
dec eax
je 0x1001aece
push ebp
call edi
mov ebx, 1
jmp 0x1001aef7
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001aef7
push 0xffffffffffffffff
push esi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001af19
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
call edi
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1001aea0
push ebp
call edi
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebx
pop edi
mov ecx, dword [esp + 0x134]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 8

Function at 0x1001af70
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x224
push esi
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001af96
xor eax, eax
pop esi
add esp, 0x224
ret 4
lea ecx, [esp + 4]
mov dword [esp + 4], 0x224
push ecx
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x1001afc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x224
ret 4
push 0
lea edx, [esp + 0x28]
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
lea eax, [esp + 4]
push eax
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x1001afc0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x224
ret 4