joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495b10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbedb
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x638], ebx
mov edi, ecx
mov dword [ebp - 0x63c], edi
mov dword [ebp - 0x634], edi
mov dword [ebp - 0x640], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x495b73
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x634], esi
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x428], ax
test ebx, ebx
je 0x495d03
lea eax, [ebp - 0x428]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x495d03
mov eax, dword [0x4fc128]
lea edi, [ebp - 0x428]
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov ax, word [0x4fc12c]
mov word [ebp - 0x14], ax
nop dword [eax]
mov ax, word [edi]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x495cb2
push 0xffffffffffffffff
push str.0s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.004bd088
lea esi, [ebp - 0x220]
add esp, 0x10
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x495c20
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x495cb2
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x638]
call fcn.004ab8c0
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 1
je 0x495cb2
mov eax, dword [ebp - 0x638]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4f0cf4
lea eax, [ebp - 0x630]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [ebp - 0x630]
add esp, 0x14
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x495c90
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x634]
call fcn.0041ccd0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x495cb2
test ebx, ebx
jne 0x495cca
cmp word [edi], bx
jne 0x495bd0
mov esi, dword [ebp - 0x634]
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
mov edi, dword [ebp - 0x63c]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495d2e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x495d2e
add esi, 0xfffffff0
mov ecx, esi
call fcn.0041c670
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495d2e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x495d50
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbf26
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x458], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x495dc3
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x495dd0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x495f4d
cmp esi, dword [ebp - 0x444]
jne 0x495df1
push dword [ebp - 0x434]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x495e08
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x495dd0
jmp 0x495f41
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x495e1d
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x450], esi
mov dword [ebp - 4], 0
call fcn.0048a560
test eax, eax
je 0x495eb8
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x495f22
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x454]
call fcn.00495b10
mov byte [ebp - 4], 1
push dword [ebp - 0x454]
push 0x4f0274
push 0x515488
call fcn.0048d710
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x454]
add esp, 0xc
push eax
call fcn.0041c6d0
lea ecx, [ebp - 0x454]
call fcn.0041cdd0
jmp 0x495f22
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x495ee2
push 0x105
lea ecx, [ebp - 0x450]
call fcn.0041cb60
mov esi, dword [ebp - 0x450]
push 0x104
push esi
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push ecx
lea ecx, [ebp - 0x450]
call fcn.00421f40
push esi
push 0x4f0274
push 0x515488
call fcn.0048d710
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x450]
add esp, 0xc
push eax
call fcn.0041c6d0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x495f41
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 4
Function at 0x496ea0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc050
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 4], 0
je 0x496ff3
lea ecx, [ebp - 0x28]
call fcn.0048c3e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
jb 0x496f20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop
cmp cx, word [eax + 0x4ec68c]
je 0x496f20
add eax, 2
cmp eax, 4
jb 0x496f00
push 1
push str.0s
lea ecx, [ebp - 0x28]
call fcn.004402a0
lea eax, [ebp - 0x40]
lea esi, [edi + 8]
push eax
mov ecx, esi
call fcn.0048df10
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0048ecb0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x496f54
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433600
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x496f69
mov ecx, dword [esi]
jmp 0x496f6b
mov ecx, esi
push eax
push ecx
push str.Copy_File___s______s_
push 0x515488
call fcn.0048d710
add esp, 0x10
cmp dword [0x515488], 0
jne 0x496fba
mov eax, dword [0x515494]
mov dword [0x515488], 1
test eax, eax
je 0x496fba
mov ecx, dword [0x515490]
test ecx, ecx
je 0x496fb1
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x515494]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x496fcd
mov esi, dword [esi]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], 0
cmp eax, 8
jb 0x496ff3
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x497e30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov ecx, ebx
xor edi, edi
call fcn.0043eea0
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], edi
cmp esi, 0xffffffff
je 0x497f23
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, 0x200000
ja 0x497f1c
lea edx, [eax + 1]
mov dword [ebp - 0x10], edi
mov edi, eax
test edx, edx
jns 0x497eb8
push 0x80070057
call fcn.0041cdf0
mov eax, dword [ebx]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x497ed3
push edx
mov ecx, ebx
call fcn.0043efd0
mov eax, dword [ebx]
mov ebx, eax
mov dword [ebp - 0x18], eax
nop word [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497f1a
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x497f1a
add ebx, eax
sub edi, eax
jne 0x497ee0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push ecx
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00498400
mov edi, 1
jmp 0x497f1c
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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
Function at 0x498620
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0xd38], eax
xor bl, bl
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0xd3c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x4988ba
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push 0x4fa590
push 0xff
push eax
call fcn.00499fb0
add esp, 0x10
lea eax, [ebp - 0x50c]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4988b0
push 0x800
xorps xmm0, xmm0
mov dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd0c]
movq qword [ebp - 0xd30], xmm0
push 0
push eax
mov dword [ebp - 0xd28], 0
mov dword [ebp - 0xd30], 0
mov dword [ebp - 0xd2c], 0
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd30]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4988a3
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0xcfc]
lea eax, [ebp - 0xd0c]
push eax
call fcn.004988d0
lea eax, [ebp - 0x30c]
push eax
push 0
push dword [ebp - 0xcf8]
lea eax, [ebp - 0xd0c]
push eax
call fcn.004988d0
lea eax, [ebp - 0x10c]
push eax
push 1
push dword [ebp - 0xcf4]
lea eax, [ebp - 0xd0c]
push eax
call fcn.004988d0
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.004bba8e
add esp, 4
test eax, eax
jne 0x4987eb
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.004bba8e
add esp, 4
test eax, eax
je 0x4988a9
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.004387d0
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.0046fcc0
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x498827
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.00433760
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.004387d0
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.0046fcc0
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x498863
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.00433760
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd24]
call fcn.004387d0
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.0046fcc0
mov eax, dword [ebp - 0xd10]
cmp eax, 0x10
jb 0x49889f
inc eax
lea ecx, [ebp - 0xd24]
push eax
push dword [ebp - 0xd24]
call fcn.00433760
mov bl, 1
jmp 0x4988a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 1
jl 0x498655
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 0xc
Function at 0x498a60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc1e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498aa2
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498ac9
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
lea edi, [esi + 0x14]
mov dword [ebp - 0x14], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00499f80
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x14], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00499f80
mov dword [ebx], eax
mov byte [ebp - 4], 3
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498b29
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 4
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498b4d
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 5
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498b71
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 6
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x498b95
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
call fcn.004af8a8
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, esi
mov dword [esi], eax
call fcn.00499000
mov ecx, esi
call fcn.004991d0
push dword [esi + 0x24]
lea eax, [esi + 4]
mov ecx, esi
push eax
push edi
call fcn.004993e0
push dword [esi + 0x28]
lea eax, [esi + 8]
mov ecx, esi
push eax
push ebx
call fcn.004993e0
push edi
call fcn.00498f90
push ebx
mov dword [esi + 0xc], eax
call fcn.00498f90
mov dword [esi + 0x10], eax
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 0x498c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8100
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebx + 0x30]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498c85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x2c]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498c9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x28]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498cb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 0x24]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498cd3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00499ee0
push dword [ebx + 0x1c]
call fcn.004a5d0e
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00499ee0
push dword [ebx + 0x14]
call fcn.004a5d0e
mov edx, dword [ebx + 8]
add esp, 4
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498d27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebx + 4]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x498d3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x49ab30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x430]
mov dword [ebp - 0x854], ecx
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x430]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x640]
push 0x20a
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x850]
push 0x20a
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x850]
lea edx, [ebp - 0x640]
lea ecx, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0048bcb0
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x85c], edi
add esp, 8
mov dword [ebp - 0xc], ebx
mov esi, 1
mov dword [ebp - 0x858], esi
cmp ax, word [ebp - 0x220]
je 0x49ac30
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x85c]
lea ecx, [ebp - 0x858]
call fcn.004981e0
add esp, 0xc
test al, al
je 0x49ac30
mov esi, dword [ebp - 0x858]
mov edi, dword [ebp - 0x85c]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x854]
test edx, edx
jne 0x49ac3e
xor ecx, ecx
jmp 0x49ac63
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x854], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49ac50
sub ecx, dword [ebp - 0x854]
sar ecx, 1
push ecx
push edx
mov ecx, 0x5154d8
call fcn.0041ccd0
sub esp, 0x14
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x430]
push eax
lea edx, [ebp - 0x640]
call fcn.0049a520
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add esp, 0x28
push fcn.0049aa90
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x854]
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x854], 0
push eax
push esi
mov dword [ebp - 0xc], 0x4c2c033
mov byte [ebp - 8], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push eax
call ebx
mov eax, dword [0x5153cc]
test eax, eax
je 0x49ace2
mov dword [eax + 0x1c], 0x2710
push fcn.0049aa90
call esi
lea eax, [ebp - 0x854]
mov dword [ebp - 0x854], 0
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4c2c033
push eax
push esi
mov byte [ebp - 8], 0
call edi
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x49b630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
push esi
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x49b74f
test edi, edi
je 0x49b74f
test ecx, ecx
je 0x49b74f
push 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push 0
push eax
call fcn.004a8960
add esp, 0xc
lea eax, [ebp - 0x210]
push 0xffffffffffffffff
push str.QMConfig
push 0x104
push eax
call fcn.004b6dbc
push 0xffffffffffffffff
push str.0s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bd088
push 0x103
push str.QQDoctorQQDoctorComCfg
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004bd088
add esp, 0x30
lea eax, [ebp - 0x210]
push 0
push eax
push ecx
lea ecx, [ebp - 0x214]
call fcn.0049b380
test eax, eax
je 0x49b724
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x49b72a
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp - 0x218]
push 3
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x49b724
mov eax, dword [ebp - 0x214]
mov dword [ebx], esi
xor esi, esi
jmp 0x49b72f
mov eax, dword [ebp - 0x214]
mov esi, 0x80004005
test eax, eax
je 0x49b73a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49c830
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc563
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x511070]
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], vtable.TiXmlNode.0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0x10
jb 0x49c88f
mov eax, dword [esi + 0x20]
jmp 0x49c892
lea eax, [esi + 0x20]
mov byte [eax], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
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 eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
lea ecx, [eax + 0x14]
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x49c903
mov ecx, dword [ecx]
mov byte [ecx], 0
lea ecx, [eax + 0x2c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x49c91f
mov ecx, dword [ecx]
mov byte [ecx], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edi], 0
jne 0x49c94d
xor ecx, ecx
jmp 0x49c95b
mov ecx, edi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c952
sub ecx, ebx
push ecx
push edi
lea ecx, [esi + 0x20]
call fcn.00438c00
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 4