joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002490f
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, esi
je 0x10024ad1
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edi
call ebx
test eax, eax
je 0x10024ad1
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
lea esi, [ebp - 0x218]
call fcn.10024fb4
mov eax, esi
push eax
push 0x100248f5
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
xor edi, edi
test eax, eax
jne 0x10024990
xor ecx, ecx
jmp 0x10024997
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jge 0x10024ac6
test eax, eax
je 0x100249ae
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x100249bf
call fcn.10055955
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov esi, edi
shl esi, 2
cmp dword [esi + eax], 0
je 0x10024a8a
test eax, eax
je 0x100249db
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x100249e6
call fcn.10055955
mov eax, dword [ebp - 0x214]
add eax, esi
push dword [eax]
call ebx
test eax, eax
je 0x10024a7e
cmp dword [ebp - 0x214], 0
je 0x10024a10
mov eax, dword [ebp - 0x210]
sub eax, dword [ebp - 0x214]
sar eax, 2
cmp edi, eax
jb 0x10024a15
call fcn.10055955
push 0xff
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x214]
push dword [esi + eax]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x208]
push str.Button
push eax
call fcn.1005834f
test eax, eax
pop ecx
pop ecx
jne 0x10024a7e
cmp dword [ebp - 0x214], eax
je 0x10024a62
mov eax, dword [ebp - 0x210]
sub eax, dword [ebp - 0x214]
sar eax, 2
cmp edi, eax
jb 0x10024a67
call fcn.10055955
mov eax, dword [ebp - 0x214]
add eax, esi
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x5de
je 0x10024a90
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
inc edi
jmp 0x10024988
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x10024aa9
mov eax, dword [ebp - 0x210]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x10024ab4
call fcn.10055955
mov ecx, dword [ebp - 0x214]
test ecx, ecx
mov esi, dword [ecx + edi*4]
je 0x10024ac2
push ecx
call fcn.10054c62
pop ecx
mov eax, esi
jmp 0x10024ad3
test eax, eax
je 0x10024ad1
push eax
call fcn.10054c62
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054c7d
leave
ret
Function at 0x10024bc9
Capabilities:
Find taskbar

Disassembly:
push 0x28
mov eax, 0x10079f6f
call fcn.1005d4a1
xor edi, edi
cmp dword [ebx + 0x30], edi
mov dword [ebp - 0x14], edi
je 0x10024cd4
cmp dword [ebx + 0x2c], 0xffffffff
je 0x10024cd4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push edi
push str.Shell_TrayWnd
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x10024c23
push eax
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.10024da2
add esp, 0xc
cmp dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x1c]
jne 0x10024c2f
xor esi, esi
jmp 0x10024c37
mov esi, eax
sub esi, dword [ebp - 0x20]
sar esi, 2
test esi, esi
jle 0x10024c98
jmp 0x10024c40
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x10024c50
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp edi, eax
jb 0x10024c55
call fcn.10055955
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push ecx
push dword [ebx + 0x2c]
lea eax, [eax + edi*4]
push dword [ebx + 0x30]
mov ecx, dword [eax]
call fcn.10024df0
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x10024c8d
mov eax, dword [ebp - 0x34]
lea edx, [eax + 8]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp - 0x30]
add edx, 8
mov dword [eax + 4], edx
mov dword [ebp - 0x14], ecx
inc edi
cmp edi, esi
jl 0x10024c3d
cmp dword [ebp - 0x14], 0
jne 0x10024cc0
call fcn.1000946a
test eax, eax
je 0x10024cad
mov esi, dword [ebp + 8]
call fcn.10024ae2
test eax, eax
jne 0x10024cb9
mov esi, dword [ebp + 8]
call fcn.10024b46
test eax, eax
je 0x10024cc0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x20], 0
je 0x10024ccf
push dword [ebp - 0x20]
call fcn.10054c62
pop ecx
mov eax, dword [ebp - 0x14]
jmp 0x10024cd6
xor eax, eax
call fcn.1005d579
ret 4
Function at 0x1002a322
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x10079a14
call fcn.1005d4a1
mov edi, ecx
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 8]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x1002a38b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x1002a39b
mov dword [ebp - 0x28], vtable.CxMemFile.0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x1c], bl
push ebx
push edi
lea edi, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.1002a3a5
mov esi, edi
mov bl, al
call fcn.1002cf3e
mov al, bl
jmp 0x1002a39d
add edi, 0x44
push str.Unable_to_load_resource_
push edi
call fcn.1005ac70
pop ecx
pop ecx
xor al, al
call fcn.1005d579
ret 8

Function at 0x1003196b
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x100319ba
mov eax, dword [esi + 4]
push 0x1c
push 1
push esi
call dword [eax]
mov dword [esi + 0x180], eax
mov dword [eax], 0x10030af3
mov dword [eax + 4], 0x10030c1f
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.10030918
cmp byte [esi + 0x40], 0
je 0x100319b3
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x10031a27
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x10031a1c
mov eax, dword [esi + 8]
test eax, eax
je 0x100319db
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x10031a18
cmp eax, 2
je 0x10031a1c
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100319d0
cmp eax, 3
je 0x100319ff
cmp eax, 1
jne 0x100319d0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x100319d0
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x100319d0
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x10031a45
cmp eax, 0xcc
je 0x10031a45
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.10031a4c
pop esi
ret
Function at 0x1003b92e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x1003b9bb
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.10055010
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1003b97b
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1003b99d
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003ba78
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x1003b9e3
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x1003b9ee
xor eax, eax
jmp 0x1003ba39
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x1003ba0b
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.1004666b
jmp 0x1003ba1c
cmp ecx, 2
jne 0x1003ba23
push edx
push dword [edi + 0x30]
mov edx, dword [edi]
call fcn.1003c24b
pop ecx
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
pop ecx
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.10055010
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x1003ba64
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x1003ba78
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x1003b939
pop edi
pop ebx
leave
ret
Function at 0x10047041
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
xor ecx, ecx
cmp eax, ecx
push edi
je 0x100470a2
cmp dword [ebp + 0xc], ecx
jle 0x100470a2
cmp ebx, ecx
je 0x100470a2
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.10047158
pop ecx
lea edi, [ebp - 0x60]
call fcn.100471ff
mov al, 1
jmp 0x100470a4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10054c7d
leave
ret

Function at 0x10047acb
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10076fc3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1009d600]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x30]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [esp + 0x30], 0
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
add ebx, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx + 4]
lea edi, [esp + 0x1c]
lea esi, [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.1004882b
test al, al
jne 0x10047b79
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x10047b45
call fcn.10055955
mov esi, dword [esp + 0x18]
cmp esi, dword [edi + 4]
jne 0x10047b53
call fcn.10055955
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10047b60
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, dword [edi + 4]
jne 0x10047b6a
call fcn.10055955
and dword [esi + 0x10], 0
lea esi, [esp + 0x14]
call fcn.10048f30
jmp 0x10047b20
mov edi, ebx
call fcn.10048213
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004953a
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x100782bd
call fcn.1005d50a
xor edi, edi
lea eax, [ebp + 8]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.10003495
push 1
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
mov eax, esi
mov dword [ebp - 0x30], 0x5c
call fcn.10007217
cmp eax, 0xffffffff
je 0x100495b4
push eax
mov eax, esi
push eax
xor ebx, ebx
lea esi, [ebp - 0x4c]
call fcn.10006c03
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 2
call fcn.1000388f
push edi
push 1
mov byte [ebp - 4], 1
call fcn.100031e5
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov esi, esp
mov dword [ebp - 0x30], esp
call fcn.10003495
call fcn.1004953a
add esp, 0x1c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x100495c0
lea eax, [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100495fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100495fa
or ebx, 0xffffffff
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.100031e5
push edi
push 1
lea esi, [ebp + 8]
call fcn.100031e5
mov eax, ebx
call fcn.1005d58d
ret
xor ebx, ebx
jmp 0x100495dc
Function at 0x1004968c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x8c], 0
je 0x100496a3
xor eax, eax
jmp 0x100497f1
cmp dword [edi + 4], 0
je 0x1004969c
push ebx
push esi
push dword [ebp + 8]
lea esi, [edi + 0x10]
call fcn.10002de9
mov ebx, 0x100868d0
push ebx
call fcn.10054c67
pop ecx
lea esi, [edi + 0x2c]
mov ecx, ebx
call fcn.100035ef
push ebx
call fcn.10054c67
pop ecx
lea esi, [edi + 0x48]
mov ecx, ebx
call fcn.100035ef
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x100496f1
push dword [ebp + 0xc]
lea esi, [edi + 0x2c]
call fcn.10002de9
jmp 0x100496fe
mov ecx, dword [ebp + 8]
push esi
lea edx, [edi + 0x2c]
call fcn.100498d8
pop ecx
cmp dword [edi + 8], ebx
jne 0x10049711
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
cmp eax, ebx
jne 0x1004971f
xor eax, eax
jmp 0x100497ef
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x88]
cmp ecx, ebx
je 0x1004973c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x88], ebx
call fcn.10049e94
test eax, eax
je 0x1004975a
push 0x58
call fcn.1005558d
cmp eax, ebx
pop ecx
je 0x10049788
mov esi, eax
call fcn.1004a17c
jmp 0x1004978a
push 0x30
call fcn.1005558d
cmp eax, ebx
pop ecx
je 0x10049788
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 0x1004978a
xor eax, eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.STATIC
push ebx
mov dword [edi + 0x88], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x10049e12
push 0xfffffffffffffffc
push eax
mov dword [edi + 0x64], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x100499cf
push ebx
push ebx
mov dword [edi + 0x8c], 1
mov dword [ebp - 4], ebx
call fcn.100556f1
add esp, 0x18
cmp eax, ebx
mov dword [edi + 0xc], eax
jne 0x100497e6
mov dword [edi + 0x8c], ebx
xor ecx, ecx
cmp eax, ebx
setne cl
mov eax, ecx
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x100498d8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
mov eax, dword [ebp + 0x3ac]
and word [ebp - 0x74], 0
push ebx
push esi
push edi
push 0x410
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x72]
mov ebx, edx
push 0
push eax
mov esi, ecx
mov dword [ebp - 0x7c], ebx
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x2f
push esi
call fcn.10054c8c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10049991
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.QMDownload
lea eax, [ebp - 0x74]
push eax
call edi
sub esp, 0x1c
lea ecx, [ebp - 0x74]
mov eax, esp
mov dword [ebp - 0x80], esp
push ecx
call fcn.10002dbd
call fcn.1004953a
add esp, 0x1c
lea ebx, [esi + 2]
push ebx
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call fcn.10054c67
mov esi, dword [ebp - 0x7c]
pop ecx
lea ecx, [ebp - 0x74]
call fcn.100035ef
mov esi, dword [ebp - 0x78]
push ebx
call fcn.10002de9
jmp 0x100499b7
mov edi, 0x100868d0
push edi
call fcn.10054c67
pop ecx
mov ecx, edi
mov esi, ebx
call fcn.100035ef
push edi
call fcn.10054c67
mov esi, dword [ebp - 0x78]
pop ecx
mov ecx, edi
call fcn.100035ef
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054c7d
add ebp, 0x3a4
leave
ret

Function at 0x10049d49
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
mov esi, ecx
call fcn.10054f10
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.1005c9e9
add esp, 0x14
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 0x10049dcb
sub esp, 0x1c
lea ecx, [ebp - 0x210]
mov eax, esp
mov dword [ebp - 0x214], esp
push ecx
call fcn.10002dbd
call fcn.1004953a
add esp, 0x1c
cmp dword [esi + 0x44], 8
jb 0x10049dd6
mov eax, dword [esi + 0x30]
jmp 0x10049dd9
lea eax, [esi + 0x30]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x10049e00
cmp dword [esi + 0x44], 8
jb 0x10049df6
mov esi, dword [esi + 0x30]
jmp 0x10049df9
add esi, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.10054c7d
leave
ret 8
Function at 0x10049e94
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10049eda
inc eax
jmp 0x10049f03
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], 5
jne 0x10049eff
cmp dword [ebp - 0x78], eax
jne 0x10049ef1
cmp word [ebp + 0x94], ax
jmp 0x10049eff
cmp dword [ebp - 0x78], 0
jne 0x10049f03
cmp word [ebp + 0x94], 3
jae 0x10049f03
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.10054c7d
add ebp, 0xa0
leave
ret
Function at 0x1004aa78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x2c
call fcn.1005558d
xor edi, edi
cmp eax, edi
pop ecx
je 0x1004aa9f
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], edi
mov word [eax + 4], di
mov esi, eax
jmp 0x1004aaa1
xor esi, esi
push dword [ebp + 0xc]
call fcn.10002de9
push 0xc
lea ebx, [esi + 0x1c]
push edi
push ebx
mov dword [esi + 0x28], 2
call fcn.10054f10
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1004a9ea
push edi
push edi
mov dword [ebp - 4], edi
call fcn.100556f1
add esp, 0x24
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x1004aae4
mov eax, esi
call fcn.10049fa0
jmp 0x1004ab19
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1004ab09
cmp dword [ebx], 3
jne 0x1004ab09
push 0xc
push ebx
push 0x26
push dword [ebp + 8]
call fcn.1004b03e
add esp, 0x10
mov eax, esi
call fcn.10049fa0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1004adb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100a1dd8], 0
jne 0x1004ae32
and word [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.10054f10
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
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]
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x100a1dd8], eax
mov eax, ecx
jmp 0x1004ae35
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054c7d
leave
ret

Function at 0x1004b433
Capabilities:
Create thread

Disassembly:
push 0x14
mov eax, 0x1007a37e
call fcn.1005d4a1
mov esi, ecx
push str.CDownload::Init__
push 3
call fcn.1005226d
xor edi, edi
cmp dword [esi + 0xc], edi
pop ecx
pop ecx
je 0x1004b45e
xor eax, eax
inc eax
jmp 0x1004b4e8
cmp dword [esi + 0x64], edi
mov dword [esi + 0xb8], 0x5dc
jne 0x1004b4a6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x68], eax
call ebx
push edi
push edi
push edi
push edi
mov dword [esi + 0x6c], eax
call ebx
mov dword [esi + 0x70], eax
lea eax, [esi + 0x74]
push eax
push edi
push esi
push 0x1004cc75
push edi
push edi
call fcn.100556f1
add esp, 0x18
mov dword [esi + 0x64], eax
lea eax, [esi + 0x8c]
mov dword [ebp - 0x14], eax
add eax, 4
push eax
mov dword [ebp - 0x18], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
xor edi, edi
push eax
inc edi
lea eax, [esi + 0x78]
mov dword [ebp - 0x20], edi
call fcn.1004d2d5
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea esi, [ebp - 0x18]
call fcn.1004d4fa
mov eax, edi
call fcn.1005d579
ret
Function at 0x1004b569
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push 0x10
mov eax, 0x1007828a
call fcn.1005d4a1
push str.CDownload::Uninit__
push 3
call fcn.1005226d
pop ecx
lea eax, [edi + 0x8c]
mov dword [ebp - 0x10], eax
pop ecx
add eax, 4
push eax
mov dword [ebp - 0x14], vtable.fund::lock::scoped_lock_class_fund::lock::critical_section_.0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x1c], 2
call fcn.1004d2d5
push dword [edi + 0x70]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
call ebx
lea esi, [ebp - 0x14]
call fcn.1004d4fa
push dword [edi + 0x68]
call ebx
push dword [edi + 0x70]
call ebx
cmp dword [edi + 0x64], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1004b611
push 0x1388
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1004b608
push 0x3ff
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push str.Uninit::TerminateThread
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x64]
call esi
and dword [edi + 0x64], 0
push dword [edi + 0x70]
call esi
push dword [edi + 0x68]
call esi
push dword [edi + 0x6c]
call esi
call fcn.1005d579
ret