joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b415
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x34]
mov dword [ebp - 0x14], 1
push ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
jne 0x47a1f6
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
setne cl
mov dword [esi + 0x24], eax
call fcn.0047de10
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], eax
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 0x20019
push edi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47a1d4
mov eax, dword [ebp + 8]
mov dword [ebp + 0x10], 4
test eax, eax
je 0x47a1d7
lea ecx, [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push edi
push str.SupplyID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47a1d4
cmp dword [ebp + 0xc], 4
cmove edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0
test eax, eax
je 0x47a1e6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
mov dword [esi + 0x18], edi
call fcn.0047c7e0
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
lock inc dword [esi + 0x2c]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47be10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b6cd
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x47c004
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 0x38], 0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x18], 0x3e8
mov byte [ebp - 0x1c], 1
push 0x10
push str.0WIN0DJ6VL4UY2KW
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0044c030
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x3c], ecx
push eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 4
push eax
push str.DebugBeacon
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x78], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x74], 0
lea ecx, [ebp - 0x34]
push 0
push 0x531c00
seta byte [ebp - 0x38]
call fcn.0044c030
cmp dword [esi + 0x6c], 0
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0x64
jne 0x47bf6e
call fcn.0047cb00
test eax, eax
je 0x47bf6e
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0047cbc0
cmp dword [eax + 0x14], 8
jb 0x47bf2a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x5c]
mov dword [esi + 0x6c], eax
cmp edx, 8
jb 0x47bf6e
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47bf64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c01e
push edx
push ecx
call fcn.004dafca
add esp, 8
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x47bf8b
push str.InitBeacon
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47bf8b
lea ecx, [ebp - 0x58]
push ecx
call eax
mov edx, dword [ebp - 0x20]
mov dword [esi + 0x50], 1
cmp edx, 0x10
jb 0x47bfc2
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47bfb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c023
push edx
push ecx
call fcn.004dafca
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x47c004
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47bffa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c023
push edx
push ecx
call fcn.004dafca
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
call fcn.004e002c
int3
Function at 0x47c1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x54b144]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
xorps xmm0, xmm0
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c2ec
push 0xc8
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004dcc10
add esp, 0xc
mov dword [esp + 0x18], 0xc8
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push str.Version
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c2d8
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
lea edx, [ecx + 2]
mov dword [esp + 0x34], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c266
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.0044a750
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.0047ca60
mov esi, dword [esp + 0x34]
mov edi, eax
mov ebx, edx
cmp esi, 8
jb 0x47c2e0
mov ecx, dword [esp + 0x20]
lea esi, [esi*2 + 2]
mov eax, ecx
cmp esi, 0x1000
jb 0x47c2c2
mov ecx, dword [ecx - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c30d
push esi
push ecx
call fcn.004dafca
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c2f4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47c2f4
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x104]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
call fcn.004e002c
int3

Function at 0x47c740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b75d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47c7bc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 4
test eax, eax
je 0x47c7ca
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push str.SupplyID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47c7bc
cmp dword [ebp - 0x18], 4
cmove esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x47c7ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47e320
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push dword [esi]
mov dword [ebp - 0x20], eax
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x1c], eax
nop dword [eax + eax]
push dword [ebx + esi*4]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x47e360
mov ebx, dword [ebp - 0x1c]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0x10]
shl eax, 4
add eax, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x47e380
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret

Function at 0x47eab0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x54b144]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0xffffffff
je 0x47eb9d
mov eax, dword [edi + 0xc]
mov cl, byte [ebp + 8]
imul esi, eax, 0x3e8
test cl, cl
jne 0x47eaee
imul esi, eax, 0x7d0
test esi, esi
jle 0x47eb9d
mov ebx, dword [sym.imp.WS2_32.dll_select]
nop dword [eax]
mov eax, dword [edi + 8]
test eax, eax
je 0x47eb10
cmp byte [eax], 0
je 0x47eb9d
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x124], eax
inc eax
test cl, cl
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 1
push ecx
lea ecx, [esp + 0x124]
mov dword [esp + 0x14], 0
push ecx
mov dword [esp + 0x1c], 0xc350
lea ecx, [esp + 0x20]
je 0x47eb5b
push ecx
push 0
jmp 0x47eb5e
push 0
push ecx
push eax
call ebx
test eax, eax
jg 0x47eb74
sub esi, 0xc350
test esi, esi
jle 0x47eb9d
mov cl, byte [ebp + 8]
jmp 0x47eb00
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x22c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
Function at 0x47ebc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
push edi
mov edi, ecx
test ebx, ebx
jle 0x47ec19
mov eax, dword [edi + 8]
test eax, eax
je 0x47ebdd
cmp byte [eax], 0
je 0x47ec19
mov eax, dword [edi + 8]
test eax, eax
je 0x47ebe9
cmp byte [eax], 0
je 0x47ec22
push 0
mov ecx, edi
call fcn.0047eab0
test al, al
je 0x47ec22
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x47ec22
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47ec22
sub esi, eax
test esi, esi
jg 0x47ebd1
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x480120
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b28e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp byte [0x54f1e8], 0
jne 0x480172
push 0x3ff
push 0x54f1e8
push str._ALLUSERSPROFILE_Application_DataTencentQQP3C4Mgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edi, dword [ebp + 8]
mov ecx, 0x54f1e8
mov dword [edi], 0
lea edx, [ecx + 1]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480194
sub ecx, edx
push ecx
push 0x54f1e8
mov ecx, edi
call fcn.0044c030
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [ebx + 0x14], 0x10
jb 0x4801c5
mov ecx, dword [ebx]
mov esi, dword [edi + 0x14]
mov eax, esi
mov edx, dword [edi + 0x10]
sub eax, edx
mov ebx, dword [ebx + 0x10]
cmp ebx, eax
ja 0x4801f9
lea eax, [edx + ebx]
mov dword [edi + 0x10], eax
mov eax, edi
cmp esi, 0x10
jb 0x4801e5
mov eax, dword [edi]
push ebx
lea esi, [eax + edx]
push ecx
push esi
call fcn.004dc690
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x48020a
push ebx
push ecx
mov byte [ebp + 0xc], 0
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.0044fdf0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4805f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov ecx, edi
cmp dword [edi + 0x14], 0x10
jb 0x480612
mov ecx, dword [edi]
call fcn.00480560
test eax, eax
je 0x4806c8
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x4806c8
mov dword [ebx + 0x468], 0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481b30
mov edi, dword [ebp - 0x24]
push edi
mov dword [eax], edi
mov dword [eax + 4], esi
call dword [sym.imp.WS2_32.dll_inet_ntoa]
test eax, eax
mov dword [ebp - 0x20], 0
mov edx, 0x531c00
mov dword [ebp - 0x10], 0
cmovne edx, eax
mov dword [ebp - 0xc], 0xf
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x480683
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
push edx
call fcn.0044c030
mov edx, dword [ebp - 0xc]
cmp edx, 0x10
jb 0x4806ea
mov ecx, dword [ebp - 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4806bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4806ff
push edx
push ecx
call fcn.004dafca
add esp, 8
jmp 0x4806ea
inc dword [ebx + 0x468]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
lea ecx, [ebx + 0x2c]
mov esi, eax
call fcn.00481b30
xor edi, edi
mov dword [eax], 0
mov dword [eax + 4], esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
call fcn.004e002c
int3
Function at 0x4842e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50bf84
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x54b144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
lea ecx, [ebp - 0x1c]
call fcn.004d99ef
mov dword [ebp - 4], 0
mov edi, dword [0x54f7f0]
mov eax, dword [0x54f5e8]
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x48435f
push edi
lea ecx, [ebp - 0x14]
call fcn.004d99ef
cmp dword [0x54f7f0], edi
jne 0x484351
mov eax, dword [0x54e220]
inc eax
mov dword [0x54e220], eax
mov dword [0x54f7f0], eax
lea ecx, [ebp - 0x14]
call fcn.004d9a47
mov edi, dword [0x54f7f0]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x48437a
mov eax, dword [ecx + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x48440a
jmp 0x48437c
xor esi, esi
cmp byte [ecx + 0x14], 0
je 0x484392
call fcn.004d9bf6
cmp edi, dword [eax + 0xc]
jae 0x484396
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x48440a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4843a1
mov esi, eax
jmp 0x48440a
push 8
call fcn.004daf9a
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4843ca
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x4843cf
lea eax, [ecx + 0x1c]
jmp 0x4843cf
mov eax, 0x531c00
push eax
lea ecx, [ebp - 0x50]
call fcn.00457be0
lea ecx, [ebp - 0x50]
mov dword [esi + 4], 0
mov dword [esi], vtable.std::codecvt_char__char__struct__Mbstatet_.0
call fcn.00457c90
mov dword [ebp + 8], esi
push esi
mov byte [ebp - 4], 2
call fcn.004d9bca
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x54f5e8], esi
lea ecx, [ebp - 0x1c]
call fcn.004d9a47
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x48443a
mov dword [ebx + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x38], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x484720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x484808
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4847f7
jg 0x484760
test edx, edx
je 0x4847f7
nop dword [eax]
call fcn.0045ac70
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4847b4
jg 0x484777
test esi, esi
je 0x4847b4
cmp ebx, eax
jg 0x484787
jl 0x484781
cmp edi, esi
jae 0x484787
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004dc690
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4847db
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4847f1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x484760
jl 0x4847f1
test edi, edi
jne 0x484760
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x48482a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x48482c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x4848aa
jg 0x48483f
test esi, esi
je 0x4848aa
test eax, eax
jl 0x48488e
jg 0x484849
test ebx, ebx
je 0x48488e
cmp edi, eax
jg 0x484859
jl 0x484853
cmp esi, ebx
jae 0x484859
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004dc690
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x4848aa
jg 0x484891
test esi, esi
je 0x4848aa
jmp 0x484891
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x4848aa
push eax
push esi
push 1
push edx
call fcn.004f28bc
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x484e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x484e30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x484e6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x484e6c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x484f54
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x484e94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x484ec7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004f21cf
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x484f27
sub eax, 1
je 0x484f27
sub eax, 2
jne 0x484f54
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004f21cf
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x484f44
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f28bc
add esp, 0x10
cmp edi, eax
jne 0x484f54
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x484e57
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dafe6
mov esp, ebp
pop ebp
ret 4
Function at 0x485240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x54b144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4852fa
cmp byte [esi + 0x3d], 0
je 0x4852fa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4852e8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4852b0
sub eax, 1
je 0x4852b4
sub eax, 2
jne 0x4852e8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4852d1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f28bc
add esp, 0x10
cmp edi, eax
jne 0x4852e8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dafe6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004dafe6
mov esp, ebp
pop ebp
ret

Function at 0x485810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48582c
test al, 0x10
jne 0x48582c
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret