joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fadc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x46fb28
mov eax, esi
call fcn.004588c4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46fb28
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x46fb28
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x46fc67
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x46fb68
cmp eax, 0x108
ja 0x46fb68
mov eax, esi
call fcn.004588c4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x46fc5e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x46fc67
jmp 0x46fc5e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x46fc47
cmp eax, 0x20a
ja 0x46fc47
test byte [esi + 0x50], 0x80
jne 0x46fb9a
sub eax, 0x203
je 0x46fb97
sub eax, 3
je 0x46fb97
sub eax, 3
jne 0x46fb9a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x46fbae
dec eax
je 0x46fbc3
dec eax
je 0x46fbe0
dec eax
je 0x46fbc3
jmp 0x46fbe7
mov ecx, ebx
mov eax, dword [0x4cbd44]
mov eax, dword [eax]
mov edx, esi
call fcn.00462360
jmp 0x46fc5e
cmp byte [esi + 0x5d], 1
jne 0x46fbd9
mov eax, esi
mov si, 0xffed
call fcn.00431acc
jmp 0x46fc67
or word [esi + 0x54], 1
jmp 0x46fc5e
and word [esi + 0x54], 0xfffe
jmp 0x46fc5e
mov eax, dword [0x4f0b6c]
cmp byte [eax + 0x20], 0
je 0x46fc5e
mov eax, dword [0x4f0b6c]
cmp dword [eax + 0x1c], 0
je 0x46fc5e
mov eax, dword [ebx]
mov edx, dword [0x4f0b6c]
cmp eax, dword [edx + 0x1c]
jne 0x46fc5e
lea eax, [ebp - 0x114]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00458808
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00431acc
jmp 0x46fc67
cmp eax, 0xb00b
jne 0x46fc5e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0046e3fc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47311c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x473138
cmp dword [esi + 4], 0
je 0x473165
test byte [ebx + 0x55], 1
jne 0x473157
mov eax, ebx
call fcn.00471d74
test eax, eax
jne 0x473157
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x473275
mov edx, esi
mov eax, ebx
call fcn.00472c3c
jmp 0x473275
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47326e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00474eec
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0046fa10
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0047311c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00474eec
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473275
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479798
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4cbd30]
cmp byte [eax + 0xc], 0
je 0x479905
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4798fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.004f0bc0], 0
jne 0x4797ec
push 0x47990c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x479914
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [fcn.004f0bc0], eax
cmp dword [0x4c5ffc], 0
jne 0x4798e7
push 0x479924
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4c5ffc], eax
cmp dword [0x4c5ffc], 0
je 0x4798e7
push 0x479930
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bc4], eax
push 0x479940
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bc8], eax
push 0x479954
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bcc], eax
push 0x47996c
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bd0], eax
push 0x479984
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bd4], eax
push 0x479998
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bd8], eax
push 0x4799b0
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0bdc], eax
push 0x4799c8
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0be0], eax
push 0x4799e4
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [fcn.004f0be4], eax
push 0x4799f0
mov eax, dword [0x4c5ffc]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f0be8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479905
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x47df28
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47e000
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f0bfc], 0
jne 0x47dfe4
lea eax, [ebp - 4]
mov edx, 0x47e018
call fcn.004324b4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004328cc
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x47dfe4
mov eax, ebx
call fcn.00430864
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47dfdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x47dfc7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x47e028
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x47dfc7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4f0bfc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dfe4
mov eax, dword [ebp - 0xc]
call fcn.00430884
ret
mov ebx, dword [0x4f0bfc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e007
lea eax, [ebp - 4]
call fcn.0043241c
ret

Function at 0x48be9c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4f0c20], 0
jne 0x48bebf
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x48be10
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4f0c20], eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x49204c
call fcn.00493510
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x492068
test bl, 1
je 0x492068
call fcn.00496fbc
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x49224c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004930ac
test byte [ebp + 0xd], 0xc0
jne 0x492270
mov eax, dword [0x4c6f8c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x49227d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4922aa
je 0x4922bc
sub ecx, 0x100
je 0x4922ca
sub ecx, 0x100
je 0x4922d1
sub ecx, 0x100
je 0x4922c3
jmp 0x4922d8
sub ecx, 0x600
je 0x4922d1
sub ecx, 0x100
je 0x4922bc
jmp 0x4922d8
mov edi, 1
jmp 0x4922dd
mov edi, 2
jmp 0x4922dd
mov edi, 4
jmp 0x4922dd
mov edi, 5
jmp 0x4922dd
mov edi, 3
test byte [ebp + 0xd], 1
je 0x492304
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4c6a04]
test al, 0x80
je 0x4922fd
mov ebx, 0x80
jmp 0x492316
mov ebx, 1
jmp 0x492316
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x492316
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x492328
je 0x492331
dec eax
je 0x49233a
jmp 0x492343
mov dword [ebp - 4], getsockname
jmp 0x492352
mov dword [ebp - 4], 0x40000000
jmp 0x492352
mov dword [ebp - 4], 0xc0000000
jmp 0x492352
push 1
call fcn.004934a4
pop ecx
mov ebx, eax
jmp 0x492442
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x49236e
sub eax, 0x10
je 0x492375
sub eax, 0x10
je 0x49237e
sub eax, 0x10
je 0x492387
jmp 0x492387
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x49238e
mov dword [ebp - 8], 1
jmp 0x49238e
mov dword [ebp - 8], 2
jmp 0x49238e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4923fb
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4923f0
test byte [ebp + 0xd], 1
je 0x4923eb
mov ebx, 0x50
jmp 0x4923f0
mov ebx, 2
push ebx
call fcn.004934a4
pop ecx
mov ebx, eax
jmp 0x492442
mov edi, esi
push edi
call fcn.004921b0
pop ecx
test eax, eax
je 0x49240f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x49241b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004931cc
add esp, 8
mov ebx, eax
inc eax
jne 0x492442
push 4
call fcn.004934a4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004930e0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x496f54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x496fb6
call fcn.00496f04
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00490eb4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00490eb4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x497034
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4c7e2c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x49710e
cmp dword [0x4c7e28], 0
jne 0x49710e
cmp dword [0x4c800c], 0
je 0x4970c8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00496e04
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4970ae
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00496e04
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4970ae
lea ebx, [ebp - 0x84]
jmp 0x4970af
inc ebx
call fcn.00496ff0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x497149
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4c7e30
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00490eb4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4c7e33
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x497149
cmp dword [0x4c7e28], 0
je 0x497128
cmp dword [0x4c7e28], 0xffffffff
je 0x497149
push esi
call dword [0x4c7e28]
pop ecx
mov eax, dword [0x4c7e2c]
test eax, eax
je 0x497149
cmp dword [0x4c7e2c], 0xffffffff
je 0x497149
cmp byte [eax], 0
je 0x497149
push esi
push eax
call fcn.00496f54
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4978e0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4f14b8], 0
jne 0x497961
cmp dword [0x4f14d8], 0
jne 0x497910
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4f14d8], eax
test eax, eax
jne 0x497910
push 0x4c7f44
call fcn.00497160
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4f14d8]
jmp 0x497924
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00490eb4
pop ecx
mov edi, eax
test eax, eax
jne 0x49791c
lea edi, [ebp + 1]
push edi
call fcn.00490798
pop ecx
mov ebx, eax
mov dword [0x4f14bc], ebx
test ebx, ebx
jne 0x49794e
xor eax, eax
jmp 0x497a24
push edi
mov edx, dword [0x4f14d8]
push edx
push ebx
call fcn.00490d64
add esp, 0xc
jmp 0x497981
xor esi, esi
mov ebx, dword [0x4f14b8]
jmp 0x49797b
push eax
call fcn.00490eb4
pop ecx
test eax, eax
jne 0x497977
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x49796b
lea ebx, [esi + 4]
push 4
mov dword [0x4f14c0], ebx
inc ebx
push ebx
call fcn.00490270
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4979a4
xor eax, eax
jmp 0x497a24
cmp dword [0x4f14b8], 0
jne 0x4979d5
xor esi, esi
mov ebx, dword [0x4f14bc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4979c6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00490eb4
pop ecx
mov edi, eax
test eax, eax
jne 0x4979bc
jmp 0x497a06
xor esi, esi
mov ebx, dword [0x4f14b8]
mov eax, dword [esp]
mov edi, eax
jmp 0x497a00
push eax
call fcn.00490eb4
pop ecx
test eax, eax
je 0x4979f5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4979f9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4979e4
mov eax, dword [0x4f14b8]
test eax, eax
je 0x497a16
push eax
call fcn.004907a8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4f14b8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49e07c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x49e0aa
mov eax, ebx
call fcn.0049eb34
cmp dword [ebx + 0x3c], 0
je 0x49e0a3
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x49e11b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x49e10d
cmp dword [ebx + 8], 0
je 0x49e0cc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x49e0de
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49e10d
cmp dword [ebx + 8], 0
je 0x49e0bf
cmp eax, 3
je 0x49e0f1
dec eax
jne 0x49e0bf
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x49e0bf
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x49e0bf
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x49e139
cmp dword [ebx + 0x10], 0xcc
je 0x49e139
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049e144
pop ebx
ret
Function at 0x4b0290
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x4b029f
cmp dword [ebp + 0x10], 0
jne 0x4b02a3
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx + 0x5c], 2
push 0
push dword [ebp + 0xc]
call sym.TCP232.exe__TcmSocket_get_ip_data_qpc11TcmCastMode
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], eax
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov edx, dword [ebp + 8]
mov word [edx + 0x5e], ax
push 0x4ca0ce
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x5c
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x88]
call sub.WSOCK32.DLL_connect
push eax
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
inc eax
setne al
and eax, 1
pop ebp
ret

Function at 0x4b0304
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov eax, 0x4caf1c
call fcn.00491128
cmp byte [ebp + 0xc], 0
je 0x4b03b1
mov dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x5c
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x88]
call sub.WSOCK32.DLL_getsockname
inc eax
je 0x4b0397
mov edx, dword [ebp + 8]
mov cx, word [edx + 0x5e]
push ecx
call sub.WSOCK32.DLL_ntohs
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x80], eax
mov word [ebp - 0x18], 8
mov ecx, dword [ebp + 8]
push dword [ecx + 0x60]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.0049c1f4
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x78
call fcn.0049c324
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0049c2f4
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x74], 0
jne 0x4b03b1
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x90]
mov eax, dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_SetBufferSize_qqri
mov edx, dword [ebp + 8]
cmp word [edx + 0x3a], 0
je 0x4b03ca
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
call dword [ebx + 0x38]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
je 0x4b04b1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0xffffffff
jne 0x4b04b5
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x18], 0
jg 0x4b04c6
mov eax, dword [ebp + 0x14]
call fcn.00420e8c
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 8]
mov word [edx + 0x5c], 2
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], ecx
mov dx, word [ebp + 0x10]
push edx
call sub.WSOCK32.DLL_htons
mov ecx, dword [ebp + 8]
mov word [ecx + 0x5e], ax
push 0x4ca117
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x5c
push eax
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push dword [edx + 0x88]
call sub.WSOCK32.DLL_sendto
push eax
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
inc eax
setne al
and eax, 1
pop ebp
ret
Function at 0x4b0550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x4b0565
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0xffffffff
jne 0x4b0569
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x14], 0
jg 0x4b057a
mov eax, dword [ebp + 0x10]
call fcn.00420e8c
mov dword [ebp + 0x14], eax
push 0x4ca128
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_send
push eax
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
cmp eax, dword [ebp + 0x14]
sete al
and eax, 1
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 0xc], 0
jne 0x4b05db
xor eax, eax
jmp 0x4b068a
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4b05ed
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x88]
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x18], 0
jne 0x4b0619
push 0x4ca136
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_recv
push eax
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4b067d
mov dword [ebp - 8], 0x10
push 0x4ca144
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_recvfrom
push eax
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
cmp byte [edx + 0x59], 5
je 0x4b065d
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x59], 4
jne 0x4b067d
push 0x4ca156
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_getpeername
push eax
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
cmp dword [ebp - 4], 0xffffffff
jne 0x4b0687
xor eax, eax
jmp 0x4b068a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b09bc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
cmp byte [0x4ca004], 0
jne 0x4b09f3
mov word [ebp - 2], 0x202
lea eax, [ebp - 0x194]
push eax
mov dx, word [ebp - 2]
push edx
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
sete cl
and ecx, 1
mov byte [0x4ca004], cl
mov al, byte [0x4ca004]
mov esp, ebp
pop ebp
ret
Function at 0x4b0a74
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x4caf84
call fcn.00491128
mov word [ebp - 0x1c], 0x14
mov edx, 0x4ca19f
lea eax, [ebp - 4]
call fcn.0049c1f4
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
call sym.TCP232.exe__TcmSocket_wsa_startup_qv
test al, al
jne 0x4b0acd
or eax, 0xffffffff
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0049c2f4
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4b0b8c
push dword [ebp + 8]
call sym.TCP232.exe__TcmSocket_isValidIP_qpc
pop ecx
test al, al
je 0x4b0ae7
push dword [ebp + 8]
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x30], eax
jmp 0x4b0b5b
cmp dword [ebp + 8], 0
je 0x4b0af5
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
jne 0x4b0b33
mov word [ebp - 0x1c], 0x20
lea eax, [ebp - 8]
call fcn.00401e30
push eax
inc dword [ebp - 0x10]
call sym.TCP232.exe__TcmSocket_HostName_qv
pop ecx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.0049c324
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0049c2f4
lea eax, [ebp - 4]
call fcn.00402650
mov dword [ebp + 8], eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x34], eax
mov word [ebp - 0x1c], 8
cmp dword [ebp - 0x34], 0
je 0x4b0b56
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
jmp 0x4b0b58
xor edx, edx
mov dword [ebp - 0x30], edx
cmp byte [ebp + 0xc], 1
jne 0x4b0b6d
push dword [ebp - 0x30]
call sym.TCP232.exe__TcmSocket_IP_UnicastToBroadcast_qul
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0049c2f4
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret