joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x616980]
test eax, eax
push esi
mov esi, dword [0x645324]
je 0x49212e
pop esi
mov dword [esp + 4], 0
jmp fcn.00421c80
mov eax, dword [0x616184]
test eax, eax
mov dword [0x616980], 1
je 0x492188
mov eax, dword [0x64533c]
test eax, eax
je 0x49216f
mov eax, dword [0x613698]
push eax
push 0
push 0x2f3
call fcn.00421db0
mov ecx, dword [0x64533c]
add esp, 8
push eax
push ecx
call fcn.00526870
add esp, 0xc
push 0x5e6c98
call fcn.00491330
add esp, 4
mov dword [0x616980], 0
pop esi
ret
mov eax, dword [esp + 8]
cmp eax, 5
mov dword [0x63b684], eax
je 0x4921a0
cmp eax, 6
je 0x4921a0
cmp eax, 8
jne 0x4921d5
mov eax, dword [0x64533c]
test eax, eax
je 0x4921d5
call fcn.00582a20
mov ecx, dword [0x64533c]
cmp ecx, eax
jne 0x4921d5
push ecx
call fcn.00582c10
add esp, 4
test eax, eax
jne 0x4921cb
mov esi, dword [0x64533c]
mov dword [0x63b684], 5
push 0
push 0x491d30
push 0x1b8
push esi
call fcn.00475160
mov eax, dword [0x64533c]
add esp, 0x10
test eax, eax
je 0x4921fa
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [0x63b684], 0
mov dword [0x616980], 0
pop esi
ret

Function at 0x4922c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
mov dword [0x609ad8], 0xffffffff
mov dword [0x609ad4], 0xffffffff
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x609ad4], eax
je 0x49230b
push 0x4f
push eax
call fcn.005284e0
add esp, 8
test eax, eax
je 0x49230b
mov eax, dword [0x609ad4]
push 5
push eax
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x492316
push 0
call fcn.00492210
add esp, 4
ret
mov ecx, dword [0x645324]
mov edx, dword [0x609ad4]
push 8
push 0x802e
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
ret
Function at 0x492990
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
push esi
push edi
jne 0x492be3
cmp ax, 0x20
je 0x492be3
mov eax, dword [0x609ad8]
cmp eax, 0xffffffff
je 0x492be3
cmp dword [0x609ad4], 0xffffffff
je 0x492be3
push 1
push 2
push eax
push 0x8030
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x492bf4
mov ebp, dword [sym.imp.WSOCK32.dll_send]
xor ebx, ebx
lea esp, [esp]
mov eax, dword [0x616ee8]
inc eax
cmp eax, 0x14
mov dword [0x616ee8], eax
jl 0x492a25
mov edx, dword [0x609ad8]
push ebx
push 2
push edx
push 0x8030
mov dword [0x616ee8], ebx
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x492bf4
cmp byte [0x616b00], bl
jne 0x492b5a
mov eax, dword [0x616a94]
push eax
push 0x3e7
push 0x616b00
call fcn.005cccfa
add esp, 0xc
test eax, eax
je 0x492be3
push 0x616b00
call fcn.004c9b30
add esp, 4
test eax, eax
jne 0x492be3
push 0x616b00
call fcn.004923e0
add esp, 4
test eax, eax
je 0x492bbf
push 0xa
push 0x616b00
call fcn.005cbf10
add esp, 8
test eax, eax
jne 0x492aa6
mov edi, 0x616b00
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x492a94
mov cx, word [0x5e75fc]
mov word [edi], cx
push 0x5e75fc
push 0x616b00
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x492b5a
mov edx, dword [0x616a94]
push edx
call fcn.005cf26b
mov edi, eax
mov eax, dword [0x616a94]
push eax
push 0x3e7
push 0x616b00
mov esi, 1
call fcn.005cccfa
add esp, 0x10
test eax, eax
je 0x492b38
nop
push 0x616b00
call fcn.004c9b30
add esp, 4
test eax, eax
jne 0x492b38
push 0x5e75fc
push 0x616b00
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x492b36
mov ecx, dword [0x616a94]
push ecx
push 0x3e7
push 0x616b00
call fcn.005cccfa
add esp, 0xc
test eax, eax
jne 0x492af0
jmp 0x492b38
xor esi, esi
mov edx, dword [0x616a94]
push ebx
push edi
push edx
call fcn.005cdc5e
add esp, 0xc
cmp esi, ebx
jne 0x492bbf
mov byte [0x616b00], 0xa
mov byte [0x616b01], bl
mov eax, 0x616b00
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x492b62
sub eax, edx
mov esi, eax
mov eax, 0x616b00
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x492b75
push ebx
sub eax, edx
push eax
mov eax, dword [0x609ad8]
push 0x616b00
push eax
call ebp
cmp eax, 0xffffffff
je 0x492bd6
cmp eax, esi
jge 0x492bbf
lea edx, [eax + 0x616b00]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x492ba1
sub eax, esi
inc eax
push eax
push edx
push 0x616b00
call fcn.005cceb0
add esp, 0xc
jmp 0x4929f0
push 0x3e7
push 0x616b00
call fcn.00423a00
add esp, 8
jmp 0x4929f0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x492bf4
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 2
jmp fcn.00492210
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x496060
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x617040]
sub esp, 0x3e8
test eax, eax
je 0x4960db
push esi
mov esi, dword [esp + 0x3f0]
cmp dword [eax], esi
je 0x49608d
mov eax, dword [eax + 0x21c]
test eax, eax
jne 0x496077
pop esi
add esp, 0x3e8
ret
push eax
call fcn.00495fe0
call fcn.00426060
push 4
call fcn.00569470
mov eax, dword [0x645324]
add esp, 8
cmp esi, eax
je 0x4960da
lea eax, [esp + 4]
push 0x3e7
push eax
call fcn.00423a00
add esp, 8
push 0x3e6
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 4]
push edx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop esi
add esp, 0x3e8
ret
Function at 0x49c970
Capabilities:
Clear file content

Disassembly:
sub esp, 0x3f0
push esi
mov esi, dword [esp + 0x3f8]
mov eax, dword [esi + 0x468]
push edi
xor edi, edi
cmp eax, edi
je 0x49ca5f
mov ecx, dword [esi + 0x474]
cmp ecx, 1
jne 0x49ca2e
lea eax, [esi + 0x234]
push eax
lea ecx, [esi + 0x130]
push ecx
lea edx, [esp + 0x18]
push 0x5e6a64
push edx
mov dword [esi + 0x474], 2
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.004243c0
add esp, 0x18
test eax, eax
je 0x49ca1f
mov eax, dword [esp + 8]
xor ecx, ecx
cmp eax, eax
jne 0x49ca1f
mov edx, dword [esp + 0xc]
cmp edx, ecx
jne 0x49ca1f
cmp dword [esi + 0x464], eax
jb 0x49ca1f
mov eax, dword [esi + 0x468]
cmp eax, 0x2000
jb 0x49ca1f
add eax, 0xffffe000
pop edi
mov dword [esi + 0x468], eax
pop esi
add esp, 0x3f0
ret
mov dword [esi + 0x468], edi
pop edi
pop esi
add esp, 0x3f0
ret
cmp ecx, 2
mov dword [esi + 0x474], edi
jne 0x49ca5f
push edi
push edi
push eax
mov eax, dword [esi + 0x43c]
push eax
call fcn.0049b080
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x49ca5f
mov ecx, dword [esi + 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 0x3f0
ret
Function at 0x49ce20
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x63709c]
sub esp, 0x7d0
test eax, eax
push esi
je 0x49ce45
mov esi, dword [esp + 0x7d8]
cmp eax, esi
je 0x49ce4f
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x49ce37
xor eax, eax
pop esi
add esp, 0x7d0
ret
mov eax, dword [esi + 0x4b8]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
je 0x49ce45
mov ecx, dword [0x645324]
push edi
push 0
push 0x4761b0
push 0xfa
push ecx
mov dword [0x613d7c], esi
call fcn.00475160
push esi
mov edi, eax
mov dword [0x613d7c], 0
call fcn.0049c8e0
add esp, 0x14
test eax, eax
je 0x49cefe
mov edx, dword [esi + 0x4b8]
push edx
call fcn.00502a60
add esp, 4
test eax, eax
je 0x49cef3
test edi, edi
jg 0x49cf09
mov eax, dword [esi + 0x47c]
test eax, eax
je 0x49cef3
lea eax, [esp + 8]
push str.151_rejected_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x10]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ced5
push 0
sub eax, edx
mov edx, dword [esi + 0x4b0]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
push 0
push esi
call fcn.0049cd40
add esp, 8
pop edi
xor eax, eax
pop esi
add esp, 0x7d0
ret
cmp edi, 2
jne 0x49d07d
mov eax, dword [esi + 0x47c]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x49cf92
lea eax, [esp + 8]
push str.151_rejected_n
push eax
call edi
lea eax, [esp + 0x10]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49cf38
push 0
sub eax, edx
mov edx, dword [esi + 0x4b0]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
lea eax, [esi + 0x68]
push eax
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x3f8]
push str._s_id__s
push edx
call edi
mov eax, dword [esi + 0x4b8]
push eax
lea ecx, [esp + 0x404]
push 2
push ecx
call fcn.004e9d50
lea edx, [esp + 0x40c]
push edx
push str.__ignore__wdu__s
jmp 0x49cfcc
lea eax, [esi + 0x68]
push eax
lea ecx, [esi + 4]
push ecx
lea edx, [esp + 0x3f8]
push 0x5e8440
push edx
call edi
mov eax, dword [esi + 0x4b8]
push eax
lea ecx, [esp + 0x404]
push 2
push ecx
call fcn.004e9d50
lea edx, [esp + 0x40c]
push edx
push str.__ignore__du__s
lea eax, [esp + 0x2c]
push eax
call edi
mov eax, dword [esi + 0x4b8]
mov edx, dword [eax]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
call fcn.00447670
add esp, 0x44
push 0
push esi
call fcn.0049cd40
mov esi, dword [0x63709c]
add esp, 8
test esi, esi
je 0x49d072
jmp 0x49d010
mov eax, dword [esi + 0x47c]
test eax, eax
lea eax, [esi + 0x68]
lea ecx, [esi + 4]
push eax
lea edx, [esp + 0xc]
push ecx
je 0x49d02d
push str._s_id__s
jmp 0x49d032
push 0x5e8440
push edx
call edi
add esp, 0x10
push 1
push 0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3fc]
push ecx
call fcn.00581d70
add esp, 0x10
test eax, eax
je 0x49d068
push 0
push esi
call fcn.0049cd40
mov esi, dword [0x63709c]
add esp, 8
jmp 0x49d06e
mov esi, dword [esi + 0x4bc]
test esi, esi
jne 0x49d010
pop edi
xor eax, eax
pop esi
add esp, 0x7d0
ret
mov eax, edi
pop edi
pop esi
add esp, 0x7d0
ret
Function at 0x49e580
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x49e58d
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x45c]
test eax, eax
push edi
lea edi, [esi + 0x45c]
mov dword [esi + 0x4ac], 0
jbe 0x49e5e4
mov eax, dword [esi + 0x4b0]
push 0
push 4
push edi
push eax
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 4
je 0x49e5e9
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x49e5e4
push 0
push 0xb67
call fcn.00421db0
push eax
push 0
push esi
call fcn.0049d510
add esp, 0x14
pop edi
xor eax, eax
pop esi
ret
mov dword [edi], 0
pop edi
mov eax, 1
pop esi
ret
Function at 0x49eb80
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.005cd640
push ebx
push esi
mov esi, dword [esp + 0x2010]
xor ebx, ebx
cmp esi, ebx
je 0x49eda6
cmp dword [esi + 0x474], ebx
je 0x49ebae
push esi
call fcn.0049c970
add esp, 4
mov eax, dword [esi + 0x4b0]
push 1
push 1
push eax
push 0x8012
mov dword [esi + 0x4ac], ebx
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x49eda6
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_recv]
push edi
lea esp, [esp]
mov ecx, dword [esi + 0x4b4]
inc ecx
mov eax, ecx
cmp eax, 0x14
mov dword [esi + 0x4b4], ecx
jl 0x49ec19
mov ecx, dword [esi + 0x4b0]
push ebx
push 1
push ecx
push 0x8012
mov dword [esi + 0x4b4], ebx
call fcn.0058d320
add esp, 0x10
test eax, eax
jne 0x49eda4
mov eax, dword [esi + 0x4b0]
push ebx
push 0x2000
lea edx, [esp + 0x1c]
push edx
push eax
call ebp
mov edi, eax
cmp dword [esi + 0x440], 4
jne 0x49eda4
cmp edi, 0xffffffff
je 0x49ed51
cmp edi, ebx
jle 0x49ed72
mov edx, dword [esi + 0x458]
mov ecx, dword [esi + 0x470]
mov eax, dword [esi + 0x468]
add edx, edi
add ecx, edi
cmp eax, ebx
mov dword [esi + 0x458], edx
mov dword [esi + 0x470], ecx
jbe 0x49ec84
mov ecx, dword [esi + 0x43c]
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x43c]
push ebx
lea edx, [esp + 0x14]
push edx
push edi
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49ed8e
cmp edi, dword [esp + 0x10]
jne 0x49ed8e
mov edx, dword [esi + 0x458]
push edx
call dword [sym.imp.WSOCK32.dll_htonl]
push esi
mov dword [esi + 0x45c], eax
call fcn.0049cb00
push esi
call fcn.0049e580
add esp, 8
test eax, eax
je 0x49eda4
mov eax, dword [0x63709c]
cmp eax, ebx
je 0x49eda4
lea ebx, [ebx]
cmp eax, esi
je 0x49ed0b
mov eax, dword [eax + 0x4bc]
cmp eax, ebx
jne 0x49ecf0
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2004
ret
mov eax, dword [esi + 0x464]
cmp eax, ebx
jbe 0x49ed1d
cmp dword [esi + 0x458], eax
jae 0x49ed66
cmp dword [0x6370a0], ebx
je 0x49ebe0
cmp dword [esi + 0x470], 0x7d000
jl 0x49ebe0
mov eax, dword [esi + 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [esi + 0x470], ebx
jmp 0x49ebe0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x49eda4
push ebx
push 0xb67
jmp 0x49ed94
mov ecx, dword [esi + 0x464]
mov dword [esi + 0x458], ecx
push 0x5e6c98
push ebx
push esi
call fcn.0049d510
add esp, 0xc
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2004
ret
push ebx
push 0xb65
call fcn.00421db0
push eax
push ebx
push esi
call fcn.0049d510
add esp, 0x14
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x2004
ret
Function at 0x49fe10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov al, byte [edx]
sub esp, 0x3e8
push esi
xor esi, esi
test al, al
push edi
lea ecx, [esp + 8]
je 0x49fe33
inc edx
mov byte [ecx], al
mov al, byte [edx]
inc ecx
inc esi
test al, al
jne 0x49fe28
test esi, esi
mov byte [ecx], 0
lea edi, [esp + 8]
ja 0x49fe49
pop edi
xor eax, eax
pop esi
add esp, 0x3e8
ret
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov cl, byte [esp + 8]
xor eax, eax
test cl, cl
je 0x49fe70
nop
movzx ecx, cl
xor ecx, eax
shl ecx, 1
inc edi
mov eax, ecx
mov cl, byte [edi]
test cl, cl
jne 0x49fe60
pop edi
pop esi
add esp, 0x3e8
ret
Function at 0x4a5d10
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ecx
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
cmp edi, dword [0x6370cc]
je 0x4a5d7b
push ebx
xor eax, eax
mov bl, 0x20
push esi
mov esi, dword [sym.imp.USER32.dll_VkKeyScanA]
mov dword [0x6370c8], eax
mov byte [esp + 0xc], bl
lea esp, [esp]
test bl, bl
je 0x4a5d70
test eax, eax
jne 0x4a5d70
mov eax, dword [esp + 0xc]
push eax
call esi
cmp ah, 6
jne 0x4a5d60
mov eax, 1
mov dword [0x6370c8], eax
jmp 0x4a5d65
mov eax, dword [0x6370c8]
inc bl
cmp bl, 0xff
mov byte [esp + 0xc], bl
jbe 0x4a5d40
pop esi
pop ebx
mov dword [0x6370cc], edi
pop edi
pop ecx
ret
mov eax, dword [0x6370c8]
pop edi
pop ecx
ret
Function at 0x4aa430
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov eax, dword [0x637660]
test eax, eax
je 0x4aa46d
mov eax, dword [0x609c10]
test eax, eax
je 0x4aa450
push 0
call fcn.00505460
add esp, 4
test eax, eax
je 0x4aa46d
mov eax, dword [esp + 4]
push 0
push eax
push 0x637668
call fcn.00510a00
add esp, 0xc
test eax, eax
jne 0x4aa47a
mov dword [0x637660], eax
mov dword [esp + 4], 0
jmp fcn.004aa3a0
cmp dword [0x609c18], 0xffffffff
jne 0x4aa4e7
push 0
push 1
push 2
mov dword [0x609c1c], 0xffffffff
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x609c18], eax
je 0x4aa46d
xor ecx, ecx
mov cx, word [0x609c14]
push ecx
push eax
call fcn.005284e0
add esp, 8
test eax, eax
je 0x4aa46d
mov edx, dword [0x609c18]
push 5
push edx
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jne 0x4aa46d
mov eax, dword [0x645324]
mov ecx, dword [0x609c18]
push 8
push 0x802a
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
ret
Function at 0x4aa4f0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [0x609c1c]
sub esp, 0x17c
cmp eax, 0xffffffff
push ebp
push esi
jne 0x4aa5de
mov eax, dword [0x645324]
mov ecx, dword [0x609c18]
push 0
push 0
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov ecx, dword [0x609c18]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WSOCK32.dll_accept]
cmp eax, 0xffffffff
mov dword [0x609c1c], eax
je 0x4aa5de
lea edx, [esp + 0x1c]
push 0x64
push edx
call fcn.00423a00
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
test eax, eax
mov dword [0x609c20], 0xffffffff
je 0x4aa5ad
cmp eax, 6
jl 0x4aa5ad
movzx eax, byte [esp + 0x13]
movzx ecx, byte [esp + 0x12]
movzx edx, byte [esp + 0x11]
push eax
movzx eax, byte [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
push 0x5e7824
push ecx
call ebp
add esp, 0x18
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [0x609c20], eax
push 1
call fcn.00505460
mov esi, eax
add esp, 4
test esi, esi
jne 0x4aa671
mov eax, dword [0x609c10]
test eax, eax
jne 0x4aa5e8
call fcn.00502b30
mov esi, eax
test esi, esi
jne 0x4aa67b
mov eax, dword [0x609c1c]
mov ecx, dword [0x609c10]
test ecx, ecx
je 0x4aa60d
push 0
call fcn.00505460
add esp, 4
test eax, eax
jne 0x4aa608
push eax
call fcn.004aa3a0
add esp, 4
pop esi
pop ebp
add esp, 0x17c
ret
mov eax, dword [0x609c1c]
cmp eax, 0xffffffff
je 0x4aa631
push 1
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov eax, dword [0x609c1c]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x609c1c], 0xffffffff
mov eax, dword [0x609c18]
cmp eax, 0xffffffff
mov dword [0x637700], 0
mov dword [0x609c20], 0xffffffff
je 0x4aa727
mov ecx, dword [0x645324]
push 8
push 0x802a
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop esi
pop ebp
add esp, 0x17c
ret
mov dword [esi + 0x834], 2
mov eax, dword [0x609c0c]
test eax, eax
je 0x4aa6f9
mov edx, dword [0x61369c]
mov eax, dword [esi]
push edx
push eax
call fcn.00526700
mov al, byte [esp + 0x24]
add esp, 8
test al, al
je 0x4aa6d8
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xc1d
call fcn.00421db0
add esp, 8
push eax
lea edx, [esp + 0x88]
push edx
call ebp
mov eax, dword [0x6136ac]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x90]
push ecx
push edx
call fcn.00526870
add esp, 0x18
jmp 0x4aa6f9
mov eax, dword [0x6136ac]
push eax
push 0
push 0xc1e
call fcn.00421db0
mov ecx, dword [esi]
add esp, 8
push eax
push ecx
call fcn.00526870
add esp, 0xc
mov edx, dword [0x645324]
mov eax, dword [0x609c1c]
push 0x21
push 0x802b
push edx
push eax
mov dword [0x637700], 0x1e
mov dword [0x637704], 0
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop esi
pop ebp
add esp, 0x17c
ret
Function at 0x4bc740
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4bc76f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push 1
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push eax
push ecx
call fcn.00515c10
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4bc8be
cmp dword [eax + 0x1c], 1
je 0x4bc787
mov eax, 1
pop ebx
ret
mov ecx, dword [eax + 0xc]
test ecx, ecx
push esi
jne 0x4bc88d
mov edx, dword [eax]
movzx eax, byte [edx]
push eax
call fcn.005cd445
add esp, 4
test eax, eax
je 0x4bc88d
mov ecx, dword [ebx + 0x40]
mov esi, dword [ecx]
mov al, byte [esi]
test al, al
je 0x4bc819
push edi
cmp al, 0x30
mov edi, esi
jne 0x4bc7f7
jmp 0x4bc7c0
movzx edx, byte [edi + 1]
push edx
call fcn.005cd445
add esp, 4
test eax, eax
je 0x4bc7d9
mov al, byte [edi + 1]
inc edi
cmp al, 0x30
je 0x4bc7c0
cmp edi, esi
je 0x4bc7f7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bc7e2
sub eax, edx
inc eax
push eax
push edi
push esi
call fcn.005cceb0
add esp, 0xc
mov al, byte [esi]
test al, al
je 0x4bc80c
lea ecx, [ecx]
cmp al, 0x2e
je 0x4bc811
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4bc800
cmp byte [esi], 0x2e
jne 0x4bc812
inc esi
mov al, byte [esi]
test al, al
jne 0x4bc7b5
pop edi
mov eax, dword [ebx + 0x40]
mov ecx, dword [eax]
push 0x2e
push ecx
call fcn.005cbf10
mov edx, dword [ebx + 0x40]
add esp, 8
test eax, eax
mov eax, dword [edx]
je 0x4bc874
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bc857
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
push str.255.255.255.255
push edx
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4bc88d
push esi
call dword [sym.imp.WSOCK32.dll_htonl]
push eax
mov eax, dword [esp + 0x1c]
push 0x5e6a34
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4bc88d
mov ecx, dword [esp + 0x18]
push 0
push ecx
push eax
call fcn.005cc534
push ecx
fstp qword [esp]
call fcn.00423c50
add esp, 0x10
mov eax, dword [ebx + 8]
test eax, eax
jle 0x4bc8b6
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x40]
mov edx, dword [esi]
push ecx
push edx
call fcn.004e3140
mov dword [esi], eax
mov ecx, dword [ebx + 8]
add esp, 8
dec ecx
mov eax, ecx
test eax, eax
mov dword [ebx + 8], ecx
jg 0x4bc898
mov dword [ebx + 8], 0
pop esi
mov eax, 2
pop ebx
ret
Function at 0x4c9370
Capabilities:
Get common file path

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
test bl, 1
push esi
mov esi, dword [esp + 0xc]
mov byte [esi], 0
je 0x4c938b
lea eax, [esp + 0xc]
push eax
push 0x1a
jmp 0x4c9397
test bl, 2
je 0x4c940a
lea ecx, [esp + 0xc]
push ecx
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4c940a
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4c940a
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x4c940a
push esi
call fcn.00423a30
push 2
push esi
call fcn.00425b60
add esp, 0xc
test eax, eax
je 0x4c940a
push esi
call fcn.00426aa0
add esp, 4
test bl, 4
je 0x4c9402
push edi
mov edi, esi
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c93e0
mov edx, dword [0x5e68d8]
mov dword [edi], edx
mov al, byte [0x5e68dc]
push esi
mov byte [edi + 4], al
call fcn.00426aa0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret

Function at 0x4c94c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4c94f4
cmp byte [esi], 0
je 0x4c94f4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4c94f4
test al, 0x50
jne 0x4c94f4
test ah, 0x11
jne 0x4c94f4
mov ecx, eax
and ecx, 0xfffffff8
cmp ecx, eax
je 0x4c94f4
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret