joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c7f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x49c90c
test edi, edi
je 0x49c90c
test ecx, ecx
je 0x49c90c
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0
push 0
push eax
call fcn.004e0230
push 0xffffffffffffffff
push 0x5399ec
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f3925
push 0xffffffffffffffff
push 0x536ac0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f3650
push 0x103
push str.QQDoctorQQDoctorComCfg
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004f3650
add esp, 0x3c
lea eax, [ebp - 0x20c]
push 0
push eax
push ecx
lea ecx, [ebp - 0x210]
call fcn.0049c550
test eax, eax
je 0x49c8e1
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x49c8e7
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x214]
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49c8e1
mov eax, dword [ebp - 0x210]
mov dword [ebx], esi
xor esi, esi
jmp 0x49c8ec
mov eax, dword [ebp - 0x210]
mov esi, 0x80004005
test eax, eax
je 0x49c8f7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49dbd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511448
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x48]
mov dword [esi], 0x519048
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x535d00
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.0044c0b0
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a27c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511835
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0044ae50
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, dword [ebp - 0x18]
cmovae edx, dword [ebp - 0x28]
test esi, esi
je 0x4a28df
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x4a2841
nop dword [eax + eax]
cmp ecx, edx
je 0x4a28df
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x4a2830
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4a28df
cmp esi, ecx
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovb ecx, esi
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0044a760
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a28b7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a28ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a29a7
push edx
push ecx
call fcn.004de45a
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
push eax
movq qword [ebp - 0x18], xmm0
call fcn.0044ae50
call fcn.004a27c0
add esp, 0x18
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a2909
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a2909
or esi, 0xffffffff
jmp 0x4a290b
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a2941
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2937
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a29a7
push edx
push ecx
call fcn.004de45a
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4a298b
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a2981
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a29a7
push edx
push ecx
call fcn.004de45a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
call fcn.004e364a
int3
Function at 0x4a45b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50baf0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x40]
mov dword [edi], 0x53a65c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x4a4622
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4a460b
mov dword [esi + 0x20], 0
call fcn.004a5df0
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call eax
mov ecx, dword [edi + 0x2c]
call fcn.004a44b0
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4a4635
call fcn.004a5df0
mov dword [edi + 8], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4a4648
call fcn.004a5df0
mov dword [edi + 4], 0
mov eax, dword [edi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4a465f
push eax
call ebx
mov dword [edi + 0x34], 0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x4a4670
push eax
call ebx
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x38]
test eax, eax
je 0x4a4681
push eax
call ebx
mov dword [edi + 0x38], 0
cmp dword [edi + 0x3c], 0
je 0x4a46b3
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 0x3a98
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x3c]
call ebx
mov dword [edi + 0x3c], 0
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [edi + 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [edi + 0x20]
cmp ecx, 8
jb 0x4a46fa
mov eax, dword [edi + 0xc]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x4a46f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4726
mov eax, edx
push ecx
push eax
call fcn.004de45a
add esp, 8
xor eax, eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 7
mov word [edi + 0xc], ax
mov dword [edi], 0x53a678
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e364a
int3
Function at 0x4a59b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554630]
push ebx
movzx ebx, word [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test eax, eax
jne 0x4a5a51
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5a2b
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpConnect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554630], eax
test eax, eax
jne 0x4a5a51
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push 0
push ebx
push edi
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x4a5a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55463c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4a5b11
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5aeb
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpOpenRequest
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x55463c], eax
test eax, eax
jne 0x4a5b11
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push str.HTTP_1.1
push edi
push 0x53a5d0
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x4a5b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554628]
push esi
mov esi, ecx
test eax, eax
jne 0x4a5bd7
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5bb3
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpSendRequest
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554628], eax
test eax, eax
jne 0x4a5bd7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x4a5c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x214], eax
mov esi, edx
mov eax, dword [0x554644]
push edi
mov edi, ecx
test eax, eax
jne 0x4a5cbb
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5c95
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpQueryHeaders
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554644], eax
test eax, eax
jne 0x4a5cbb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
push ebx
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x4a5cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5475f8
push 0x4e0800
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x550144]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov eax, dword [0x554624]
test eax, eax
jne 0x4a5d9f
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5d8a
push 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004e0230
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpReadData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554624], eax
test eax, eax
je 0x4a5dc9
mov dword [ebp - 4], 0
push 0
push dword [ebp + 8]
push edi
push esi
call eax
jmp 0x4a5dbc
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x4a5df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x554634]
push esi
mov esi, ecx
test eax, eax
jne 0x4a5e87
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5e63
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpCloseHandle
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554634], eax
test eax, eax
jne 0x4a5e87
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push esi
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x4a5ea0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x547618
push 0x4e0800
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x550144]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov eax, dword [0x554640]
test eax, eax
jne 0x4a5f4d
mov eax, dword [0x554128]
test eax, eax
jne 0x4a5f38
push 0x20a
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004e0230
add esp, 0xc
push 0x104
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpOpen
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x554640], eax
test eax, eax
je 0x4a5f7b
mov dword [ebp - 4], 0
push 0x10000000
push 0
push 0
push 1
push esi
call eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a5f7d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret

Function at 0x4a5fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55461c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
mov edi, ecx
test eax, eax
jne 0x4a6040
mov eax, dword [0x554128]
test eax, eax
jne 0x4a601a
push 0x20a
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554128], eax
push str.WinHttpSetOption
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x55461c], eax
test eax, eax
jne 0x4a6040
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
push ebx
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret
Function at 0x4a7060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511aeb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004a7210
lea ecx, [edi + 4]
call fcn.004a7220
lea ecx, [edi + 0x18]
mov dword [edi], vtable.C7zExtractImpl.0
mov dword [edi + 4], vtable.C7zExtractImpl.1.0
call fcn.0047d1f0
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], 0
call fcn.0047d1f0
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.004a6f90
mov dword [edi + 8], 0
mov eax, edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a90a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x14]
call fcn.0047d1f0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push str.crc.dat
call fcn.004a9d00
test eax, eax
jne 0x4a90f8
xor esi, esi
jmp 0x4a9184
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push 0x20
push str.qqpcmgr_pkg_crc_file
push esi
call ebx
lea eax, [ebp - 0x10]
add edi, 0x24
push eax
mov ecx, edi
call fcn.004aab80
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004aaca0
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7470
test al, al
je 0x4a9178
lea ecx, [ebp - 0x10]
call fcn.004a74f0
mov ecx, dword [eax]
call fcn.0044a620
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
lea ecx, [ebp - 0x10]
call fcn.004a7550
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004aaca0
push eax
lea ecx, [ebp - 0x10]
call fcn.004a7470
test al, al
jne 0x4a9137
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
lea ecx, [ebp - 0x14]
call fcn.0044c080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aa1a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5120dd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.0047d1f0
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0
push esi
push dword [edi]
lea eax, [ebp - 0x10]
push str._s.bad_u
push eax
call fcn.0048cfa0
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0044c0a0
push eax
mov ecx, edi
call fcn.0044c0a0
push eax
call fcn.004e7a97
add esp, 8
test eax, eax
je 0x4aa224
call ebx
cmp eax, 0xb7
jne 0x4aa220
inc esi
cmp esi, 0xa
jl 0x4aa1e0
xor esi, esi
jmp 0x4aa234
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0048d300
mov esi, 1
lea ecx, [ebp - 0x10]
call fcn.0044c080
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ab140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov dword [esi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [esi + 0xc]
call fcn.0044c0a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4ab1ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab1be
cmp eax, 0x20
je 0x4ab1be
cmp eax, 2
je 0x4ab1ae
cmp eax, 3
je 0x4ab1ae
mov dword [esi + 0x1c], 0x6c
mov eax, dword [esi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1c], 0x6b
mov eax, dword [esi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1c], 0x67
mov eax, dword [esi + 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [esi + 0x14]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
je 0x4ab1f7
push edi
mov dword [esi + 0x1c], 0x64
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004dbd50
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [esi + 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ab234
mov edx, dword [ebp - 4]
cmp edx, dword [esi + 0x14]
jne 0x4ab234
mov ecx, ebx
call fcn.00401400
cmp eax, dword [esi + 0x10]
je 0x4ab23b
mov dword [esi + 0x1c], 0x65
jmp 0x4ab23b
mov dword [esi + 0x1c], 0x6a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x4ab24f
push ebx
call fcn.004de468
add esp, 4
mov eax, dword [esi + 0x1c]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret