joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49efe0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e5586
call fcn.004d1d50
sub esp, 0x44
mov eax, dword [0x52e400]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
lea edi, [esi + 0xbc]
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49f01f
xor al, al
jmp 0x49f137
push ebx
xor ebx, ebx
cmp dword [esi + 0xd8], ebx
je 0x49f031
mov al, 1
jmp 0x49f136
lea ecx, [ebp - 0x48]
call fcn.0049cdb7
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call fcn.004a4fda
cmp eax, ebx
mov dword [ebp - 0x50], eax
jne 0x49f05b
xor bl, bl
jmp 0x49f128
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__::constructor_void_]
lea eax, [ebp - 0x2c]
push eax
push 1
mov ecx, esi
mov byte [ebp - 4], 1
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 fcn.004a890d
push 0xd0
call fcn.004d1924
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x49f0aa
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]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.004a5f77
mov edi, eax
jmp 0x49f0ac
xor edi, edi
mov dword [ebp - 0x4c], edi
push 1
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004a5dbe
push dword [ebp - 0x50]
mov ecx, edi
call fcn.004a6314
test al, al
jne 0x49f0ce
xor bl, bl
jmp 0x49f10f
mov ecx, edi
mov dword [ebp - 0x4c], ebx
mov dword [esi + 0xd8], edi
call fcn.004a5ea8
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x49f10d
mov ecx, dword [esi + 0xd8]
push edi
call fcn.004a5f0a
test eax, eax
mov dword [ebp - 0x50], eax
je 0x49f108
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0xdc]
call fcn.0049cc64
inc edi
cmp edi, ebx
jb 0x49f0e6
mov bl, 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00495bf4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
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 sub.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_
mov al, bl
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.004d1da7
leave
ret 4
Function at 0x4a0008
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e56f5
call fcn.004d1d50
sub esp, 0x38
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a002c
xor al, al
jmp 0x4a015e
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040f3ff
xor esi, esi
push esi
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], esi
call fcn.0040f969
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.0040f9bf
test al, al
lea ecx, [ebp - 0x40]
jne 0x4a0063
call fcn.0040e35c
xor bl, bl
jmp 0x4a014e
push edi
call fcn.0040e35c
lea ecx, [ebp - 0x44]
call fcn.00446f58
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, esi
mov byte [ebp - 4], 1
jne 0x4a0085
xor bl, bl
jmp 0x4a014d
lea ecx, [edi + 0x30]
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]
cmp eax, esi
je 0x4a0140
push str.auto_thunder_skin
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4a0140
lea ecx, [edi + 0x80]
call fcn.0048f0fe
cmp eax, esi
mov dword [ebp - 0x14], eax
mov dword [ebp + 8], esi
jbe 0x4a012e
push dword [ebp + 8]
mov ecx, edi
call fcn.00449647
mov esi, eax
mov dword [ebp - 0x1c], esi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
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]
mov ebx, eax
push str.info
push ebx
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4a00fa
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0049edce
jmp 0x4a0114
push str.skin_package_list
push ebx
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x4a0114
mov ecx, dword [ebp - 0x10]
push esi
call fcn.0049ff83
test esi, esi
mov byte [ebp - 4], 1
je 0x4a0123
mov ecx, esi
call fcn.0040de1d
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jb 0x4a00c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xb0]
mov eax, dword [ecx]
call dword [eax + 4]
mov bl, 1
jmp 0x4a0142
xor bl, bl
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.0040de1d
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040ee8c
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4a0198
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
cmp edi, 1
mov esi, ecx
jl 0x4a01e5
cmp byte [esi + 0xa5], 0
jne 0x4a01c9
lea ecx, [esi + 0x40]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a01c9
mov ecx, esi
call fcn.004a016c
lea ecx, [esi + 0x78]
call fcn.0048f0fe
test eax, eax
je 0x4a01e5
lea ecx, [esi + 0xc8]
dec edi
call fcn.0048f0fe
cmp edi, eax
jl 0x4a01e9
xor eax, eax
jmp 0x4a01fa
mov eax, dword [esi + 0xcc]
lea eax, [eax + edi*4]
mov eax, dword [eax]
inc dword [eax + 0x108]
pop edi
pop esi
ret 4
Function at 0x4a34be
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e5ac4
call fcn.004d1d50
sub esp, 0x3c
mov eax, dword [0x52e400]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
jne 0x4a34e7
xor al, al
jmp 0x4a3577
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x48]
push eax
push esi
mov byte [ebp - 4], 1
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push esi
call fcn.0044fa33
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
mov ecx, edi
call fcn.004a3305
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a3558
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4a3558
xor bl, bl
jmp 0x4a355a
mov bl, 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
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.004d1da7
leave
ret 4
Function at 0x4a48d3
Capabilities:
Create directory

Disassembly:
mov eax, 0x4e5c7f
call fcn.004d1d50
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.MSVCR71.dll__wmkdir]
test eax, eax
pop ecx
je 0x4a48fd
call dword [sym.imp.MSVCR71.dll__errno]
cmp dword [eax], 0x11
je 0x4a48fd
xor al, al
jmp 0x4a4972
push edi
push dword [ebp + 8]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [0x4eb738]
push edi
lea ecx, [esi + 0x28]
call dword [0x4eb500]
push 0x94
call fcn.004d1924
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x4a493e
push 0
push str.thunder_skin
call fcn.0040ed33
mov edi, eax
jmp 0x4a4940
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.004a0a78
mov ecx, dword [esi + 0x48]
push 0
call fcn.004a43e9
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a496f
mov ecx, edi
call fcn.0040de1d
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4a5dd9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x52e400]
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 0x4a5e5d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a5e5d
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4a5e5d
push edi
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004d3597
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 0x4a5e2e
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
call dword [0x4eb738]
mov al, 1
pop edi
jmp 0x4a5e5f
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret
Function at 0x4a63b4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e5e62
call fcn.004d1d50
sub esp, 0x44
mov eax, dword [0x52e400]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xa4]
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
call fcn.004a3591
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4a63ee
xor al, al
jmp 0x4a64e3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a6400
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.0044fced
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.minizip.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 0x4a645f
push dword [ebp - 0x4c]
mov ecx, dword [edi]
call fcn.004a8799
add edi, 4
cmp edi, dword [ebp - 0x50]
jne 0x4a644d
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.minizip.dll_zipOpenNewFileInZip
mov ecx, dword [esi + 0xa4]
add esp, 0x28
call fcn.004a3a58
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.0040f2a4
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.minizip.dll_zipWriteInFileInZip
push dword [ebp - 0x4c]
call sub.minizip.dll_zipCloseFileInZip
push ebx
push dword [ebp - 0x4c]
call sub.minizip.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.004d1da7
leave
ret
Function at 0x4a86d1
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x4e60d9
call fcn.004d1d50
sub esp, 0x24
mov eax, dword [0x52e400]
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.0044fced
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.minizip.dll_zipOpen
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x4a8731
xor bl, bl
jmp 0x4a876f
mov ecx, dword [ebp - 0x30]
push esi
call fcn.004a84aa
mov bl, al
test bl, bl
je 0x4a874b
mov ecx, dword [ebp - 0x30]
push esi
call fcn.004a85d7
mov bl, al
push 0
push esi
call sub.minizip.dll_zipClose
test bl, bl
pop ecx
pop ecx
jne 0x4a876d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a872d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4a872d
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.004d1da7
leave
ret 4

Function at 0x4abdc4
Capabilities:
Create thread

Disassembly:
mov eax, 0x4e6378
call fcn.004d1d50
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.00407a19
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push edi
push closesocket
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.004ab504
push edi
push edi
push 1
push edi
mov ecx, ebx
call fcn.004ab225
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x4abdb8
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 0x4ada33
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e650d
call fcn.004d1d50
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 0x4b3318
Capabilities:
Parse pe header

Disassembly:
push 0x2c
push 0x501468
call fcn.004d1eb4
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 0x4b3384
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
je 0x4b335c
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4b338a
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4b3354
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4b3354
mov al, 1
jmp 0x4b3356
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.004d1eef
ret
Function at 0x4b348c
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 0x4b34af
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4b34b2
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x4b34c5
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x4b34cc
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x534e0c]
test eax, eax
mov ecx, dword [0x534e08]
jne 0x4b34e6
test ecx, ecx
je 0x4b34fb
mov eax, ecx
mov dword [0x534e0c], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4b34fb
cmp edx, dword [ebp - 4]
jb 0x4b34fb
cmp edx, dword [ebp - 8]
jbe 0x4b35cf
mov eax, ecx
test ecx, ecx
jmp 0x4b351f
test eax, eax
je 0x4b351a
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4b351a
cmp ecx, dword [ebp - 4]
jb 0x4b351a
cmp ecx, dword [ebp - 8]
jbe 0x4b35cf
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x534e0c], eax
jne 0x4b3501
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp - 4]
mov edi, esi
jbe 0x4b366a
cmp edi, 0x70000000
jb 0x4b354f
cmp edi, 0x80000000
ja 0x4b354f
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b366a
cmp dword [ebp - 0x30], ebx
jne 0x4b356e
cmp dword [ebp - 0x34], ebx
jae 0x4b3581
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x4b353a
jmp 0x4b366a
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x534e0c], eax
je 0x4b366a
mov ecx, dword [0x534e08]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x534e08], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x4b35c1
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x4b366f
cmp esi, dword [ebp - 8]
ja 0x4b366f
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 0x4b3671
cmp esi, 0x70000000
jb 0x4b3613
cmp esi, 0x80000000
ja 0x4b3613
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b366f
cmp dword [ebp - 0x14], ebx
jne 0x4b3661
cmp dword [ebp - 0x18], ebx
jb 0x4b3661
mov ecx, esi
and ecx, 0xffff
je 0x4b3645
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 [0x534e0c], eax
jne 0x4b359d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
lea esi, [eax + ecx]
cmp esi, dword [ebp - 8]
jb 0x4b35fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b3697
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x501478
call fcn.004d1eb4
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b36f2
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4b36ee
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x4b36ee
cmp word [eax + 0x14], 0
jne 0x4b36e3
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4b36f4
mov eax, ecx
jmp 0x4b36dd
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.004d1eef
ret

Function at 0x4b370c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x534e14], edi
jne 0x4b372f
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x534e14
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4b3736
mov eax, 0x10dd
jmp 0x4b377a
push esi
mov esi, dword [0x534e08]
mov dword [0x534e10], edi
mov dword [0x534e24], edi
mov dword [0x534e20], edi
mov dword [0x534e18], edi
mov dword [0x534e1c], edi
jmp 0x4b3773
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 0x4b375d
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x4b377d
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x534e14], eax
je 0x4b3793
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x534e24]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4b37de
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 0x4b37cf
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x4b37cf
call fcn.004b3676
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 0x4b37a2
mov dword [0x534e24], ebx
call fcn.004b3465
mov esi, dword [0x534e20]
cmp esi, ebx
je 0x4b380b
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 0x4b37f3
pop edi
pop esi
mov dword [0x534e20], ebx
mov dword [0x534e14], ebx
xor eax, eax
pop ebx
pop ecx
ret