joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100062e0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x278
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
mov ebp, dword [esp + 0x284]
push esi
push edi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x128]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x20]
push ebx
push ecx
mov dword [esp + 0x24], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], 1
call sub.MSVCR90.dll_memset
mov eax, dword [0x10028f04]
add esp, 0xc
push eax
lea ecx, [esp + 0x22c]
push 0x10008220
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10006381
sub eax, esi
push eax
lea edx, [esp + 0x22c]
push edx
mov esi, ebp
call fcn.100066d0
add esp, 8
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, 0x41
lea esi, [esp + 0x128]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0x24]
push ecx
push ebx
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100064c5
push 0x51
lea edx, [esp + 0x22c]
push ebx
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea eax, [esp + 0x230]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
mov byte [esp + eax + 0x234], bl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1002a3d8]
add esp, 0xc
push edx
lea eax, [esp + 0x22c]
push 0x10008220
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
lea eax, [esp + 0x234]
add esp, 0xc
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10006440
sub eax, esi
push eax
lea ecx, [esp + 0x22c]
push ecx
mov esi, ebp
call fcn.100066d0
add esp, 8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
mov ecx, 0x41
lea esi, [esp + 0x130]
lea edi, [esp + 0x28]
push ebx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], 0x14
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x100064c5
push 0x51
lea ecx, [esp + 0x22c]
push ebx
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x51
lea edx, [esp + 0x230]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
jmp 0x100064c7
xor eax, eax
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10006e9c
add esp, 0x278
ret
Function at 0x100066d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push edi
mov ebp, 1
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ecx, dword [esp + 0x40]
mov ebx, dword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
push 0
lea edx, [esp + 0x28]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
jne 0x10006741
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x10006790
push 0
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x28]
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x10006790
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x10006790
mov eax, dword [esp + 0xc]
sub dword [esp + 0x14], eax
je 0x10006792
add dword [esp + 0x18], eax
jmp 0x10006717
xor ebp, ebp
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x100067b0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push edi
xor ebx, ebx
push ebx
push 0xf
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100067f0
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x10006818
mov al, byte [esp + ecx + 0x2c]
cmp al, 0x41
jl 0x10006813
cmp al, 0x5f
jg 0x10006813
add al, 0x20
mov byte [esp + ecx + 0x2c], al
inc ecx
cmp ecx, edx
jl 0x10006801
mov ecx, esi
lea eax, [esp + 0x2c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006840
test dl, dl
je 0x1000683c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006840
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006820
xor eax, eax
jmp 0x10006845
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000685a
lea ecx, [esp + 8]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100067e5
jmp 0x10006869
mov edx, dword [esp + 0x10]
mov dword [0x1002a460], edx
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.10006e9c
add esp, 0x134
ret
Function at 0x10006d00
Capabilities:
Enumerate threads
Print debug messages
Suspend thread

Disassembly:
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.10006920
mov esi, 0x1000828c
call fcn.100067b0
test eax, eax
jne 0x10006d53
mov esi, 0x10008298
call fcn.100067b0
test eax, eax
jne 0x10006d53
mov esi, str.gostop.exe
call fcn.100067b0
test eax, eax
je 0x10006e5f
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10006e50
mov ebx, dword [sym.imp.MSVCR90.dll_sprintf]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esp + 0x20]
push edx
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006e29
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp eax, 0xf
je 0x10006db5
cmp eax, 0xfffffff1
jne 0x10006e29
push esi
call fcn.10006890
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0x48]
push str._xsize:_d_tid:_d_pid:_d_base:_ld_delta:_ld_n
push ecx
call ebx
mov eax, dword [0x1002a460]
mov ecx, dword [esp + 0x40]
add esp, 0x1c
cmp eax, ecx
jne 0x10006e29
lea edx, [edi - 0x100001]
cmp edx, 0x3feffffe
ja 0x10006e29
push ecx
push eax
push edi
lea eax, [esp + 0x40]
push str.stop:_x_d:_d_n
push eax
call ebx
add esp, 0x14
lea ecx, [esp + 0x34]
push ecx
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x10006e49
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10006d87
jmp 0x10006e50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10006e9c
add esp, 0x12c
ret

Function at 0x10006e9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10006ea6
repz ret
jmp fcn.10007259
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x4546c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4546cc]
xor esi, esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call fcn.00401077
mov eax, dword [0x4546d0]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x4546d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x4010ce
xor esi, esi
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
shl eax, 4
cmp dword [0x463914], 0xc
mov dword [ebp - 4], eax
jne 0x4010f8
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x463914]
cmp eax, 0xfa9
jne 0x401114
mov dword [0x463910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401133
push str.komovavukuniburubawumukoni
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x463868], esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, ebx
add eax, ebx
shr edx, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [0x46390c], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub edi, eax
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
add eax, edi
mov dword [ebp - 0x18], eax
add esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x463914], 0xb03
jne 0x4011ac
push str.ruyenemilimusibubigukexem
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
xor dword [ebp - 4], esi
sub ebx, dword [ebp - 4]
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010cc
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 4
Function at 0x4073c0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45383c]
jne 0x4073ca
repz ret
jmp fcn.0040b7cf

Function at 0x40b1bd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405d57
and dword [ebp - 4], 0
cmp dword [0x458904], 0
mov ebx, eax
jne 0x40b26e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b31f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b31f
push eax
call fcn.00405ce5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x458904], eax
call esi
push eax
call fcn.00405ce5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x458908], eax
call esi
push eax
call fcn.00405ce5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45890c], eax
call esi
push eax
call fcn.00405ce5
pop ecx
mov dword [0x458914], eax
test eax, eax
je 0x40b26e
push 0x44ff18
push edi
call esi
push eax
call fcn.00405ce5
pop ecx
mov dword [0x458910], eax
mov eax, dword [0x458910]
cmp eax, ebx
je 0x40b2c6
cmp dword [0x458914], ebx
je 0x40b2c6
push eax
call fcn.00405d60
push dword [0x458914]
mov esi, eax
call fcn.00405d60
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2c6
test edi, edi
je 0x40b2c6
call esi
test eax, eax
je 0x40b2bd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2bd
test byte [ebp - 0xc], 1
jne 0x40b2c6
or dword [ebp + 0x10], 0x200000
jmp 0x40b2ff
mov eax, dword [0x458908]
cmp eax, ebx
je 0x40b2ff
push eax
call fcn.00405d60
pop ecx
test eax, eax
je 0x40b2ff
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2ff
mov eax, dword [0x45890c]
cmp eax, ebx
je 0x40b2ff
push eax
call fcn.00405d60
pop ecx
test eax, eax
je 0x40b2ff
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458904]
call fcn.00405d60
pop ecx
test eax, eax
je 0x40b31f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b321
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b0a0
Capabilities:
Get uefi variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5c23
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x4f0464]
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, ecx
mov dword [ebp - 0x60], edi
xor eax, eax
mov dword [ebp - 0x18], 0
mov ebx, 2
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push str.Kernel32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x40b205
push str.GetFirmwareType
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b205
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push ecx
call eax
call fcn.00445180
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40b1ef
push 0x70
push str.d:jenkins.jenkinsworkspacelib_commonwin11_update_assistantwin11_update_assistant_srccheckwin11_check.cpp
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], al
call fcn.00411d10
push 3
push 0x4c1b84
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00411d10
mov byte [ebp - 4], bl
call fcn.00445180
mov edi, eax
lea ecx, [ebp - 0xfc]
push 0x53
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004092d0
mov esi, eax
push 0x4c1b88
push esi
mov byte [ebp - 4], 3
call fcn.00407110
add esp, 8
mov ecx, esi
push dword [ebp - 0x5c]
call fcn.0040a450
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.0040a7e0
lea ecx, [ebp - 0x40]
call fcn.00409da0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00409da0
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
cmp eax, 3
ja case.default.0x40b1f7
jmp dword [eax*4 + 0x40b2c0]
mov ebx, 2
jmp case.default.0x40b1f7
push 0
push 0
push str.00000000_0000_0000_0000_000000000000
push 0x4c17ec
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
jne case.0x40b1f7.2
push 6
xor ebx, ebx
push str.Legacy
jmp 0x40b23b
push 4
push str.UEFI
mov ebx, 1
lea ecx, [ebp - 0x28]
call fcn.00411e00
test esi, esi
je 0x40b24e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00409040
push ebx
push 7
mov ecx, edi
call fcn.0040f650
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40b29c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b292
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b2ba
push edx
push ecx
call fcn.00466e06
add esp, 8
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.004670b3
mov esp, ebp
pop ebp
ret
call fcn.0048f279
nop
invalid
Function at 0x40e9e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f0464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.0048c160
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0048c160
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x4c23c0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x108]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ea70
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.00411d10
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004670b3
mov esp, ebp
pop ebp
ret 4
Function at 0x40f460
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6286
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4f0464]
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, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048c160
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f4e1
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x40f4d3
push str.NetBridge.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0040f380
mov ecx, eax
test ecx, ecx
je 0x40f643
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040d070
test al, al
jne 0x40f558
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f536
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040fcd0
mov esi, dword [ebp - 0x21c]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f574
mov bl, 1
jmp 0x40f582
push esi
call fcn.00446cf0
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f5a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x40f623
cmp dword [edi], 0
jne 0x40f60a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40f623
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40f60a
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40f623
cmp dword [edi + 4], 0
je 0x40f623
cmp dword [edi + 0xc], 0
je 0x40f623
mov eax, 1
jmp 0x40f625
xor eax, eax
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.004670b3
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b080
int3
Function at 0x40f960
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6300
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f0464]
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 esi, ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0040e9e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f9c5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x2c]
call fcn.004159a0
mov ecx, esi
call fcn.0040b2d0
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040b760
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040b490
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040cd20
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040d430
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040d6f0
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040b0a0
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040c900
cmp byte [esi + 8], 0
je 0x40fb3f
cmp byte [esi], 0
jne 0x40fb3f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xffffffff
push eax
push str.UEFISecureBootEnabled
push str.SYSTEMCurrentControlSetControlSecureBootState
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004462f0
xor eax, eax
mov dword [ebp - 0x30], 0
add esp, 0x10
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40faa4
push 9
lea edi, [eax + 1]
push str.Supported
jmp 0x40fabd
cmp eax, 1
jne 0x40fab4
push 7
mov edi, eax
push str.Enabled
jmp 0x40fabd
push 0x17
xor edi, edi
push str.Disabled___Not_Detected
lea ecx, [ebp - 0x40]
call fcn.00411e00
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00409040
push edi
push 9
mov ecx, esi
call fcn.0040f650
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40fb1b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb11
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fba5
push edx
push ecx
call fcn.00466e06
add esp, 8
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040da10
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040d1a0
cmp byte [esi], 0
jne 0x40fb3f
mov ecx, esi
call fcn.0040b960
lea ecx, [esi + 0x2c]
call fcn.00415af0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40fb89
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40fb7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fbaa
push edx
push ecx
call fcn.00466e06
add esp, 8
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.004670b3
mov esp, ebp
pop ebp
ret
call fcn.0048f279
call fcn.0048f279
int3