joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10325d5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1003cf8
call fcn.01032aa8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1032610
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1032610
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1032628
cmp eax, 0x20b
je 0x1032615
mov dword [ebp - 0x1c], edi
jmp 0x103263c
cmp dword [ecx + 0x84], 0xe
jbe 0x1032610
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1032636
cmp dword [ecx + 0x74], 0xe
jbe 0x1032610
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1097884], 0xffffffff
or dword [0x1097888], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1097570]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x109756c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1097880], eax
call fcn.01022a55
cmp dword [0x1091430], edi
jne 0x1032699
push fcn.01022a55
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01032a91
push 0x108f0c0
push 0x108f0bc
call sub.msvcrt.dll__initterm
mov eax, dword [0x1097568]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1097564]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x108f0b8
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x10326ff
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x10327b9
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x103274d
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x103271b
cmp ax, 0x22
jne 0x1032708
cmp word [esi], 0x22
jne 0x1032726
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1032734
cmp ax, 0x20
jbe 0x1032721
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x103275a
movzx eax, word [ebp - 0x50]
jmp 0x103275d
cmp word [esi], 0x20
jbe 0x1032726
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x103274d
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x103277e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10327b3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01032ae3
ret
Function at 0x1032d03
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1097574], 0
push esi
jne 0x1032c71
call fcn.01032b68
test eax, eax
je 0x1032cb4
mov eax, dword [0x1097574]
cmp eax, 1
jne 0x1032c92
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1032cb4
pop esi
ret
push eax
call dword [0x109757c]
test eax, eax
jne 0x1032cfc
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1032cb8
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1097574]
call dword [0x109757c]
mov edi, eax
test edi, edi
je 0x1032cdd
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1032cf9
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1097574]
call dword [0x1097578]
add edi, 0x10
cmp edi, esi
jb 0x1032ce5
mov eax, edi
pop edi
pop esi
ret
jmp 0x1032c5e
Function at 0x10360c5
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x109126c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
xor ebx, ebx
mov dword [eax], 1
cmp dword [esi + 0xa4], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x110], eax
je 0x1036256
call dword [sym.imp.USER32.dll_GetFocus]
jmp 0x1036114
cmp eax, dword [esi + 0xa4]
je 0x1036118
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp eax, ebx
jne 0x1036105
xor ecx, ecx
cmp eax, dword [esi + 0xa4]
sete cl
cmp edi, ebx
mov dword [ebp - 0x118], ecx
je 0x1036159
cmp dword [edi + 4], 0x100
jne 0x1036159
xor ebx, ebx
inc ebx
cmp dword [edi + 8], 9
jne 0x1036159
push 0x11
mov dword [ebp - 0x114], ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x1036160
mov dword [ebp - 0x10c], ebx
jmp 0x103616b
and dword [ebp - 0x114], 0
and dword [ebp - 0x10c], 0
test ebx, ebx
je 0x103617d
cmp dword [edi + 8], 0x75
jne 0x103617d
mov dword [ebp - 0x108], 1
jmp 0x1036184
and dword [ebp - 0x108], 0
xor eax, eax
cmp dword [ebp - 0x118], eax
jne 0x10361c6
cmp dword [ebp - 0x108], eax
je 0x103619d
mov dword [edi + 8], 9
cmp dword [ebp - 0x10c], eax
je 0x10361c6
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
and byte [ebp - 0xf3], 0x7f
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
push edi
push 0x100
push 0
push dword [esi + 0xa4]
call fcn.010638e9
test eax, eax
mov ebx, dword [ebp - 0x110]
je 0x10361e9
xor eax, eax
mov dword [ebx], eax
jmp 0x10361eb
xor eax, eax
cmp dword [ebp - 0x118], eax
jne 0x1036240
cmp dword [ebp - 0x114], eax
jne 0x1036203
cmp dword [ebp - 0x108], eax
je 0x1036222
cmp dword [ebx], eax
je 0x1036222
push edi
push 0x100
push eax
push dword [esi + 0xa4]
call fcn.010638e9
test eax, eax
je 0x1036220
and dword [ebx], 0
xor eax, eax
cmp dword [ebp - 0x10c], eax
je 0x1036256
or byte [ebp - 0xf3], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x1036256
cmp dword [ebp - 0x10c], eax
jne 0x1036250
cmp dword [ebp - 0x108], eax
je 0x1036256
mov dword [ebx], 1
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0102a8ee
leave
ret 8

Function at 0x10372c0
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp + 0xc]
push 0x419
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x1037319
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0x41d
push dword [ebp + 8]
call esi
test eax, eax
je 0x1037319
mov eax, dword [edi]
cmp eax, dword [ebp - 0x10]
jg 0x1037319
mov eax, dword [edi + 8]
cmp eax, dword [ebp - 8]
jl 0x1037319
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0xc]
jg 0x1037319
mov eax, dword [edi + 0xc]
cmp eax, dword [ebp - 4]
jl 0x1037319
xor al, al
jmp 0x103731b
mov al, 1
pop esi
leave
ret 8
Function at 0x103e722
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.0102bf5e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0102ba45
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x103e772
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x103e7b8
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x103e7b8
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x103e515
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x103e7dc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x103e7ca
call esi
mov esi, eax
jmp 0x103e7e0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x103e7e0
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x103f5fc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107dceb
call fcn.01032938
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 1
mov byte [ecx + 8], bl
call fcn.0103e58d
fldz
mov ecx, dword [ebp - 0xc]
fstp qword [esi + 0x18]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x20], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10428c8
Capabilities:
Query service status
Start service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
xor ebx, ebx
mov edi, 0x80000000
push edi
push ebx
push ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
je 0x1042936
push 4
push 0x1013158
push eax
call ebx
test eax, eax
mov dword [ebp - 8], eax
je 0x104292b
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1042922
cmp dword [ebp - 0x24], 4
jne 0x1042922
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x104293a
or dword [ebp - 4], 0xffffffff
xor eax, eax
cmp dword [ebp - 4], eax
jne 0x1042980
push edi
push eax
push eax
call esi
mov edi, eax
test edi, edi
je 0x1042980
push 0x10
push 0x1013158
push edi
call ebx
mov esi, eax
test esi, esi
je 0x1042979
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1042972
mov dword [ebp - 4], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1046908
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107e8e1
call fcn.01032938
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], esi
call fcn.01024147
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
push ebx
push 1
push 0x1001b24
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 3
call fcn.0102d2db
push ebx
push 1
push 0x10017f4
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 4
call fcn.0102d2db
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.01051553
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov edi, 0xfefefefe
mov dword [esi + 0xc0], edi
lea ecx, [esi + 0xc4]
mov byte [ebp - 4], 0xf
call fcn.010501f3
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], edi
lea ecx, [esi + 0x120]
mov byte [ebp - 4], 0x12
call fcn.010501f3
mov dword [esi + 0x174], ebx
mov dword [esi + 0x178], ebx
mov dword [esi + 0x17c], edi
lea ecx, [esi + 0x180]
mov byte [ebp - 4], 0x16
call fcn.010501f3
mov dword [esi + 0x1d4], ebx
mov dword [esi + 0x1d8], ebx
mov byte [ebp - 4], 0x19
lea ecx, [esi + 0x1dc]
call fcn.0103232d
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x1ec]
mov byte [ebp - 4], 0x1a
call fcn.01044a1c
lea ecx, [esi + 0x1f8]
mov byte [ebp - 4], 0x1b
call fcn.0103232d
lea ecx, [esi + 0x208]
mov byte [ebp - 4], 0x1c
call fcn.01050c98
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 0x1d
call fcn.0103e4f0
or dword [esi + 0x84], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], bl
mov byte [esi + 0x29], bl
mov byte [esi + 0x2b], bl
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2d], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x89], bl
mov byte [esi + 0x88], bl
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0x1e8], ebx
mov dword [esi + 0x204], ebx
pop edi
mov byte [esi + 0x2a], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1046ab8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x109126c]
push esi
mov esi, ecx
xor ecx, ecx
push ecx
mov dword [ebp - 4], eax
mov eax, fcn.0104637d
push eax
push esi
mov ecx, 0x1097548
call fcn.01043edd
test eax, eax
jl 0x1046c19
push esi
push esi
lea ecx, [esi + 0x7c]
call fcn.01051562
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi + 0x84], eax
jne 0x1046b0a
mov eax, 0x800705aa
jmp 0x1046c19
push edi
push 0
mov ecx, esi
call fcn.010429a8
push 3
push esi
lea ecx, [esi + 0xc4]
call fcn.0104f87b
push 4
push esi
lea ecx, [esi + 0x120]
call fcn.0104f87b
push 5
push esi
lea ecx, [esi + 0x180]
call fcn.0104f87b
push esi
lea ecx, [esi + 0x208]
call fcn.0104f733
lea edi, [esi + 0x90]
push edi
call fcn.01043f27
test eax, eax
jl 0x1046c18
mov ecx, dword [edi]
push esi
call fcn.0104c50a
lea edi, [esi + 0x94]
push edi
call fcn.01046877
test eax, eax
jl 0x1046c18
mov ecx, dword [edi]
push esi
call fcn.01056db9
lea edi, [esi + 0x98]
push edi
call fcn.01044e20
test eax, eax
jl 0x1046c18
mov ecx, dword [edi]
push esi
call fcn.0106a65c
lea edi, [esi + 0x9c]
push edi
call fcn.01044e6e
test eax, eax
jl 0x1046c18
mov ecx, dword [edi]
push esi
call fcn.0106a65c
lea edi, [esi + 0x8c]
push edi
call fcn.01043f75
test eax, eax
jl 0x1046c18
mov edi, dword [edi]
push esi
mov ecx, edi
call fcn.010730e9
test eax, eax
jl 0x1046c18
lea edi, [esi + 0xa0]
push edi
call fcn.01043fc3
test eax, eax
jl 0x1046c18
mov ecx, dword [edi]
push esi
call fcn.01075b59
test eax, eax
jl 0x1046c18
mov ecx, dword [edi]
push ebx
lea ebx, [esi + 0xa4]
push ebx
call fcn.010759b7
test eax, eax
jl 0x1046c17
mov ecx, dword [ebx]
add esi, 0xa8
push esi
call fcn.01078728
test eax, eax
jl 0x1046c17
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0102a8ee
leave
ret

Function at 0x104835f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107eaa8
call fcn.01032938
push ecx
push ecx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0xd]
xor edi, edi
push eax
lea ecx, [esi + 0x14]
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], edi
call fcn.01047e89
lea eax, [ebp - 0xd]
push eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.01033296
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x2c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x104869c
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xc8
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x24]
mov ecx, ebx
mov dword [esi + 0x20], eax
call fcn.0102e6af
lea edi, [esi + 0x34]
push 0x10142e8
mov ecx, edi
call fcn.010293c1
push edi
call fcn.0102e867
lea edx, [esi + 0x44]
push 0xb
xor eax, eax
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [edx], 0x2c
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], 0xa
mov ebx, dword [ebx + 4]
test ebx, ebx
mov ecx, 0x1003ac8
jne 0x1048713
mov ebx, ecx
mov dword [esi + 0x54], ebx
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x104871f
mov eax, ecx
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2c], 0
je 0x104872f
or dword [esi + 0x50], 2
cmp byte [eax + 0x2a], 0
je 0x104873b
cmp byte [eax + 0x29], 1
jne 0x104873f
or dword [esi + 0x50], 4
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], edx
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x104d1a9
Capabilities:
Download url
Receive data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x109126c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
cmp ecx, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x210], 0x103
je 0x104d1de
cmp word [ecx], si
jne 0x104d1e3
mov eax, 0x80070057
cmp edx, esi
je 0x104d1ec
cmp word [edx], si
jne 0x104d1f1
mov eax, 0x80070057
cmp eax, esi
jl 0x104d248
push 0x20000000
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edx
push ecx
call dword [sym.imp.WININET.dll_InternetCombineUrlW]
test eax, eax
jne 0x104d232
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x104d224
call esi
jmp 0x104d248
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x104d248
push esi
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.urlmon.dll_URLOpenBlockingStreamW
cmp eax, esi
jl 0x104d248
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102a8ee
leave
ret 0xc
Function at 0x1056ed5
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.0102bf5e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0102ba45
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1056f25
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x1056f6b
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x1056f6b
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1056e5d
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x1056f8f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1056f7d
call esi
mov esi, eax
jmp 0x1056f93
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1056f93
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1057aa1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.01054ded
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.01053712
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x1057af1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x1057b37
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x1057b37
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x1057a07
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x1057b5b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1057b49
call esi
mov esi, eax
jmp 0x1057b5f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1057b5f
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1058922
Capabilities:
Delete directory
Move file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x54], ebx
push edi
je 0x1058955
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x1058945
push eax
push 0x1017170
push dword [esi + 0x60]
call fcn.0104fbfa
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x1058955
mov dword [esi + 0x54], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
cmp eax, ebx
je 0x1058965
mov dword [esi + 0x50], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x60]
cmp eax, ebx
je 0x1058975
mov dword [esi + 0x60], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x1058985
mov dword [esi + 0x68], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x1058993
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [esi + 0x8c]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x10589a7
mov dword [eax], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [esi + 0x84], ebx
je 0x10589c6
push 1
push 1
lea edi, [esi + 0x7c]
push edi
call fcn.01032085
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0102e475
cmp dword [esi + 0x74], ebx
je 0x1058a04
mov eax, dword [esi + 0x70]
add esi, 0x6c
cmp eax, ebx
mov edi, 0x1003ac8
jne 0x10589dc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10589fa
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x10589f0
mov eax, edi
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0102e475
pop edi
pop esi
xor eax, eax
pop ebx
ret