joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x312b1999
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x773c3a45
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0xae1aa4
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00ae1aa4
ret
Function at 0x4844d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f5a4
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 ebx, ecx
mov dword [ebp - 0x10], ebx
push 0
lea ecx, [ebp - 0x1c]
call fcn.004dce7f
mov dword [ebp - 4], 0
mov edi, dword [0x5547f0]
mov eax, dword [0x5545e8]
mov dword [ebp - 0x18], eax
test edi, edi
jne 0x48454f
push edi
lea ecx, [ebp - 0x14]
call fcn.004dce7f
cmp dword [0x5547f0], edi
jne 0x484541
mov eax, dword [0x553220]
inc eax
mov dword [0x553220], eax
mov dword [0x5547f0], eax
lea ecx, [ebp - 0x14]
call fcn.004dced7
mov edi, dword [0x5547f0]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
cmp edi, dword [ecx + 0xc]
jae 0x48456a
mov eax, dword [ecx + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x4845fa
jmp 0x48456c
xor esi, esi
cmp byte [ecx + 0x14], 0
je 0x484582
call fcn.004dd086
cmp edi, dword [eax + 0xc]
jae 0x484586
mov eax, dword [eax + 8]
mov esi, dword [eax + edi*4]
test esi, esi
jne 0x4845fa
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x484591
mov esi, eax
jmp 0x4845fa
push 8
call fcn.004de42a
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 0x4845ba
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x4845bf
lea eax, [ecx + 0x1c]
jmp 0x4845bf
mov eax, 0x535d00
push eax
lea ecx, [ebp - 0x50]
call fcn.00457d20
lea ecx, [ebp - 0x50]
mov dword [esi + 4], 0
mov dword [esi], vtable.std::codecvt_char__char__struct__Mbstatet_.0
call fcn.00457dd0
mov dword [ebp + 8], esi
push esi
mov byte [ebp - 4], 2
call fcn.004dd05a
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 4]
mov dword [0x5545e8], esi
lea ecx, [ebp - 0x1c]
call fcn.004dced7
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x48462a
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 0x484910
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 0x4849f8
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 0x4849e7
jg 0x484950
test edx, edx
je 0x4849e7
nop dword [eax]
call fcn.0045ada0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4849a4
jg 0x484967
test esi, esi
je 0x4849a4
cmp ebx, eax
jg 0x484977
jl 0x484971
cmp edi, esi
jae 0x484977
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.004dfcb0
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 0x4849cb
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 0x4849e1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x484950
jl 0x4849e1
test edi, edi
jne 0x484950
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 0x484a1a
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x484a1c
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x484a9a
jg 0x484a2f
test esi, esi
je 0x484a9a
test eax, eax
jl 0x484a7e
jg 0x484a39
test ebx, ebx
je 0x484a7e
cmp edi, eax
jg 0x484a49
jl 0x484a43
cmp esi, ebx
jae 0x484a49
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004dfcb0
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 0x484a9a
jg 0x484a81
test esi, esi
je 0x484a9a
jmp 0x484a81
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x484a9a
push eax
push esi
push 1
push edx
call fcn.004f5fcc
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 0x484ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x485020
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x48505c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x48505c
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.004de46d
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x485144
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x485084
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 0x4850b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004f58df
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.004de46d
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 0x485117
sub eax, 1
je 0x485117
sub eax, 2
jne 0x485144
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.004f58df
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.004de46d
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x485134
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004f5fcc
add esp, 0x10
cmp edi, eax
jne 0x485144
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x485047
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 4
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], vtable.TiXmlDocument.0
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 0x4a2e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0
push 0x5364dc
lea edi, [ebx + 0x28]
mov dword [ebp - 0x424], ebx
mov ecx, edi
mov dword [ebp - 0x41c], eax
call fcn.0044a760
push 0
add ebx, 0x40
push 0x5364dc
mov ecx, ebx
call fcn.0044a760
test esi, esi
je 0x4a2ead
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2e95
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
jmp 0x4a2fc1
push 0x412
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push dword [ebp - 0x41c]
call fcn.004e0ac7
mov esi, eax
add esp, 8
test esi, esi
je 0x4a2faa
push str.QMDownload
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 0x18
lea ecx, [ebp - 0x418]
mov edx, esp
lea eax, [ecx + 2]
mov dword [ebp - 0x420], eax
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2f30
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a760
call fcn.004a27c0
add esp, 0x18
lea eax, [ebp - 0x418]
add esi, 2
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2f74
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044a760
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2f97
sub ecx, edx
sar ecx, 1
push ecx
push esi
jmp 0x4a2fbf
push 0
push 0x5364dc
mov ecx, edi
call fcn.0044a760
push 0
push 0x5364dc
mov ecx, ebx
call fcn.0044a760
push dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x424]
call fcn.004a29f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3ab0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov esi, ecx
call fcn.004e0230
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004e7ac4
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a3b56
sub esp, 0x18
lea ecx, [ebp - 0x210]
mov edx, esp
lea ebx, [ecx + 2]
mov dword [edx], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], 7
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3b30
sub ecx, ebx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.0044a760
call fcn.004a27c0
add esp, 0x18
add esi, 0x28
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a3b63
mov eax, dword [esi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x4a3b84
cmp dword [esi + 0x14], 8
jb 0x4a3b7d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de46d
mov esp, ebp
pop ebp
ret 8
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], vtable.QQDectector2::CWinHttpFile.0
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], vtable.QQDectector2::CDownloadFile.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
call fcn.004e364a
int3
Function at 0x4a5640
Capabilities:
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x547598
push 0x4e0800
mov eax, dword fs:[0]
push eax
sub esp, 0x268
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 dword [ebp - 0x40], ecx
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
xor edi, edi
mov dword [ebp - 0x58], edi
xor esi, esi
mov dword [ebp - 0x5c], esi
movups xmm0, xmmword [0x53a6ac]
movups xmmword [ebp - 0x3c], xmm0
movups xmm0, xmmword [0x53a6bc]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], 4
test edx, edx
jne 0x4a56c3
xor eax, eax
jmp 0x4a5818
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 4], esi
push 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x48], 0x20
je 0x4a56ee
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x40]
jmp 0x4a5812
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x4a5718
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5700
sub ecx, edi
sar ecx, 1
je 0x4a5718
mov eax, 3
jmp 0x4a571c
xor eax, eax
xor edx, edx
push 0
push 0
push edx
push eax
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.1__QQPCMgr7.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x58], edi
test edi, edi
je 0x4a56dd
push 0
push 0x84000100
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x64]
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x4a56dd
push 0x20a
push 0
lea eax, [ebp - 0x278]
push eax
call fcn.004e0230
add esp, 0xc
mov dword [ebp - 0x44], 0x208
push 0
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x278]
push 0x2f
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x4c], 0
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a56dd
cmp dword [ebp - 0x4c], 0xc8
jne 0x4a56dd
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 0x40]
test eax, eax
je 0x4a57dd
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0x24], eax
mov eax, 1
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a5812
mov dword [ecx + 4], edi
mov dword [ecx + 8], esi
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 8