joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428870
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46f988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.004293f0
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x47264c]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x472458]
test eax, eax
je 0x428919
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00428500
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x47248c]
push edi
lea ecx, [esp + 0x4c]
call fcn.004678c1
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00437d40
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x4720e0]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x47241c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x472498]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00467933
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x428e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f9b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00426a50
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x428ea9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00423eb0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00423ea0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.00428500
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x47241c]
push 0
lea ecx, [esp + 0x4c]
call fcn.004678c1
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00437d40
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.004264b0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4720e4]
mov ecx, ebx
call fcn.00423e20
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x428f74
push edi
mov ecx, esi
call fcn.004265c0
push eax
push ebp
mov ecx, esi
call fcn.00426780
cmp eax, dword [esp + 0x40]
jg 0x428f70
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x428f4e
mov eax, ebx
jmp 0x428f7a
cmp edi, ebx
jl 0x428f78
mov eax, ebx
jmp 0x428f7a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x428f8b
mov dword [esp + 0x30], eax
jmp 0x428f96
cmp edi, ebx
jl 0x428f91
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00423de0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x428fdd
push edi
mov ecx, esi
call fcn.004264e0
push eax
push ebx
mov ecx, esi
call fcn.004268b0
cmp eax, dword [esp + 0x44]
jg 0x428fd5
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x428faf
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x428fe7
cmp edi, ebp
jl 0x428fe1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x428fe7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x428ff0
mov ecx, eax
jmp 0x428ff9
cmp edi, ebp
jl 0x428ff6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.004264d0
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00467933
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x42efc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46fe68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42eff9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42f10c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f00d
mov eax, 0xffffffc7
jmp 0x42f10e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42f01e
cmp dword [esi + 8], eax
jne 0x42f00d
cmp dword [esi + 8], eax
jne 0x42f037
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42f037
mov eax, 0xffffffc7
jmp 0x42f10e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42f04b
push eax
mov ecx, ebx
call fcn.0042e7f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403440
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42f07c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403460
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042df60
test eax, eax
mov dword [esp + 0x38], eax
je 0x42f0af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6d1c58
call fcn.00403640
mov eax, dword [esp + 0x38]
jmp 0x42f10e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042ee20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42f0f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042ee40
mov esi, eax
test esi, esi
jne 0x42f123
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042ee20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42f0c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6d1c58
call fcn.00403640
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6d1c58
call fcn.00403640
mov eax, esi
jmp 0x42f10e
Function at 0x4383a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47241c]
push 0
lea ecx, [esp + 0x20]
call fcn.004678c1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437d40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004677ef
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00463fd9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00463fd9
push 1
push 0
push 0
mov ecx, esi
call fcn.00463f81
push 1
push 0
push 1
mov ecx, esi
call fcn.00463f81
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467933
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438520
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4704b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004678c1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437d40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004677ef
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47241c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4385e4
cmp dword [esp + 0x40], 1
jne 0x4385e2
cmp ecx, eax
jge 0x4385e4
mov eax, ecx
cmp eax, 0xc8
jge 0x4385f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004383a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x472420]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00467933
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x438d60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470523
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004623f6
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x6d5e20
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x6d4ac8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4720b0]
push eax
mov ecx, edi
call fcn.00467b69
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004690c1
test eax, eax
je 0x438e7c
mov ecx, dword [esp + 0x3c]
call fcn.00467b96
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4723fc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438e40
push edi
mov ecx, esi
call fcn.00465154
mov ecx, esi
call fcn.00438fe0
cmp dword [esp + 0x38], 1
jne 0x438e75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004652be
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x43b8a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b8d3
push esi
call fcn.0043e9b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b8cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b959
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b942
mov eax, dword [esi + 8]
test eax, eax
je 0x43b8f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b93e
cmp eax, 2
je 0x43b942
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b8ea
cmp eax, 3
je 0x43b91d
cmp eax, 1
jne 0x43b8ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b8ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b8ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b980
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b968
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b980
add esp, 4
pop esi
ret
Function at 0x401750
Capabilities:
Create thread

Disassembly:
cmp dword [edi + 0x8c], 0
push ebp
mov ebp, dword [esp + 8]
je 0x401764
xor eax, eax
pop ebp
ret 8
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401770
push ebx
push esi
sub eax, edx
sar eax, 1
push eax
push ebp
lea esi, [edi + 0x10]
call fcn.004024d0
push 0
lea ebx, [edi + 0x2c]
push 0x4ef7d8
mov esi, ebx
call fcn.004024d0
push 0
lea esi, [edi + 0x48]
push 0x4ef7d8
call fcn.004024d0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4017da
mov eax, edx
lea esi, [eax + 2]
jmp 0x4017c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017c0
sub eax, esi
sar eax, 1
push eax
push edx
mov esi, ebx
call fcn.004024d0
jmp 0x4017e7
push esi
mov edx, ebx
mov ecx, ebp
call fcn.00401a90
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x4017fe
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x40180d
pop esi
pop ebx
xor eax, eax
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [edi + 8], ebx
jne 0x401822
push ebx
push ebx
push ebx
push ebx
call esi
mov dword [edi + 8], eax
mov ecx, dword [edi + 0x88]
cmp ecx, ebx
je 0x40183a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x88], ebx
call fcn.00401fe0
test eax, eax
je 0x40185a
push 0x58
call fcn.004b9230
add esp, 4
cmp eax, ebx
je 0x40188a
mov esi, eax
call fcn.00402830
jmp 0x40188c
push 0x30
call fcn.004b9230
add esp, 4
cmp eax, ebx
je 0x40188a
mov dword [eax], vtable.CWininetFile.0
mov dword [eax + 0x24], 7
mov dword [eax + 0x20], ebx
mov word [eax + 0x10], bx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
jmp 0x40188c
xor eax, eax
push ebx
push ebx
push ebx
push ebx
push 0x14
push 0x96
push 0x7d
push 0x19
push ebx
push ebx
push 0x4ef794
push ebx
mov dword [edi + 0x88], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x4384b0
push 0xfffffffffffffffc
push eax
mov dword [edi + 0x64], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push 0x401b90
push ebx
push ebx
mov dword [edi + 0x8c], 1
mov dword [esp + 0x28], ebx
call fcn.004b9394
add esp, 0x18
cmp eax, ebx
mov dword [edi + 0xc], eax
jne 0x4018f1
mov dword [edi + 0x8c], ebx
mov ecx, dword [edi + 8]
push 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
cmp dword [edi + 0x90], ebx
pop esi
pop ebx
sete al
pop ebp
ret 8
Function at 0x401a90
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
mov ebp, dword [esp + 0x420]
push esi
push edi
push 0x410
lea eax, [esp + 0x12]
push 0
push eax
mov edi, ecx
mov esi, edx
mov word [esp + 0x18], 0
call fcn.004be320
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push edi
call fcn.004b8a34
mov edi, eax
add esp, 8
test edi, edi
je 0x401b55
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.QMDownload
lea edx, [esp + 0x14]
push edx
call ebx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add edi, 2
push edi
lea ecx, [esp + 0x14]
push ecx
call ebx
lea eax, [esp + 0x10]
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b23
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.004024d0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b42
sub eax, edx
sar eax, 1
push eax
push edi
jmp 0x401b68
push 0
push 0x4ef7d8
call fcn.004024d0
push 0
push 0x4ef7d8
mov esi, ebp
call fcn.004024d0
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b84de
add esp, 0x418
ret

Function at 0x401fe0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
call fcn.004be320
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402075
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x402038
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x402051
cmp word [esp + 0x114], ax
jae 0x402075
xor eax, eax
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004b84de
add esp, 0x120
ret
test eax, eax
jne 0x402075
cmp word [esp + 0x114], 3
jae 0x402075
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004b84de
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
mov eax, 1
call fcn.004b84de
add esp, 0x120
ret
Function at 0x403430
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x2c
mov edi, eax
call fcn.004b9230
add esp, 4
test eax, eax
je 0x40345c
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], 0
mov word [eax + 4], 0
mov esi, eax
jmp 0x40345e
xor esi, esi
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403463
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004024d0
xor eax, eax
mov dword [esi + 0x28], 2
lea edi, [esi + 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x403330
push 0
push 0
call fcn.004b9394
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4034bc
call fcn.004025b0
pop edi
pop esi
pop ebx
pop ecx
ret 4
push 0x2710
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4034e3
cmp dword [edi], 3
jne 0x4034e3
mov ecx, dword [esp + 0x14]
push 0xc
push edi
push 0x26
push ecx
call fcn.00403af0
add esp, 0x10
call fcn.004025b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x403700
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x5154b4], 0
jne 0x403785
push 0x208
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.004be320
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4ef8ac
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x5154b4], eax
mov eax, ecx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004b84de
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
mov eax, 1
call fcn.004b84de
add esp, 0x210
ret
Function at 0x404850
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x840
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x83c], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x208
lea eax, [esp + 0x22e]
push esi
push eax
mov ebx, ecx
mov word [esp + 0x234], si
call fcn.004be320
add esp, 0xc
push 0x104
lea ecx, [esp + 0x22c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea edx, [esp + 0x22]
push esi
push edx
mov word [esp + 0x28], si
call fcn.004be320
push 0x208
lea eax, [esp + 0x446]
push esi
push eax
mov word [esp + 0x44c], si
call fcn.004be320
push 0x208
lea ecx, [esp + 0x65e]
push esi
push ecx
mov word [esp + 0x664], si
call fcn.004be320
lea edx, [esp + 0x458]
push edx
lea eax, [esp + 0x250]
push eax
lea edx, [esp + 0x66c]
lea ecx, [esp + 0x48]
call fcn.004044b0
xor ebp, ebp
xor edi, edi
add esp, 0x2c
cmp word [esp + 0x1c], si
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
je 0x404958
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
call fcn.004047a0
add esp, 0xc
test eax, eax
jne 0x404950
mov dword [esp + 0x10], 1
jmp 0x404958
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp ebx, esi
jne 0x404960
xor eax, eax
jmp 0x404974
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404965
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, 0x515618
call fcn.00401450
mov ecx, dword [esp + 0x10]
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x238]
lea ecx, [esp + 0x444]
call fcn.00403e90
add esp, 0x10
call fcn.004043b0
mov eax, dword [0x5154b8]
pop edi
cmp eax, esi
pop esi
pop ebp
pop ebx
je 0x4049be
mov dword [eax + 0x1c], 0x2710
call fcn.004043b0
mov ecx, dword [esp + 0x83c]
xor ecx, esp
mov eax, 1
call fcn.004b84de
add esp, 0x840
ret
Function at 0x4050e0
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov ebx, eax
test edi, edi
mov esi, dword [edi + 4]
je 0x405100
cmp edi, edi
je 0x405105
call fcn.004b9c0e
cmp ebx, esi
je 0x405166
test edi, edi
jne 0x405112
call fcn.004b9c0e
cmp ebx, dword [edi + 4]
jne 0x40511c
call fcn.004b9c0e
mov ecx, dword [ebx + 8]
cmp dword [ecx + 0x14], 0
je 0x40514e
mov edx, dword [ecx + 4]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x40514e
add eax, 0xffffffff
js 0x40515c
mov ecx, edx
cmp eax, dword [ecx - 0xc]
jg 0x40515c
cmp word [ecx + eax*2], 0x30
jne 0x40514e
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add dword [esp + 0xc], 1
cmp ebx, dword [edi + 4]
jne 0x405158
call fcn.004b9c0e
mov ebx, dword [ebx]
jmp 0x4050f5
push 0x80070057
call fcn.00401340
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret