joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c394
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x42c3c9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004038b8
jmp 0x42c3d3
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.0040386c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42cf88
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x42cfc0
mov eax, esi
call fcn.004204cc
test al, al
je 0x42cfc0
mov eax, dword [ebx + 0x64]
call fcn.00420334
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42cfc0
push 0
mov eax, dword [ebx + 0x64]
call fcn.00420334
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x433914
Capabilities:
Open clipboard

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
jne 0x43394d
mov eax, dword [0x44cd98]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebx + 8], eax
test eax, eax
jne 0x433940
push ebx
push 0x433954
call fcn.00426934
mov dword [ebx + 8], eax
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_OpenClipboard
mov byte [ebx + 0xd], 0
inc dword [ebx + 4]
pop ebx
ret

Function at 0x433974
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00433914
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4339e6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4339ba
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00403988
jmp 0x4339c1
mov eax, ebx
call fcn.004037d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4339ed
cmp dword [ebp - 8], 0
je 0x4339dd
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
call fcn.004338e8
ret
Function at 0x4339f4
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x433ad2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00433914
xor edx, edx
push ebp
push 0x433ab5
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x433a7e
mov edx, ebx
mov eax, dword [0x412270]
call fcn.00416328
test al, al
je 0x433a6e
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004161fc
call fcn.00403350
jmp 0x433abc
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x433a39
lea edx, [ebp - 8]
mov eax, dword [0x44cc98]
call fcn.0040483c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x405ee4]
call fcn.004090b0
call fcn.004032b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433abc
mov eax, dword [ebp - 4]
call fcn.004338e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433ad9
lea eax, [ebp - 8]
call fcn.004037d4
ret

Function at 0x433ae0
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00433914
xor eax, eax
push ebp
push 0x433b38
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433b3f
mov eax, dword [ebp - 4]
call fcn.004338e8
ret

Function at 0x433b48
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00433914
xor edx, edx
push ebp
push 0x433b9d
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x58]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433ba4
mov eax, dword [ebp - 4]
call fcn.004338e8
ret
Function at 0x433c14
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00433914
xor eax, eax
push ebp
push 0x433c89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004338cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.004162fc
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x433c73
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433c90
mov eax, dword [ebp - 4]
call fcn.004338e8
ret

Function at 0x433c98
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00433914
xor eax, eax
push ebp
push 0x433d0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004338cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x433cf7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433d14
mov eax, dword [ebp - 4]
call fcn.004338e8
ret
Function at 0x4350e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43527b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00434bb4
mov eax, dword [ebp - 0x204]
lea edx, [esi + 1]
call fcn.004098d8
cmp al, 2
jne 0x43512a
dec esi
mov eax, ebx
call fcn.00434ec8
test al, al
je 0x43521b
test esi, esi
jge 0x43513f
xor esi, esi
lea edi, [esi + 1]
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00434bb4
mov eax, dword [ebp - 0x204]
call fcn.00403a50
cmp edi, eax
jge 0x435186
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00434bb4
mov eax, dword [ebp - 0x204]
mov al, byte [eax + edi - 1]
mov edx, dword [0x44ce50]
and eax, 0xff
bt dword [edx], eax
jae 0x435186
inc edi
mov eax, dword [ebx + 0x138]
cmp esi, eax
jl 0x435194
mov esi, eax
mov edi, esi
mov ecx, edi
mov edx, edi
mov eax, ebx
call fcn.004350c0
cmp edi, esi
je 0x435213
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x4351ba
mov byte [ebp - 0x1f0], 0x81
mov byte [ebp - 0x1db], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
push 0x25
push pe_nt_image_headers32
mov eax, ebx
call fcn.00420334
push eax
call sub.user32.dll_SendMessageA
push 1
push 0x25
push 0x101
mov eax, ebx
call fcn.00420334
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [ebx + 0x140], esi
jmp 0x435262
test esi, esi
jge 0x435221
xor esi, esi
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00434bb4
mov eax, dword [ebp - 0x204]
call fcn.00403a50
cmp esi, eax
jl 0x435257
lea edx, [ebp - 0x204]
mov eax, ebx
call fcn.00434bb4
mov eax, dword [ebp - 0x204]
call fcn.00403a50
mov esi, eax
mov ecx, esi
mov edx, esi
mov eax, ebx
call fcn.004350c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435282
lea eax, [ebp - 0x204]
call fcn.004037d4
ret
Function at 0x439000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x118]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x439186
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x150]
mov eax, dword [ebx + 0x10]
call fcn.00413954
cmp byte [ebp + 8], 0
je 0x439059
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.00413824
jmp 0x439067
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.00413824
mov eax, dword [ebx + 0x10]
call fcn.0041394c
dec eax
jle 0x4390ad
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041381c
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041394c
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.004138e4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x43910f
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x118]
call fcn.0041428c
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43f61c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c04
xor eax, eax
push ebp
push 0x43f71a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.004037d4
mov eax, ebx
mov ecx, 0x6a
cdq
idiv ecx
add dl, 0x17
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.00403a50
sar eax, 1
jns 0x43f671
adc eax, 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x43f6e9
mov dword [ebp - 0x18], eax
mov esi, 1
mov edi, ebx
and edi, 0xff
mov eax, esi
cdq
idiv edi
mov edx, esi
add edx, edx
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 2]
sub dl, al
sub dl, 0x78
mov byte [ebp - 0xd], dl
mov eax, esi
cdq
idiv edi
mov eax, esi
add eax, eax
mov ecx, dword [ebp - 4]
mov al, byte [ecx + eax - 1]
sub al, dl
sub al, 0x78
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x1c]
xor edx, edx
mov dl, byte [ebp - 0xe]
imul edx, edi
xor ecx, ecx
mov cl, byte [ebp - 0xd]
add edx, ecx
sub edx, edi
sub edx, dword [ebp - 0xc]
add edx, esi
call fcn.00403978
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
call fcn.00403a58
inc esi
dec dword [ebp - 0x18]
jne 0x43f683
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.0040386c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f721
lea eax, [ebp - 0x1c]
call fcn.004037d4
lea eax, [ebp - 0x14]
call fcn.004037d4
lea eax, [ebp - 4]
call fcn.004037d4
ret

Function at 0x43f728
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov esi, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403c04
xor eax, eax
push ebp
push 0x43f805
push dword fs:[eax]
mov dword fs:[eax], esp
lea ebx, [ebp - 0x14]
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.00403c14
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x43f788
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.00406c20
jmp 0x43f7e2
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
push 0
call sub.user32.dll_MessageBeep
cmp byte [ebp - 5], 0
je 0x43f7db
push 0
push 0x43f81c
push dword [ebp - 4]
push 0x43f84c
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00406c20
push dword [ebp - 0x1c]
push 0x43f860
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00403b10
mov eax, dword [ebp - 0x18]
mov cx, word [0x43f864]
mov dl, 1
call fcn.00433538
mov eax, esi
call fcn.004037d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f80c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004037f8
lea eax, [ebp - 4]
call fcn.004037d4
ret
Function at 0x4010d0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.msvcrt.dll_strrchr]
add esp, 8
test eax, eax
pop edi
je 0x40110e
mov byte [eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
add esp, 0x104
ret

Function at 0x4018e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Reference google public dns server

Disassembly:
push 0xffffffffffffffff
push 0x404e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.mfc42.dll_CString::CString
lea ebp, [esi + 0xc]
mov dword [esp + 0x1c], 0
mov ecx, ebp
call sub.mfc42.dll_CString::CString
lea ebx, [esi + 0x10]
mov byte [esp + 0x1c], 1
mov ecx, ebx
call sub.mfc42.dll_CString::CString
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 2
call sub.mfc42.dll_CString::CString
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 3
call sub.mfc42.dll_CString::CString
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 4
call sub.mfc42.dll_CString::CString
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 5
call sub.mfc42.dll_CString::CString
lea ecx, [esi + 0x24]
mov byte [esp + 0x1c], 6
call sub.mfc42.dll_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 7
call fcn.004045a0
push 0x4070b8
mov ecx, edi
mov byte [esp + 0x20], 8
mov dword [esi], 0x4056dc
mov byte [esi + 0x2e], 0
mov dword [esi + 0x3c], esi
call sub.mfc42.dll_CString::operator
push 0x4070a8
lea ecx, [esi + 0x18]
mov dword [esi + 8], 0x1f40
call sub.mfc42.dll_CString::operator
push 0x4070a0
mov ecx, ebp
call sub.mfc42.dll_CString::operator
push 0x407098
mov ecx, ebx
call sub.mfc42.dll_CString::operator
push 0x40708c
lea ecx, [esi + 0x14]
call sub.mfc42.dll_CString::operator
push 0x407084
lea ecx, [esi + 0x24]
call sub.mfc42.dll_CString::operator
push 0x40707c
lea ecx, [esi + 0x1c]
call sub.mfc42.dll_CString::operator
push 0x407054
lea ecx, [esi + 0x20]
call sub.mfc42.dll_CString::operator
mov byte [esi + 0x28], 0
mov byte [esi + 0x29], 0x30
mov byte [esi + 0x2a], 0x12
mov byte [esi + 0x2b], 0x68
mov byte [esi + 0x2c], 1
mov byte [esi + 0x2d], 0x57
mov eax, esi
pop edi
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401a50
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x404ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4056dc
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 7
call fcn.004045e0
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 6
call fcn.004048a6
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 5
call fcn.004048a6
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 4
call fcn.004048a6
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 3
call fcn.004048a6
lea ecx, [esi + 0x14]
mov byte [esp + 0x10], 2
call fcn.004048a6
lea ecx, [esi + 0x10]
mov byte [esp + 0x10], 1
call fcn.004048a6
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 0
call fcn.004048a6
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004048a6
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401f10
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.wsock32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401f2e
or eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401f41
push 1
push esi
call fcn.004020c0
add esp, 8
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.wsock32.dll_htons]
mov word [esp + 6], ax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x401f7b
push eax
call dword [sym.imp.wsock32.dll_htonl]
jmp 0x401f82
push eax
call dword [sym.imp.wsock32.dll_inet_addr]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.wsock32.dll_bind]
test eax, eax
jge 0x401fa7
push esi
call dword [sym.imp.wsock32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401fb0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
jne 0x401fc4
or eax, esi
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call dword [sym.imp.wsock32.dll_htons]
mov word [esp + 6], ax
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x401ffe
push eax
call dword [sym.imp.wsock32.dll_htonl]
jmp 0x402005
push eax
call dword [sym.imp.wsock32.dll_inet_addr]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.wsock32.dll_connect]
pop esi
add esp, 0x10
ret

Function at 0x402430
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [ecx + 8], 1
push eax
push 0
push ecx
push 0x402390
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x402467
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ecx
ret
push 0x4071c0
call fcn.004020f0
add esp, 4
pop ecx
ret

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

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x40256d
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push ecx
push eax
call sub.wsock32.dll_recv
ret 0xc
Function at 0x402590
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
jne 0x4025b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 0xc
mov ebp, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
xor esi, esi
mov dword [esp + 0x10], esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], eax
push 0
lea edx, [esp + 0x24]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
call sub.wsock32.dll_select
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x402643
mov eax, dword [esp + 0x124]
mov edx, ebx
sub edx, esi
push ebp
push edx
mov edx, dword [edi + 4]
lea ecx, [esi + eax]
push ecx
push edx
call sub.wsock32.dll_recv
test eax, eax
je 0x4025a2
jge 0x40263d
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x402664
jmp 0x402643
add esi, eax
cmp esi, ebx
jge 0x402655
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 9
mov dword [esp + 0x10], eax
jl 0x4025c5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret 0xc

Function at 0x402680
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
jne 0x4026a1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 0xc
mov ebp, dword [esp + 0x12c]
mov ebx, dword [esp + 0x128]
xor esi, esi
mov dword [esp + 0x10], esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x24], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 1
call sub.wsock32.dll_select
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x402733
mov eax, dword [esp + 0x124]
mov edx, ebx
sub edx, esi
push ebp
push edx
mov edx, dword [edi + 4]
lea ecx, [esi + eax]
push ecx
push edx
call sub.wsock32.dll_send
test eax, eax
je 0x402692
jge 0x40272d
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x402754
jmp 0x402733
add esi, eax
cmp esi, ebx
jge 0x402745
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 9
mov dword [esp + 0x10], eax
jl 0x4026b5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret 0xc