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

Disassembly:
sub esp, 0x48
mov eax, dword [0x4a7680]
push ebx
mov ebx, dword [0x4a767c]
push esi
test ebx, ebx
mov esi, ecx
mov dword [esp + 0xc], eax
je 0x44101e
push ebp
push edi
push str.Setting
call dword [sym.imp.MSVCRT.dll__mkdir]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x18]
stosw word es:[edi], ax
push ebx
push str.Setting_u.ini
push 0x40
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
lea ebp, [esi + 0x360]
add esp, 0x10
mov eax, ebp
lea ecx, [esi + 0x1ac]
mov edi, 5
xor edx, edx
add eax, 4
mov dl, byte [ecx]
add ecx, 0x68
mov dword [eax - 4], edx
dec edi
jne 0x440efc
lea edi, [esi + 0x374]
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, edi
call fcn.00421520
cmp eax, 0xffffffff
je 0x44100a
xor ebx, ebx
mov ecx, edi
mov bl, byte [esi + 0x144]
push ebx
push str.Music
push str.BaseSetting
call fcn.00421850
mov ecx, dword [ebp]
push ecx
push str.Sound
push str.BaseSetting
mov ecx, edi
call fcn.00421850
mov edx, dword [esi + 0x364]
mov ecx, edi
push edx
push str.Flash
push str.BaseSetting
call fcn.00421850
mov eax, dword [esi + 0x368]
mov ecx, edi
push eax
push str.Popo
push str.BaseSetting
call fcn.00421850
mov ecx, dword [esi + 0x36c]
push ecx
push str.AvatarFlash
push str.AvatarSystem
mov ecx, edi
call fcn.00421850
mov edx, dword [esi + 0x370]
mov ecx, edi
push edx
push str.AvatarSound
push str.AvatarSystem
call fcn.00421850
mov ecx, edi
call fcn.00421640
cmp dword [esi + 0x35c], ebx
je 0x44100a
cmp ebx, 1
mov dword [esi + 0x35c], ebx
jne 0x441000
mov eax, dword [0x4a1354]
cmp eax, ebx
je 0x440ff0
cmp eax, 2
je 0x440ff0
push 0xffffffffffffffff
push 0
mov ecx, 0x4795c0
call fcn.00403870
jmp 0x44100a
push 0xffffffffffffffff
push 1
mov ecx, 0x4795c0
call fcn.00403870
jmp 0x44100a
mov ecx, 0x4795c0
call fcn.00403900
mov ecx, dword [0x4a2730]
mov edx, dword [esi + 0x36c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x48
ret

Function at 0x446f20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x446fc7
mov byte [eax + 1], bl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], bl
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str._s_config.ini
lea eax, [esp + 0x114]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x10c]
push ecx
push ebx
push str.InitGdiPlus
push str.MinigameLoader
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
pop edi
pop ebx
setne al
add esp, 0x208
ret
mov al, bl
pop edi
pop ebx
add esp, 0x208
ret
Function at 0x44ab50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4628c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
call fcn.0044d410
mov ecx, dword [edi + 0x4c]
lea eax, [edi + 0x2c]
mov esi, ecx
mov dword [esp + 0x28], 0
sub esi, eax
neg esi
sbb esi, esi
and esi, ecx
test esi, esi
je 0x44abba
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, 8
add ecx, 8
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0044d5f0
mov ecx, esi
call fcn.00450b20
mov esi, eax
test esi, esi
jne 0x44ab96
mov ecx, dword [ebx + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [edi + 0x20]
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 4]
test al, al
jne 0x44ac00
mov edi, dword [edi + 0x28]
test edi, edi
jne 0x44ab92
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044d4f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044d4f0
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x44ac30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4628e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.0044d410
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
mov esi, dword [ebx + 0x4c]
lea eax, [ebx + 0x2c]
cmp esi, eax
je 0x44ac94
test esi, esi
je 0x44ac94
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add eax, 8
add ecx, 8
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0044d5f0
mov ecx, esi
call fcn.00450b20
mov esi, eax
test esi, esi
jne 0x44ac70
mov ecx, dword [edi + 0x28]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x20]
mov edx, dword [ecx]
add eax, 8
push eax
call dword [edx + 4]
mov ecx, ebx
call fcn.0044f930
mov esi, eax
test esi, esi
je 0x44acca
push esi
mov ecx, edi
call fcn.0044ac30
mov ecx, esi
call fcn.0044f9e0
mov esi, eax
test esi, esi
jne 0x44acb5
mov ecx, dword [edi + 0x28]
mov eax, dword [ebx + 0x20]
add eax, 8
mov edx, dword [ecx]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044d4f0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x44bce0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x462933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
call fcn.00456b10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0xc]
call fcn.004567e0
mov esi, dword [0x4eb800]
mov dword [esp + 0x24], 0
test esi, esi
jne 0x44bd56
push 0x3c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov byte [esp + 0x24], 1
je 0x44bd43
mov ecx, eax
call fcn.0044a460
jmp 0x44bd45
xor eax, eax
mov esi, eax
mov byte [esp + 0x24], 0
test esi, esi
mov dword [0x4eb800], esi
je 0x44bd7c
lea eax, [edi + 8]
add edi, 4
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.004568a0
mov edx, dword [esi]
push 0
push 0
lea eax, [esp + 0x14]
push str.EngineCfg.xml
push eax
mov ecx, esi
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00456860
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x450750
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x462e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.0044f2a0
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
mov dword [ebx + 8], ecx
mov dword [ebx + 4], ecx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ebx + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00456d80
mov eax, dword [esi]
push 0x4723bc
add eax, 8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x45093a
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebp
add esp, 0x1c
test edi, edi
jne 0x4507e4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x450949
mov dword [esp + 0x10], 0x4ebba8
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00456cd0
lea ecx, [edi + 1]
push ecx
call sub.MFC42.DLL_operatornew
push esi
mov ebp, eax
push 1
push edi
push ebp
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x45085e
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00457da0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0x4ebba8
mov dword [esp + 0x1c], 0xffffffff
je 0x450949
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x450949
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov byte [edi + ebp], 0
mov cl, byte [ebp]
add esp, 4
mov eax, ebp
test cl, cl
mov esi, ebp
je 0x4508d3
mov cl, byte [esi]
cmp cl, 0xa
jne 0x450893
mov edx, esi
lea ecx, [esp + 0x10]
sub edx, eax
inc edx
push edx
push eax
call fcn.00456e60
inc esi
mov eax, esi
jmp 0x4508ce
cmp cl, 0xd
jne 0x4508cd
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x4508ab
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00456e60
lea eax, [esp + 0x24]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0xa
call fcn.00456e60
cmp byte [esi + 1], 0xa
jne 0x45088e
add esi, 2
mov eax, esi
jmp 0x4508ce
inc esi
cmp byte [esi], 0
jne 0x450877
sub esi, eax
je 0x4508e2
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00456e60
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx]
add esp, 4
add ecx, 8
push eax
push 0
push ecx
mov ecx, ebx
call dword [edx + 8]
mov al, byte [ebx + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
test al, al
mov eax, dword [esp + 0x10]
je 0x450926
cmp eax, 0x4ebba8
je 0x450949
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x450949
cmp eax, 0x4ebba8
je 0x450936
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
jmp 0x45094b
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.00457da0
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x453dd0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x4723bc
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
mov edi, eax
push 2
push 0
push edi
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push edi
mov esi, eax
call ebx
push esi
call sub.MFC42.DLL_operatornew
push edi
mov ebx, eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call sub.zlib1.dll_compressBound
push eax
mov dword [esp + 0x50], eax
call sub.MFC42.DLL_operatornew
add esp, 0x40
lea ecx, [esp + 0x10]
mov ebp, eax
push esi
push ebx
push ecx
push ebp
call sub.zlib1.dll_compress
add esp, 0x10
test eax, eax
jne 0x453e56
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push edx
push esi
push ebp
push eax
call fcn.00459580
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x458fc0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [esp + 0x110]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x458ffe
pop edi
xor al, al
pop esi
add esp, 0x104
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x459024
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x104
ret 4
lea ecx, [esp + 8]
push edi
push ecx
call fcn.00456c30
mov eax, dword [esi]
add esp, 8
lea edx, [esp + 8]
push edx
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x459066
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
add esp, 0x104
ret 4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x45909a
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi]
push eax
call edi
pop edi
xor al, al
pop esi
add esp, 0x104
ret 4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
lea ecx, [eax + 0x10]
cmp ecx, edx
ja 0x4590de
mov edx, dword [esi + 0x10]
add edx, eax
lea eax, [esi + 0x1c]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x18]
add eax, 0x10
mov dword [esi + 0x18], eax
pop edi
mov al, 1
pop esi
add esp, 0x104
ret 4
Function at 0x459540
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push esi
push 1
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x45956e
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4597ba
Capabilities:
Print debug messages
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463561
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp eax, ebx
je 0x4597d4
push eax
call dword [sym.imp.MSVCRT.dll__filelength]
add esp, 4
test eax, eax
jg 0x459816
mov edi, dword [esp + 0x50]
mov ebp, dword [sym.imp.MSVCRT.dll__open]
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x459816
push 0x8002
push edi
call ebp
add esp, 8
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x459816
push str.CPackage::Open_Failed_
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor al, al
jmp 0x4598b3
mov ecx, dword [esi]
lea eax, [esi + 0x14]
push 0x10
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__read]
mov dl, byte [esp + 0x5c]
add esp, 0xc
mov byte [esp + 0x10], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x24], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
push ecx
mov ecx, esi
call fcn.00459a50
test al, al
je 0x45988d
lea edi, [esi + 4]
mov eax, dword [edi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, edi
call fcn.0045a130
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00459a80
test al, al
jne 0x45986b
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4598b1
mov al, byte [ecx - 1]
cmp al, bl
je 0x4598a7
cmp al, 0xff
je 0x4598a7
dec al
mov byte [ecx - 1], al
jmp 0x4598b1
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x459a80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x18]
inc edx
mov eax, edx
mov dword [ebx + 0x24], edx
cmp eax, ecx
jl 0x459aa5
xor al, al
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx]
push ebp
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__lseek]
mov eax, dword [ebx]
mov edi, dword [sym.imp.MSVCRT.dll__read]
lea edx, [esp + 0x1e]
push 2
push edx
push eax
call edi
movsx ecx, word [esp + 0x2a]
mov eax, dword [ebx]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call edi
movsx esi, word [esp + 0x36]
add esp, 0x24
cmp esi, 0xfffffffd
mov dword [esp + 0x14], esi
jbe 0x459af0
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x120]
xor edx, edx
mov ecx, dword [ebp + 4]
cmp ecx, edx
je 0x459b1f
mov al, byte [ecx - 1]
test al, al
je 0x459b1f
cmp al, 0xff
je 0x459b1f
cmp esi, edx
jne 0x459b45
dec al
mov byte [ecx - 1], al
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
jmp 0x459b79
cmp esi, edx
jne 0x459b2f
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x459b79
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x459b3b
cmp eax, esi
jae 0x459b4e
push 1
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov edi, dword [sym.imp.MSVCRT.dll__read]
mov dword [ebp + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [ebx]
lea edx, [ebp + 0x10]
push 4
push edx
push eax
call edi
mov edx, dword [ebx]
lea ecx, [ebp + 0x14]
push 4
push ecx
push edx
call edi
mov ecx, dword [ebx]
lea eax, [ebp + 0x18]
push 4
push eax
push ecx
call edi
mov edx, dword [ebx]
add ebp, 0x1c
push 4
push ebp
push edx
call edi
mov eax, dword [ebx]
push eax
call dword [sym.imp.MSVCRT.dll__tell]
add esp, 0x34
mov dword [ebx + 0x28], eax
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x45ac85
Capabilities:
Get file version info

Disassembly:
mov eax, 0x463680
call fcn.0045e50c
sub esp, 0x24
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_1
cmp esi, edi
mov byte [ebp - 4], 1
jne 0x45acbc
or esi, 0xffffffff
jmp 0x45ad3f
lea eax, [esi + 2]
push ebx
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push edi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x47259c
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x14]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
pop ebx
imul esi, esi, 0x64
add esi, edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x45c350
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
xor eax, eax
mov edx, dword [esp + 0x98]
mov dword [esp + 9], eax
push ebx
mov dword [esp + 0x11], eax
mov ebx, ecx
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x15], ax
mov byte [esp + 0x17], al
mov dword [esp + 8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], ecx
test eax, eax
mov dword [esp + 0x14], edx
je 0x45c496
mov eax, dword [str.EPIPEMAGQQ]
mov ecx, dword [0x477dc0]
mov dx, word [0x477dc4]
mov dword [esp + 0x18], eax
mov al, byte [0x477dc6]
push ebp
push esi
push edi
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2e], al
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x2f]
mov word [esp + 0x2c], dx
rep stosd dword es:[edi], eax
mov edx, dword [ebx + 0x24]
lea esi, [ebx + 0x24]
stosb byte es:[edi], al
mov edi, dword [esp + 0xac]
mov ecx, esi
push edi
call dword [edx]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x28]
push ebp
push edx
push edi
push ecx
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [ebx + 0x10]
lea eax, [esp + 0x14]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 8]
push eax
lea ecx, [esp + 0x20]
push 0xc
push ecx
push edx
call edi
test eax, eax
jne 0x45c46e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xc
push eax
mov ecx, ebx
call fcn.0045c4d0
cmp eax, 1
jne 0x45c48a
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 8]
lea eax, [esp + 0x14]
push esi
push eax
push ecx
push ebp
push edx
call edi
test eax, eax
jne 0x45c477
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.0045c4d0
jmp 0x45c48a
cmp dword [esp + 0x14], 0xc
je 0x45c443
jmp 0x45c483
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
je 0x45c48a
mov ecx, ebx
call fcn.0045c520
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0x10

Function at 0x45c5c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], eax
mov dword [0x4ebbfc], ecx
mov ecx, esi
call fcn.0045c900
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push 0
push eax
push 0x45c610
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret 8
Function at 0x45cc70
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov edi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x45cca6
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov edx, edi
sub eax, 0x61c88647
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
add esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x45cccd
push esi
call sub.WSOCK32.dll_htonl
mov esi, dword [esp + 0x2c]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_ntohl
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call sub.WSOCK32.dll_ntohl
mov ebp, dword [esp + 0x28]
lea edx, [esp + 0x10]
mov esi, eax
lea ebx, [esp + 0x10]
sub ebp, edx
mov dword [esp + 0x24], 4
mov eax, dword [ebx + ebp]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebx], eax
mov eax, dword [esp + 0x24]
add ebx, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x45cd76
mov ecx, dword [esp + 0x14]
mov eax, 0xe3779b90
mov dword [esp + 0x24], 0x10
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, edi
shr edx, 5
add edx, ebx
mov ebx, edi
shl ebx, 4
add ebx, ebp
mov ebp, dword [esp + 0x10]
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
mov ebx, esi
shr edx, 5
shl ebx, 4
add edx, ecx
add ebx, ebp
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
add eax, 0x61c88647
sub edi, edx
mov edx, dword [esp + 0x24]
dec edx
mov dword [esp + 0x24], edx
jne 0x45cda0
push edi
call sub.WSOCK32.dll_htonl
mov edi, dword [esp + 0x2c]
push esi
mov dword [edi], eax
call sub.WSOCK32.dll_htonl
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret