joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fccd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [eax], bl
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x45fcfa
cmp byte [eax + 1], 0x3a
jne 0x45fcfa
inc eax
inc eax
cmp byte [eax], 0x5c
jne 0x45fd48
inc eax
jmp 0x45fd48
push 0x5c
push eax
call fcn.0045fd59
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x45fd1e
cmp dword [ebp + 0xc], ebx
jne 0x45fd20
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
mov byte [esi], bl
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x45fd3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45fd4e
cmp esi, ebx
je 0x45fd17
mov byte [esi], 0x5c
lea eax, [esi + 1]
cmp byte [eax], bl
jne 0x45fd02
jmp 0x45fd17
cmp esi, ebx
je 0x45fd55
mov byte [esi], 0x5c
xor eax, eax
jmp 0x45fd1a

Function at 0x45fd6f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp word [eax], di
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
je 0x45fd9f
cmp word [eax + 2], 0x3a
jne 0x45fd9f
add eax, 4
cmp word [eax], 0x5c
jne 0x45fdf2
inc eax
inc eax
jmp 0x45fdf2
push 0x5c
push eax
call fcn.0045fe06
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
jne 0x45fdc5
cmp dword [ebp + 0xc], edi
jne 0x45fdc8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
mov word [esi], di
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45fde6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45fdf9
cmp esi, edi
je 0x45fdbe
mov word [esi], 0x5c
lea eax, [esi + 2]
cmp word [eax], di
jne 0x45fda9
jmp 0x45fdbe
cmp esi, edi
je 0x45fe02
mov word [esi], 0x5c
xor eax, eax
jmp 0x45fdc1
Function at 0x45fe20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x45ffd5
cmp dword [esi + 0x24], 0xffffffff
je 0x45ffd5
mov eax, dword [ebp + 0x14]
xor edi, edi
test al, 1
mov dword [esi + 8], edi
je 0x45fe9f
cmp word [esi + 0x58], di
jne 0x45fe6d
push esi
call fcn.0046006a
cmp dword [esi + 8], edi
pop ecx
jne 0x45ffc9
mov word [esi + 0x58], 1
mov ebx, dword [ebp + 0x10]
push dword [ebx + 0x20]
push dword [ebp + 0xc]
push esi
call fcn.0045e171
add esp, 0xc
mov dword [ebx + 0x20], eax
cmp dword [esi + 8], edi
jne 0x45fe96
cmp dword [esi + 0x8c], edi
je 0x45fe96
push 5
jmp 0x45ffd7
mov word [esi + 0x58], di
jmp 0x45ffc9
mov ebx, dword [ebp + 0x10]
test byte [ebx + 4], 0x10
je 0x45fece
test al, 2
je 0x45fec7
push 1
push dword [ebp + 0xc]
test eax, eax
jns 0x45febc
call fcn.0045fd6f
jmp 0x45fec1
call fcn.0045fccd
pop ecx
cmp eax, edi
pop ecx
je 0x45ff25
xor eax, eax
jmp 0x45ffd8
cmp eax, 4
jne 0x45fed8
mov eax, dword [ebp + 0xc]
jmp 0x45ff1d
mov dword [ebp + 8], eax
push edi
and dword [ebp + 8], 0x80000000
push dword [ebp + 0xc]
je 0x45feef
call fcn.0045fd6f
jmp 0x45fef4
call fcn.0045fccd
pop ecx
cmp eax, edi
pop ecx
je 0x45ff25
push edi
cmp dword [ebp + 8], edi
push dword [ebx + 4]
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
je 0x45ff17
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x45ff1d
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x45ff31
mov dword [esi + 8], 1
jmp 0x45ffc9
push esi
call fcn.0046006a
cmp dword [esi + 8], edi
pop ecx
jne 0x45ffba
cmp dword [esi + 0x34], edi
mov ebx, 0x4000
jne 0x45ff98
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x45ff98
mov dword [esi + 8], 2
jmp 0x45ff98
push ebx
push dword [esi + 0x34]
push esi
call fcn.0045e171
add esp, 0xc
cmp eax, edi
mov dword [ebp + 8], eax
je 0x45ff9d
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [esi + 0x34]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45ff91
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x45ff98
mov dword [esi + 8], 3
cmp dword [esi + 8], edi
je 0x45ff5f
cmp dword [esi + 8], edi
mov ebx, dword [ebp + 0x10]
jne 0x45ffba
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 8]
add ebx, 0x10
push eax
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp dword [ebp + 0x14], 4
je 0x45ffc9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0045ffdd
mov eax, dword [esi + 8]
pop ecx
jmp 0x45ffd8
push 9
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461c77
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x48f788
call fcn.004874e0
sub esp, 0x10
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.004315d3
and dword [ebp - 4], 0
cmp dword [esi + 0x1c], 0
je 0x461cb3
mov al, byte [ebp - 0xd]
push 0x4a7584
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push 0x461a48
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp - 0x14]
add esp, 0x18
test eax, eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
jne 0x461cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4a74c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x461d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4a74c0
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x461d3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x4a74c0
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, ebx
mov dword [esi + 0x1c], 1
call fcn.004315db
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4623f0
Capabilities:
Create thread

Disassembly:
mov eax, 0x48f800
call fcn.004874e0
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
lea eax, [ebx + 0x9c]
mov dword [ebp - 0x10], esp
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call fcn.004315f1
lea eax, [ebx + 0x8c]
mov esi, 0x4c2654
mov edi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
push 0x4b7104
push eax
movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x46259f
mov esi, str.S:Ammyy_sourcesmain_soundAudioIn.cpp
push str.StartSound__1
push esi
mov edi, 0x4c2700
push 2
push edi
call fcn.00420f3e
add esp, 0x10
cmp dword [ebx + 0x80], 0
je 0x462486
lea eax, [ebp - 0x2c]
push str.AudioIn::Start:_Sound_Capture_thread_is_already_active
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
cmp eax, 0x3e8
mov dword [ebx], eax
jb 0x462499
cmp eax, 0xbb80
jbe 0x4624ab
push 0x42
push esi
lea ecx, [ebp - 0x20]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
mov ax, word [ebx + 4]
cmp ax, 8
je 0x4624cd
cmp ax, 0x10
je 0x4624cd
push 0x43
push esi
lea ecx, [ebp - 0x20]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
mov ax, word [ebx + 6]
cmp ax, 1
je 0x4624ef
cmp ax, 2
je 0x4624ef
push 0x44
push esi
lea ecx, [ebp - 0x20]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
movzx eax, word [ebx + 4]
movzx ecx, word [ebx + 6]
shr eax, 3
imul eax, ecx
imul eax, dword [ebx]
xor edx, edx
mov ecx, 0x3e8
lea eax, [eax + eax*4]
shl eax, 2
div ecx
mov ecx, ebx
mov dword [ebx + 8], eax
call fcn.004626c4
push str.StartSound__2
push esi
push 2
push edi
call fcn.00420f3e
add esp, 0x10
mov ecx, ebx
mov byte [ebp - 4], 1
push 0x1f40
push 3
push 0
call fcn.00462ebf
push str.StartSound__3
push esi
push 2
push edi
call fcn.00420f3e
add esp, 0x10
xor esi, esi
mov dword [ebx + 0x84], esi
push esi
push esi
push ebx
push 0x462a27
push esi
push esi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [ebx + 0x80], eax
cmp dword [ebx + 0x80], esi
jne 0x46259f
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x38]
push str.Failed_to_start_Sound_Capture_thread__errno___d_
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00431605
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x462deb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x462e15
movzx eax, word [esi + 4]
movzx ecx, word [esi + 6]
shr eax, 3
imul eax, ecx
imul eax, dword [esi + 0x78]
cmp ebx, eax
jbe 0x462e2e
push 0x1be
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
mov ax, word [esi + 4]
cmp ax, 0x10
jne 0x462e75
test bl, 1
je 0x462e56
push 0x1c2
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
shr ebx, 1
xor eax, eax
test ebx, ebx
jle 0x462eb8
movsx ecx, word [edi + eax*2]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x7c]
fild dword [ebp + 8]
fstp dword [ecx + eax*4]
inc eax
cmp eax, ebx
jl 0x462e5e
jmp 0x462eb8
cmp ax, 8
je 0x462e94
push 0x1ca
push str.S:Ammyy_sourcesmain_soundAudioIn.cpp
lea ecx, [ebp - 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
xor eax, eax
test ebx, ebx
jbe 0x462eb8
movsx ecx, byte [eax + edi]
xor ecx, 0x80
shl ecx, 8
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x7c]
fild dword [ebp + 8]
fstp dword [ecx + eax*4]
inc eax
cmp eax, ebx
jb 0x462e9a
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4630d1
Capabilities:
Create thread

Disassembly:
mov eax, 0x48f8a0
call fcn.004874e0
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
cmp dword [esi + 0xb8], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], edi
je 0x463114
lea eax, [ebp - 0x24]
push str.AudioOut::StartSound___Sound_Playback_thread_is_already_active
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x24]
pop ecx
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, esi
call fcn.00463417
push 1
push edi
mov ecx, esi
call fcn.0046364b
lea ecx, [esi + 0x84]
cmp dword [ecx], edi
jne 0x463137
push edi
push edi
push edi
call fcn.004305eb
push edi
push edi
push esi
push 0x463754
push edi
push edi
mov dword [esi + 0xbc], edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xb8], eax
cmp dword [esi + 0xb8], edi
jne 0x463185
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x30]
push str.Failed_to_start_Sound_Playback_thread__errno___d_
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
xor eax, eax
inc eax
jmp 0x4631ae
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4646c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4646f0
push esi
call fcn.00468520
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4646e9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x464773
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x46475f
mov eax, dword [esi + 8]
test eax, eax
je 0x464714
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46475b
cmp eax, 2
je 0x46475f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x464707
cmp eax, 3
je 0x46473a
cmp eax, 1
jne 0x464707
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x464707
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x464707
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.004647a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x464793
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004647a0
add esp, 4
pop esi
ret
Function at 0x4675b0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00469410
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.004693c0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4675f4
push edi
call fcn.00469420
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.004676f0
mov dword [esi + 4], fcn.00467840
mov dword [esi + 8], fcn.004678f0
mov dword [esi + 0xc], fcn.004679a0
mov dword [esi + 0x10], 0x467a50
mov dword [esi + 0x14], 0x467ac0
mov dword [esi + 0x18], 0x467b30
mov dword [esi + 0x1c], 0x467cb0
mov dword [esi + 0x20], 0x467ea0
mov dword [esi + 0x24], fcn.00468090
mov dword [esi + 0x28], 0x468190
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x467656
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x4676e6
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x4676e6
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4676af
cmp al, 0x4d
jne 0x4676d3
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x487c6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x487cc0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x49c244
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x487cb3
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x487cc2
xor eax, eax
pop esi
leave
ret 4
Function at 0x4029c9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4029fd
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x402a71
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402a1f
mov eax, 0x46e281
push eax
push 1
mov ebx, 0x25c
call fcn.00457a70
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x20
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc4
call fcn.00457a80
add esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x402a7b
mov eax, 0
jmp 0x402a7b
mov esp, ebp
pop ebp
ret 4

Function at 0x402ac8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_getsockname
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.004571c0
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402b30
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x402b6e
cmp dword [ebp - 4], 0
je 0x402b69
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402b69
push 6
call fcn.00450d47
add esp, 4
jmp 0x402b76
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
cmp dword [ebp - 4], 0
mov eax, 0
setne al
jmp 0x402b87
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402b8d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402bca
mov eax, 0x46e281
push eax
push 3
mov ebx, 0x270
call fcn.00457aa0
add esp, 0x28
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402cb0
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x278
call fcn.00457b80
add esp, 0x10
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402c1b
mov eax, 0x46e281
push eax
push 1
mov ebx, 0x244
call fcn.00457870
add esp, 0x10
call fcn.004019fb
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402c4b
mov eax, 0x46e281
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402c5f
mov eax, 0x46e281
push eax
push 2
mov ebx, 0x23c
call fcn.00457880
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c82
push ebx
call fcn.00450d41
add esp, 4
mov dword [ebp - 8], esp
push 5
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WinExec]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402cab
push 6
call fcn.00450d47
add esp, 4
jmp 0x402d43
push dword [ebp + 8]
call fcn.004029c9
and eax, 1
xor eax, 1
test eax, eax
je 0x402d1a
call fcn.004019fb
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x402ce3
mov eax, 0x46e281
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x402cf7
mov eax, 0x46e281
push eax
push 2
mov ebx, 0x23c
call fcn.00457880
add esp, 0x1c
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402d1a
push ebx
call fcn.00450d41
add esp, 4
mov dword [ebp - 8], esp
push 5
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WinExec]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402d43
push 6
call fcn.00450d47
add esp, 4
push 0x709256
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x90]
mov esp, ebp
pop ebp
ret 4
Function at 0x406d7d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
push 8
call fcn.00450d3b
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00450d3b
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x10], 0
push 0x10
call fcn.00450d3b
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x406e2c
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 8
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc8
call fcn.004572a0
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x406e85
push 6
call fcn.00450d47
add esp, 4
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457300
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
push str.SeDebugPrivilege
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x406ed0
push 6
call fcn.00450d47
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x406ee0
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x406f74
push 6
call fcn.00450d47
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x406f99
push 6
call fcn.00450d47
add esp, 4
mov eax, dword [ebp - 0x10]
jmp 0x406fa1
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00450d41
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00450d41
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret