joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404750
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x404765
xor eax, eax
pop edi
pop ebx
add esp, 0x14
ret 8
lea ebx, [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xc], edi
je 0x4047c2
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
xor eax, eax
cmp edx, eax
jl 0x4047c2
jg 0x4047a1
mov eax, dword [esp + 0x10]
cmp eax, ecx
jbe 0x4047c2
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, 1
pop ebx
add esp, 0x14
ret 8

Function at 0x405600
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x800c
call fcn.00429430
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x8008], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8018]
xor ebx, ebx
push edi
mov edi, ecx
mov byte [edi], bl
mov byte [edi + 0x3fff], bl
cmp dword [ebp + 0x8008], ebx
jne 0x40563d
xor eax, eax
jmp 0x4056ed
push esi
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [esp + 0x10], ebx
call fcn.004055a0
test eax, eax
je 0x40565b
mov eax, 1
jmp 0x4056ec
mov eax, dword [ebp + 0x8000]
mov esi, dword [ebp + 0x8004]
sub esi, eax
cmp esi, ebx
jle 0x405692
add eax, ebp
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0041e9b0
push esi
lea ecx, [esp + 0x28]
push ecx
push ebp
call fcn.0041e9b0
add esp, 0x18
mov dword [ebp + 0x8004], esi
jmp 0x405698
mov dword [ebp + 0x8004], ebx
mov ecx, dword [ebp + 0x8004]
push ebx
lea edx, [esp + 0x18]
push edx
mov eax, 0x8000
sub eax, ecx
push eax
lea eax, [ecx + ebp]
mov ecx, dword [ebp + 0x8008]
push eax
push ecx
mov dword [ebp + 0x8000], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4056ec
mov edx, dword [esp + 0x14]
add dword [ebp + 0x8004], edx
lea esi, [esp + 0x10]
mov edx, ebp
mov dword [ebp + 0x8000], ebx
call fcn.004055a0
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x8014]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c257
add esp, 0x800c
ret 4
Function at 0x405720
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x42a158
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x18], 0x10
jb 0x405753
mov eax, dword [ebx + 4]
jmp 0x405756
lea eax, [ebx + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405830
push 0x436614
mov dword [esp + 0x18], 0x436614
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x28], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 0
call esi
sub eax, dword [0x43662c]
cmp eax, 0x1b7740
jbe 0x4057d9
mov eax, dword [0x43660c]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x4365f4
call fcn.00406400
mov eax, dword [0x43660c]
mov dword [eax + 4], eax
mov eax, dword [0x43660c]
mov dword [0x436610], 0
mov dword [eax], eax
mov eax, dword [0x43660c]
mov dword [eax + 8], eax
call esi
mov dword [0x43662c], eax
lea edx, [esp + 0x18]
push edx
call fcn.004060e0
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ebx, dword [0x43660c]
test esi, esi
je 0x4057fa
cmp esi, dword [0x4365f4]
je 0x4057ff
call fcn.0041cb32
cmp edi, ebx
je 0x40581f
test esi, esi
jne 0x40581b
call fcn.0041cb32
cmp edi, dword [esi + 0x18]
jne 0x405816
call fcn.0041cb32
mov edi, dword [edi + 0x28]
jmp 0x405823
mov esi, dword [esi]
jmp 0x40580c
mov edi, dword [esp + 0x10]
push 0x436614
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x4059f0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push esi
push 0x405cc0
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
pop ecx
ret
Function at 0x405a20
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x42a768
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x405b53
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
xor esi, esi
cmp ebp, esi
je 0x405b50
lea eax, [esp + 0x18]
push eax
call fcn.00408b30
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
je 0x405aa5
mov ecx, dword [eax]
mov edx, dword [ecx]
lea ebx, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], edx
call fcn.00406160
mov eax, dword [ebp + 0xc]
inc esi
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
jne 0x405a81
xor esi, esi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub ecx, eax
test ecx, 0xfffffffc
je 0x405b2a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
sub ecx, edi
mov eax, edx
sar ecx, 2
xor edx, edx
div ecx
mov ebx, edx
cmp ebx, ecx
jb 0x405aeb
call fcn.0041cb32
mov edi, dword [esp + 0x24]
mov ebx, dword [edi + ebx*4]
cmp edi, esi
je 0x405afb
push edi
call fcn.0041c24c
add esp, 4
mov eax, dword [esp + 0x18]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0041c24c
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp eax, esi
je 0x405b37
push eax
call fcn.0041c24c
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0041c24c
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x405b70
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42aab8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
add ecx, 0x2c
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405bc2
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00404390
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], ebx
call fcn.00405720
mov esi, dword [edi]
add esi, 0x1c
mov ebx, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
mov word [esi], ax
mov ecx, dword [edi]
movzx edx, word [ecx + 0x12c]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov dword [esi + 4], 0xffffffff
test ebx, ebx
je 0x405c23
mov dword [esi + 4], ebx
jmp 0x405c4c
mov ecx, dword [edi]
add ecx, 0x2c
call fcn.00405a20
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x405c41
lea eax, [esp + 0xc]
push eax
call fcn.004058c0
jmp 0x405c4c
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00405850
cmp dword [esi + 4], 0xffffffff
mov ebx, 0x10
je 0x405c86
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x405c80
push 1
mov eax, edi
call fcn.004059a0
cmp dword [esp + 0x24], ebx
jb 0x405ca2
mov ecx, dword [esp + 0x10]
push ecx
jmp 0x405c9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0
mov eax, edi
call fcn.004059a0
cmp dword [esp + 0x24], ebx
jb 0x405ca2
mov edx, dword [esp + 0x10]
push edx
call fcn.0041c24c
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041c257
mov esp, ebp
pop ebp
ret
Function at 0x407a40
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [eax + 0x4020], 0
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 4]
je 0x407a54
mov edx, dword [edi + 0x18]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, dword [eax + 0x401c]
push 0
push eax
lea ecx, [eax + 0x1c]
mov dword [eax + 0x18], ecx
lea ecx, [eax + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 1
push ecx
push edx
mov dword [ecx], esi
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407abb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407abb
call esi
push eax
push str.WSASend__
call fcn.004073e0
add esp, 8
xor al, al
pop edi
pop esi
pop ecx
ret
pop edi
mov al, 1
pop esi
pop ecx
ret

Function at 0x407ad0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
xor ecx, ecx
cmp dword [eax + 0x4020], ecx
je 0x407ae8
mov esi, dword [edi + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
push eax
lea ebx, [eax + 0x1c]
lea edx, [eax + 0x14]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x4024], 1
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push 1
push edx
push esi
mov dword [edx], 0x4000
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x407b5a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407b5a
call esi
push eax
push str.WSARecv__
call fcn.004073e0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
Function at 0x4084c0
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x42b5b6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ecx, dword [0x436640]
mov eax, dword [0x43663c]
mov ebx, ecx
cmp eax, ecx
jbe 0x40850d
call fcn.0041cb32
mov ecx, dword [0x436640]
mov eax, dword [0x43663c]
mov esi, dword [0x436630]
mov edi, eax
cmp eax, ecx
jbe 0x40851e
call fcn.0041cb32
mov eax, dword [0x436630]
push ebx
push esi
push edi
push eax
push 0x436630
lea ebx, [esp + 0x30]
call fcn.004041c0
lea ecx, [esp + 0x14]
push ecx
push 0
mov dword [esp + 0x1c], 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408628
push eax
call fcn.0041d1f0
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x408628
lea edx, [esp + 0x14]
push edx
push edi
mov esi, edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40861f
cmp dword [esi + 0x1a0], 0x18
je 0x408615
lea eax, [esi + 0x1b0]
test eax, eax
je 0x408615
push eax
lea eax, [esp + 0x28]
call fcn.00408450
mov dword [esp + 0xb0], 0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.00401cb0
mov byte [esp + 0xb0], 2
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x4085d8
push eax
call fcn.0041c391
add esp, 4
lea ebx, [esp + 0x18]
mov edi, 0x436630
call fcn.00403fa0
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
mov esi, dword [esi]
test esi, esi
jne 0x408581
push edi
call fcn.0041c391
add esp, 4
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xa4
ret
Function at 0x40ac40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42b9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push ecx
mov dword [esp + 0x28], 0
mov eax, esp
mov dword [esp + 0x14], esp
push eax
mov ecx, 0x42df13
call fcn.00401cb0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov edi, esp
call fcn.004031e0
add eax, 0x10
mov dword [edi], eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, 0x42df13
mov byte [esp + 0x34], 2
call fcn.00401cb0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x38]
push 0x191
push edx
mov ecx, str.Unauthorized
mov byte [esp + 0x58], 0
call fcn.00409d30
mov eax, dword [esp + 0x40]
add esp, 0x34
push 0x3fff
push eax
lea ecx, [esi + 0x150]
push ecx
call fcn.0041d8c0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov dword [esi + 0x4150], ecx
add eax, 0xfffffff0
mov dword [esi + 0x4158], 2
mov dword [esi + 0x4154], 0
add esp, 0xc
mov dword [esi + 0x4178], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ad3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x20
ret
Function at 0x40ad80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42b9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push ecx
mov eax, esp
mov dword [esp + 0x10], esp
push eax
mov ecx, 0x42df13
call fcn.00401cb0
push ecx
mov ecx, esp
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], esp
push ecx
mov ecx, 0x42df13
call fcn.00401cb0
push ecx
mov edx, esp
mov dword [esp + 0x20], esp
push edx
mov ecx, 0x42df13
mov byte [esp + 0x30], 1
call fcn.00401cb0
mov eax, dword [esp + 0x34]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x60]
or ebp, 0xffffffff
mov dword [esp + 0x54], ebp
call fcn.00409d30
add esp, 0x34
push str.error
lea edx, [esp + 0xc]
push edx
lea edx, [ebp + 6]
mov dword [esp + 0x28], 2
call fcn.00404010
mov eax, dword [esp + 8]
push 0x3fff
push eax
lea ecx, [esi + 0x150]
push ecx
call fcn.0041d8c0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff0
mov dword [esi + 0x4150], ecx
mov dword [esi + 0x4158], 2
mov dword [esi + 0x4154], 0
add esp, 0xc
mov dword [esi + 0x4178], 1
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x40ae8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop ebp
add esp, 0x1c
ret
Function at 0x40ce20
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x108
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x43664c], 1
push esi
mov esi, ecx
jne 0x40ce5b
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0041c257
add esp, 0x108
ret
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.0041e500
add esp, 0xc
push str.360Net.dll
push esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x436648], eax
test eax, eax
je 0x40d04d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpCreateDownloadObj
push eax
call esi
mov dword [0x436650], eax
mov eax, dword [0x436648]
push str.HttpDeleteDownloadObj
push eax
call esi
mov ecx, dword [0x436648]
push str.HttpInitDownPara
push ecx
mov dword [0x436654], eax
call esi
mov edx, dword [0x436648]
push str.HttpDownload
push edx
mov dword [0x436658], eax
call esi
mov dword [0x43665c], eax
mov eax, dword [0x436648]
push str.HttpCancel
push eax
call esi
mov ecx, dword [0x436648]
push str.HttpWait
push ecx
mov dword [0x436660], eax
call esi
mov edx, dword [0x436648]
push str.HttpResetAll
push edx
mov dword [0x436664], eax
call esi
mov dword [0x436668], eax
mov eax, dword [0x436648]
push str.HttpGetConnectState
push eax
call esi
mov ecx, dword [0x436648]
push str.HttpGetContentLength
push ecx
mov dword [0x43666c], eax
call esi
mov edx, dword [0x436648]
push str.HttpGetReceivedLength
push edx
mov dword [0x436670], eax
call esi
mov dword [0x436674], eax
mov eax, dword [0x436648]
push str.HttpGetResumedLength
push eax
call esi
mov ecx, dword [0x436648]
push str.HttpDownloadExA
push ecx
mov dword [0x436678], eax
call esi
mov edx, dword [0x436648]
push str.HttpDownloadExW
push edx
mov dword [0x43667c], eax
call esi
mov dword [0x436680], eax
mov eax, dword [0x436648]
push str.HttpGetStateA
push eax
call esi
mov ecx, dword [0x436648]
push str.HttpGetStateW
push ecx
mov dword [0x436684], eax
call esi
mov edx, dword [0x436648]
push str.HttpGetLastErrorA
push edx
mov dword [0x436688], eax
call esi
mov dword [0x43668c], eax
push str.HttpGetLastErrorW
mov eax, dword [0x436648]
push eax
call esi
mov ecx, dword [0x436648]
push str.HttpGetCurrentSpeed
push ecx
mov dword [0x436690], eax
call esi
mov edx, dword [0x436648]
push str.HttpGetMD5
push edx
mov dword [0x436694], eax
call esi
mov dword [0x436698], eax
mov eax, dword [0x436648]
push str.HttpGetAllPeer
push eax
call esi
cmp dword [0x436650], 0
mov dword [0x43669c], eax
mov dword [0x43664c], 1
je 0x40d04d
cmp dword [0x436680], 0
je 0x40d04d
cmp dword [0x436660], 0
je 0x40d04d
cmp dword [0x436664], 0
je 0x40d04d
cmp dword [0x436654], 0
jne 0x40ce40
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041c257
add esp, 0x108
ret
Function at 0x40d920
Capabilities:
Check if file exists
Delete file
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42aa06
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x444]
mov eax, dword [ebp + 4]
lea esi, [ebp + 4]
push 0
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
call fcn.004031e0
add eax, 0x10
mov dword [edi], eax
call fcn.0040dd50
add esp, 8
test eax, eax
je 0x40daf8
push 0x3ff
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call fcn.0041e500
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
mov ebx, 1
push reloc.WS2_32.dll_bind
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0x400
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40d9fa
cmp dword [esp + 0x20], ebx
jne 0x40d9fa
cmp dword [esp + 0x1c], 0
jbe 0x40d9fa
lea ecx, [esp + 0x2c]
push ecx
call edi
lea edx, [esp + 0x2c]
push edx
xor ebx, ebx
call edi
test eax, eax
je 0x40da12
lea ecx, [esp + 0x2c]
call fcn.0040ce20
mov ebx, eax
lea eax, [esp + 0x18]
push str..tmp
push eax
mov ecx, esi
call fcn.0040a6f0
add esp, 8
mov dword [esp + 0x43c], 0
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
mov ecx, dword [esp + 0x18]
push ecx
call edi
mov ecx, dword [ebp]
test ebx, ebx
je 0x40da56
mov edx, dword [esp + 0x18]
push edx
call fcn.0040d070
jmp 0x40da60
mov eax, dword [esp + 0x18]
push eax
call fcn.0040d340
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40dac2
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40dac2
mov eax, dword [esi]
push 0x78
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.004031e0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x444], 1
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
call fcn.004031e0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x448], 0
call fcn.0040dba0
add esp, 0xc
jmp 0x40dacb
mov edx, dword [esp + 0x18]
push edx
call edi
xor ebx, ebx
mov dword [esp + 0x43c], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40daf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0041c257
add esp, 0x42c
ret
Function at 0x40dba0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x42a620
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
lea eax, [eax + eax*4]
lea eax, [eax + eax + 1]
xor esi, esi
xor ebx, ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], eax
test eax, eax
jbe 0x40dceb
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [esp + 0x38]
push str..del
push eax
lea ecx, [esp + 0x3c]
call fcn.0040a6f0
mov eax, dword [eax]
add esp, 8
push eax
call edi
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40dcc6
lea edx, [esp + 0x14]
push str..del
push edx
lea ecx, [esp + 0x3c]
call fcn.0040a6f0
mov eax, dword [eax]
add esp, 8
push eax
mov eax, dword [esp + 0x38]
push eax
call ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push str..del
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040a6f0
mov eax, dword [eax]
add esp, 8
push eax
call edi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40dcbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
push ecx
call edi
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push edx
push eax
call ebp
mov esi, eax
test esi, esi
jne 0x40dceb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, dword [esp + 0x1c]
jb 0x40dbf6
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret