joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5106180c
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5106195c
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x51061907
mov eax, dword [ebp - 4]
cmp byte [eax + 0x3c], 0
jne 0x51061907
xor esi, esi
push 0
mov eax, dword [ebp - 0x10]
call fcn.510049f0
push eax
mov eax, dword [ebp - 0xc]
call fcn.510049f0
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.510049f0
push eax
call sub.wininet.dll_InternetOpenA
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
push 0
call sub.wininet.dll_InternetAttemptConnect
test eax, eax
je 0x5106187b
call fcn.5100c2b8
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
setne dl
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.51061714
xor eax, eax
push ebp
push 0x510618ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 0
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
call fcn.510049f0
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wininet.dll_InternetConnectA
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], esi
test esi, esi
setne dl
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.51061714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5106193b
test bl, bl
jne 0x5106193b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x5106191b
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x51061933
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x3c], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51061963
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.51004564
ret
Function at 0x51061a20
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51061c02
push dword fs:[eax]
mov dword fs:[eax], esp
push 9
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x51061a00]
call fcn.51005be0
add esp, 4
mov eax, 0x51061c14
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, 0x51061c20
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, 0x51061c30
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, 0x51061c3c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov eax, 0x51061c48
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, 0x51061c68
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, 0x51061c84
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, 0x51061c98
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x20], edx
mov edi, 0x400000
cmp dword [esi + 0x14], 4
jne 0x51061acb
or edi, 0x800000
test bl, bl
jne 0x51061ae3
mov eax, dword [0x51061c9c]
mov dword [ebp - 0xd], eax
mov al, byte [0x51061ca0]
mov byte [ebp - 9], al
jmp 0x51061af5
mov eax, dword [0x51061ca4]
mov dword [ebp - 0xd], eax
mov al, byte [0x51061ca8]
mov byte [ebp - 9], al
push 0
push edi
mov eax, dword [ebp - 8]
push eax
push 0
push 0x51061cac
mov eax, dword [esi + 0x10]
call fcn.510049f0
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [esi + 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [esi + 0xc], eax
cmp dword [esi + 0xc], 0
setne dl
xor dl, 1
mov eax, esi
call fcn.51061714
xor edi, edi
test bl, bl
jne 0x51061b60
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x51061ba5
mov ecx, 0x51061cc0
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
jmp 0x51061ba5
lea eax, [ebp - 0x18]
mov edx, dword [esi + 0x18]
call fcn.510045d8
push edi
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.510047f8
push eax
lea eax, [ebp - 0x18]
call fcn.51004a48
push eax
mov eax, dword [esi + 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x51061ba5
mov ecx, 0x51061cc0
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
lea eax, [ebp - 4]
push eax
push 7
call sub.kernel32.dll_GetLastError_1
push eax
mov eax, dword [esi + 0xc]
push eax
call sub.user32.dll_GetDesktopWindow
push eax
call sub.wininet.dll_InternetErrorDlg
sub eax, 1
jb 0x51061bdb
sub eax, 0x4c6
je 0x51061bd1
jmp 0x51061b2f
call fcn.5100c2b8
jmp 0x51061b2f
mov ebx, dword [esi + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51061c09
lea eax, [ebp - 0x18]
call fcn.51004540
lea eax, [ebp - 8]
mov edx, dword [0x51061a00]
call fcn.51005d00
ret
Function at 0x51062200
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov dl, 1
mov eax, dword [0x51061050]
call fcn.510620d0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x510622ba
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.51022cd4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x20b8], 0
jne 0x5106225b
mov eax, dword [0x5107d928]
mov eax, dword [eax]
call fcn.5103e9d0
push 0x190
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 1
call sub.kernel32.dll_WaitForMultipleObjects
cmp eax, 0x102
jne 0x510622a4
add ebx, 0x190
cmp esi, ebx
jg 0x51062240
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov ecx, 0x510622d0
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
jmp 0x51062240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510622c1
mov eax, dword [ebp - 8]
call fcn.51003750
ret

Function at 0x51063698
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
call fcn.5105df5c
lea edx, [ebp - 0x10c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20b4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 4]
call fcn.5105df4c
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
mov esp, ebp
pop ebp
ret
Function at 0x510643e8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.510049e0
xor eax, eax
push ebp
push 0x510648e2
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.51064240
pop ecx
mov dword [ebp - 0x24], 2
xor eax, eax
push ebp
push 0x510644f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x510644db
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.51062958
test al, al
jne 0x510644a7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20b4]
cmp byte [eax + 0x30], 0
je 0x510644a7
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x40]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
cdq
cmp edx, dword [esp + 4]
jne 0x510644a3
cmp eax, dword [esp]
pop edx
pop eax
jae 0x510644b1
jmp 0x510644a7
pop edx
pop eax
jge 0x510644b1
mov eax, dword [ebp - 4]
call fcn.51062374
jmp 0x510644c4
push ebp
call fcn.51063698
pop ecx
test al, al
je 0x510644c4
mov eax, dword [ebp - 4]
call fcn.51062374
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.51003fc8
jmp 0x51064508
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
xor edx, edx
push ebp
push 0x5106489d
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x510647a3
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x51064720
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x5106455f
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.51063a70
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x51064602
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20b0]
mov byte [eax + 0x10], 1
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x20b0]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], 0x510649c4
mov eax, dword [ebp - 4]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], 0x510649d0
mov dword [ebx + 0x28], 0xffffffff
mov dword [ebx + 0x2c], 0xffffffff
xor edx, edx
push ebp
push 0x51064707
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x51064675
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.51063fbc
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510646c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5106470e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20b0]
mov byte [eax + 0x10], 0
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
xor edx, edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], 0xffffffff
mov dword [eax + 0x2c], 0xffffffff
ret
Function at 0x510649f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.510049e0
xor eax, eax
push ebp
push 0x51064b94
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20a8], 0
je 0x51064a40
mov eax, dword [0x5107da78]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0xa], ax
mov eax, dword [0x5107da78]
mov eax, dword [eax]
mov dx, 0xffef
call fcn.5103cc48
xor edx, edx
push ebp
push 0x51064b77
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20b8], 0
jne 0x51064a68
mov eax, dword [0x5107d928]
mov eax, dword [eax]
call fcn.5103e9d0
jmp 0x51064a74
call fcn.51006a30
mov byte [eax + 0x10], 1
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, dword [ebp - 8]
call fcn.51004594
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2090], 0
je 0x51064aab
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x20bc], eax
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.510643e8
jmp 0x51064b05
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.5106180c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
xor edx, edx
push ebp
push 0x51064afe
push dword fs:[edx]
mov dword fs:[edx], esp
mov cl, byte [ebp + 8]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.51061a20
mov eax, dword [ebp - 4]
call fcn.51061ce4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51064b05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x51064afd
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51064b7e
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x20bc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20bc], eax
call fcn.51006a30
mov byte [eax + 0x10], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x20a8], 0
je 0x51064b51
mov eax, dword [0x5107da78]
mov eax, dword [eax]
mov dx, word [ebp - 0xa]
call fcn.5103cc48
mov eax, dword [ebp - 4]
cmp word [eax + 0x2082], 0
je 0x51064b76
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x20bc]
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x2084]
call dword [ebx + 0x2080]
ret
Function at 0x51068014
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x51068042
mov eax, ebx
call fcn.51068acc
cmp dword [ebx + 0x3c], 0
je 0x5106803b
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x510680b3
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x510680a5
cmp dword [ebx + 8], 0
je 0x51068064
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x51068076
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x510680a5
cmp dword [ebx + 8], 0
je 0x51068057
cmp eax, 3
je 0x51068089
dec eax
jne 0x51068057
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x51068057
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x51068057
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x510680d1
cmp dword [ebx + 0x10], 0xcc
je 0x510680d1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.510680dc
pop ebx
ret

Function at 0x510781bc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret
Function at 0x51079b9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.510049e0
xor eax, eax
push ebp
push 0x51079cb2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.510049f0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x51079bf0
mov eax, edi
mov edx, 0x51079cc8
call fcn.51004594
jmp 0x51079c94
mov eax, ebx
call fcn.51002738
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x51079c8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x51079ccc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x51079c6d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x51079cf4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x51079c6d
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, 0x51079d24
call fcn.51004844
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.510092b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51079c94
mov eax, dword [ebp - 0x10]
call fcn.51002758
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51079cb9
lea eax, [ebp - 0x18]
call fcn.51004540
lea eax, [ebp - 4]
call fcn.51004540
ret
Function at 0x51079d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.510049e0
mov eax, dword [ebp - 8]
call fcn.510049e0
mov eax, dword [ebp + 8]
call fcn.510049e0
xor eax, eax
push ebp
push 0x51079e82
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
mov edx, 0x3c
call fcn.5100752c
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x3c], ebx
mov eax, 0x51079e94
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
call fcn.510049f0
mov dword [ebp - 0x34], eax
cmp dword [ebp - 8], 0
je 0x51079dbe
mov eax, dword [ebp - 8]
call fcn.510049f0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 1
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
call fcn.51008914
cmp dword [ebp - 0x48], 0
je 0x51079e43
mov al, byte [0x51079e9c]
push eax
lea eax, [ebp - 0x4c]
push eax
xor ecx, ecx
mov edx, 0x51079ea8
mov eax, dword [ebp + 8]
call fcn.5100d6b8
mov eax, dword [ebp - 0x4c]
call fcn.51008cd0
test al, al
jne 0x51079e38
mov al, byte [0x51079e9c]
push eax
lea eax, [ebp - 0x54]
push eax
xor ecx, ecx
mov edx, 0x51079ea8
mov eax, dword [ebp + 8]
call fcn.5100d6b8
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x51079eb4
call fcn.51004844
mov ecx, dword [ebp - 0x50]
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
mov eax, dword [ebp + 8]
call fcn.510049f0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51079e89
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.51004564
lea eax, [ebp - 8]
mov edx, 2
call fcn.51004564
lea eax, [ebp + 8]
call fcn.51004540
ret
Function at 0x51079f14
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x51079f1d
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.510049e0
mov eax, dword [ebp - 8]
call fcn.510049e0
mov eax, dword [ebp - 0xc]
call fcn.510049e0
mov eax, dword [ebp + 8]
call fcn.510049e0
xor eax, eax
push ebp
push 0x5107a151
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x5107a168
mov eax, dword [ebp - 4]
call fcn.51008f28
lea eax, [ebp - 0x1c]
call fcn.5107a838
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5107a178
call fcn.51004844
mov edx, dword [ebp - 0x20]
mov eax, dword [0x5107d9a4]
mov eax, dword [eax]
call fcn.5106196c
mov ebx, eax
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.51004844
mov edx, dword [ebp - 0x24]
mov eax, ebx
call fcn.5101d564
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.51078ea0
push 0x5107a188
push dword [ebp - 8]
push 0x5107a198
push dword [ebp - 0xc]
push 0x5107a1a4
push dword [ebp + 8]
push 0x5107a1b0
lea eax, [ebp - 0x18]
mov edx, 7
call fcn.510048b8
call fcn.51079ec8
test al, al
je 0x5107a0c8
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x5107a1bc
mov edx, dword [ebp - 0x1c]
call fcn.51004844
mov eax, dword [ebp - 0x28]
call fcn.510049f0
push eax
mov eax, dword [ebp - 0x14]
call fcn.510049f0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x5107a08b
push 5
push dword [ebp - 0x1c]
push 0x5107a1bc
push 0x5107a1d4
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.510048b8
mov eax, dword [ebp - 0x2c]
call fcn.510049f0
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x1f
ja 0x5107a12e
push 0x5107a1e0
push dword [ebp - 0x1c]
push 0x5107a1bc
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.510048b8
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
jmp 0x5107a12e
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
xor eax, eax
call fcn.51079d40
test al, al
jne 0x5107a12e
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5107a220
call fcn.51004844
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
jmp 0x5107a12e
push 5
push dword [ebp - 0x14]
push 0x5107a260
push dword [ebp - 8]
push 0x5107a198
push dword [ebp - 0xc]
push 0x5107a1a4
push dword [ebp + 8]
push 0x5107a1b0
lea eax, [ebp - 0x38]
mov edx, 8
call fcn.510048b8
mov eax, dword [ebp - 0x38]
call fcn.510049f0
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x1f
ja 0x5107a12e
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov edx, 0x5107a270
call fcn.51004844
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x51007aec]
call fcn.5100c314
call fcn.51003f1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5107a158
lea eax, [ebp - 0x3c]
mov edx, 0xf
call fcn.51004564
lea eax, [ebp + 8]
call fcn.51004540
ret
Function at 0x5107a71c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffec4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x113c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.510049e0
xor eax, eax
push ebp
push 0x5107a828
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 8]
lea eax, [ebp - 0x100c]
mov edx, 0x1000
call fcn.510650b4
mov eax, dword [ebp - 8]
shr eax, 2
mov edi, eax
dec edi
test edi, edi
jl 0x5107a807
inc edi
lea ebx, [ebp - 0x100c]
mov eax, dword [ebx]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x5107a7fd
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, esi
call fcn.510650d8
push 0x12c
lea ecx, [ebp - 0x1138]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.51065108
lea eax, [ebp - 0x113c]
lea edx, [ebp - 0x1138]
mov ecx, 0x12c
call fcn.510047a8
mov eax, dword [ebp - 0x113c]
mov edx, dword [ebp - 4]
call fcn.5100878c
test eax, eax
jne 0x5107a7f7
push 0
mov eax, dword [ebx]
push eax
push 0
push 0x401
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
push esi
call sub.kernel32.dll_CloseHandle_1
add ebx, 4
dec edi
jne 0x5107a77b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5107a82f
lea eax, [ebp - 0x113c]
call fcn.51004540
lea eax, [ebp - 4]
call fcn.51004540
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0xc7c00
push 0
call sub.kernel32.dll_GetCurrentThreadId
call sub.kernel32.dll_VirtualAlloc
call fcn.0049fa3c
ret