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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eef7f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5564b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea eax, [esi + 0x34]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x30], edi
call fcn.0041ac60
mov ebx, eax
call fcn.004b8d00
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x41fb79
lea ecx, [ebp - 0x18]
push ecx
mov ecx, str.mutex
call fcn.00406e60
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
or ecx, 0xffffffff
mov byte [ebp - 4], 5
mov dword [ebp + 0xc], ecx
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x10], ecx
ja 0x41fb97
lea eax, [ebp + 0x10]
mov edx, dword [eax]
push edx
push edi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x41fbcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x18], ebx
call fcn.004b8d00
mov dword [ebp - 0x14], eax
cmp ebx, edi
je 0x41fbcf
lea eax, [ebp - 0x18]
push eax
mov ecx, str.iocp
call fcn.00406e60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41fe90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef920
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5564b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41fef0
mov eax, esi
call fcn.0041ff90
xor esi, esi
call fcn.004b8d00
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x56833c]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x56833c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00420070
test eax, eax
je 0x41ff42
cmp ebx, 0xffffffff
je 0x41ff36
inc ebx
push edi
mov ecx, esi
call fcn.00420070
test eax, eax
jne 0x41ff30
mov edx, dword [ebp - 0x14]
mov eax, dword [0x56833c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41ff62
push eax
call fcn.0049acb7
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4203e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi], 0x40
push ebx
mov ebx, dword [ebp + 0x18]
push edi
jne 0x4203ff
mov edi, 0x2745
call fcn.004b8d00
mov dword [esi], edi
mov dword [esi + 4], eax
xor eax, eax
cmp dword [esi], eax
jne 0x4204ce
cmp dword [ebp + 0x14], eax
je 0x42046b
cmp ebx, eax
je 0x42046b
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x10]
push edx
push ecx
push ecx
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSWSOCK.dll_GetAcceptExSockaddrs]
mov edi, dword [ebp - 4]
cmp edi, dword [ebx]
jbe 0x420456
mov edi, 0x2726
call fcn.004b8d00
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x420469
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
push edi
push ecx
push edx
call fcn.0049e2d0
add esp, 0xc
mov dword [ebx], edi
xor eax, eax
mov edi, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp edi, 0xffffffff
jne 0x42048e
mov edi, 0x2719
call fcn.004b8d00
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea edx, [ebp - 0x14]
push edx
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004b8d00
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], ebx
test edi, edi
jne 0x4204ce
call fcn.004b8d00
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4230f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call fcn.004b8d00
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
cmp esi, 0xffffffff
jne 0x423112
mov esi, 0x2719
jmp 0x42314b
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp + 0xc]
push 4
push ecx
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004b8d00
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
test esi, esi
jne 0x42315a
call fcn.004b8d00
mov ecx, esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42316d
lea edx, [esp + 8]
push edx
mov ecx, str.set_option
call fcn.00406e60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x426df0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec8b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x20
xor eax, eax
mov edi, 7
xor esi, esi
push str.SYSTEMCurrentControlSetControl
lea ecx, [ebp - 0x48]
mov ebx, 0x7530
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
call fcn.0040a420
mov dword [ebp - 4], esi
xor ecx, ecx
push 0x13
mov word [ebp - 0x2c], cx
push str.ServicesPipeTimeout
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], esi
call fcn.0040a420
mov eax, dword [ebp - 0x48]
mov edi, 8
cmp dword [ebp - 0x34], edi
jae 0x426e70
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x50]
push edx
push 0x20019
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426ebb
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x4c], esi
cmp dword [ebp - 0x18], edi
jae 0x426e9f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
push esi
push esi
push eax
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x426ebb
mov ebx, dword [ebp - 0x4c]
cmp dword [ebp - 0x18], edi
jb 0x426ecc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049acb7
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x34], edi
jb 0x426eed
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049acb7
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x429750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ee526
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x5564b0]
xor eax, esp
mov dword [esp + 0x2cc], eax
push ebx
push esi
mov eax, dword [0x5564b0]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp dword [0x5662f4], ebx
jne 0x429865
lea eax, [esp + 0xcc]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x429865
lea ecx, [esp + 0x14]
push ecx
call fcn.00409d60
lea edx, [esp + 0xcc]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2f0], ebx
call fcn.0040da40
add esp, 8
lea esi, [esp + 0xb0]
lea eax, [esp + 0x14]
call fcn.00408e20
push 0xffffffffffffffff
push ebx
mov ecx, esi
push ecx
mov ecx, 0x5662e4
mov byte [esp + 0x2f4], 1
call fcn.00409a40
cmp dword [esp + 0xc4], 8
jb 0x429824
mov edx, dword [esp + 0xb0]
push edx
call fcn.0049acb7
add esp, 4
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0xc4], 7
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], ax
mov dword [esp + 0x2e8], 0xffffffff
call fcn.00408480
push 0x1e
push str.NVIDIA_CorporationNetService
mov ecx, 0x5662e4
call fcn.00412b10
push 0xffffffffffffffff
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], cx
push 0x5662e4
mov ecx, edi
call fcn.00409a40
mov eax, edi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2cc]
xor ecx, esp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x42a2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x42a301
xor eax, eax
jmp 0x42a49a
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
xor eax, eax
cmp edx, eax
je 0x42a32f
mov ecx, dword [esi + 0x34]
mov ebx, dword [ecx]
lea ebx, [edx + ebx*2]
cmp edx, ebx
jae 0x42a32f
dec dword [ecx]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x42a49a
cmp dword [esi + 0x54], eax
je 0x42a495
mov edx, dword [esi + 0x10]
lea ebx, [esi + 0x48]
cmp dword [edx], ebx
jne 0x42a358
mov ecx, dword [esi + 0x40]
mov ebx, dword [esi + 0x3c]
mov dword [edx], ebx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov edx, dword [esi + 0x30]
sub ecx, ecx
sar ecx, 1
mov dword [edx], ecx
cmp dword [esi + 0x44], eax
jne 0x42a382
mov esi, dword [esi + 0x54]
push esi
push edi
call fcn.0049c002
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x42a49a
mov eax, ecx
jmp 0x42a49a
movzx edx, di
mov ecx, 0xf
mov dword [ebp - 0x30], edx
mov edx, eax
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x42a3aa
lea edx, [ebp - 0x2c]
mov byte [edx + 8], al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x42a3c2
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [edi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call edx
test eax, eax
js 0x42a48d
cmp eax, 1
jg 0x42a455
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42a402
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, ecx
je 0x42a42b
cmp ebx, 0x10
jae 0x42a411
lea eax, [ebp - 0x2c]
mov ecx, dword [esi + 0x54]
push ecx
push edi
push 1
push eax
call fcn.0049d35d
add esp, 0x10
cmp edi, eax
jne 0x42a48d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [esi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x42a47f
test edi, edi
jne 0x42a3b6
cmp dword [ebp - 0x1c], 0x20
lea ecx, [ebp - 0x2c]
jae 0x42a490
push edi
push 8
call fcn.00409660
jmp 0x42a3b0
cmp eax, 3
jne 0x42a48d
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.00427d10
movzx esi, word [ebp + 8]
test al, al
jne 0x42a472
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00405bf0
mov ax, si
jmp 0x42a49a
lea ecx, [ebp - 0x2c]
call fcn.00405bf0
mov ax, word [ebp + 8]
jmp 0x42a49a
lea ecx, [ebp - 0x2c]
call fcn.00405bf0
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret 4
Function at 0x42ae90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb8b8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5564b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
cmp dword [esi + 0x54], 0
jne 0x42af88
mov eax, dword [ebp + 8]
push 0x40
push eax
push ecx
call fcn.0049a4f3
add esp, 0xc
test eax, eax
je 0x42af88
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea edx, [esi + 0x18]
mov dword [esi + 0x20], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov byte [esi + 0x50], 1
mov byte [esi + 0x4a], 0
lea edx, [esi + 0x28]
mov dword [esi + 0x30], edx
lea ecx, [esi + 0xc]
mov dword [esi + 0x14], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [ecx], 0
mov ecx, dword [esi + 0x24]
mov dword [ecx], 0
mov edx, dword [esi + 0x34]
mov dword [edx], 0
mov ecx, dword [esi + 0x10]
mov dword [ecx], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov ecx, dword [esi + 0x30]
mov edx, dword [0x5681cc]
mov dword [ecx], 0
mov dword [esi + 0x54], eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], 0
call fcn.0042b320
push eax
mov dword [ebp - 4], 0
call fcn.0042b630
add esp, 4
mov edi, eax
call fcn.0042b180
lea ecx, [ebp + 8]
call fcn.004062d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x42b030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x42b15b
cmp byte [edi + 0x4a], bl
je 0x42b15b
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffff
mov ecx, edi
call edx
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x42b14f
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x42b0af
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x42b0c7
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x42b0f0
dec eax
je 0x42b0f4
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x42b14a
jmp 0x42b156
mov byte [edi + 0x4a], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42b104
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x42b12d
cmp ebx, 0x10
jae 0x42b113
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0049d35d
add esp, 0x10
cmp esi, eax
jne 0x42b147
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x4a], 0
je 0x42b153
test esi, esi
jne 0x42b0bb
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00409660
jmp 0x42b0b5
lea ecx, [ebp - 0x2c]
call fcn.00405bf0
xor al, al
jmp 0x42b15d
lea ecx, [ebp - 0x2c]
call fcn.00405bf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x42c2e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eee50
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or dword [esi + 0x30], 1
cmp dword [esi + 0xc], 0x565e84
mov edi, ecx
jne 0x42c33f
push 0x1c
call fcn.0049ad6c
add esp, 4
test eax, eax
je 0x42c33a
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x42c33c
xor eax, eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0
lea eax, [edi + 8]
push eax
call fcn.00409710
mov eax, dword [edi + 0x24]
or dword [esi + 0x30], 2
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
or dword [esi + 0x30], 4
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
lea eax, [edi + 0x30]
lea ecx, [ebp - 0x48]
call fcn.00418740
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 4], 0
call fcn.00461ffe
add esp, 8
mov ebx, eax
mov byte [ebp - 4], 1
or dword [esi + 0x30], 8
cmp dword [esi + 0x20], 0x565ea0
jne 0x42c3c1
push 0x1c
call fcn.0049ad6c
add esp, 4
test eax, eax
je 0x42c3bc
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
mov byte [eax], 0
jmp 0x42c3be
xor eax, eax
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x20]
push 0xffffffffffffffff
push 0
push ebx
call fcn.00409710
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jb 0x42c3e4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0049acb7
add esp, 4
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x42c408
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049acb7
add esp, 4
mov eax, dword [edi + 0x40]
mov edi, dword [edi + 0x44]
or dword [esi + 0x30], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x430520
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f19a3
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0042ea50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov edi, 8
cmp dword [ebp - 0x18], edi
jae 0x43056f
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43069f
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x43058a
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43069f
lea edi, [esi + 0x48]
mov ecx, edi
mov dword [ebp - 0x4c], edi
call fcn.00407340
push 0xffffffffffffffff
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0044ba00
lea eax, [ebp - 0xe8]
push eax
mov dword [esi + 0x28], 2
call fcn.00409d60
lea ecx, [ebp - 0xe8]
push str.NetworkService::DownloadTask::CreateDownloadFolder:_Create_download_folder
push ecx
mov byte [ebp - 4], 2
call fcn.0040da40
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0xe8]
push eax
call fcn.0040dd00
lea ecx, [ebp - 0xe8]
push str._failed.
push ecx
call fcn.0040da40
add esp, 0x18
lea esi, [ebp - 0x48]
lea eax, [ebp - 0xe8]
call fcn.00408e20
push 1
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004182c0
mov esi, 8
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x430635
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049acb7
add esp, 4
xor eax, eax
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 1
call fcn.00408480
mov byte [ebp - 4], 0
mov eax, closesocket
mov ecx, edi
lock xadd dword [ecx], eax
test eax, 0x40000000
jne 0x43068a
cmp eax, 0x80000000
jle 0x43068a
mov edx, edi
lock bts dword [edx], 0x1e
jb 0x43068a
call fcn.00407450
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 0x18], esi
jb 0x43069b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049acb7
add esp, 4
xor al, al
jmp 0x4306b2
cmp dword [ebp - 0x18], edi
jb 0x4306b0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049acb7
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret
Function at 0x4327e0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f28de
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5564b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push eax
mov edi, ecx
call fcn.0042eb60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jae 0x432830
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43284e
cmp dword [ebp - 0x18], ebx
jb 0x4329c7
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x4329bf
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x432859
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x6c]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4329b6
mov eax, dword [ebp - 0x4c]
xor edx, edx
xor ecx, ecx
add eax, edx
adc ecx, dword [ebp - 0x50]
mov edx, eax
or edx, ecx
je 0x4329b6
cmp eax, dword [edi + 0xe0]
jne 0x432898
cmp ecx, dword [edi + 0xe4]
je 0x4329b6
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4328a3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4329ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4329ac
push edi
lea edi, [ebp - 0x64]
call fcn.0044bff0
mov esi, eax
lea eax, [ebp - 0x120]
push eax
mov byte [ebp - 4], 2
call fcn.00409d60
lea ecx, [ebp - 0x120]
push str.NetworkService::DownloadTask::PrepareDownloadPath
push ecx
mov byte [ebp - 4], 3
call fcn.0040da40
lea edx, [ebp - 0x120]
push str.:_Download_task
push edx
call fcn.0040da40
lea eax, [ebp - 0x120]
push esi
push eax
call fcn.0040dd00
lea ecx, [ebp - 0x120]
push str.:_cannot_remove_unmatched_partial_download_file
push ecx
call fcn.0040da40
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0040dd00
add esp, 0x28
lea esi, [ebp - 0x88]
lea eax, [ebp - 0x120]
call fcn.00408e20
xor ecx, ecx
push 0xffffffffffffffff
mov byte [ebp - 4], 4
push ecx
mov edx, esi
mov word [ebp - 0x48], cx
mov ebx, 7
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
call fcn.00409a40
mov ecx, esi
call fcn.004cc710
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], bl
call fcn.00408480
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.004cc710
push 1
lea ecx, [ebp - 0x48]
call fcn.004182c0
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.004cc710
lea ecx, [ebp - 0x2c]
call fcn.004cc710
xor al, al
jmp 0x4329c9
lea ecx, [ebp - 0x2c]
call fcn.004cc710
jmp 0x4329c7
cmp dword [ebp - 0x18], ebx
jb 0x4329c7
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049acb7
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ab39
mov esp, ebp
pop ebp
ret