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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4e3994], 0
je 0x464337
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4e2f04]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x464337
mov eax, dword [0x4e3998]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4e3994]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x464306
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4e3994]
call fcn.0049e6d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4642fe
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4642fe
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4642fe
mov eax, dword [ebp - 0x14]
call fcn.0046ce4c
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4642fe
push ebp
call fcn.004641a4
pop ecx
test al, al
jne 0x4642fe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4642ba
mov eax, dword [ebp - 0x14]
call fcn.0046b9e0
dec eax
jle 0x4642fe
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004babd8
cmp byte [ebp - 1], 0
je 0x4642fe
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x4642fe
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4e3998]
call fcn.0046396c
inc edi
dec ebx
jne 0x46424d
mov eax, dword [0x4e3998]
cmp dword [eax + 8], 0
jle 0x46431e
mov eax, dword [0x4e3998]
call fcn.004639fc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x464337
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0046400c
pop ecx
test al, al
jne 0x464337
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467928
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 0x467974
mov eax, esi
call fcn.004519a8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x467974
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x467974
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 0x467ab3
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4679b4
cmp eax, 0x108
ja 0x4679b4
mov eax, esi
call fcn.004519a8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x467aaa
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x467ab3
jmp 0x467aaa
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x467a93
cmp eax, 0x20a
ja 0x467a93
test byte [esi + 0x50], 0x80
jne 0x4679e6
sub eax, 0x203
je 0x4679e3
sub eax, 3
je 0x4679e3
sub eax, 3
jne 0x4679e6
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4679fa
dec eax
je 0x467a0f
dec eax
je 0x467a2c
dec eax
je 0x467a0f
jmp 0x467a33
mov ecx, ebx
mov eax, dword [0x4e2f04]
mov eax, dword [eax]
mov edx, esi
call fcn.0045b434
jmp 0x467aaa
cmp byte [esi + 0x5d], 1
jne 0x467a25
mov eax, esi
mov si, 0xffed
call fcn.004babd8
jmp 0x467ab3
or word [esi + 0x54], 1
jmp 0x467aaa
and word [esi + 0x54], 0xfffe
jmp 0x467aaa
mov eax, dword [0x4e3950]
cmp byte [eax + 0x20], 0
je 0x467aaa
mov eax, dword [0x4e3950]
cmp dword [eax + 0x1c], 0
je 0x467aaa
mov eax, dword [ebx]
mov edx, dword [0x4e3950]
cmp eax, dword [edx + 0x1c]
jne 0x467aaa
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.004518ec
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.004babd8
jmp 0x467ab3
cmp eax, 0xb00b
jne 0x467aaa
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00466248
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 0x46b07c
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 0x46b098
cmp dword [esi + 4], 0
je 0x46b0c5
test byte [ebx + 0x55], 1
jne 0x46b0b7
mov eax, ebx
call fcn.00469cd4
test eax, eax
jne 0x46b0b7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x46b1d5
mov edx, esi
mov eax, ebx
call fcn.0046ab9c
jmp 0x46b1d5
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 0x46b1ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0046ce4c
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.0046785c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0046b07c
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.0046ce4c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b1d5
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 0x4716f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e3178]
cmp byte [eax + 0xc], 0
je 0x471865
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47185e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e39a4], 0
jne 0x47174c
push 0x47186c
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x471874
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39a4], eax
cmp dword [0x4dc244], 0
jne 0x471847
push 0x471884
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4dc244], eax
cmp dword [0x4dc244], 0
je 0x471847
push 0x471890
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39a8], eax
push 0x4718a0
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39ac], eax
push 0x4718b4
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39b0], eax
push 0x4718cc
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39b4], eax
push 0x4718e4
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39b8], eax
push 0x4718f8
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39bc], eax
push 0x471910
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39c0], eax
push 0x471928
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39c4], eax
push 0x471944
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39c8], eax
push 0x471950
mov eax, dword [0x4dc244]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4e39cc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471865
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x478dcc
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 0x478ea4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e39e0], 0
jne 0x478e88
lea eax, [ebp - 4]
mov edx, 0x478ebc
call fcn.004bb7a4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004bbbbc
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x478e88
mov eax, ebx
call fcn.004b9af8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x478e81
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 0x478e6b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x478ecc
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x478e6b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4e39e0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478e88
mov eax, dword [ebp - 0xc]
call fcn.004b9b18
ret
mov ebx, dword [0x4e39e0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478eab
lea eax, [ebp - 4]
call fcn.004bb70c
ret

Function at 0x48853c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4e3a04], 0
jne 0x48855f
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4884b0
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4e3a04], eax
ret
Function at 0x48f758
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov byte [ebp - 1], 0
push 0
push 0x8000080
push 3
push 0
push 1
push closesocket
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x48f78c
xor eax, eax
jmp 0x48f8a1
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0x10]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x48f7be
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x48f8a1
push 0x40000
call fcn.004bdc7c
pop ecx
mov dword [ebp - 0x10], eax
push 0x6e
push dword [ebp + 8]
call fcn.0048f724
add esp, 8
test al, al
jne 0x48f7f3
push 0x65
push dword [ebp + 8]
call fcn.0048f724
add esp, 8
mov byte [ebp - 1], 1
jmp 0x48f885
push 0x4e
push dword [ebp + 8]
call fcn.0048f6dc
add esp, 8
test al, al
jne 0x48f817
push 0x65
push dword [ebp + 8]
call fcn.0048f724
add esp, 8
mov byte [ebp - 1], 1
jmp 0x48f885
push 0
lea edx, [ebp - 0x18]
push edx
push 0x40000
push dword [ebp - 0x10]
push dword [ebp - 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 0x1d], cl
cmp byte [ebp - 0x1d], 0
je 0x48f844
cmp dword [ebp - 0x18], 0
je 0x48f885
cmp byte [ebp - 0x1d], 0
jne 0x48f850
mov byte [ebp - 1], 1
jmp 0x48f885
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x48f86e
mov byte [ebp - 1], 1
jmp 0x48f885
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
je 0x48f7cc
mov byte [ebp - 1], 1
jmp 0x48f885
push dword [ebp - 0x10]
call fcn.004bdab4
pop ecx
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x490664
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x4dd0d4
call fcn.004becc8
mov dword [ebp - 0xc], 1
lea edx, [ebp + 0x38]
lea eax, [ebp + 0x38]
call fcn.004cb99c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
push 0x34
call fcn.004bdad8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4906b8
mov word [ebp - 0x18], 0x20
push dword [ebp - 4]
call fcn.0048e168
pop ecx
mov word [ebp - 0x18], 0x14
mov edx, dword [ebp - 4]
jmp 0x4906bb
mov edx, dword [ebp - 4]
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
lea edx, [ebp + 0x38]
mov eax, dword [ebp - 0x2c]
add eax, 0x18
call fcn.004cbb68
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp + 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 0x2c], edx
mov edx, dword [ebp + 0x28]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x14], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call fcn.0049e574
dec dword [ebp - 0xc]
lea eax, [ebp + 0x38]
mov edx, 2
call fcn.004cbb38
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x491e74
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
mov eax, 0x4dd328
call fcn.004becc8
mov edx, dword [ebp + 8]
mov byte [edx + 0x60], 1
push 0
lea ecx, [ebp - 0x30]
push ecx
push pe_nt_image_headers32
lea eax, [ebp - 0x238]
push eax
mov edx, dword [ebp + 8]
push dword [edx + 0x30]
call sub.KERNEL32.DLL_ReadFile
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x60], 0
cmp dword [ebp - 0x30], 0
jne 0x491ec9
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x492083
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3c], 0
je 0x491ff9
mov word [ebp - 0x1c], 8
mov edx, 0x4dd23d
lea eax, [ebp - 4]
call fcn.004cb964
inc dword [ebp - 0x10]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x34
call fcn.004cbb68
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x5c]
sub eax, 1
jb 0x491f24
je 0x491f6b
jmp 0x491fe1
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jae 0x491f3c
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x43
jne 0x491f21
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jae 0x491ff9
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x43
jne 0x491ff9
mov edx, dword [ebp + 8]
mov byte [edx + 0x3c], 0
jmp 0x491ff9
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jae 0x491f93
mov eax, dword [ebp - 0x34]
movsx edx, byte [ebp + eax - 0x238]
cmp edx, 0x58
je 0x491f93
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x4c
jne 0x491f68
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jae 0x491fb9
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x58
jne 0x491fb9
mov edx, dword [ebp + 8]
mov byte [edx + 0x3c], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x3f], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jae 0x491ff9
mov edx, dword [ebp - 0x34]
movsx ecx, byte [ebp + edx - 0x238]
cmp ecx, 0x4c
jne 0x491ff9
mov eax, dword [ebp + 8]
mov byte [eax + 0x3c], 0
mov edx, dword [ebp + 8]
mov byte [edx + 0x3f], 1
jmp 0x491ff9
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x3c], 1
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x492083
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x3c], 0
je 0x492010
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x492083
mov byte [ebp - 0x35], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jae 0x492076
mov eax, dword [ebp - 0x34]
movsx edx, byte [ebp + eax - 0x238]
cmp edx, 0xd
jne 0x492032
mov byte [ebp - 0x35], 1
jmp 0x492076
mov word [ebp - 0x1c], 0x14
mov ecx, dword [ebp - 0x34]
mov dl, byte [ebp + ecx - 0x238]
lea eax, [ebp - 8]
call fcn.004cbaa8
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 0x34
call fcn.004cbb7c
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jb 0x49201c
mov al, byte [ebp - 0x35]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4929cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3e], 0
je 0x492a06
mov byte [ebp - 6], 0x4f
cmp byte [ebp + 0xc], 0
je 0x4929eb
mov byte [ebp - 5], 0x31
jmp 0x4929ef
mov byte [ebp - 5], 0x30
push 0
lea edx, [ebp - 4]
push edx
push 2
lea ecx, [ebp - 6]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
call sub.KERNEL32.DLL_WriteFile
pop ecx
pop ecx
pop ebp
ret

Function at 0x498e68
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x498ef1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e3ec4
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x498edb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004acf14
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x498f08
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4e313c]
mov dl, 1
mov eax, dword [0x4986a0]
call fcn.004ad864
call fcn.004bb1a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498ef8
lea eax, [ebp - 0x1c]
call fcn.004bb70c
ret
Function at 0x499598
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004994bc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004babd8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x4995fc
call fcn.00498db0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4995ee
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004babd8
pop esi
pop ebx
ret

Function at 0x499620
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004bbbbc
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004ba298
test ebx, ebx
je 0x49966b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4996b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x4996d8
mov edx, edi
mov eax, esi
call fcn.00499620
mov dword [ebx + 4], eax
jmp 0x499715
cmp dword [ebp - 4], 0
je 0x4996f1
mov eax, dword [ebp - 4]
call fcn.004bbbbc
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x499715
cmp byte [ebp + 0xc], 0
jne 0x4996fe
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x499715
mov ecx, dword [0x4e3144]
mov dl, 1
mov eax, dword [0x4986a0]
call fcn.004ad828
call fcn.004bb1a8
cmp dword [ebp + 0x14], 0
je 0x499731
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0049967c
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x49973f
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x499748
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x499779
mov ecx, dword [0x4e314c]
mov dl, 1
mov eax, dword [0x4986a0]
call fcn.004ad828
call fcn.004bb1a8
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x4997a6
mov ecx, dword [0x4e3148]
mov dl, 1
mov eax, dword [0x4986a0]
call fcn.004ad828
call fcn.004bb1a8
xor eax, eax
push ebp
push 0x499822
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004babd8
cmp byte [ebp + 8], 0
je 0x4997fe
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004996b0
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00499598
jmp 0x499818
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0049909c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49983f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc