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

Disassembly:
push 0xffffffffffffffff
push 0x46417c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4a32a0]
push ebp
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xfc], eax
call dword [0x46e148]
mov eax, dword [str.FileList.bin]
xor ebp, ebp
push eax
mov ecx, 0x4b3a40
mov dword [esp + 0x10c], ebp
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
lea ecx, [esp + 0x10]
push 0x46f7ec
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x10
push 0x46f7e8
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetString]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x40c185
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40c2b7
push ebx
lea ecx, [esp + 0x18]
call fcn.004071a0
mov ebx, dword [sym.imp.MSVCR71.dll_fread]
push esi
push 1
lea edx, [esp + 0x20]
push 0xc4
push edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40c1c7
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40c2b6
mov eax, dword [esp + 0xd8]
dec eax
push edi
je 0x40c1f9
dec eax
je 0x40c1f2
push ebp
push ebp
push str._ERROR_:Filelist_is_different_
call sub.MFC71.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40c2b5
mov edi, 0xe8
jmp 0x40c1fe
mov edi, 0xc4
push 1
lea eax, [edi - 0xc4]
push eax
push esi
call dword [sym.imp.MSVCR71.dll_fseek]
add esp, 0xc
test eax, eax
push esi
jne 0x40c229
push 1
lea ecx, [esp + 0x24]
push edi
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x40c240
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
xor eax, eax
jmp 0x40c2b5
mov eax, dword [esp + 0xdc]
test eax, eax
jle 0x40c29c
jmp 0x40c250
push 0xe8
call sub.MFC71.DLL_operator_new_1
add esp, 4
test eax, eax
je 0x40c26a
mov ecx, eax
call fcn.004071a0
jmp 0x40c26c
xor eax, eax
push esi
push 1
push edi
push eax
mov dword [esp + 0x24], eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x40c228
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
add ecx, 0x5c
call fcn.00408930
mov eax, dword [esp + 0xdc]
inc ebp
cmp ebp, eax
jl 0x40c250
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x100]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xf8]
pop ebp
call fcn.00450c39
add esp, 0x104
ret
Function at 0x40d680
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4642a9
push eax
mov dword fs:[0], esp
push esi
mov eax, dword [esp + 0x30]
add ecx, 0x108
push ecx
push eax
sub esp, 0x1c
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov dword [esp + 0x34], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.0043eec0
add esp, 0x24
lea ecx, [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x20
Function at 0x40eeb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x4b0]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x488], 8
jb 0x40ef55
mov eax, dword [esi + 0x484]
mov ebx, dword [eax]
push 0
push ebx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ef08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
push ebp
je 0x40ef56
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp edi, ebx
jne 0x40ef48
mov ecx, dword [esi + 0x488]
mov eax, dword [esi + 0x484]
sub ecx, edi
push ecx
lea edx, [eax + edi]
push edx
push eax
call dword [sym.imp.MSVCR71.dll_memmove]
mov eax, dword [esi + 0x488]
add esp, 0xc
sub eax, edi
push ebp
mov dword [esi + 0x488], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov eax, dword [esi + 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x40f4b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x804
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x1ff
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 8]
stosw word es:[edi], ax
push 0
stosb byte es:[edi], al
push 0x800
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f522
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8ca
cmp eax, 0x16
ja case.0x40f50a.10039
movzx edx, byte [eax + 0x40f564]
jmp dword [edx*4 + 0x40f55c]
mov ecx, ebx
call fcn.0040f390
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je case.0x40f50a.10038
jl 0x40f54d
mov ecx, dword [ebx + 0x48c]
call fcn.00411b60
add eax, esi
cmp eax, 0x4000
jge 0x40f54d
mov ecx, dword [ebx + 0x48c]
push esi
lea eax, [esp + 0x14]
push eax
call fcn.00411a10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fb00
Capabilities:
Create thread

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 0
mov esi, ecx
push esi
push 0x40f970
push 0
push 0
mov dword [esp + 0x1c], 0x65
call dword [sym.imp.MSVCR71.dll__beginthreadex]
mov dword [esi + 0x4a0], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 9
add eax, 0xfffffff8
pop esi
pop ecx
ret
Function at 0x410490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46450a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0
push 1
push str.Ran_Patch_GetFile2
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call sub.MFC71.DLL_CInternetSession::CInternetSession
mov eax, dword [ebp + 8]
push 0
push 0
push 0x4000002
push 1
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
call sub.MFC71.DLL_CInternetSession::OpenURL
push 0
mov esi, eax
push 0x80
mov byte [ebp - 0x438], 0
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x437]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
push 2
push 0
push 0
stosw word es:[edi], ax
push 0x40000000
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x11c]
test eax, eax
je 0x41054a
mov dword [eax], 0
mov dword [eax + 4], 0
mov edx, dword [esi]
push 0x400
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call dword [edx + 0x3c]
mov edi, eax
nop
test edi, edi
jbe 0x4105c3
mov eax, dword [ebx + 0x114]
test eax, eax
je 0x410573
cmp dword [eax], 0
jne 0x4105c3
mov eax, dword [ebx + 0x11c]
test eax, eax
je 0x41058c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
add edx, edi
adc ecx, 0
mov dword [eax], edx
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
lea edx, [ebp - 0x438]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push 0x400
lea eax, [ebp - 0x438]
push eax
mov ecx, esi
call dword [edx + 0x3c]
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410560
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00450b40
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x410b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46456d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 0x1c], esi
call dword [0x46e148]
lea eax, [esp + 0xc]
push eax
push 0x47101c
lea ecx, [esp + 0x18]
push ecx
mov bl, 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
mov dword [esp + 0x18], esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Tokenize]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46f7fe
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x410c3d
mov edi, edi
push str.Content_Length:
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CompareNoCase]
test eax, eax
je 0x410c66
lea edx, [esp + 0xc]
push edx
push 0x47101c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Tokenize]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 4
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x46f7fe
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x410be0
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
lea ecx, [esp + 0xc]
push ecx
push 0x47101c
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Tokenize]
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.MSVCR71.dll_atol]
add esp, 4
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x411000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
add esp, 0x190
ret

Function at 0x412080
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
cmp ebx, 2
jae 0x412097
or eax, 0xffffffff
pop ebx
add esp, 8
ret 0xc
test ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, dword [edi + ebx*4 - 4]
mov dword [esp + 0x18], ebx
fild dword [esp + 0x18]
jge 0x4120b3
fadd dword [0x46f010]
fdivr dword [0x471594]
sub esp, 8
fadd dword [0x47c8f0]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
add esp, 8
call fcn.004510e4
xor ecx, ecx
test eax, eax
jbe 0x4121ac
mov dword [esp + 0x10], eax
push ebp
sub ecx, 0x61c88647
mov eax, ecx
shr eax, 2
and eax, 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
lea ecx, [ebx - 1]
xor eax, eax
test ecx, ecx
jbe 0x412156
mov ecx, dword [edi + eax*4 + 4]
mov ebx, esi
shr ebx, 5
lea edx, [ecx*4]
xor edx, ebx
mov ebp, esi
shl ebp, 4
mov ebx, ecx
shr ebx, 3
xor ebx, ebp
mov ebp, dword [esp + 0x1c]
add edx, ebx
mov ebx, eax
and ebx, 3
xor ebx, ebp
mov ebp, dword [esp + 0x24]
mov ebx, dword [ebp + ebx*4]
mov ebp, dword [edi + eax*4]
xor ebx, esi
mov esi, dword [esp + 0x10]
xor esi, ecx
add ebx, esi
xor edx, ebx
mov ebx, dword [esp + 0x20]
add ebp, edx
mov dword [edi + eax*4], ebp
inc eax
lea ecx, [ebx - 1]
cmp eax, ecx
mov esi, ebp
jb 0x412101
mov ecx, dword [edi]
mov ebp, esi
shr ebp, 5
lea edx, [ecx*4]
xor edx, ebp
mov ebp, esi
shr ecx, 3
shl ebp, 4
xor ecx, ebp
mov ebp, dword [esp + 0x1c]
and eax, 3
xor eax, ebp
mov ebp, dword [edi]
add edx, ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x10]
xor eax, esi
mov esi, ecx
xor esi, ebp
add eax, esi
mov esi, dword [edi + ebx*4 - 4]
xor edx, eax
mov eax, dword [esp + 0x14]
add esi, edx
dec eax
mov dword [edi + ebx*4 - 4], esi
mov dword [esp + 0x14], eax
jne 0x4120e2
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x415cd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4b3c88]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x415cfe
mov ecx, dword [0x4b3c7c]
xor eax, eax
cmp ecx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x4b3c8c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x415dd3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4718b4
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c6c], eax
je 0x415dd3
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c70], eax
je 0x415dd3
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c74], eax
je 0x415dd3
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c78], eax
je 0x415dd3
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c80], eax
je 0x415dd3
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c7c], eax
je 0x415dd3
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x4b3c84], eax
je 0x415dd3
mov eax, 1
mov dword [0x4b3c88], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x4b3c6c], ebx
mov dword [0x4b3c70], ebx
mov dword [0x4b3c74], ebx
mov dword [0x4b3c78], ebx
mov dword [0x4b3c7c], ebx
mov dword [0x4b3c80], ebx
mov dword [0x4b3c84], ebx
mov dword [0x4b3c88], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416770
Capabilities:
Log keystrokes via application hook

Disassembly:
sub esp, 0xbc
push ebx
mov ebx, dword [esp + 0xc4]
push esi
push ebx
call fcn.00416d80
mov ecx, eax
call fcn.00416210
test bl, bl
je 0x416832
lea eax, [esp + 8]
push eax
call fcn.00416d80
mov ecx, eax
call fcn.00416290
lea ecx, [esp + 0x10]
push ecx
call fcn.00416d80
mov ecx, eax
call fcn.004162e0
lea edx, [esp + 0x18]
push edx
call fcn.00416d80
mov ecx, eax
call fcn.00416330
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea eax, [esp + 0xc]
push eax
push 8
push 0x3b
call esi
push 0
lea ecx, [esp + 0x14]
push ecx
push 8
push 0x35
call esi
push 0
lea edx, [esp + 0x1c]
push edx
push 0x18
push 0x33
call esi
call fcn.00416d80
mov ecx, eax
call fcn.004161d0
test eax, eax
je 0x41691f
call fcn.00416d80
mov ecx, eax
call fcn.004161d0
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push 0
call fcn.00416d80
mov ecx, eax
call fcn.00416190
pop esi
pop ebx
add esp, 0xbc
ret
call fcn.00416d80
mov ecx, eax
call fcn.004161d0
test eax, eax
jne 0x416888
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x40], 2
jne 0x416888
cmp dword [esp + 0x34], 4
jbe 0x416888
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x4166e0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push eax
call fcn.00416d80
mov ecx, eax
call fcn.00416190
lea ecx, [esp + 0x10]
push ecx
call fcn.00416d80
mov ecx, eax
call fcn.00416290
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov bl, 1
test bl, al
jne 0x4168c1
mov edx, dword [esp + 0x14]
and edx, 0xfffffff3
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x14]
push edx
push 8
push 0x3b
call esi
lea eax, [esp + 8]
push eax
call fcn.00416d80
mov ecx, eax
call fcn.004162e0
test byte [esp + 0xc], bl
jne 0x4168f0
mov ecx, dword [esp + 0xc]
and ecx, 0xfffffff3
push 0
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0xc]
push ecx
push 8
push 0x35
call esi
lea edx, [esp + 0x18]
push edx
call fcn.00416d80
mov ecx, eax
call fcn.00416330
test byte [esp + 0x1c], bl
jne 0x41691f
mov eax, dword [esp + 0x1c]
and eax, 0xfffffff3
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push 0x33
call esi
pop esi
pop ebx
add esp, 0xbc
ret
Function at 0x417230
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x464979
push eax
mov eax, dword [0x499e40]
mov dword fs:[0], esp
sub esp, 0x58
push ebx
xor ebx, ebx
cmp eax, 0x499e48
mov dword [0x499e54], eax
je 0x41727d
cmp eax, 0x499e3c
je 0x41727d
mov ecx, dword [eax + 8]
cmp ecx, ebx
je 0x417278
push ecx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [0x499e54]
add esp, 4
mov eax, dword [eax + 4]
jmp 0x417250
mov ecx, 0x499e38
call fcn.00416f70
cmp byte [0x4b4989], bl
je 0x41732f
cmp byte [0x4b4988], bl
je 0x41732f
push esi
push edi
lea ecx, [esp + 0xc]
call dword [0x46e148]
mov eax, dword [0x4b49a8]
push eax
lea ecx, [esp + 0x10]
push str.notepad__s
push ecx
mov dword [esp + 0x78], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0xc
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push 0x4b4880
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer_1]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x41ab40
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_fread]
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
mov eax, dword [esi + 4]
push eax
push 1
lea ebx, [edi + 4]
push 0x114
push ebx
call ebp
mov ecx, dword [esp + 0x24]
add edi, 8
push edi
push ecx
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 0x18
test eax, eax
je 0x41abbf
jmp 0x41ab80
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x114]
test eax, eax
mov byte [edi], 0
je 0x41abcb
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR71.dll_fseek]
mov ecx, dword [esi + 4]
push ecx
push 1
push 0x114
push ebx
call ebp
mov edx, dword [esp + 0x30]
push edi
push edx
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 0x24
test eax, eax
jne 0x41ab80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
Function at 0x41b5d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
call fcn.0041b0b0
mov eax, dword [esp + 0x20]
push 0x4728c0
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
add esp, 8
test eax, eax
mov dword [ebx + 4], eax
je 0x41b634
push esi
push edi
push eax
push 1
lea ecx, [esp + 0x14]
push 0x15
push ecx
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
mov edi, str.RANPACKAGEFILESYSTEM
lea esi, [esp + 0xc]
mov ecx, 0x15
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x41b63d
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
mov dword [ebx + 4], 0
xor eax, eax
pop ebx
add esp, 0x18
ret 4
push 0x46eb28
mov ecx, ebx
call fcn.0041b2a0
mov eax, 1
pop ebx
add esp, 0x18
ret 4
Function at 0x41b660
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x310
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x41b67c
xor eax, eax
pop esi
add esp, 0x310
ret 4
lea eax, [esp + 0x110]
lea edx, [esi + 0x13c]
mov ecx, eax
push edi
mov edi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41b6a2
mov byte [eax], cl
inc eax
dec edi
jne 0x41b693
jmp 0x41b6a6
test edi, edi
jne 0x41b6a7
dec eax
mov edi, dword [esp + 0x31c]
push edi
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov byte [eax], 0
call fcn.0041ad70
mov al, byte [esp + 0x10]
test al, al
je 0x41b6d2
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0041b2a0
push ebx
push edi
lea ecx, [esp + 0x220]
push ecx
mov ecx, esi
call fcn.0041acc0
mov eax, dword [esi + 0xc]
mov edi, dword [eax]
cmp edi, eax
je 0x41b717
mov ebx, dword [sym.imp.MSVCR71.dll__stricmp]
mov eax, dword [edi + 8]
cmp dword [eax + 4], 1
jne 0x41b710
add eax, 8
push eax
lea edx, [esp + 0x220]
push edx
call ebx
add esp, 8
test eax, eax
je 0x41b717
mov edi, dword [edi]
cmp edi, dword [esi + 0xc]
jne 0x41b6f2
cmp edi, dword [esi + 0xc]
jne 0x41b72a
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x310
ret 4
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x118]
mov edx, dword [esi + 4]
push ebp
push 0
add ecx, 0x114
push ecx
push edx
call dword [sym.imp.MSVCR71.dll_fseek]
mov eax, dword [edi + 8]
mov ebx, dword [eax + 0x108]
push ebx
call sub.MFC71.DLL_operator_new
mov ecx, dword [esi + 4]
push ecx
push 1
mov ebp, eax
push ebx
push ebp
call dword [sym.imp.MSVCR71.dll_fread]
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x10c]
push eax
mov dword [esp + 0x38], eax
call sub.MFC71.DLL_operator_new
add esp, 0x24
push ebx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x20], eax
call fcn.004515b0
test eax, eax
push ebp
je 0x41b7b3
call sub.MFC71.DLL_operator_delete
mov edx, dword [esp + 0x14]
push edx
call sub.MFC71.DLL_operator_delete
add esp, 8
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x310
ret 4
call sub.MFC71.DLL_operator_delete
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
mov dword [esi + 0x18], ecx
mov edi, dword [edi + 8]
add esp, 4
add edi, 8
mov edx, 0x100
lea eax, [esi + 0x1c]
mov cl, byte [edi]
test cl, cl
je 0x41b7e3
mov byte [eax], cl
inc eax
inc edi
dec edx
jne 0x41b7d2
xor ecx, ecx
jmp 0x41b7e9
xor ecx, ecx
cmp edx, ecx
jne 0x41b7ea
dec eax
mov edx, dword [esp + 0x10]
mov byte [eax], 0
mov eax, dword [esp + 0x14]
mov dword [esi + 0x120], eax
mov dword [esi + 0x134], eax
mov al, byte [esp + 0x18]
test al, al
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x124], ecx
mov dword [esi + 0x128], ecx
mov dword [esi + 0x130], edx
mov dword [esi + 0x138], ecx
je 0x41b836
lea eax, [esp + 0x11c]
push eax
mov ecx, esi
call fcn.0041b2a0
pop ebp
pop ebx
pop edi
lea eax, [esi + 0x14]
pop esi
add esp, 0x310
ret 4