joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9420
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x14c], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, 2
xor edi, edi
push 0x104
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x4d]
push edi
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 0x11
mov byte [esp + 0x54], 0
call fcn.005da970
add esp, 0xc
push 0x104
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x4e94ed
mov eax, dword [0x68075c]
test eax, eax
jne 0x4e94c9
push eax
call fcn.004e8d70
mov dword [0x68075c], eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x54]
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
test esi, esi
jne 0x4e956a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4e956a
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x10], eax
nop
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov esi, dword [eax + 4]
mov eax, dword [eax + 0xc]
push str.127.0.0.1
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call edi
cmp esi, eax
jne 0x4e9538
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 0x1c]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4e9500
mov esi, dword [esp + 0x14]
mov eax, dword [0x680760]
test eax, eax
jne 0x4e954d
push 2
call fcn.004e8d70
mov dword [0x680760], eax
mov edx, dword [esp + 0x10]
push edx
call eax
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x14c]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
Function at 0x4ebaf0
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5fc718
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ecx, ecx
test esi, esi
mov dword [esp + 0x14], ecx
je 0x4ebb3f
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00409dd0
mov edx, dword [eax]
cmp dword [edx - 0xc], 0
mov ecx, 1
je 0x4ebb3f
xor bl, bl
jmp 0x4ebb41
mov bl, 1
test cl, 1
je 0x4ebb66
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebb66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4ebb82
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409dd0
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x4ebc86
cmp eax, ecx
jg 0x4ebc86
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4ebbc5
push 0x5c
lea edi, [esp + 0x14]
call fcn.0040af90
push 2
push 0x632bdc
lea edx, [esp + 0x18]
push edx
call fcn.0040aee0
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
push 0
lea ebx, [eax - 1]
lea edi, [esp + 0x14]
call fcn.004b3cc0
mov ecx, dword [esp + 0x10]
xor eax, eax
lea edx, [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x34], ax
push edx
mov word [esp + 0x2c], 0x414
mov dword [esp + 0x32], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esi, 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebc71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret
push 0x80070057
call fcn.00403650
int3
Function at 0x4ec9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60973b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, edx
mov dword [esi], 0
mov dword [edi], 0
push 0x6244e0
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [ecx], 0
call fcn.004037a0
mov dword [esp + 0xc], ebx
push ebx
lea eax, [esp + 0x10]
push SysReAllocStringLen
push eax
mov dword [esp + 0xcc], ebx
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4eca62
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4eca5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ecaf2
push 0x90
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.005da970
add esp, 0xc
push ebx
lea edx, [esp + 0x14]
push edx
push 0x90
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ecab0
call fcn.0040f010
test eax, eax
jge 0x4ecaba
test ebx, ebx
je 0x4ecaac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ecaf2
cmp dword [esp + 0x10], 0x90
jne 0x4ecaa1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
mov dword [edi], edx
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x28]
mov dword [ecx], eax
call fcn.00403760
cmp dword [esi], 0
je 0x4ecaa1
test ebx, ebx
je 0x4ecaed
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
Function at 0x4ecec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x609708
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, str.SOFTWARETencentQQPinyinValidKey
call fcn.0047a7d0
test eax, eax
je 0x4ecf2e
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 0x400
lea eax, [esp + 0x18]
push SysReAllocStringLen
push eax
mov dword [esp + 0x44], ebx
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4ecf43
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4ecf2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x10
xor eax, eax
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ecf9e
call fcn.0040f010
cmp eax, ebx
jge 0x4ecfa5
cmp edi, ebx
je 0x4ecf89
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 0x10
jne 0x4ecf7e
cmp dword [esp + 0x20], 0xffffffff
je 0x4ecfe9
push ebx
call fcn.005d2e37
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esi, ecx
xor ecx, ecx
add esp, 4
cmp edx, ecx
jl 0x4ecfe9
jg 0x4ecfcb
cmp eax, esi
jbe 0x4ecfe9
lea esi, [esp + 0x14]
call fcn.0044b230
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push edx
push eax
push 0x410
lea ebx, [esp + 0x20]
call fcn.004ede10
add esp, 0xc
test eax, eax
jne 0x4ed02e
test edi, edi
je 0x4ecf89
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
add eax, 0x410
push eax
lea ebx, [esp + 0x20]
call fcn.004ede10
add esp, 0xc
test eax, eax
mov esi, ebx
je 0x4ecfcf
call fcn.0044b230
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6096d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
push 0x400
lea eax, [esp + 0x10]
push SysReAllocStringLen
push eax
mov dword [esp + 0x3c], 0
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4ed0f7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ed0e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x10
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed150
call fcn.0040f010
test eax, eax
jge 0x4ed157
test esi, esi
je 0x4ed13d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0x10
jne 0x4ed132
test esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x4ed16b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ed190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6096d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, str.SOFTWARETencentQQPinyinValidKey
call fcn.0047a7d0
test eax, eax
je 0x4ed205
mov dword [esp + 0xc], 0
push 0x800
lea eax, [esp + 0x10]
push SysReAllocStringLen
push eax
mov dword [esp + 0x3c], 0
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4ed219
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ed205
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x10
lea edx, [esp + 0x20]
push edx
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ed273
call fcn.0040f010
test eax, eax
jge 0x4ed27a
test esi, esi
je 0x4ed25f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0x10
jne 0x4ed254
cmp dword [esp + 0x18], 0xffffffff
je 0x4ed2c2
push 0
call fcn.005d2e37
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
add esi, ecx
xor ecx, ecx
add esp, 4
cmp edx, ecx
jl 0x4ed2be
jg 0x4ed2a1
cmp eax, esi
jbe 0x4ed2be
lea esi, [esp + 0xc]
call fcn.0044b230
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
cmp ebx, 0xffffffff
je 0x4ed2e8
push 0
call fcn.005d2e37
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebx]
xor ecx, ecx
add esp, 4
cmp edx, ecx
jl 0x4ed2e4
jg 0x4ed2a1
cmp eax, esi
ja 0x4ed2a1
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push 0x810
lea ebx, [esp + 0x18]
call fcn.004ede10
add esp, 0xc
test eax, eax
je 0x4ed254
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
add eax, 0x810
push eax
call fcn.004ede10
add esp, 0xc
test eax, eax
mov esi, ebx
je 0x4ed2a5
call fcn.0044b230
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed360
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6061fb
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push 0x40000000
push eax
mov dword [esp + 0xc8], ebx
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4ed3d3
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4ed3cc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ed4b3
lea esi, [esp + 0x10]
call fcn.004edc30
push 0x8c
lea ecx, [esp + 0x24]
push ebx
push ecx
call fcn.005da970
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x2c], eax
mov eax, edi
mov dword [esp + 0x28], edx
add esp, 0xc
mov dword [esp + 0x24], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4ed415
sub eax, edx
sar eax, 1
cmp eax, 0x3f
jb 0x4ed42e
mov eax, 0x3f
push eax
lea edx, [esp + 0x2c]
push edi
push edx
call fcn.005d31ba
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4ed469
call fcn.0040f010
cmp eax, ebx
jl 0x4ed3bd
mov ecx, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x90
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ed495
call fcn.0040f010
cmp eax, ebx
jl 0x4ed3bd
mov ecx, str.SOFTWARETencentQQPinyinValidKey
call fcn.0047a5a0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4ed4ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.005d28b3
add esp, 0xb4
ret
Function at 0x4ed680
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60966b
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xf4]
xor ebp, ebp
mov ebx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ebp
push ebp
lea ecx, [esp + 0x14]
push 0x40000000
push ecx
mov dword [esp + 0xe0], ebp
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4ed701
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4ed6fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ed890
lea esi, [esp + 0x10]
call fcn.004edc30
push 0x8c
lea edx, [esp + 0x3c]
push ebp
push edx
call fcn.005da970
mov eax, dword [esp + 0xe8]
mov edx, dword [esp + 0xf0]
mov ecx, dword [esp + 0xec]
mov dword [esp + 0x40], eax
mov eax, edi
mov dword [esp + 0x48], edx
add esp, 0xc
mov dword [esp + 0x38], ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4ed743
sub eax, edx
sar eax, 1
cmp eax, 0x3f
jb 0x4ed75c
mov eax, 0x3f
push eax
lea eax, [esp + 0x44]
push edi
push eax
call fcn.005d31ba
mov esi, dword [esp + 0x1c]
add esp, 0xc
push ebp
lea ecx, [esp + 0x1c]
push ecx
push ebp
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4ed7a5
call fcn.0040f010
cmp eax, ebp
jge 0x4ed7a5
cmp esi, ebp
je 0x4ed79e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4ed890
push ebp
lea edx, [esp + 0x18]
push edx
push 0x90
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ed7c9
call fcn.0040f010
cmp eax, ebp
jl 0x4ed793
mov edx, dword [esp + 0xec]
push ebx
push 0x410
lea ecx, [esp + 0x1c]
lea ebx, [esp + 0x18]
call fcn.004edf00
add esp, 8
test eax, eax
je 0x4ed793
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x14]
push ecx
lea edx, [esi + 0x410]
push edx
mov edx, dword [esp + 0xf8]
lea ecx, [esp + 0x1c]
call fcn.004edf00
add esp, 8
test eax, eax
jne 0x4ed81e
lea esi, [esp + 0x10]
call fcn.0044b230
xor eax, eax
jmp 0x4ed890
mov ecx, dword [esp + 0x14]
xor eax, eax
push ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xec]
push 0x400
lea edx, [esp + 0x18]
push edx
xor edx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x15180
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ecx
call fcn.00433e80
test eax, eax
jl 0x4ed811
lea eax, [esp + 0x10]
push eax
mov ecx, 0x10
lea edx, [esp + 0x24]
call fcn.00433ec0
test eax, eax
jl 0x4ed811
mov ecx, str.SOFTWARETencentQQPinyinValidKey
call fcn.0047a5a0
lea esi, [esp + 0x10]
call fcn.0044b230
mov eax, 1
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.005d28b3
add esp, 0xc8
ret
Function at 0x4edad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6095cb
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xa4], eax
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x10], edi
push edi
lea eax, [esp + 0x14]
push 0xc0000000
push eax
mov dword [esp + 0xcc], edi
call fcn.004edca0
add esp, 0xc
test eax, eax
jge 0x4edb4b
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4edc01
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4edc01
push 0x90
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.005da970
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
lea edx, [esp + 0x18]
push edx
push 0x90
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4edb97
call fcn.0040f010
cmp eax, edi
jge 0x4edba1
cmp esi, edi
je 0x4edc01
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4edc01
cmp dword [esp + 0x14], 0x90
jne 0x4edb8a
push edi
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4edbc9
call fcn.0040f010
cmp eax, edi
jl 0x4edb8a
lea esi, [esp + 0x10]
call fcn.004edc30
call fcn.0047a200
push edi
push edi
mov edx, esi
push edx
xor edx, edx
call fcn.00433e80
test eax, eax
jl 0x4edb33
mov eax, esi
push eax
mov ecx, 0x90
lea edx, [esp + 0x20]
call fcn.00433ec0
call fcn.0044b230
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret

Function at 0x4edc30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc08
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0xc04], eax
push 0xbff
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.005da970
mov eax, dword [esi]
add esp, 0xc
push 0
lea ecx, [esp + 4]
push ecx
push 0xc00
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4edc80
call fcn.0040f010
mov ecx, dword [esp + 0xc04]
xor ecx, esp
call fcn.005d28b3
add esp, 0xc08
ret
Function at 0x4edd60
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x609599
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
call fcn.0047ac70
mov dword [esp + 0x14], 0
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
test eax, eax
mov dword [esp + 8], 1
jle 0x4eddd0
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4ede02
cmp ecx, eax
jg 0x4ede02
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4eddd0
push 0x5c
call fcn.0040af90
push 0xb
push str.qqpyacc.dat
push edi
call fcn.0040aee0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4eddef
call fcn.004ec860
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
push 0x80070057
call fcn.00403650
int3

Function at 0x4ede10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5fa138
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x34]
mov edx, dword [ebx]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4ede64
call fcn.0040f010
cmp eax, ebp
jl 0x4edea6
mov dword [esp + 0x34], ebp
push edi
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x34], ebp
call fcn.00415030
mov esi, dword [esp + 0x34]
mov edx, dword [ebx]
push ebp
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4edebb
call fcn.0040f010
cmp eax, ebp
jge 0x4edec1
push esi
call fcn.005d28c2
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
cmp dword [esp + 0x14], edi
jne 0x4ede9d
mov eax, dword [esp + 0x3c]
push eax
push ecx
call fcn.00492d60
mov ecx, dword [esp + 0x40]
add esp, 4
push eax
push edi
mov edx, esi
call fcn.00492ac0
add esp, 0xc
push esi
mov edi, eax
call fcn.005d28c2
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x4edf00
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5fa108
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov eax, dword [esp + 0x28]
mov edx, dword [ebx]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4edf5c
call fcn.0040f010
test eax, eax
jl 0x4edfdd
lea ecx, [edi + 0xa]
mov eax, ecx
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x4edf6d
dec eax
or eax, 0xfffffff8
inc eax
je 0x4edf78
mov edx, 8
sub edx, eax
mov eax, edx
add eax, ecx
mov dword [esi], eax
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0
call fcn.00415030
call fcn.00492d60
mov ecx, dword [esp + 0x2c]
push eax
push edi
mov edi, dword [esp + 0x30]
push ecx
mov ecx, esi
mov edx, edi
call fcn.004927b0
mov esi, dword [esi]
mov eax, dword [ebx]
add esp, 0xc
push 0
lea edx, [esp + 0x2c]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4edff1
call fcn.0040f010
test eax, eax
jge 0x4edff1
push edi
call fcn.005d28c2
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret
push edi
call fcn.005d28c2
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret