joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474e9a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x474ece
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x474ec9
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x474ef5
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x474ede
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004e0bc0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x475068
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x475076
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x475135
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
sub edi, 1
jne 0x47508e
pop edi
test esi, esi
je 0x475151
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5b7968]
inc edx
sub esi, 1
jne 0x475139
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x479f87
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x638
jmp fcn.0047e587
Function at 0x485eb8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x624394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x485f38
cmp dword [esi + 0x10], 0
je 0x485f38
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004de1d0
mov ebx, esp
test ebx, ebx
je 0x485f38
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0044ad3b
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
push str.textchanged
push ecx
mov ecx, dword [ecx + 0x44]
call fcn.0045157c
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.0044de69
test al, al
je 0x485f38
mov ecx, dword [esi + 0x10]
call fcn.00459d6e
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dda5e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x486d24
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x5b14ba
call fcn.004de33d
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0044db50
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ab91
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0044db56
mov ecx, eax
call fcn.0044b39d
test al, al
je 0x486e12
push ebx
lea ecx, [ebp - 0x94]
call fcn.0044ae05
push edi
push 0x80
push 3
push edi
push 1
push bind
lea ecx, [ebp - 0x94]
call fcn.004d7ff0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x486db5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044ac9d
jmp 0x486ef3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x486da1
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004ddf90
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x486ede
push edi
call fcn.004ddf99
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044ac9d
jmp 0x486ef1
call fcn.0044db56
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ade8
call fcn.0044de5c
test al, al
je 0x486e33
call fcn.0044db5c
jmp 0x486e4a
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.004d7ff0
push eax
call fcn.004728fa
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x486da1
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0047233b
add esp, 0x14
test eax, eax
jne 0x486da1
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x486da1
push esi
call fcn.004ddf90
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00472cba
add esp, 0x18
test eax, eax
je 0x486ece
cmp eax, 0x600
je 0x486ece
push edi
call fcn.004ddf99
pop ecx
call fcn.0044de5c
test al, al
jne 0x486dfe
push ebx
call fcn.00472195
jmp 0x486dfd
call fcn.0044de5c
test al, al
jne 0x486ede
push ebx
call fcn.00472195
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044ac9d
test edi, edi
jne 0x486f65
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push bind
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x486f61
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x486f61
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004ddf90
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x486f5d
push edi
call fcn.004ddf99
pop ecx
xor edi, edi
test edi, edi
jne 0x486f65
xor eax, eax
jmp 0x486f7d
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00486f85
push edi
mov esi, eax
call fcn.004ddf99
pop ecx
mov eax, esi
call fcn.004de2f8
ret 4
Function at 0x488a04
Capabilities:
Hide graphical window

Disassembly:
push 0x9c
mov eax, 0x5b16aa
call fcn.004de33d
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [eax + 0x500], ebx
cmp dword [esi + 4], ebx
jne 0x488a8d
lea eax, [ebp - 0xa8]
push eax
call fcn.004885cd
push ebx
sub esp, 0x10
lea esi, [ebp - 0xa8]
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
push 0x40000000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x98]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.0044db34
push eax
mov ecx, esi
call fcn.0044ba78
mov ecx, dword [esi + 0x10]
call fcn.00456940
mov ecx, dword [esi + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call fcn.0044d835
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0044b39d
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0044ac9d
mov edi, 0x4f0
test bl, bl
je 0x488ac8
mov eax, dword [esi + 0x10]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x10]
add eax, edi
push 0x10
push eax
lea eax, [esi + 0x1a]
push eax
call fcn.004e0bc0
mov eax, dword [esi + 0x10]
add esp, 0xc
add eax, edi
push eax
push 0
push 0x1002
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [esi + 0x18], 1
call fcn.004de2f8
ret 4

Function at 0x488f03
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x624394]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x488f2f
xor eax, eax
jmp 0x488fa4
push esi
mov esi, 0xff
lea eax, [ebp - 0x104]
push esi
push 0
push eax
call fcn.004e0970
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
pop esi
test eax, eax
je 0x488f2b
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.004e0bc0
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dda5e
mov esp, ebp
pop ebp
ret
Function at 0x4890a1
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x5b175e
call fcn.004de33d
mov esi, ecx
mov dword [ebp - 0x98], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov dword [eax + 0x4f8], ebx
cmp dword [esi + 4], ebx
jne 0x489155
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 8
push eax
mov dword [ebp - 0x9c], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x489132
lea eax, [ebp - 0xb0]
mov ecx, esi
push eax
call fcn.00488c92
push ebx
sub esp, 0x10
lea esi, [ebp - 0xb0]
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
push 0x40030000
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x98]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x44]
call fcn.0044db34
push eax
mov ecx, esi
call fcn.0044ba78
mov ecx, dword [esi + 0x10]
call fcn.00456940
mov ecx, dword [esi + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call fcn.0044d835
push 1
push dword [eax]
push 0x30
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0044b39d
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0044ac9d
test bl, bl
je 0x48918d
call fcn.00488f03
mov ecx, dword [esi + 0x10]
mov dword [ecx + 0x4f0], eax
mov eax, dword [esi + 0x10]
push dword [eax + 0x4f0]
push 0
push 0x465
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [esi + 0x18], 1
call fcn.004de2f8
ret 4

Function at 0x48d018
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e587

Function at 0x48d021
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x638
jmp method.DuiLib::CMenuUI.virtual_312
Function at 0x48ddd4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x624394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
and dword [ebx + 0x468], 0
mov edi, dword [ebp + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], esi
mov dword [ebx + 0x464], ecx
mov dword [ebx + 0x46c], eax
test ecx, ecx
jne 0x48de3f
call fcn.0048db9b
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test edi, edi
je 0x48de3f
call fcn.0048db9b
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
call fcn.0048db9b
mov esi, ebx
lea edx, [ebx + 0x10]
neg esi
mov ecx, eax
mov edi, dword [eax]
sbb esi, esi
and esi, edx
push esi
call dword [edi]
mov ecx, dword [ebx + 0x464]
test ecx, ecx
jne 0x48de65
mov ecx, dword [ebp - 0x18]
jmp 0x48de6c
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0044db34
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.0044ab6d
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push bind
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044ba78
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x48deaf
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x48deaa
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dda5e
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x49398d
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x624394]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x21
jb 0x4939db
cmp esi, 0x28
jbe 0x4939d5
lea eax, [esi - 0x2d]
cmp eax, 1
ja 0x4939db
or edi, 0x100
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004e0970
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, edi
or ecx, 0x1000000
cmp dword [ebp + 0x10], 0
push 0x104
cmove ecx, edi
push eax
shl ecx, 0x10
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0044abb6
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dda5e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x493cce
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x5b22d5
call fcn.004de33d
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x493dd5
lea eax, [ebp - 0xa4]
push eax
call fcn.004934e9
mov ecx, dword [ebx + 0x10]
lea esi, [ebp - 0xa4]
xor eax, eax
push eax
sub esp, 0x10
mov ecx, dword [ecx + 0x44]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
push 0x40000080
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044db34
push eax
mov ecx, ebx
call fcn.0044ba78
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x493dd5
mov ecx, dword [ebx + 0x10]
call fcn.00456940
mov ecx, dword [ebx + 0x10]
push eax
mov ecx, dword [ecx + 0x44]
call fcn.0044d835
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 0x10]
movzx eax, word [ecx + 0x70e]
push eax
movzx eax, word [ecx + 0x70c]
mov ecx, ebx
push eax
call fcn.00494206
lea eax, [ebp - 0x94]
mov ecx, ebx
push eax
call fcn.004937df
mov ecx, dword [ebx + 0x10]
and dword [ebp - 4], 0
add ecx, 0x1c8
push eax
call fcn.0044ad1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0044ac9d
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x100]
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebx + 0x18], 1
call fcn.004de2f8
ret 4

Function at 0x4951f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x624394]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x495240
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x49523a
shr eax, 8
cmp al, 2
jne 0x49523a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dda5e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.004dda5e
mov esp, ebp
pop ebp
ret
Function at 0x4981c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004981f0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004f72c5

Function at 0x49d6d0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x49d719
mov al, byte [esi]
push eax
call fcn.004aacc0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x49d6f7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x49e950
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x49e96e
cmp dword [esi + 0x6c], 0
je 0x49e96e
push 2
push 3
push esi
call fcn.004ab280
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004ab6f0
add esp, 4
test esi, esi
je 0x49e98e
cmp dword [esi + 0x6c], 0
je 0x49e98e
push 3
push esi
call fcn.004ab2c0
add esp, 8
pop esi
pop ebp
ret
Function at 0x4a8790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
je 0x4a87d4
push esi
push 1
push edi
call fcn.00499c10
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00499c10
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4a880a
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x5c1598
push 2
push eax
call fcn.004e9b0b
push dword [edi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004e9b0b
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.004a90d0
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4a8c44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4a8c1c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004cc3a0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004a8810
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48d4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4a918d
cmp dword [ebx + ecx*4 + 0x1bc], 0x4a8b10
jne 0x4a918d
cmp dword [esi], 0
je 0x4a911f
test edi, edi
je 0x4a918d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004a8340
add esp, 0x14
cmp eax, 0xffffffff
je 0x4a918d
test al, 1
je 0x4a918d
cmp dword [esi], 0
jne 0x4a9174
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x624318]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4a9174
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4a918d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a9280
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x4a92a0
push eax
call fcn.004a1880
add esp, 4
test eax, eax
jne 0x4a92c2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4a929c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4a92c2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x4a9a30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x62f9b8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4a9a81
push 3
push 2
push eax
push 6
call fcn.004ccda0
add esp, 0x10
test al, al
je 0x4a9a75
mov dword [0x62f9b8], 2
mov esp, ebp
pop ebp
ret
mov dword [0x62f9b8], 1
jmp 0x4a9a86
cmp eax, 2
je 0x4a9ac6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4a9aad
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4a9ac6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4a9ba0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a9be8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004cc3a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a88f0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004a88f0
add esp, 8
pop edi
pop esi
pop ebp
ret