joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4a93
Capabilities:
Create directory

Disassembly:
mov eax, 0x4e73b4
call fcn.004d1ec0
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.MSVCR71.dll__wmkdir]
test eax, eax
pop ecx
je 0x4a4abd
call dword [sym.imp.MSVCR71.dll__errno]
cmp dword [eax], 0x11
je 0x4a4abd
xor al, al
jmp 0x4a4b32
push edi
push dword [ebp + 8]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [0x4ec734]
push edi
lea ecx, [esi + 0x28]
call dword [0x4ec4ec]
push 0x94
call fcn.004d1a92
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x4a4afe
push 0
push str.thunder_skin
call fcn.0040ed24
mov edi, eax
jmp 0x4a4b00
xor edi, edi
mov dword [ebp + 8], edi
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x44]
mov dword [ebp - 4], 1
call fcn.004a0bdc
mov ecx, dword [esi + 0x48]
push 0
call fcn.004a45a9
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a4b2f
mov ecx, edi
call fcn.0040db94
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4a5fa5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x52f220]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
mov dword [ebp - 4], eax
je 0x4a6029
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a6029
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4a6029
push edi
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004d36df
and word [ebp - 0x64], 0
pop ecx
pop ecx
push 0x13
xor eax, eax
pop ecx
lea edi, [ebp - 0x62]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [ebp - 0x64]
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02X
push edi
call dword [sym.imp.MSVCR71.dll_swprintf]
add esp, 0xc
add edi, 4
inc esi
cmp esi, 0x10
jl 0x4a5ffa
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call dword [0x4ec734]
mov al, 1
pop edi
jmp 0x4a602b
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret
Function at 0x4a6580
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e7584
call fcn.004d1ec0
sub esp, 0x44
mov eax, dword [0x52f220]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa4]
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
call fcn.004a371e
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4a65ba
xor al, al
jmp 0x4a66af
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a65cc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push edi
call fcn.00451da2
add esp, 0xc
push ebx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.XLFSIO.dll_zipOpen
mov edi, dword [esi + 0x98]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0x9c]
cmp edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
je 0x4a662b
push dword [ebp - 0x4c]
mov ecx, dword [edi]
call fcn.004a895c
add edi, 4
cmp edi, dword [ebp - 0x50]
jne 0x4a6619
push 0xffffffffffffffff
push 8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.skin.xml
push dword [ebp - 0x4c]
call sub.XLFSIO.dll_zipOpenNewFileInZip
mov ecx, dword [esi + 0xa4]
add esp, 0x28
call fcn.004a3c18
lea ecx, [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040f4e3
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push dword [ebp - 0x4c]
call sub.XLFSIO.dll_zipWriteInFileInZip
push dword [ebp - 0x4c]
call sub.XLFSIO.dll_zipCloseFileInZip
push ebx
push dword [ebp - 0x4c]
call sub.XLFSIO.dll_zipClose
add esp, 0x18
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
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 al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1f17
leave
ret
Function at 0x4a8894
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e77fb
call fcn.004d1ec0
sub esp, 0x24
mov eax, dword [0x52f220]
push ebx
push esi
xor eax, ebp
mov dword [ebp - 0x30], ecx
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.MSVCR71.dll_wcslen]
pop ecx
push eax
push edi
call fcn.00451da2
add esp, 0xc
push 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call sub.XLFSIO.dll_zipOpen
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4a88f4
xor bl, bl
jmp 0x4a8932
mov ecx, dword [ebp - 0x30]
push esi
call fcn.004a866d
mov bl, al
test bl, bl
je 0x4a890e
mov ecx, dword [ebp - 0x30]
push esi
call fcn.004a879a
mov bl, al
push 0
push esi
call sub.XLFSIO.dll_zipClose
test bl, bl
pop ecx
pop ecx
jne 0x4a8930
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a88f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a88f0
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
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 [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret 4

Function at 0x4ace6e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e7aea
call fcn.004d1ec0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov byte [esi], bl
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], ebx
push dword [ebp + 8]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
or dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x28], ebx
mov word [esi + 0x30], bx
mov word [esi + 0x32], bx
mov word [esi + 0x34], bx
mov byte [esi + 0x36], bl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4ae97a
Capabilities:
Create thread

Disassembly:
mov eax, 0x4e7d55
call fcn.004d1ec0
push ecx
push ecx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esi], vtable.HttpDownloader.0
mov dword [ebp - 4], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
call fcn.004075c0
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push edi
push Ordinal_1
push edi
push ecx
lea ebx, [esi + 0x50]
mov dword [ebx], edi
mov dword [eax], edi
mov eax, esp
mov dword [ebp - 0x10], esp
push 0xfffffffffffffffd
mov ecx, esi
mov dword [eax], edi
call fcn.004ae0ba
push edi
push edi
push 1
push edi
mov ecx, ebx
call fcn.004adde2
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x4ae96e
push edi
push edi
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4b33c2
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x4ffb30
call fcn.004d2024
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x4b342e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x4b3406
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4b3434
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4b33fe
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4b33fe
mov al, 1
jmp 0x4b3400
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004d205f
ret
Function at 0x4b3536
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
cmp esi, 0x7ff80000
push edi
mov ebx, 0x10000
jbe 0x4b3559
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4b355c
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x4b356f
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x4b3576
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x535c6c]
test eax, eax
mov ecx, dword [0x535c68]
jne 0x4b3590
test ecx, ecx
je 0x4b35a5
mov eax, ecx
mov dword [0x535c6c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4b35a5
cmp edx, dword [ebp - 4]
jb 0x4b35a5
cmp edx, dword [ebp - 8]
jbe 0x4b3679
mov eax, ecx
test ecx, ecx
jmp 0x4b35c9
test eax, eax
je 0x4b35c4
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b35c4
cmp ecx, dword [ebp - 4]
jb 0x4b35c4
cmp ecx, dword [ebp - 8]
jbe 0x4b3679
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x535c6c], eax
jne 0x4b35ab
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x4b3714
cmp edi, 0x70000000
jb 0x4b35f9
cmp edi, 0x80000000
ja 0x4b35f9
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b3714
cmp dword [ebp - 0x30], ebx
jne 0x4b3618
cmp dword [ebp - 0x34], ebx
jae 0x4b362b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x4b35e4
jmp 0x4b3714
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x535c6c], eax
je 0x4b3714
mov ecx, dword [0x535c68]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x535c68], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x4b366b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x4b3719
cmp esi, dword [ebp - 8]
ja 0x4b3719
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4b371b
cmp esi, 0x70000000
jb 0x4b36bd
cmp esi, 0x80000000
ja 0x4b36bd
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b3719
cmp dword [ebp - 0x14], ebx
jne 0x4b370b
cmp dword [ebp - 0x18], ebx
jb 0x4b370b
mov ecx, esi
and ecx, 0xffff
je 0x4b36ef
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x535c6c], eax
jne 0x4b3647
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x4b36a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3741
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x4ffb40
call fcn.004d2024
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b379c
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4b3798
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x4b3798
cmp word [eax + 0x14], 0
jne 0x4b378d
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4b379e
mov eax, ecx
jmp 0x4b3787
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.004d205f
ret

Function at 0x4b37b6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x535c74], edi
jne 0x4b37d9
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x535c74
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4b37e0
mov eax, 0x10dd
jmp 0x4b3824
push esi
mov esi, dword [0x535c68]
mov dword [0x535c70], edi
mov dword [0x535c84], edi
mov dword [0x535c80], edi
mov dword [0x535c78], edi
mov dword [0x535c7c], edi
jmp 0x4b381d
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x4b3807
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x4b3827
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x535c74], eax
je 0x4b383d
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x535c84]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4b3888
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4b3879
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x4b3879
call fcn.004b3720
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4b384c
mov dword [0x535c84], ebx
call fcn.004b350f
mov esi, dword [0x535c80]
cmp esi, ebx
je 0x4b38b5
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4b389d
pop edi
pop esi
mov dword [0x535c80], ebx
mov dword [0x535c74], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4b3b08
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x535c78]
test eax, eax
jne 0x4b3b78
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x4b3b24
xor eax, eax
jmp 0x4b3b77
push esi
push 8
call fcn.004d1a92
mov esi, eax
test esi, esi
pop ecx
jne 0x4b3b38
push 8
pop edi
jmp 0x4b3b53
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4b3b64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
and dword [0x535c7c], 0
mov dword [0x535c78], edi
mov eax, edi
jmp 0x4b3b76
mov eax, dword [0x535c80]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x535c80], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x4b3db8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x535c74], eax
je 0x4b3dd4
mov eax, 0x10dd
jmp 0x4b3eb0
mov eax, dword [0x535c78]
test eax, eax
jne 0x4b3eb0
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4b3df1
push 6
pop eax
jmp 0x4b3eaf
cmp dword [edi], 0
push ebx
push esi
jne 0x4b3e05
push 6
pop eax
mov dword [0x535c78], eax
jmp 0x4b3ea7
push 0x18
call fcn.004d1a92
mov esi, eax
test esi, esi
pop ecx
jne 0x4b3e18
push 8
pop edi
jmp 0x4b3e91
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.004b37a4
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x4b3e86
cmp ecx, 0x17
ja 0x4b3e86
cmp dword [edi + 0x1c], eax
jne 0x4b3e86
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4b3e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4b3e91
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x535c84]
mov dword [esi], eax
mov dword [0x535c84], esi
xor eax, eax
jmp 0x4b3ead
cmp dword [0x535c70], edx
push 9
pop edi
jne 0x4b3e97
mov dword [0x535c78], edi
test esi, esi
je 0x4b3ea2
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x535c7c], edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x4b4aa8
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e812b
call fcn.004d1ec0
sub esp, 0x14
push ebx
mov ebx, ecx
push edi
push dword [ebx + 0x10]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b4ad2
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x94
call fcn.004d1a92
pop ecx
mov dword [ebp - 0x1c], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4b4afb
push edi
push str.MsgSys
mov ecx, eax
call fcn.0044bfec
mov dword [ebp - 0x10], eax
jmp 0x4b4afe
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x4b4bd1
mov eax, dword [ebx + 8]
push esi
mov esi, dword [ebx + 4]
cmp esi, eax
mov dword [ebp - 0x1c], eax
je 0x4b4bbd
jmp 0x4b4b21
xor edi, edi
push 0x94
call fcn.004d1a92
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
mov dword [ebp - 4], 1
je 0x4b4b49
push edi
push str.Package
mov ecx, eax
call fcn.0044bfec
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b4bb1
push dword [esi]
mov ecx, edi
push str.msgid
call fcn.0044d614
lea ecx, [ebp - 0x14]
call fcn.00434b51
push dword [esi + 4]
lea eax, [ebp - 0x14]
push 0x4f2594
push eax
mov dword [ebp - 4], 2
call fcn.0040714c
mov ebx, dword [ebp - 0x14]
add esp, 0xc
push ebx
push str.loadtype
mov ecx, edi
call fcn.0044d614
mov ecx, dword [ebp - 0x10]
push edi
call fcn.0044c338
mov ecx, edi
call fcn.0040db94
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.00401591
mov ebx, dword [ebp - 0x18]
add esi, 8
cmp esi, dword [ebp - 0x1c]
jne 0x4b4b1f
push dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0048bf58
mov ecx, dword [ebp - 0x10]
call fcn.0040db94
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4b4f46
Capabilities:
Create thread

Disassembly:
push ecx
push 0
push 0x4b4ee5
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
ret

Function at 0x4b5ca1
Capabilities:
Create thread

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
lea ecx, [esi + 0x24]
call fcn.00402492
lea ecx, [esi + 0x2c]
push 0x500d30
call fcn.00402492
xor edi, edi
push edi
push ecx
mov eax, esp
push edi
push Ordinal_1
push edi
push ecx
mov dword [eax], edi
mov eax, esp
push edi
mov ecx, esi
mov dword [eax], edi
call fcn.004b520f
lea eax, [esi + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0xff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push esi
push edi
push 0x4b5ab0
mov dword [esi + 0x54], eax
call dword [sym.imp.MSVCR71.dll__beginthread]
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x4b7cd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x4b7d26
push edi
mov edi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b7d19
cmp dword [ebp - 4], edi
je 0x4b7d1c
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b7dfe
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4b7e78
cmp word [ebx + 8], 2
jne 0x4b7e54
cmp word [ebx + 0xa], 4
jne 0x4b7e54
mov esi, dword [ebx + 0xc]
jmp 0x4b7e4e
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b7d98
test eax, eax
mov dword [edi], eax
je 0x4b7e73
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x4b7e32
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call dword [sym.imp.MSVCR71.dll_strncpy]
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x4b7e9e
push 8
pop eax
jmp 0x4b7e9e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x4b7e9e
dec ecx
je 0x4b7e99
dec ecx
je 0x4b7e92
dec ecx
jmp 0x4b7e9e
mov eax, 0x2afb
jmp 0x4b7e9e
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18