joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455220
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
add esp, 0xffffffc8
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
cmp dword [esp + 8], 0x40
jle 0x455256
lea ecx, [esp + 0x18]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
call fcn.004551cc
mov dword [esp + 8], 0x20
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
push 0x40
push 0x36
mov edx, dword [esp + 8]
add edx, 0x68
push edx
call fcn.0045434c
add esp, 0xc
push 0x40
push 0x5c
mov ecx, dword [esp + 8]
add ecx, 0xa8
push ecx
call fcn.0045434c
add esp, 0xc
xor eax, eax
mov dword [esp + 0xc], eax
mov edx, dword [esp]
lea ecx, [edx + 0x68]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 4]
mov edx, eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0xc]
cmp ecx, dword [esp + 8]
jge 0x4552d4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
xor byte [ecx], dl
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
xor byte [ecx + 0x40], dl
inc dword [esp + 0xc]
inc dword [esp + 0x14]
inc dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 8]
jl 0x4552a5
xor edx, edx
mov eax, dword [esp]
call fcn.004544ec
mov edx, dword [esp]
add edx, 0x68
mov ecx, 0x40
mov eax, dword [esp]
call fcn.00454e20
push 0x20
push 0
lea edx, [esp + 0x20]
push edx
call fcn.0045434c
add esp, 0xc
add esp, 0x38
ret

Function at 0x458470
Capabilities:
Encrypt data using tea

Disassembly:
add esp, 0xffffffd4
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], 0x9e3779b9
mov eax, dword [esp]
mov edx, dword [eax]
mov dword [esp + 0xc], edx
xor edx, edx
mov ecx, dword [esp]
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 4]
mov ecx, dword [edx + 4]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 4]
mov edx, dword [eax + 8]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x20
jmp 0x458524
mov edx, dword [esp + 8]
add dword [esp + 0x14], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
shl ecx, 4
mov eax, dword [esp + 0x10]
shr edx, 5
add eax, dword [esp + 0x14]
add ecx, dword [esp + 0x18]
add edx, dword [esp + 0x1c]
xor ecx, eax
xor ecx, edx
add dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
shl ecx, 4
mov eax, dword [esp + 0xc]
shr edx, 5
add eax, dword [esp + 0x14]
add ecx, dword [esp + 0x20]
add edx, dword [esp + 0x24]
xor ecx, eax
xor ecx, edx
add dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x28], 0xffffffff
test ecx, ecx
jg 0x4584d0
mov eax, dword [esp]
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov ecx, dword [esp]
mov eax, dword [esp + 0x10]
mov dword [ecx + 4], eax
add esp, 0x2c
ret
Function at 0x45ac50
Capabilities:
Get disk information
Get disk size

Disassembly:
add esp, 0xfffffbc8
mov dword [esp + 4], edx
xor edx, edx
mov word [esp], ax
mov eax, dword [0x45eda3]
mov dword [esp + 8], 0x400
mov dword [esp + 0xc], eax
mov eax, dword [0x45eda7]
mov dword [esp + 0x10], eax
mov ax, word [0x45edab]
mov word [esp + 0x14], ax
mov dword [esp + 0x20], edx
push 4
push 0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0045434c
add esp, 0xc
mov eax, dword [esp + 8]
push eax
push 0
lea edx, [esp + 0x40]
push edx
call fcn.0045434c
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 4
jl 0x45adde
add dword [esp + 0x18], 0xfffffffc
lea edx, [esp + 0x38]
add edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x10]
push ecx
call sub.Kernel32.dll_lstrcpyA_1
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_lstrlenA_1
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
mov byte [esp + edx + 0xb], 0
cmp byte [esp + 0xc], 0x61
je 0x45acc4
cmp byte [esp + 0xc], 0x41
je 0x45acc4
cmp byte [esp + 0xc], 0x62
je 0x45acc4
cmp byte [esp + 0xc], 0x42
je 0x45acc4
lea ecx, [esp + 0xc]
push ecx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
je 0x45acc4
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 4
je 0x45acc4
lea edx, [esp + 0xc]
push edx
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x45acc4
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
push ecx
lea eax, [esp + 0x1c]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov edx, dword [esp + 0x34]
push edx
call sub.kernel32.dll_SetErrorMode
cmp dword [esp + 0x30], 0x158
jne 0x45acc4
cmp dword [esp + 0x24], 1
jne 0x45acc4
lea eax, [esp + 0xc]
call fcn.0045ab04
test eax, eax
jne 0x45add3
movsx edx, word [esp]
cmp edx, dword [esp + 0x20]
jne 0x45adcf
push 0x45ee75
mov ecx, dword [esp + 8]
push ecx
call sub.Kernel32.dll_lstrcpyA_1
lea eax, [esp + 0xc]
push eax
mov edx, dword [esp + 8]
push edx
call sub.kernel32.dll_lstrcatA
xor eax, eax
jmp 0x45ade3
inc dword [esp + 0x20]
cmp dword [esp + 0x18], 4
jge 0x45accf
mov eax, 0xffffffa4
add esp, 0x438
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x40300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0xa8c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8c]
push eax
mov dword [ebp - 0xa8c], esi
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
mov edi, eax
lea eax, [ebp - 0xa38]
push eax
mov dword [ebp - 0xa38], ebx
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x401064
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, str._calc
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x40107c
sub eax, edx
sar eax, 1
add eax, ecx
lea eax, [eax + eax + 4]
call fcn.00401230
mov edi, esp
mov dword [ebp - 0xa30], edi
call esi
mov edx, edi
movzx ecx, word [eax]
inc eax
mov word [edx], cx
inc eax
inc edx
inc edx
cmp cx, bx
jne 0x4010a1
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x4010b2
mov esi, 0x40211c
mov eax, str._calc
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4010ca
mov edi, dword [ebp - 0xa30]
sub eax, edx
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
cmp cx, bx
jne 0x4010de
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR90.dll__wsplitpath]
push 0x402120
push str.soffice
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR90.dll__wmakepath]
add esp, 0x28
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xa8c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0xa30]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4011b1
push 0xffffffffffffffff
push dword [ebp - 0xa48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xa48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa44]
call esi
xor eax, eax
jmp 0x4011f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push ebx
push ebx
lea ecx, [ebp - 0xa34]
push ecx
push 0x400
push eax
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x10
push ebx
push dword [ebp - 0xa34]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0xa34]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
lea esp, [ebp - 0xa98]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040121c
leave
ret 0x10
Function at 0x401c70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
mov al, byte [0x445264]
push esi
mov esi, ecx
push edi
mov byte [esp + 0xc], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
mov edx, dword [esi + 0x18c]
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
push 0x64
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x11
jne 0x401d14
mov edx, dword [esi + 0x130]
lea ecx, [esp + 8]
push ecx
push 0
push 0x466
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 4
jne 0x401d14
lea eax, [esi + 0x124]
push 6
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0042f850
add esp, 0xc
test eax, eax
je 0x401d14
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi + 4]
mov dword [esi + 0x12c], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
add esp, 0x68
ret 0xc
mov edx, dword [esi + 4]
push 0x40
push 0x444178
push 0x444150
push edx
call fcn.00420f60
add esp, 0x10
pop edi
pop esi
add esp, 0x68
ret 0xc
Function at 0x404680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
test eax, eax
je 0x40469e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [edi]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jne 0x4046cb
push 0x445268
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
setne cl
mov eax, ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
lea esi, [eax + 1]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0043a490
mov edx, dword [edi]
mov ebx, esp
push esi
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4046f5
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
test ebx, ebx
jne 0x4046fd
xor eax, eax
jmp 0x40472c
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.0043a490
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]
mov eax, edi
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 8]
xor edx, edx
lea esp, [ebp - 0xc]
test eax, eax
setne dl
pop edi
mov dword [ecx], eax
pop esi
mov eax, edx
pop ebx
pop ebp
ret 4

Function at 0x405810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov bl, 1
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x40586d
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x10], eax
call edi
mov edx, dword [esi + 4]
mov dword [esp + 0x10], eax
push edx
mov dword [esp + 0x18], 0xfffffffe
call edi
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [esp + 0xc]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
shr eax, 2
test al, 1
je 0x4058aa
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esi + 4]
and edi, 0xffff
push ecx
push edi
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esi + 0x24]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
seta bl
test bl, bl
je 0x4058e1
mov al, byte [esi + 0x54]
push 1
or al, 2
push 0
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x406ca0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43aa39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.0040e470
lea edi, [esi + 0x20]
xor eax, eax
lea ebp, [esi + 0x24]
lea ebx, [esi + 0x28]
mov dword [edi], eax
mov dword [esp + 0x30], eax
mov dword [ebp], eax
mov dword [ebx], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x30], 1
call fcn.00401280
push 0
push 8
lea ecx, [esi + 0x50]
mov byte [esp + 0x38], 2
call fcn.00404a30
push 0
push 8
lea ecx, [esi + 0x94]
mov byte [esp + 0x38], 3
call fcn.00404a30
push 0
push 8
lea ecx, [esi + 0xd8]
mov byte [esp + 0x38], 4
call fcn.00404a30
mov dword [esi + 0x11c], 0
mov dword [esp + 0x10], 0
push 1
push 1
push 0x18
push 0x18
push 2
mov ecx, edi
mov byte [esp + 0x44], 6
call fcn.004048c0
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xea
call fcn.00402330
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_Add]
push 0
push eax
push ecx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.00402310
mov dword [esp + 0x14], 0
push 1
push 1
push 0x18
push 1
push 3
mov ecx, ebp
mov byte [esp + 0x44], 7
call fcn.004048c0
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xe8
lea ecx, [esp + 0x18]
call fcn.00402330
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push edx
push eax
call edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.00402310
xor ebp, ebp
mov dword [esp + 0x18], ebp
push 1
push 1
push 0x18
push 0xa
push 3
mov ecx, ebx
mov byte [esp + 0x44], 8
call fcn.004048c0
push ecx
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xe9
call fcn.00402330
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
push ebp
push ecx
push edx
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 5
call fcn.00402310
mov dword [esp + 0x1c], ebp
push 1
push 1
push 0x18
lea ebx, [esi + 0x11c]
push 0x5b
push 1
mov ecx, ebx
mov byte [esp + 0x44], 9
call fcn.004048c0
push ecx
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], 0xfd
call fcn.00402330
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push ebp
push eax
push ecx
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.00402310
push 0xf3efe3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x128]
push ebp
mov dword [esi + 0x120], ebp
push 8
mov ecx, edi
mov dword [esp + 0x38], 0xa
mov dword [esi + 0x124], ebp
call fcn.004029d0
mov dword [edi], 0x43e5d8
push ebp
mov byte [esp + 0x34], 0xb
lea edi, [esi + 0x16c]
push 8
mov ecx, edi
call fcn.004029d0
mov dword [edi], 0x43e5d8
lea edi, [esi + 0x1b0]
push ebp
push 8
mov ecx, edi
mov byte [esp + 0x38], 0xc
call fcn.004029d0
mov ecx, dword [esp + 0x28]
mov dword [edi], 0x43e5d8
mov dword [esi], 0x43e5fc
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x406cba
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43aa39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.0040e470
lea edi, [esi + 0x20]
xor eax, eax
lea ebp, [esi + 0x24]
lea ebx, [esi + 0x28]
mov dword [edi], eax
mov dword [esp + 0x30], eax
mov dword [ebp], eax
mov dword [ebx], eax
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x30], 1
call fcn.00401280
push 0
push 8
lea ecx, [esi + 0x50]
mov byte [esp + 0x38], 2
call fcn.00404a30
push 0
push 8
lea ecx, [esi + 0x94]
mov byte [esp + 0x38], 3
call fcn.00404a30
push 0
push 8
lea ecx, [esi + 0xd8]
mov byte [esp + 0x38], 4
call fcn.00404a30
mov dword [esi + 0x11c], 0
mov dword [esp + 0x10], 0
push 1
push 1
push 0x18
push 0x18
push 2
mov ecx, edi
mov byte [esp + 0x44], 6
call fcn.004048c0
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xea
call fcn.00402330
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_Add]
push 0
push eax
push ecx
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 5
call fcn.00402310
mov dword [esp + 0x14], 0
push 1
push 1
push 0x18
push 1
push 3
mov ecx, ebp
mov byte [esp + 0x44], 7
call fcn.004048c0
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xe8
lea ecx, [esp + 0x18]
call fcn.00402330
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push edx
push eax
call edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 5
call fcn.00402310
xor ebp, ebp
mov dword [esp + 0x18], ebp
push 1
push 1
push 0x18
push 0xa
push 3
mov ecx, ebx
mov byte [esp + 0x44], 8
call fcn.004048c0
push ecx
lea ecx, [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x20], esp
mov dword [eax], 0xe9
call fcn.00402330
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
push ebp
push ecx
push edx
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 5
call fcn.00402310
mov dword [esp + 0x1c], ebp
push 1
push 1
push 0x18
lea ebx, [esi + 0x11c]
push 0x5b
push 1
mov ecx, ebx
mov byte [esp + 0x44], 9
call fcn.004048c0
push ecx
lea ecx, [esp + 0x20]
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], 0xfd
call fcn.00402330
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push ebp
push eax
push ecx
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 5
call fcn.00402310
push 0xf3efe3
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x2c], eax
lea edi, [esi + 0x128]
push ebp
mov dword [esi + 0x120], ebp
push 8
mov ecx, edi
mov dword [esp + 0x38], 0xa
mov dword [esi + 0x124], ebp
call fcn.004029d0
mov dword [edi], 0x43e5d8
push ebp
mov byte [esp + 0x34], 0xb
lea edi, [esi + 0x16c]
push 8
mov ecx, edi
call fcn.004029d0
mov dword [edi], 0x43e5d8
lea edi, [esi + 0x1b0]
push ebp
push 8
mov ecx, edi
mov byte [esp + 0x38], 0xc
call fcn.004029d0
mov ecx, dword [esp + 0x28]
mov dword [edi], 0x43e5d8
mov dword [esi], 0x43e5fc
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x408ca0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x308
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x208]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x108]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push 0
push ecx
push 0x104
push str.Packet.inf
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edx, [esp + 4]
lea eax, [esp + 0x108]
push edx
push str.snetcfg.exe__v__l___s___c_p__i_ms_packet
push 0x100
push eax
call fcn.00421960
add esp, 0x10
lea ecx, [esp + 0x108]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
add esp, 0x308
ret

Function at 0x408d40
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
push str.drivers360AntiArp.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x408d8a
mov eax, 0x8001
add esp, 0x210
ret
mov al, byte [0x445264]
push edi
mov byte [esp + 0xc], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 8]
push edx
push eax
push str.ImagePath
push str.SYSTEMCurrentControlSetServices360AntiArp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov dl, byte [esp + 0xc]
xor eax, eax
test dl, dl
setne al
add eax, 0x8002
pop edi
add esp, 0x210
ret
Function at 0x409710
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
mov edx, ecx
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 4]
push 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [edx + 0x24]
mov dword [esp + 0x14], ecx
push 0
mov ecx, dword [eax]
mov dword [esp + 0x22], ecx
lea ecx, [edx + 0x2a]
mov ax, word [eax + 4]
add edx, 0x30
mov word [esp + 0x26], ax
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov cx, word [ecx + 4]
mov dword [esp + 0x1c], eax
mov word [esp + 0x14], cx
mov cx, word [edx + 4]
lea edx, [esp + 0xc]
mov word [esp + 0x20], cx
push edx
push 0x408550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
add esp, 0x1c
ret 8
Function at 0x409f70
Capabilities:
Create process on windows
Get common file path
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x43abfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push esi
push edi
lea eax, [esp + 0x10]
push 0x104
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
push str.drivers360AntiArp.sys
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x10]
lea edi, [esi + 8]
push str.Base
push edx
push str.360AntiArp
mov ecx, edi
mov dword [esp + 0x14], edi
call fcn.00421080
push 0x50
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
test esi, esi
mov dword [esp + 0x11c], 0
je 0x40a060
lea ecx, [esi + 0x1c]
call fcn.00432720
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateIpNetEntry
push eax
mov dword [esi], eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.SendARP
push eax
call edi
mov ecx, dword [esi]
push str.EnableRouter
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push str.UnenableRouter
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.GetAdaptersInfo
push eax
call edi
mov edi, dword [esp + 8]
mov dword [esi + 0x14], eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
jmp 0x40a062
xor esi, esi
push 0
push str.snetcfg.exe__v__u_ms_packet
mov dword [esp + 0x124], 0xffffffff
mov dword [0x44526c], esi
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [0x44526c]
test esi, esi
je 0x40a0cf
mov eax, dword [esi + 0x48]
cmp eax, 0xffffffff
je 0x40a0a4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi]
mov dword [esi + 0x4c], 1
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x1c]
call fcn.00432730
push esi
call fcn.0043a372
add esp, 4
mov ecx, edi
mov dword [0x44526c], 0
call fcn.00421560
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret