joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437229
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x468164]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
push 1
pop edi
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
mov esi, ecx
mov byte [ebp - 1], 4
call fcn.004437f9
push ebx
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.004437f9
push ebx
push edi
push edi
push esi
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 1]
push edi
push eax
call fcn.004437f9
add esp, 0x40
push ebx
push edi
lea eax, [esi + 2]
push edi
push eax
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 3]
push edi
push eax
call fcn.004437f9
add esp, 0x20
cmp byte [ebp - 1], 6
jne 0x4372a8
push ebx
push edi
lea eax, [ebp + 8]
push 4
push eax
call fcn.004437f9
add esp, 0x10
push ebx
push edi
lea eax, [esi + 6]
push 2
push eax
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 8]
push 2
push eax
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 0xa]
push 2
push eax
call fcn.004437f9
push ebx
push edi
lea eax, [esi + 4]
push edi
push eax
call fcn.004437f9
add esp, 0x40
push 0xe
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.004428e0
push ebx
push 0xe
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004437f9
push ebx
push 8
lea eax, [esi + 0xc]
push 4
push eax
call fcn.004437f9
and dword [ebp + 8], 0
add esp, 0x2c
cmp word [esi + 6], 0
jle 0x437343
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp + 8]
push ebx
push edi
lea eax, [eax + ecx*8]
push 8
push eax
mov dword [ebp - 0xc], eax
call fcn.004437f9
mov eax, dword [ebp - 0xc]
xor dword [eax + 4], 0x14ad
movsx eax, word [esi + 6]
add esp, 0x10
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x437314
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43734c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.00437126
xor ebx, ebx
cmp byte [esi], bl
jbe 0x4373a6
lea eax, [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor edi, edi
cmp dword [eax], edi
je 0x43739a
cmp word [esi + 6], di
jle 0x43739a
movzx eax, byte [esi + 1]
push eax
push dword [ebp + 8]
mov ecx, esi
push edi
push ebx
call fcn.00435dfd
mov ecx, eax
call fcn.00437b98
movsx eax, word [esi + 6]
inc edi
cmp edi, eax
jl 0x437379
movzx eax, byte [esi]
add dword [ebp - 8], 4
inc ebx
cmp ebx, eax
jl 0x43736a
xor ecx, ecx
cmp word [esi + 6], cx
mov dword [ebp - 4], ecx
jle 0x4373e4
mov eax, dword [esi + 0x30]
movzx edx, word [eax + ecx*8 + 2]
movzx edi, byte [eax + ecx*8]
lea eax, [eax + ecx*8]
xor edx, 0x4728
xor edi, 0x1381
add edx, edi
add edx, dword [eax + 4]
add dword [ebp - 4], edx
xor dword [eax + 4], 0x14ad
movsx eax, word [esi + 6]
inc ecx
cmp ecx, eax
jl 0x4373b1
push dword [ebp + 8]
xor dword [ebp - 4], 0x42789431
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.004438e1
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43f596
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
cmp word [esi], 0x5a4d
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
jne 0x43f78d
xor edi, edi
cmp dword [esp + 0x28], edi
je 0x43f5cf
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x104
jge 0x43f78d
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x43f78d
cmp word [eax + 0x18], 0x10b
jne 0x43f78d
mov ecx, dword [eax + 0x34]
mov ebp, dword [eax + 0x50]
mov eax, dword [ebx + 8]
cmp eax, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edi
je 0x43f60b
mov esi, dword [eax]
cmp esi, edi
jne 0x43f75d
cmp dword [ebx + 4], edi
je 0x43f698
cmp dword [esp + 0x28], edi
je 0x43f636
push dword [esp + 0x28]
push 1
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jne 0x43f663
push dword [esp + 0x28]
lea eax, [ebp + 0x1000]
push eax
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x43f78d
mov dword [esp + 0x18], 1
mov ebx, eax
push dword [esp + 0x1c]
push edi
push edi
push edi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov esi, eax
cmp esi, edi
jne 0x43f688
push edi
push edi
push edi
push edi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jne 0x43f6cc
jmp 0x43f78d
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push ebp
push ecx
call ebx
mov esi, eax
cmp esi, edi
jne 0x43f6c4
push 4
push 0x3000
push ebp
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x43f78d
mov dword [esp + 0x18], 1
cmp dword [esp + 0x18], edi
jne 0x43f6d8
cmp esi, dword [esp + 0x1c]
je 0x43f701
push esi
push dword [esp + 0x28]
call fcn.0043f53e
test eax, eax
pop ecx
pop ecx
jne 0x43f701
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], edi
je 0x43f780
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x43f78d
mov ebx, dword [esp + 0x2c]
test bl, 2
jne 0x43f759
mov eax, ebx
shr eax, 8
and eax, 1
push eax
mov eax, ebx
not eax
and eax, 1
push eax
push ebp
push esi
call fcn.0043f3ca
add esp, 0x10
test eax, eax
je 0x43f6e8
test bl, 1
jne 0x43f746
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], edi
jne 0x43f746
push edi
push ebp
push esi
call fcn.0043f79d
add esp, 0xc
cmp eax, edi
je 0x43f6e8
shr ebx, 9
and ebx, 1
push ebx
push esi
call fcn.0043f7c7
test eax, eax
pop ecx
pop ecx
je 0x43f6e8
mov ebx, dword [esp + 0x10]
push dword [esp + 0x2c]
mov ecx, ebx
push dword [esp + 0x2c]
push esi
call fcn.0043f0a6
cmp eax, 0xffffffff
jne 0x43f791
cmp dword [esp + 0x14], edi
je 0x43f78d
cmp dword [ebx + 4], edi
jmp 0x43f6ef
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x43f793
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x43f8de
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 0x10]
test bl, 8
push esi
push edi
mov dword [ebp - 4], ecx
jne 0x43f93a
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
push str..dll
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x43f93a
push esi
push esi
push 3
push esi
push 1
push DirectSoundCreate
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43f93e
xor eax, eax
jmp 0x43f999
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push esi
push 4
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x43f98e
test bh, 4
je 0x43f975
and ebx, 0xfffffff7
push ebx
push esi
jmp 0x43f97c
and ebx, 0xfffffff7
push ebx
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push edi
call fcn.0043f596
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43f9a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
push edi
je 0x43f9ec
cmp word [eax], 0x5a4d
jne 0x43f9ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43f9ec
cmp word [ecx + 0x18], 0x10b
jne 0x43f9ec
mov edi, dword [ecx + 0x50]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.0043f116
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x43f9f0
xor eax, eax
jmp 0x43fa2e
test byte [ebp - 4], 3
push 1
pop eax
jne 0x43fa2e
test ecx, ecx
je 0x43fa2e
cmp dword [esi + 4], 0
jne 0x43fa15
push eax
push edi
push dword [esi]
call fcn.0043f79d
add esp, 0xc
cmp dword [esi + 4], 0
je 0x43fa1f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x43fa2e
push 0x8000
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
leave
ret

Function at 0x43ffc1
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0x800
push dword [ebp + 8]
mov esi, ecx
call sub.IMM32.dll_ImmGetCompositionStringA
mov edi, eax
test edi, edi
jg 0x43fff1
xor eax, eax
jmp 0x44003d
mov eax, dword [esi + 0x80c]
mov ecx, dword [esi + 0x810]
lea edx, [eax + edi]
cmp edx, ecx
jle 0x440008
sub ecx, eax
mov edi, ecx
push edi
lea ecx, [ebp - 0x400]
push ecx
lea eax, [eax + esi + 4]
push eax
call fcn.00442400
mov eax, dword [esi + 0x80c]
add eax, edi
lea ecx, [esi + 0x808]
add esp, 0xc
mov dword [ecx], eax
and byte [eax + esi + 4], 0
mov eax, dword [ecx]
push 1
mov dword [esi + 0x80c], eax
pop eax
pop edi
pop esi
leave
ret 4
Function at 0x440043
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x400]
push eax
push 8
push dword [ebp + 8]
mov esi, ecx
call sub.IMM32.dll_ImmGetCompositionStringA
mov edi, eax
mov eax, dword [esi + 0x80c]
lea ecx, [eax + edi]
cmp ecx, ebx
jle 0x44007b
xor eax, eax
jmp 0x4400a8
push edi
lea ecx, [ebp - 0x400]
push ecx
lea eax, [eax + esi + 4]
push eax
call fcn.00442400
mov eax, dword [esi + 0x80c]
add eax, edi
add esp, 0xc
mov dword [esi + 0x808], eax
add eax, edi
and byte [eax + esi + 4], 0
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4404cb
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x44057d
push dword [ebp - 0x120]
lea eax, [ebp - 0x104]
push eax
call fcn.0044033a
pop ecx
pop ecx
push dword [ebp - 0x120]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44056c
lea eax, [ebp - 0x34c]
push eax
push ebx
mov dword [ebp - 0x34c], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x440569
push dword [ebp - 0x120]
lea eax, [ebp - 0x22c]
push eax
call fcn.0044033a
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
push ebx
call sub.KERNEL32.dll_Module32Next
jmp 0x440542
push ebx
call esi
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x440503
push edi
call esi
mov eax, dword [0x5493e8]
xor bl, bl
test eax, eax
mov esi, eax
je 0x4405ad
mov edi, dword [esi + 0x10c]
push esi
call fcn.004403d6
test eax, eax
pop ecx
je 0x4405a0
mov bl, 1
push esi
call fcn.004441b2
test edi, edi
pop ecx
mov esi, edi
jne 0x44058d
and dword [0x5493e8], 0
pop edi
xor eax, eax
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4406d6
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x44072a
lea eax, [ebp - 0x20]
push eax
call fcn.00440800
pop ecx
push edi
push edi
push edi
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
jne 0x44072a
push 0xa0000000
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.WINMM.dll_mixerGetID]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.WINMM.dll_waveInClose]
cmp esi, edi
je 0x440731
xor al, al
jmp 0x4407fc
push ebx
push edi
push edi
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
je 0x44074d
xor bl, bl
jmp 0x4407f0
mov esi, 0xa8
push esi
lea eax, [ebp - 0xc8]
push edi
push eax
call fcn.004428e0
mov ebx, dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
add esp, 0xc
push 3
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xb0], 7
call ebx
test eax, eax
jne 0x440746
cmp dword [ebp - 0xa8], eax
jbe 0x4407ee
push esi
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.004428e0
mov eax, dword [ebp - 0xc4]
add esp, 0xc
mov dword [ebp - 0x16c], eax
push 1
lea eax, [ebp - 0x170]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x170], esi
mov dword [ebp - 0x168], edi
call ebx
test eax, eax
jne 0x440746
push dword [ebp + 0xc]
lea eax, [ebp - 0x170]
push eax
push edi
call dword [ebp + 8]
test al, al
je 0x4407ee
inc edi
cmp edi, dword [ebp - 0xa8]
jb 0x440793
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_mixerClose]
mov al, bl
pop ebx
pop edi
pop esi
leave
ret
Function at 0x443d47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x443d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00447814
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x443d88
test byte [esp + 8], 2
je 0x443d88
mov dword [0x549480], 0xd
mov dword [0x549484], 5
jmp 0x443d63
xor eax, eax
ret

Function at 0x444173
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44419e
test byte [esp + 8], 0x80
je 0x44418d
and al, 0xfe
jmp 0x44418f
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4441af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00447814
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x44a2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x46b838
cmp edx, dword [eax]
je 0x44a2c2
add eax, 8
inc ecx
cmp eax, 0x46b8c8
jl 0x44a2b3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x46b838]
jne 0x44a3f0
mov eax, dword [0x54946c]
cmp eax, 1
je 0x44a3ca
test eax, eax
jne 0x44a2f3
cmp dword [0x4693a4], 1
je 0x44a3ca
cmp edx, 0xfc
je 0x44a3f0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44a32a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00441e70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00441f60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44a36d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00441f60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46697c
push edi
call fcn.00442940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00441e70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00441e80
lea eax, [ebp - 0xa0]
push 0x45d974
push eax
call fcn.00441e80
push dword [esi + 0x46b83c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00441e80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044cb67
add esp, 0x2c
pop edi
jmp 0x44a3f0
lea eax, [ebp + 8]
lea esi, [esi + 0x46b83c]
push 0
push eax
push dword [esi]
call fcn.00441f60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x44e985
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
push ebx
push esi
lea eax, [ebp - 0x454]
push eax
mov ebx, 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44e9b1
xor esi, esi
cmp dword [0x549794], esi
jne 0x44e9b8
xor eax, eax
jmp 0x44ea99
push ebx
lea eax, [ebp - 0x85c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x454]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x549794]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x85c]
push edx
push 0x45e0c0
push eax
call dword [ecx + 0x14]
neg eax
sbb eax, eax
neg eax
je 0x44ea01
cmp eax, 1
je 0x44ea01
mov eax, 0x80004005
jmp 0x44ea99
push edi
push 0x350
lea eax, [ebp - 0x350]
push esi
push eax
call fcn.004428e0
add esp, 0xc
mov esi, 0x45e1a0
lea edi, [ebp - 0x338]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x654]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
push 0
mov dword [ebp - 0x350], 0x350
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0045b6f7
mov eax, dword [0x54979c]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x34c], 0x12
pop edi
je 0x44ea76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x549794]
and dword [0x54979c], 0
mov ecx, dword [eax]
push 0x54979c
push 0x45dd80
lea edx, [ebp - 0x350]
push edx
push eax
call dword [ecx + 0xc]
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.004428b4
xor ebx, ebx
mov ecx, esi
mov byte [esi + 0x15], bl
mov byte [esi + 0x14], bl
call fcn.0044ff09
mov ecx, esi
call fcn.004501e9
cmp dword [esi + 0x34], ebx
jne 0x44f7ac
mov dword [esi + 0x30], 1
jmp 0x44f7c4
push 6
push 1
push 2
pop edi
push edi
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x44f7c8
mov dword [esi + 0x30], edi
xor eax, eax
jmp 0x44f82f
cmp dword [ebp + 0x10], ebx
je 0x44f7e0
push 0x30
push 0x464
push dword [0x54c56c]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov word [ebp - 0x10], di
mov dword [ebp - 0xc], eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
xor edi, edi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x44f812
push 1
pop edi
mov byte [esi + 0x14], 1
cmp byte [esi + 0x16], bl
je 0x44f81e
mov ecx, esi
call fcn.0044ff4c
mov ecx, esi
call fcn.0044f8e9
cmp dword [ebp + 0x10], ebx
je 0x44f82d
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x44f95b
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax]
mov dword [ebp + 8], edi
mov edi, dword [eax + 4]
mov dword [ebp + 0x10], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor esi, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], 0x10
lea eax, [esi + edx]
xor eax, dword [ebp + 8]
mov edi, edx
shl edi, 4
add eax, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp + 0x10]
sub esi, 0x61c88647
xor eax, edi
add ecx, eax
lea eax, [esi + ecx]
xor eax, dword [ebp - 4]
mov edi, ecx
shl edi, 4
add eax, edi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 8]
xor eax, edi
add edx, eax
dec dword [ebp + 0xc]
jne 0x44f98b
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
leave
ret

Function at 0x44f9d4
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 4], edi
mov edi, dword [eax + 4]
mov dword [ebp - 8], edi
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, 0xe3779b90
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], 0x10
lea eax, [esi + edx]
xor eax, dword [ebp + 8]
mov edi, edx
shl edi, 4
add eax, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp + 0x10]
add esi, 0x61c88647
xor eax, edi
sub ecx, eax
lea eax, [esi + ecx]
xor eax, dword [ebp - 4]
mov edi, ecx
shl edi, 4
add eax, edi
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 8]
xor eax, edi
sub edx, eax
dec dword [ebp + 0xc]
jne 0x44fa07
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], edx
mov dword [eax + 4], ecx
pop esi
leave
ret

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
sub eax, 0x400
cmp ecx, eax
jl 0x44fd12
xor eax, eax
pop esi
ret
push 0
sub eax, ecx
push eax
mov eax, dword [esi + 8]
add eax, ecx
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x44fd36
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
and byte [ecx + eax], 0
push 1
pop eax
pop esi
ret
Function at 0x44fda6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x14], bl
push edi
je 0x44fe41
mov eax, dword [ebp + 8]
push 1
pop edi
lea ecx, [ebp - 8]
push ecx
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push ecx
push eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], edi
call sub.WSOCK32.dll_select
lea eax, [ebp - 0x10c]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x44fe93
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
sub eax, 0x400
cmp ecx, eax
jge 0x44fead
push ebx
sub eax, ecx
push eax
mov eax, dword [esi + 8]
add eax, ecx
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_recv
cmp eax, ebx
jg 0x44fe45
mov byte [esi + 0x14], bl
xor eax, eax
jmp 0x44feaf
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov byte [ecx + eax], bl
cmp byte [esi + 0x16], bl
je 0x44fe93
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x2c]
jle 0x44fe70
push str.m_curDecodePos___NowRecvBufPos
push str.ERROR
call fcn.00457f48
pop ecx
pop ecx
int3
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x2c]
sub eax, ecx
cmp eax, 8
jl 0x44fe93
mov edx, eax
and edx, 7
sub eax, edx
push eax
mov eax, dword [esi + 8]
add eax, ecx
push eax
call dword [esi + 0x28]
add dword [esi + 0x18], eax
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x44fead
mov ecx, esi
call fcn.00450104
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x450104
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10000
call fcn.00443f60
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x450193
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x45019f
cmp byte [esi + 0x16], 0
je 0x45017b
cmp dword [esi + 0x1c], eax
jle 0x45013e
push str.m_curEncodePos___NowSendBufPos
push str.ERROR
call fcn.00457f48
pop ecx
pop ecx
int3
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x10]
sub ecx, eax
push edi
push ecx
mov ecx, dword [esi + 0xc]
add ecx, eax
push ecx
lea eax, [ebp - 0x10000]
push eax
call dword [esi + 0x24]
mov edi, eax
push edi
lea eax, [ebp - 0x10000]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x1c]
push eax
call fcn.00442400
add esp, 0x18
add dword [esi + 0x1c], edi
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x10], eax
pop edi
push 0
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 4]
call sub.WSOCK32.dll_send
test eax, eax
jge 0x450197
and byte [esi + 0x14], 0
xor eax, eax
jmp 0x4501a2
push eax
mov ecx, esi
call fcn.004501a5
push 1
pop eax
pop esi
leave
ret