joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4029f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push edi
xor edi, edi
test eax, eax
jne 0x402a03
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x4234fc
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x402a1d
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call esi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov ebp, eax
call esi
add esp, 0x1c
test ebp, ebp
jle 0x402a8c
lea edi, [ebp + 2]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x402a59
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov edx, ecx
push ebx
mov dword [eax], edi
xor eax, eax
mov edi, esi
push 1
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x28]
add esp, 0x10
mov edi, 1
mov dword [eax], esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x404140
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x915
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
lea edx, [esi + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x48]
mov eax, 0x800
mov dword [esp + 0x34], edx
lea ecx, [esi + 0x2148]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esi + 0x2348]
mov eax, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
lea ecx, [esi + 0x1048]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 8]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esi + 0x2048]
push eax
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x40422c
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x4041fe
cmp eax, 4
je 0x4041fe
cmp eax, 1
jne 0x40422c
xor ecx, ecx
mov dword [esi + 4], eax
mov dword [esi + 0x2448], ecx
mov dword [esi + 0x244c], ecx
mov cx, word [esp + 0x20]
mov dword [esi + 0x2450], 0xffffffff
mov word [esi], cx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret
Function at 0x404240
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404250
xor eax, eax
pop esi
pop ecx
ret
push edi
lea eax, [esi + 0x5d538]
push str.MetalinkFile
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40428f
push str.MetalinkFile
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 8
mov dword [esi + 0x2694], eax
mov ecx, esi
call fcn.00408e40
test eax, eax
pop edi
jne 0x40429e
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x2464], eax
je 0x4042e5
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push 0
push esi
push 0x404690
push 0
push 0
mov dword [esi + 0x5d100], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4053e0
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x26e0]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [edx + 4], 1
je 0x40546d
mov eax, dword [edi + 0x2480]
test eax, eax
je 0x40549b
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2484]
mov eax, dword [edi + 0x2480]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x405456
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4054a5
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [esi], 0
jne 0x405486
mov eax, dword [esi + 4]
test eax, eax
je 0x405486
mov dword [esi + 0x18], eax
pop edi
mov eax, 1
pop esi
ret 4
push 1
push ecx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.00406a20
test eax, eax
je 0x4054a5
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x405be0
Capabilities:
Send data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26e0]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [ecx + 4], 1
je 0x405c70
mov eax, dword [edi + 0x2480]
test eax, eax
je 0x405ca7
mov edx, dword [esi + 0xc]
mov dword [esp + 0x10], 0
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x2484]
mov edx, dword [edi + 0x2480]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x405c58
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x3e5
sete dl
pop edi
pop esi
mov eax, edx
pop ebx
ret 4
cmp dword [esi], 0
jne 0x405c8a
mov eax, dword [esi + 4]
test eax, eax
je 0x405c8a
mov dword [esi + 0x18], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.00406a20
test eax, eax
jne 0x405ca7
push ebx
mov ecx, edi
call fcn.00406500
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x405fd0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26e0]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x8044]
lea edx, [esi + 0x40]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x8040]
lea edi, [esi + 0x805c]
test eax, eax
mov dword [esi + 0x8058], edx
mov dword [edi], 0x8000
je 0x406060
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x40604b
cmp eax, 0x8000
jbe 0x40605a
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4060a1
mov dword [esp + 0x14], ecx
jmp 0x4060a1
mov eax, dword [ebx + 0x5d108]
mov ecx, dword [ebx + 0x5d10c]
cmp eax, 0xffffffff
jne 0x406075
cmp ecx, eax
je 0x4060a3
mov edx, dword [ebx + 0x5d118]
sub eax, edx
mov edx, dword [ebx + 0x5d11c]
sbb ecx, edx
ja 0x40608e
cmp eax, 0x8000
jbe 0x40609d
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4060a1
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], 9
cmp dword [ecx + 4], 1
je 0x4060e8
mov edx, dword [esi + 0x1c]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40611a
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x8058]
mov eax, dword [esi + 0x1c]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40611a
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x406136
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.00406500
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x406880
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x103c
call fcn.00413a30
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x2480]
push edi
test eax, eax
mov dword [esp + 0x10], ebx
mov ebp, 0x4235a4
je 0x4068a8
mov ebp, str.POST
mov ax, word [0x426bf0]
mov esi, dword [esp + 0x1050]
mov word [esp + 0x4c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x4c]
mov dword [esp + 0x1c], 0x423590
mov dword [esp + 0x20], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x423584
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebx + 0x62cbc]
add esp, 0x14
test ecx, ecx
mov eax, 0x8400c300
je 0x406913
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x406921
or eax, 0x803000
mov ecx, dword [esi + 0x18]
push esi
lea edx, [esp + 0x20]
push eax
push edx
push 0
lea eax, [esp + 0x5c]
push str.HTTP_1.1
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x406a05
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea edx, [esp + 0x18]
push 4
push edx
push 2
push eax
mov dword [esp + 0x28], 0x3a98
call edi
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push 4
push eax
push 0x41
push ecx
mov dword [esp + 0x24], 1
call edi
mov ebp, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push 0xa2d0
mov dword [esp + 0x28], 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4069d3
mov ecx, 0x28b4
xor eax, eax
mov edi, ebx
push ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push 0xa2cf
push ebx
push esi
call fcn.00406b20
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x1c]
push esi
push 1
lea edx, [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test ebx, ebx
mov esi, eax
je 0x4069f6
push ebx
call fcn.00410c2e
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x103c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x103c
ret 4
Function at 0x407580
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x426bf0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 8]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 8]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x407655
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x407655
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 8]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x407660
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26f0]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x40767d
mov dword [esp + 8], edi
jmp 0x40768c
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 8]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x407733
mov edx, dword [esi + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26f0]
test eax, eax
je 0x4076f6
mov ecx, dword [esi + 0x26f4]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x4076f6
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 8]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x4076c4
mov edx, dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 8]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x407ad0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x805c]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x407aec
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26fc]
xor edi, edi
cmp eax, edi
je 0x407bcb
mov ecx, esi
call fcn.00407580
mov edi, dword [ebx + 0x8040]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 8]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x407b47
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407c22
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [ebx + 0x40]
push ebp
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407c22
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x407c22
mov ecx, dword [edi + 0x18]
add ecx, eax
mov dword [edi + 0x18], ecx
mov ebp, dword [edi + 0x1c]
mov ecx, 0
adc ebp, ecx
mov dword [edi + 0x1c], ebp
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x5d118]
push eax
add edi, eax
push ebx
mov dword [esi + 0x5d118], edi
mov edx, dword [esi + 0x5d11c]
adc edx, ecx
mov ecx, esi
mov dword [esi + 0x5d11c], edx
call fcn.00407c30
mov ecx, esi
call fcn.00407660
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
push edi
push edx
lea eax, [ebx + 0x40]
push ebp
push eax
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407c22
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x407c22
mov ebp, dword [esi + 0x5d118]
push eax
add ebp, eax
push ebx
mov dword [esi + 0x5d118], ebp
mov edx, dword [esi + 0x5d11c]
adc edx, edi
mov ecx, esi
mov dword [esi + 0x5d11c], edx
call fcn.00407c30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x40ae90
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40aeb1
push 0
push edi
call fcn.0040ba10
add esp, 8
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
test edi, edi
jne 0x40aebf
pop edi
xor eax, eax
pop esi
ret 8
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x40aedc
mov dword [edi + 8], eax
mov edx, dword [esp + 0xc]
mov edi, dword [esi + 0xc]
mov dword [esi + 0x18], edx
lea eax, [esp + 0xc]
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x14], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x40af03
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x28], eax
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x10]
lea ecx, [eax - 0x28]
mov eax, dword [esi + 0x14]
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], eax
add eax, 0x14
push edx
push 0
mov ecx, esi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0xf9
mov dword [esi + 0x38], 0x149
mov dword [esi + 0x34], 0x95
mov dword [esi + 0x3c], 0xb3
mov dword [esi + 0x40], 0x1b
mov dword [esi + 0x48], 0x48
mov dword [esi + 0x44], 0x9a
mov dword [esi + 0x4c], 0xad
call fcn.0040af80
pop edi
mov eax, 1
pop esi
ret 8
Function at 0x40af80
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x44
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x14], esi
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40afa4
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40b134
mov edi, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 4]
push ecx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x40afc0
mov dword [edi + 8], eax
mov esi, dword [esi + 0xc]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 4]
push eax
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x40afdc
mov dword [esi + 8], eax
push ebp
push 0x426bf0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
xor ecx, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
call edi
push 1
mov esi, eax
call edi
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, ebp
mov ebp, dword [esp + 0x14]
add ecx, eax
lea eax, [edx - 1]
cmp eax, 4
ja case.0x40b038.3
jmp dword [eax*4 + 0x40b140]
xor esi, esi
jmp 0x40b06f
sub esi, ebp
jmp 0x40b06f
xor esi, esi
jmp 0x40b069
mov eax, esi
sub eax, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, ecx
sub eax, edx
cdq
sub eax, edx
mov ebx, eax
sar esi, 1
sar ebx, 1
jmp 0x40b06f
sub esi, ebp
sub ecx, dword [esp + 0x10]
mov ebx, ecx
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x30]
push 0x7f00
rep stosd dword es:[edi], eax
mov eax, dword [0x4282bc]
push 0
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x40b160
mov dword [esp + 0x44], eax
mov dword [esp + 0x58], str.POPTIPS_CLASS
call dword [sym.imp.USER32.dll_LoadCursorW]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], eax
push ecx
mov dword [esp + 0x4c], 6
call dword [sym.imp.USER32.dll_RegisterClassW]
mov edi, dword [esp + 0x18]
mov edx, dword [0x4282bc]
mov eax, dword [esp + 0x10]
push edi
mov ecx, dword [esp + 0x54]
push edx
push 0
push 0
push eax
push ebp
push ebx
push esi
push SysReAllocString
push 0
push ecx
push 0x10088
call dword [sym.imp.USER32.dll_CreateWindowExW]
push edi
push str.THIS_WND
push eax
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_SetPropW]
mov edx, dword [esp + 0x10]
push 6
inc edx
push 6
inc ebp
push edx
push ebp
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
test eax, eax
pop ebp
je 0x40b128
push 1
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
add esp, 0x44
ret 8
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebx
add esp, 0x44
ret 8
Function at 0x40b3d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov cx, word [esp + 0x64]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0
push 0
mov word [esp + 0x58], cx
mov ecx, dword [esp + 0x70]
push 1
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x40b472
push esi
mov esi, dword [esp + 0x60]
test esi, esi
je 0x40b452
mov edx, dword [esp + 4]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x40b452
mov dword [esi], 1
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret 0x10
xor eax, eax
add esp, 0x54
ret 0x10

Function at 0x40b480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], si
mov word [ebp - 0x41c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41a]
lea edx, [ebp - 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x41c]
push eax
push ecx
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x214]
push eax
push str._smodules360inst.exe
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [ebp - 0x214]
push edx
call fcn.00410c8e
add esp, 0x14
test eax, eax
jne 0x40b533
lea esp, [ebp - 0x630]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x622]
mov word [ebp - 0x624], si
cmp ebx, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x40b556
xor edi, edi
jmp 0x40b585
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00413a30
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
lea eax, [ebp - 0x214]
push edi
push eax
push str.__s___s
lea ecx, [ebp - 0x624]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebp - 4]
add esp, 0x14
lea edx, [ebp - 0x624]
push esi
push esi
push esi
push edx
call fcn.0040b3d0
lea esp, [ebp - 0x630]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4