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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
mov edx, esi
mov ecx, ebx
call fcn.0046896c
mov eax, dword [ebp - 8]
xor edi, edi
cmp eax, edi
jne 0x4d2452
push 0xfe
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
push edi
push dword [0x548870]
push edi
push ebx
push ecx
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
push ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x18]
or ecx, 0x50010000
push ecx
push eax
push 0x4f6c50
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x4d249e
push edi
push edi
push 0x31
push dword [ebp - 4]
call esi
push edi
push eax
push 0x30
push ebx
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x4d2767
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
movzx esi, dx
push 0
mov ebx, ecx
push esi
push ebx
call edi
xor edx, edx
mov ecx, eax
call fcn.004d2406
push esi
push ebx
mov ebp, eax
call edi
test ebp, ebp
je 0x4d279c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4d4164
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x20]
lea edx, [eax + 1]
cmp edx, 2
jne 0x4d4174
jmp fcn.004d2d79
test eax, eax
jne 0x4d4179
inc eax
push 0
push 3
mov dword [ecx + 0x20], eax
pop edx
mov ecx, eax
call fcn.004d316e
ret 4
Function at 0x4d48d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x54bdf8]
test eax, eax
je 0x4d48e8
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
leave
ret
cmp byte [0x54bdf4], 0
jne 0x4d4907
mov edx, 0x514cc8
mov ecx, 0x54bd58
call fcn.0043ebfe
mov byte [0x54bdf4], 1
push 0x270
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x4d4921
mov ecx, eax
call fcn.004d37fe
mov ecx, eax
jmp 0x4d4923
xor ecx, ecx
push esi
push 0
push 0xf8
mov dword [0x54bdf8], ecx
call fcn.004683fc
mov eax, dword [0x54bdf8]
mov esi, dword [eax + 4]
push dword [0x551e88]
lea eax, [ebp - 4]
push eax
call fcn.0048ee25
pop ecx
pop ecx
mov ecx, eax
call fcn.0048e806
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 4]
call fcn.0048e50a
mov eax, dword [0x54bdf8]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
leave
ret

Function at 0x4d4eef
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.004e6080
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push edi
mov edi, ecx
mov ecx, dword [eax + 8]
cmp ecx, 0xfffffffe
je 0x4d4f13
cmp ecx, 0xfffffffc
jne 0x4d4f62
add eax, 0xc
push 0x10b8
push eax
lea eax, [ebp - 0x10b8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 4]
add esp, 0xc
push 0x5c8
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi + 0xc]
cmp dword [ecx], eax
jne 0x4d4f62
xor eax, eax
cmp dword [ebp - 0x10b4], eax
jne 0x4d4f62
push 5
push eax
push eax
lea ecx, [ebp - 0x1048]
push ecx
push 0x4f6aac
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
leave
ret 4

Function at 0x4d5806
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0x70
mov esi, edx
mov edi, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x4d5825
push esi
push edi
mov ecx, eax
call fcn.004d5431
mov esi, eax
jmp 0x4d5827
xor esi, esi
push 0
push 0xfd
mov ecx, esi
call fcn.004683fc
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret
Function at 0x4dcc21
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x2c]
cmp dword [ebx], 0
je 0x4dce0d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4dce0d
dec eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x100c
je 0x4dcd67
sub eax, 3
je 0x4dcd45
dec eax
je 0x4dcd23
dec eax
je 0x4dcd01
dec eax
jne 0x4dcd97
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 8]
push 2
push 0xffffffffffffffff
push ebp
xor ebx, ebx
push eax
jmp 0x4dcc9d
mov edx, dword [esi + 0x28]
mov ecx, eax
imul ecx, ecx, 0x2c
cmp dword [ecx + edx + 8], 0
je 0x4dcc92
inc ebx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + 8]
push 2
push eax
push ebp
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4dcc82
cmp byte [0x54b02f], 0
je 0x4dcd97
push ebx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 9
mov dword [esp + 0x30], 0x54b02f
mov dword [esp + 0x20], 0x24
call fcn.004dcbb7
mov ecx, eax
call fcn.0048e806
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004693e3
pop ecx
pop ecx
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0048e50a
cmp ebx, 6
jne 0x4dce0b
jmp 0x4dcd97
call fcn.0046e3c9
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1cf]
and al, 6
cmp al, 4
setne al
movzx eax, al
push eax
call fcn.0044ef7f
jmp 0x4dce06
call fcn.0046e3c9
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1cf]
and al, 0xa
cmp al, 8
setne al
movzx eax, al
push eax
call fcn.004dca8f
jmp 0x4dce06
call fcn.0046e3c9
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1cf]
and al, 3
cmp al, 1
setne al
movzx eax, al
push eax
call fcn.0044ef65
jmp 0x4dce06
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x4dcd83
xor edx, edx
inc edx
mov ecx, ebx
call fcn.00445654
jmp 0x4dcd97
call fcn.0046e3c9
xor edx, edx
inc edx
mov ecx, ebx
call fcn.004de1d5
call fcn.0046e3e5
call fcn.0046e3c9
push 2
push 0xffffffffffffffff
jmp 0x4dcdf5
mov ecx, dword [esi + 0x28]
mov eax, ebx
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 8]
mov ecx, dword [esp + 0x38]
dec ecx
dec ecx
je 0x4dcdd9
dec ecx
je 0x4dcdcd
sub ecx, 4
jne 0x4dcdf2
test eax, eax
je 0x4dcdf2
mov ecx, dword [esi + 0x2c]
push eax
call fcn.00413391
jmp 0x4dcdf2
test eax, eax
je 0x4dcddd
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
test eax, eax
jne 0x4dcde9
mov eax, dword [esi + 0x2c]
and dword [eax + 0x338], 0
jmp 0x4dcdf2
mov ecx, dword [esi + 0x2c]
push eax
call 0x40a0f8
push 2
push ebx
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 8]
push ebp
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4dcda2
call fcn.0046e3e5
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x4dcc25
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x2c]
cmp dword [ebx], 0
je 0x4dce0d
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4dce0d
dec eax
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, 0x100c
je 0x4dcd67
sub eax, 3
je 0x4dcd45
dec eax
je 0x4dcd23
dec eax
je 0x4dcd01
dec eax
jne 0x4dcd97
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 8]
push 2
push 0xffffffffffffffff
push ebp
xor ebx, ebx
push eax
jmp 0x4dcc9d
mov edx, dword [esi + 0x28]
mov ecx, eax
imul ecx, ecx, 0x2c
cmp dword [ecx + edx + 8], 0
je 0x4dcc92
inc ebx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + 8]
push 2
push eax
push ebp
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4dcc82
cmp byte [0x54b02f], 0
je 0x4dcd97
push ebx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 9
mov dword [esp + 0x30], 0x54b02f
mov dword [esp + 0x20], 0x24
call fcn.004dcbb7
mov ecx, eax
call fcn.0048e806
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004693e3
pop ecx
pop ecx
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0048e50a
cmp ebx, 6
jne 0x4dce0b
jmp 0x4dcd97
call fcn.0046e3c9
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1cf]
and al, 6
cmp al, 4
setne al
movzx eax, al
push eax
call fcn.0044ef7f
jmp 0x4dce06
call fcn.0046e3c9
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1cf]
and al, 0xa
cmp al, 8
setne al
movzx eax, al
push eax
call fcn.004dca8f
jmp 0x4dce06
call fcn.0046e3c9
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1cf]
and al, 3
cmp al, 1
setne al
movzx eax, al
push eax
call fcn.0044ef65
jmp 0x4dce06
push 0xa3
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x4dcd83
xor edx, edx
inc edx
mov ecx, ebx
call fcn.00445654
jmp 0x4dcd97
call fcn.0046e3c9
xor edx, edx
inc edx
mov ecx, ebx
call fcn.004de1d5
call fcn.0046e3e5
call fcn.0046e3c9
push 2
push 0xffffffffffffffff
jmp 0x4dcdf5
mov ecx, dword [esi + 0x28]
mov eax, ebx
imul eax, eax, 0x2c
mov eax, dword [eax + ecx + 8]
mov ecx, dword [esp + 0x38]
dec ecx
dec ecx
je 0x4dcdd9
dec ecx
je 0x4dcdcd
sub ecx, 4
jne 0x4dcdf2
test eax, eax
je 0x4dcdf2
mov ecx, dword [esi + 0x2c]
push eax
call fcn.00413391
jmp 0x4dcdf2
test eax, eax
je 0x4dcddd
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
test eax, eax
jne 0x4dcde9
mov eax, dword [esi + 0x2c]
and dword [eax + 0x338], 0
jmp 0x4dcdf2
mov ecx, dword [esi + 0x2c]
push eax
call 0x40a0f8
push 2
push ebx
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 8]
push ebp
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4dcda2
call fcn.0046e3e5
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x24
ret 4
Function at 0x4df1c3
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ecx
push ebx
mov edx, 0x516388
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00469679
test al, al
jne 0x4df1f4
mov eax, str.cant_load_wininet.dll
jmp 0x4df3c3
push ebx
push ebx
push ebx
push ebx
push str.uTorrent_3100
call dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x4df213
mov dword [ebp - 4], str.InternetOpen_failed
jmp 0x4df3c0
push ebx
push ebx
push 3
mov eax, 0x4f1e13
push eax
push eax
push 0x50
push str.update.utorrent.com
push dword [ebp - 0x18]
call dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x4df23e
mov dword [ebp - 4], str.InternetConnect_failed
jmp 0x4df3ba
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor cl, cl
mov esi, eax
call fcn.00427067
push dword [0x549d70]
movzx ecx, byte [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
push dword [0x5324c0]
push dword [ebp - 0x10]
push ecx
push esi
push eax
push 0x681a
push str._crash.php_ver_dUh_sp_dUpr_dUs_dUsvp_dov_dplus_d
mov esi, 0x500
lea eax, [ebp - 0x538]
push esi
push eax
call fcn.0048d2a2
add esp, 0x2c
mov edi, eax
cmp byte [0x54f890], bl
je 0x4df2b5
push 0x54f890
mov eax, esi
sub eax, edi
push 0x4f8a44
push eax
lea eax, [ebp + edi - 0x538]
push eax
call fcn.0048d2a2
add esp, 0x10
add edi, eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4df2d9
cmp byte [eax], bl
je 0x4df2d9
push eax
push str.dl_s
sub esi, edi
lea eax, [ebp + edi - 0x538]
push esi
push eax
call fcn.0048d2a2
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov dl, 1
call fcn.0046b197
mov esi, dword [ebp - 0x20]
mov eax, str.POST
cmp esi, ebx
jne 0x4df2f4
mov eax, 0x4fae68
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x538]
push ecx
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x30]
mov edi, eax
cmp edi, ebx
jne 0x4df31d
mov dword [ebp - 4], str.HttpOpenRequest_failed
jmp 0x4df3b2
mov eax, str.Content_type:_application_octet_stream
cmp esi, ebx
jne 0x4df32b
mov eax, 0x4f1e13
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x10]
push ecx
push esi
push 0xffffffffffffffff
push eax
push edi
call dword [ebp - 0x2c]
test eax, eax
jne 0x4df34a
mov dword [ebp - 4], str.HttpSendRequest_failed
jmp 0x4df3ae
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push edi
mov dword [ebp - 8], 4
call dword [ebp - 0x24]
test eax, eax
jne 0x4df370
mov dword [ebp - 4], str.HttpQueryInfo_failed
jmp 0x4df3ae
cmp dword [ebp - 0x14], 0xc8
je 0x4df3ae
push dword [ebp - 0x14]
mov esi, 0x54fc98
push str.Error__d_:
push 0x64
push esi
call fcn.0048d2a2
add esp, 0x10
push 0x64
pop ecx
sub ecx, eax
push ebx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
lea eax, [eax + 0x54fc98]
push eax
push 0x14
push edi
call dword [ebp - 0x24]
mov dword [ebp - 4], esi
push edi
call dword [ebp - 0x28]
push dword [ebp - 0xc]
call dword [ebp - 0x28]
pop edi
pop esi
push dword [ebp - 0x18]
call dword [ebp - 0x28]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x4df3ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push edi
xor edi, edi
push edi
push 0x80
push 5
pop edx
call fcn.0047246a
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp - 4], eax
je 0x4df548
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push eax
push 0x20
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4df53b
mov eax, dword [ebp - 0x50]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x54], edi
jbe 0x4df537
mov ebx, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
push edi
push dword [ebp - 0x14]
push dword [ebp - 4]
call ebx
add dword [ebp - 0x14], 0xc
push edi
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4df53a
cmp dword [ebp - 0x30], 5
jne 0x4df528
push edi
push edi
push dword [ebp - 0x28]
push dword [ebp - 4]
call ebx
push edi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4df53a
mov ecx, dword [ebp - 0x10]
shl ecx, 4
call fcn.0046b19f
push edi
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
shl ecx, 4
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x4df551
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x10], edi
jbe 0x4df51a
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0x24], eax
cmp dword [eax - 4], 0xc
jb 0x4df509
push edi
push edi
push dword [eax]
push dword [ebp - 4]
call ebx
push edi
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4df551
cmp dword [ebp - 0x3c], 0x56555453
je 0x4df54b
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x24], eax
cmp ecx, dword [ebp - 0x10]
jb 0x4df4da
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x4df528
mov dl, 1
call fcn.0046b197
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jb 0x4df44f
mov dword [ebp - 0x20], edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x20]
pop esi
pop edi
leave
ret
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x4df53a
mov dl, 1
call fcn.0046b197
jmp 0x4df53a
Function at 0x4df818
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, 0x2cc
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.0046b19f
mov esi, eax
mov edx, str.OpenThread
mov ecx, 0x4f55bc
mov dword [ebp - 8], esi
mov dword [esi], 0x10007
call fcn.004a3dac
cmp eax, edi
je 0x4df897
push ebx
push edi
push 0x1f03ff
call eax
mov edi, eax
test edi, edi
je 0x4df897
push edi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4df889
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4df889
push 0
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.004df63e
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4e118d
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0x400
mov dword [0x56bfd4], 0
mov dword [0x56bfc8], 1
push 0x4e1177
call sub.MSVCRT.dll__beginthread
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
add esp, 0xc
push 0x10
call esi
mov dword [0x56bfc8], 0
push 1
call esi
mov ecx, dword [0x56bfd4]
mov eax, dword [0x56bfd4]
shr ecx, 3
xor eax, ecx
mov ecx, dword [0x56bfd0]
shr eax, 3
xor ecx, eax
xor dword [0x56bfd4], ecx
and dword [0x56bfd4], 7
mov eax, dword [0x56bfd4]
mov dword [0x56bfd0], eax
mov eax, dword [0x56bfcc]
mov ecx, dword [0x56bfd4]
shl eax, 3
xor ecx, eax
mov dword [0x56bfcc], ecx
mov eax, dword [0x56bfcc]
pop esi
ret
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
call 0x4e118d
jmp 0x4e118d
Function at 0x4e7b41
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
xor eax, eax
inc eax
xor ecx, ecx
cpuid
mov esi, edi
mov edi, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
and dword [ebp - 0x10], 0xffffff
add edi, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
push 0x25
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x11c]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4e7bd1
mov cl, byte [eax + 0x50e274]
mov byte [ebp + eax - 0x11c], cl
inc eax
cmp cl, bl
jne 0x4e7bbf
push 0xa
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x11c]
call fcn.004ed6a4
test al, al
jne 0x4e7bf9
xor eax, eax
mov cl, byte [eax + 0x50e274]
mov byte [ebp + eax - 0x11c], cl
inc eax
cmp cl, bl
jne 0x4e7be7
mov eax, 0x105
push eax
lea ecx, [ebp - 0x224]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
je 0x4e7c25
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], ebx
xor eax, eax
lea edi, [ecx + 0x20]
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402280
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6e4770]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4022d0
mov ax, word [esp]
cmp al, 2
jne 0x4022ca
cmp ah, al
jne 0x4022ca
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0052dfa4
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.0052dfa4
add esp, 0x194
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x403a82
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x403bd0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x403beb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x403c1f
cmp eax, 2
jg 0x403c1f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x660f84]
push 2
push edx
call fcn.0052ffec
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0052ffec
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x403fad
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x403f84
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00410980
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00403db0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40ec60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x6e4770]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x40ed9b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x40ecdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00410980
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00403db0
add esp, 0x18
jmp 0x40eda4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x40ed1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00410980
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00403db0
add esp, 0x18
jmp 0x40eda4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0040ec20
test eax, eax
jne 0x40ed5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00410980
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00403db0
add esp, 0x18
jmp 0x40eda4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0040ec20
test eax, eax
jne 0x40ed9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00410980
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00403db0
add esp, 0x18
jmp 0x40eda4
push ebp
call fcn.0040ebc0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052dfa4
add esp, 0x10c
ret

Function at 0x40edc0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x40ee03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00410980
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00403d20
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00403d20
add esp, 8
pop esi
pop ecx
ret

Function at 0x40ee20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x40ee69
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x40ee81
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret