joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
test dl, dl
je 0x476fa1
add esp, 0xfffffff0
call fcn.004040a8
mov ebx, edx
mov esi, eax
cmp byte [ebp + 8], 0
je 0x476fb9
cmp word [ecx], 0x25ff
jne 0x476fb9
add ecx, 2
mov eax, dword [ecx]
mov ecx, dword [eax]
mov dword [esi + 0x12], ecx
mov eax, dword [ebp + 0xc]
sub eax, ecx
sub eax, 5
mov byte [esi + 8], 0xe9
mov edx, eax
and dl, 0xff
mov byte [esi + 9], dl
mov edx, eax
shr edx, 8
and dl, 0xff
mov byte [esi + 0xa], dl
mov edx, eax
shr edx, 0x10
and dl, 0xff
mov byte [esi + 0xb], dl
shr eax, 0x18
and al, 0xff
mov byte [esi + 0xc], al
mov eax, dword [esi + 0x12]
mov al, byte [eax]
mov byte [esi + 0xd], al
mov eax, dword [esi + 0x12]
mov al, byte [eax + 1]
mov byte [esi + 0xe], al
mov eax, dword [esi + 0x12]
mov al, byte [eax + 2]
mov byte [esi + 0xf], al
mov eax, dword [esi + 0x12]
mov al, byte [eax + 3]
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x12]
mov al, byte [eax + 4]
mov byte [esi + 0x11], al
lea eax, [esi + 4]
push eax
push 0x40
push 5
mov eax, dword [esi + 0x12]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x477034
call fcn.0040e7ec
mov eax, esi
call fcn.004770cc
mov eax, esi
test bl, bl
je 0x477050
call fcn.00404100
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x478234
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, 8
mov edx, 0x3020100
mov dword [eax], edx
add edx, 0x4040404
mov dword [eax + 4], edx
add edx, 0x4040404
mov dword [eax + 8], edx
add edx, 0x4040404
mov dword [eax + 0xc], edx
add edx, 0x4040404
mov dword [eax + 0x10], edx
add edx, 0x4040404
mov dword [eax + 0x14], edx
add edx, 0x4040404
mov dword [eax + 0x18], edx
add edx, 0x4040404
mov dword [eax + 0x1c], edx
add edx, 0x4040404
add eax, 0x20
dec ecx
jne 0x47823e
ret
Function at 0x408c84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42914c]
jne 0x408c8e
repz ret
jmp fcn.00412cac

Function at 0x414605
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c0dd
and dword [ebp - 4], 0
cmp dword [0x47b138], 0
mov ebx, eax
jne 0x4146b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414767
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x414767
push eax
call fcn.0040c06b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47b138], eax
call esi
push eax
call fcn.0040c06b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47b13c], eax
call esi
push eax
call fcn.0040c06b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47b140], eax
call esi
push eax
call fcn.0040c06b
pop ecx
mov dword [0x47b148], eax
test eax, eax
je 0x4146b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c06b
pop ecx
mov dword [0x47b144], eax
mov eax, dword [0x47b144]
cmp eax, ebx
je 0x41470e
cmp dword [0x47b148], ebx
je 0x41470e
push eax
call fcn.0040c0e6
push dword [0x47b148]
mov esi, eax
call fcn.0040c0e6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41470e
test edi, edi
je 0x41470e
call esi
test eax, eax
je 0x414705
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414705
test byte [ebp - 0xc], 1
jne 0x41470e
or dword [ebp + 0x10], 0x200000
jmp 0x414747
mov eax, dword [0x47b13c]
cmp eax, ebx
je 0x414747
push eax
call fcn.0040c0e6
pop ecx
test eax, eax
je 0x414747
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414747
mov eax, dword [0x47b140]
cmp eax, ebx
je 0x414747
push eax
call fcn.0040c0e6
pop ecx
test eax, eax
je 0x414747
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47b138]
call fcn.0040c0e6
pop ecx
test eax, eax
je 0x414767
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414769
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41abcb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41abda
pop dword [ebp - 0x10]
mov eax, 0x5a845319
sub eax, 0x5a42a73f
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3e014
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xc350bd1b
add ecx, 0x3caf910d
mov esi, eax
mov edi, 0x76aa8421
sub edi, 0x76675621
add edi, dword [ebp - 0x10]
mov ebx, 0x18502260
sub ebx, 0x1f22b9cc
sub dword [ebp - 8], edi
mov edx, dword [edi]
add dword [ebp - 4], esi
xor edx, ebx
mov dword [esi], edx
sub dword [ebp - 0xc], 0xffd92789
add esi, 0x59343258
add esi, 0xa6cbcdac
add edi, 0xcf6b475c
add edi, 0x3094b8a8
loop 0x41ac34
add eax, 0xff1ff697
add eax, 0xe134dc
xor ebx, ebx
add ebx, eax
add eax, 0x7dc95024
add eax, 0x8236afe1
mov ecx, 0x400000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x408a09
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push connect
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x408a39
xor eax, eax
inc eax
jmp 0x408ac2
push ebx
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x408a52
push 2
pop eax
jmp 0x408ac1
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
push edi
mov ecx, esi
call fcn.004017ab
push edi
mov ecx, esi
call fcn.004015fe
push edi
mov ecx, esi
call fcn.0040784c
push edi
mov ecx, esi
call fcn.004016c9
push edi
mov ecx, esi
call fcn.004086d6
push edi
mov ecx, esi
call fcn.004088b5
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0040615f
push eax
lea ecx, [esi + 0x11c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp + 8]
call esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x408ec7
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x41dc00
lea ecx, [esi + 4]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
and dword [esi + 0x20], 0
mov ebx, str.no_cache
push ebx
lea ecx, [esi + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
or dword [esi + 0x44], 0xffffffff
mov edi, 0x41d9d4
push edi
lea ecx, [esi + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push edi
lea ecx, [esi + 0x80]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push edi
lea ecx, [esi + 0x9c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push ebx
lea ecx, [esi + 0xb8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
and dword [esi + 0xd4], 0
or dword [esi + 0xd8], 0xffffffff
push str.http:__www.xunlei.com_
lea ecx, [esi + 0xdc]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push edi
lea ecx, [esi + 0xf8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.Mozilla_5.0__Linux_2.6_
lea ecx, [esi + 0x114]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
pop edi
mov dword [esi + 0x130], 1
pop esi
pop ebx
ret
Function at 0x409292
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x427c60]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.0041066d
mov ecx, eax
call fcn.0041002a
mov cl, byte [eax]
cmp cl, 0x30
jl 0x4092d3
jg 0x4092d3
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
jmp 0x4092f5
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4092e2
xor al, al
jmp 0x40934b
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
call fcn.0041066d
mov ecx, eax
call fcn.0041003e
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 2
mov word [ebp - 0x12], ax
pop eax
mov word [ebp - 0x14], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4092de
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push dword [ebp + 8]
mov dword [ebp - 0x18], 0x2710
call dword [sym.imp.WS2_32.dll_setsockopt]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad8
leave
ret 4
Function at 0x40bdac
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x427c60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x3c
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
mov dword [ebp - 0x28], ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 0x41de5c
lea edi, [esi + 4]
jb 0x40bdfb
mov eax, dword [edi]
mov dword [ebp - 0x54], eax
jmp 0x40bdfe
mov dword [ebp - 0x54], edi
push 0x41de58
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.0041066d
add eax, 8
cmp dword [eax + 0x18], 8
jb 0x40be1f
mov eax, dword [eax + 4]
jmp 0x40be22
add eax, 4
push eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0x41de50
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40be46
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x48], 5
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40beb5
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x2c]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
jne 0x40beb5
push str.exinfo.zip
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x80]
push eax
add ecx, 8
call fcn.0040b6da
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esi + 0x18], 8
jb 0x40bebd
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00419ad8
leave
ret 0x10
Function at 0x40eacf
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, ecx
call fcn.0040e8c3
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40eb81
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0041066d
mov ecx, eax
add ecx, 0x28
call fcn.00405e15
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
lea edi, [eax + eax + 4]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40eb7f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.0041066d
mov ecx, eax
add ecx, 0x28
call fcn.00405e15
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_wcscpy]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x13
call fcn.0040cec1
mov ecx, eax
call fcn.0040ce9b
push 0
push 0x41e58c
push eax
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10

Function at 0x40efe5
Capabilities:
Get graphical window text

Disassembly:
push ebp
push esi
push dword [esp + 0xc]
mov esi, ecx
call fcn.0040ece0
mov ebp, eax
test ebp, ebp
je 0x40f040
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 0xa]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004198ae
pop ecx
push edi
mov ebx, eax
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
lea ecx, [esi + 0x8c]
call fcn.0040a7fd
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 4

Function at 0x40f55a
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, ecx
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40f607
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0041066d
mov ecx, eax
add ecx, 0x28
call fcn.00405e15
push eax
call dword [sym.imp.MSVCR90.dll_wcslen]
pop ecx
lea edi, [eax + eax + 4]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40f605
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov ebx, eax
push 0
push ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
call fcn.0041066d
mov ecx, eax
add ecx, 0x28
call fcn.00405e15
push eax
push ebx
call dword [sym.imp.MSVCR90.dll_wcscpy]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x13
call fcn.0040cec1
mov ecx, eax
call fcn.0040ce9b
push 0
push 0x41e58c
push eax
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x4105b7
Capabilities:
Create process on windows

Disassembly:
cmp dword [ecx + 0x598], 0
ja 0x4105fb
lea eax, [ecx + 0x5f4]
cmp dword [eax + 0x18], 8
jb 0x4105d1
mov edx, dword [eax + 4]
jmp 0x4105d4
lea edx, [eax + 4]
lea eax, [ecx + 0x5d8]
cmp dword [eax + 0x18], 8
jb 0x4105e5
mov eax, dword [eax + 4]
jmp 0x4105e8
add eax, 4
push 1
push 0
push edx
push eax
push 0x41de5c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret

Function at 0x4106b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x427c60]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push 0x41e8a8
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
call fcn.0041066d
add eax, 8
cmp dword [eax + 0x18], 8
jb 0x4106e6
mov eax, dword [eax + 4]
jmp 0x4106e9
add eax, 4
push eax
lea ecx, [ebp - 0x20]
call dword [0x41c22c]
push 0x41de58
lea ecx, [ebp - 0x20]
call dword [0x41c22c]
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x41070d
lea ecx, [ebp - 0x1c]
lea eax, [edi + 0x584]
cmp dword [eax + 0x18], 8
pop edi
jb 0x41071f
mov eax, dword [eax + 4]
jmp 0x410722
add eax, 4
push 1
push 0
push ecx
push eax
push 0x41de5c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419ad8
leave
ret
Function at 0x4109b6
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1fc4]
mov eax, 0x2044
call fcn.00419cb0
mov eax, dword [0x427c60]
xor eax, ebp
mov dword [ebp + 0x1fc0], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push connect
push dword [ebp + 0x1fcc]
mov ebx, ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x410a18
lea ecx, [ebp + 0x1fcc]
call fcn.00409e1f
xor eax, eax
inc eax
jmp 0x410b68
push ecx
lea eax, [ebp + 0x1fcc]
mov ecx, esp
push eax
call fcn.0041091c
lea eax, [ebp - 0x5c]
push eax
mov ecx, ebx
call fcn.00410826
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x80], esi
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x66]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x5c
lea ecx, [ebp + 0x1fcc]
call fcn.00410778
inc eax
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x1fcc]
call fcn.00410998
cmp dword [ebp - 0x4c], esi
je 0x410a85
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x410a89
xor eax, eax
jmp 0x410aa1
lea edi, [eax + eax]
mov eax, edi
call fcn.00419c40
mov eax, esp
push 3
push edi
push dword [ebp - 0x4c]
push eax
call fcn.00401153
push 9
push 8
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x80]
push ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.minizip.dll_zipOpenNewFileInZip]
add esp, 0x28
test eax, eax
je 0x410ac8
mov dword [ebp - 0x44], 0x10
jmp 0x410b40
xor eax, eax
push 0x1ffe
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call sub.MSVCR90.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x48], esi
mov edi, 0x1000
jmp 0x410b18
cmp dword [ebp - 0x48], esi
je 0x410b2b
push dword [ebp - 0x48]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call dword [sym.imp.minizip.dll_zipWriteInFileInZip]
add esp, 0xc
test eax, eax
je 0x410b18
cmp dword [ebp - 0x48], edi
jae 0x410b18
or dword [ebp - 0x44], 2
push esi
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x50]
call ebx
test eax, eax
jne 0x410af0
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call dword [sym.imp.minizip.dll_zipCloseFileInZip]
pop ecx
test eax, eax
je 0x410b40
or dword [ebp - 0x44], 4
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x410b51
or dword [ebp - 0x44], 8
lea ecx, [ebp - 0x4c]
call fcn.00409e1f
lea ecx, [ebp + 0x1fcc]
call fcn.00409e1f
mov ax, word [ebp - 0x44]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1fc0]
xor ecx, ebp
call fcn.00419ad8
add ebp, 0x1fc4
leave
ret 4