joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f510
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], 0x3c
push 0
push eax
call fcn.00466b60
mov esi, dword [ebp + 8]
add esp, 0xc
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 8]
lea edi, [esi + 0x181c]
movups xmmword [edi], xmm0
push edi
movups xmm0, xmmword [ebp - 0x30]
push 0
push 0x43a
push dword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [ebp - 0x10]
movq qword [edi + 0x30], xmm0
mov dword [edi + 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [esi + 0x1820], 0xa000000f
mov ecx, dword [0x4c3118]
push str.cfont_fx
call fcn.004038d0
push 0xb4
mov dword [esi + 0x1824], eax
mov ecx, dword [0x4c3118]
push str.cfont_yh
call fcn.004038d0
push 0x417
push dword [esi]
mov dword [esi + 0x1828], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x419
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x4c3118]
push str.Fixedsys
push str.cfont_face
mov dword [ebp - 4], eax
call fcn.00403900
cmp byte [eax], 0
je 0x40f67d
lea edx, [esi + 0x1836]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x40f5f2
push edi
push 4
push 0x444
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 4
push 0x444
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x4c3118]
push 0xffffff
push str.cfont_bgc
call fcn.004038d0
mov edi, eax
push edi
push 0
push 0x443
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push 0
push 0x443
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [esi + 4]
cmp al, 0x23
je 0x40f661
cmp al, 0x26
jne 0x40f67d
push edi
push 0
push 0x111d
push 0x456
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ff90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c0258]
cmp eax, 3
je 0x40fff6
cmp eax, 4
je 0x40fff6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40ffb2
cmp dword [eax + 0x69c], 0
jne 0x40fff6
mov ecx, dword [0x4c3118]
push 0
push str.chatsnd
call fcn.004038d0
test eax, eax
je 0x40fff6
mov ecx, dword [0x4c3118]
push esi
push 0x490cb9
push str.chatsndfn
call fcn.00403900
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40fff5
push 1
push esi
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
pop esi
pop ebp
ret
Function at 0x410e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044c
call fcn.00465040
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x4c3118]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x1044c], eax
mov eax, dword [ebp + 0x18]
push str.chatlog
mov dword [ebp - 0x10448], eax
call fcn.004038d0
test dword [ebp + 8], eax
je 0x410ff7
mov ecx, dword [0x4c3118]
push esi
push 0x490cb9
push str.chatlogpath
call fcn.00403900
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410ff6
test al, 0x10
je 0x410ff6
push 0x400
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.00466b60
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.00466b60
push 0x40
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.00401ae0
lea eax, [ebp - 0x44]
push eax
call fcn.00410e10
push 0x400
lea eax, [ebp - 0x444]
push esi
push eax
call fcn.00401ae0
lea ecx, [ebp - 0x444]
add esp, 0x34
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f20
sub ecx, edx
lea esi, [ebp - 0x444]
add esi, ecx
push 9
push str.Chatlog_
mov byte [esi], 0x5c
inc esi
push esi
mov byte [esi], al
call fcn.00401ae0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f50
sub ecx, edx
lea eax, [ebp - 0x44]
push 0x40
add esi, ecx
push eax
push esi
call fcn.00401ae0
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410f70
sub ecx, edx
push 0x491890
push 5
lea eax, [ecx + esi]
push eax
call fcn.0046b5c5
lea eax, [ebp - 0x444]
push 0x491898
push eax
call fcn.0046ca05
mov esi, eax
add esp, 0x14
test esi, esi
je 0x410ff6
push 0xffff
lea eax, [ebp - 0x10444]
push 0
push eax
call fcn.00466b60
push 2
push 0
push esi
call fcn.004704a2
push 1
push dword [ebp - 0x10448]
lea eax, [ebp - 0x10444]
push dword [ebp - 0x1044c]
push ebx
push eax
call fcn.00410640
lea eax, [ebp - 0x10444]
push eax
push 0x49189c
push esi
call fcn.00403a60
push esi
call fcn.0046c560
add esp, 0x3c
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
Function at 0x414850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [ebp - 0x15c]
call fcn.00415870
lea ecx, [ebp - 0x560]
call fcn.004158c0
push 0x4921b4
push esi
call fcn.0046ca05
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x414a5d
push ebx
push 4
lea eax, [ebp - 0x564]
mov dword [ebp - 0x564], 0xdbdbf11b
push 1
push eax
call fcn.00471297
imul eax, dword [edi + 0x14], 0x158
lea esi, [edi + 0xc]
imul ecx, dword [esi], 0x404
push ebx
push 4
push 1
add eax, 0x18
add eax, ecx
mov dword [ebp - 0x564], eax
lea eax, [ebp - 0x564]
push eax
call fcn.00471297
push ebx
push 4
lea eax, [edi + 0x1c]
push 1
push eax
call fcn.00471297
push ebx
push 4
lea eax, [edi + 0x20]
push 1
push eax
call fcn.00471297
add esp, 0x40
lea eax, [edi + 0x24]
push ebx
push 4
push 1
push eax
call fcn.00471297
push ebx
push 4
push 1
push esi
call fcn.00471297
push ebx
push 4
lea eax, [edi + 0x34]
push 1
push eax
call fcn.00471297
add esp, 0x30
cmp dword [edi + 4], 0
je 0x414981
mov eax, dword [esi]
test eax, eax
je 0x414981
xor esi, esi
test eax, eax
jle 0x414981
nop dword [eax + eax]
mov eax, dword [edi + 4]
push 0x400
push dword [eax + esi*8]
lea eax, [ebp - 0x560]
push eax
call fcn.00401ae0
mov eax, dword [edi + 4]
push ebx
push 1
push 0x404
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x560]
push eax
call fcn.00471297
inc esi
add esp, 0x1c
cmp esi, dword [edi + 0xc]
jl 0x414940
push ebx
push 4
push 1
lea esi, [edi + 0x14]
push esi
call fcn.00471297
add esp, 0x10
cmp dword [edi + 0x10], 0
je 0x414a54
mov eax, dword [esi]
test eax, eax
je 0x414a54
mov dword [ebp - 0x568], 0
jle 0x414a54
xor esi, esi
nop dword [eax + eax]
mov eax, dword [edi + 0x10]
push 0x104
push dword [eax + esi]
lea eax, [ebp - 0x15c]
push eax
call fcn.00401ae0
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00466b60
mov eax, dword [edi + 0x10]
add esp, 0x18
mov eax, dword [eax + esi + 4]
test eax, eax
je 0x414a01
push 0x40
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00401ae0
add esp, 0xc
mov ecx, dword [edi + 0x10]
add ecx, esi
push ebx
push 1
push 0x158
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00471297
mov eax, dword [ebp - 0x568]
add esp, 0x10
inc eax
add esi, 0x1c
mov dword [ebp - 0x568], eax
cmp eax, dword [edi + 0x14]
jl 0x4149c0
push ebx
call fcn.0046c560
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 4
Function at 0x4156b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8008
call fcn.00465040
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x8004]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push 0
push eax
call fcn.00466b60
add esp, 0xc
mov dword [ebp - 0x8008], 0
lea eax, [ebp - 0x8008]
push 0
push eax
push 0x8000
lea eax, [ebp - 0x8004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x8008]
cmp esi, 0xa
jl 0x4157fb
mov eax, dword [ebp - 0x8004]
cmp al, 0xff
jne 0x4157fb
cmp ah, 0xd8
jne 0x4157fb
sub esi, 2
lea eax, [ebp - 0x8002]
mov dword [ebp - 0x8008], esi
cmp esi, 8
jle 0x4157fb
nop dword [eax]
cmp byte [eax], 0xff
je 0x415764
dec esi
inc eax
mov dword [ebp - 0x8008], esi
cmp esi, 8
jg 0x415750
jmp 0x415782
cmp esi, 8
jle 0x415785
nop dword [eax]
cmp byte [eax], 0xff
jne 0x415782
dec esi
inc eax
mov dword [ebp - 0x8008], esi
cmp esi, 8
jg 0x415770
cmp esi, 8
jl 0x4157b1
mov cl, byte [eax]
cmp cl, 0xc0
jb 0x415793
cmp cl, 0xc3
jbe 0x4157c8
inc eax
dec esi
mov dword [ebp - 0x8008], esi
movzx edx, byte [eax]
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
add eax, edx
sub esi, edx
mov dword [ebp - 0x8008], esi
cmp esi, 8
jg 0x415750
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 0xc
movzx edx, byte [eax + 6]
movzx ecx, byte [eax + 7]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 4]
movzx eax, byte [eax + 5]
shl ecx, 8
or ecx, eax
test edx, edx
je 0x4157fb
test ecx, ecx
je 0x4157fb
push ecx
push edx
push str.JPEG__dx_d
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416a30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push 1
push 2
mov word [esi + 4], bx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
test eax, eax
jns 0x416a72
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.C_Listen:_call_to_socket___failed:__d.
jmp 0x416b22
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
test edi, edi
je 0x416ac4
call fcn.0044d940
test al, al
jne 0x416abd
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
jmp 0x416ac0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x416acb
mov dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x416af9
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.C_Listen:_call_to_bind___failed:__d.
jmp 0x416b22
push 8
push dword [esi]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x416b35
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.C_Listen:_call_to_listen___failed:__d.
push 3
lea ecx, [ebp - 0x15]
call fcn.00407110
push eax
call fcn.0044f120
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 8
Function at 0x4182f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [0x4c2380]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x418330
push 0x103
push str.dwExitCode:__X_n
call fcn.0041e0d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [0x4c5118]
push 0x443da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c2380], eax
mov esp, ebp
pop ebp
ret

Function at 0x418360
Capabilities:
Terminate thread

Disassembly:
push 0
push dword [0x4c2380]
mov byte [0x4c025c], 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x41a180
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x800
mov dword [ebp - 0xb48], eax
lea eax, [ebp - 0xa04]
push 0
push eax
mov dword [ebp - 0xb50], esi
call fcn.00466b60
push edi
lea eax, [ebp - 0xa04]
push 0x4963e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0xb44]
push eax
lea eax, [ebp - 0xa04]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0xb4c], eax
call fcn.00458ed0
call fcn.00418940
cmp dword [ebp - 0xb4c], 0xffffffff
je 0x41a38e
nop dword [eax + eax]
push 0x800
lea eax, [ebp - 0xa04]
push 0
push eax
call fcn.00466b60
add esp, 0xc
test byte [ebp - 0xb44], 0x10
je 0x41a329
lea ecx, [ebp - 0xb18]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a240
mov al, byte [ebp - 0xb18]
sub ecx, edx
cmp ecx, 1
jne 0x41a258
cmp al, 0x2e
je 0x41a271
cmp ecx, 2
jne 0x41a2ef
cmp al, 0x2e
jne 0x41a2ef
cmp byte [ebp - 0xb17], al
jne 0x41a2ef
cmp ecx, 1
jne 0x41a367
cmp al, 0x2e
jne 0x41a367
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a287
sub ecx, edx
cmp byte [ecx + edi], 0x5c
lea esi, [ecx + edi]
je 0x41a2a6
nop dword [eax]
dec esi
cmp byte [esi], 0x5c
jne 0x41a2a0
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00466b60
inc esi
lea eax, [ebp - 0x204]
push esi
push 0x4963f0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0xb48]
mov esi, dword [ebp - 0xb50]
add eax, edi
push eax
push esi
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.004592b0
add esp, 0x28
jmp 0x41a367
lea eax, [ebp - 0xb18]
push eax
push edi
lea eax, [ebp - 0xa04]
push 0x4920ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
call fcn.00458ed0
call fcn.00418940
push dword [ebp - 0xb48]
lea eax, [ebp - 0xa04]
push esi
push ebx
push eax
call fcn.0041a180
jmp 0x41a364
lea eax, [ebp - 0xb18]
push eax
push edi
lea eax, [ebp - 0xa04]
push 0x4920ac
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
call fcn.00458ed0
call fcn.00418940
mov eax, dword [ebp - 0xb48]
add eax, edi
push eax
push esi
lea eax, [ebp - 0xa04]
push ebx
push eax
call fcn.00458f70
add esp, 0x20
lea eax, [ebp - 0xb44]
push eax
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41a210
push dword [ebp - 0xb4c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
Function at 0x41a4a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [0x4c2384]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 4], 0x103
jne 0x41a4e0
push 0x103
push str.dwExitCode:__X_n
call fcn.0041e0d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
push 0
push 0
push dword [0x4c5118]
push 0x443ea0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c2384], eax
mov esp, ebp
pop ebp
ret

Function at 0x41a510
Capabilities:
Terminate thread

Disassembly:
push 0
push dword [0x4c2384]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret

Function at 0x41d250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x4c3e68
call fcn.0047cb67
mov edi, eax
push 0x4915f4
push edi
call fcn.00470110
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41d35f
nop dword [eax]
push 5
push str._load
push esi
call fcn.0046b620
add esp, 0xc
test eax, eax
jne 0x41d346
push str._load
push esi
call fcn.004712f0
inc eax
push 0x80
add esi, eax
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00466b60
push esi
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.0046b5c5
lea eax, [ebp - 0x84]
add esp, 0x20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d2e7
sub eax, edx
je 0x41d346
lea eax, [ebp - 0x84]
push eax
push str._profile
lea eax, [ebp - 0x2d4]
push 0x491630
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x18c]
push 0x105
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
push 0x4c3120
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x18c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x4915f4
push 0
call fcn.00470110
mov esi, eax
add esp, 8
test esi, esi
jne 0x41d290
push edi
call fcn.0046b4f4
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
Function at 0x41e110
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov byte [ebp - 0xc], 0
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0xb], eax
movups xmmword [ebp - 0x30], xmm0
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x2c], eax
movzx eax, word [ebp + 0xc]
push eax
push 0x496b20
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], 8
push 8
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x28], 1
call fcn.0041ee00
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0041e310
mov ebx, eax
test ebx, ebx
je 0x41e1ad
push ebx
push str.getaddrinfo___error_:__d_n
push 2
call fcn.00471428
add esp, 4
push eax
call fcn.00403a60
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push edi
or edi, 0xffffffff
test esi, esi
je 0x41e1f9
nop dword [eax + eax]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x41e1ef
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test ebx, ebx
jns 0x41e1f6
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41e1c0
mov esi, dword [ebp - 0x10]
push esi
call fcn.0041e2c0
test edi, edi
jns 0x41e211
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket
jmp 0x41e221
test ebx, ebx
jns 0x41e242
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x496b60
push str.Socket_error:__s___d_n
call fcn.0041e0d0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464e2f
mov esp, ebp
pop ebp
ret
Function at 0x41e8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4c07e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4c23dc], 0
mov dword [ebp - 0x230], str.getaddrinfo
mov dword [ebp - 0x22c], 0x41e3c0
mov dword [ebp - 0x228], str.getnameinfo
mov dword [ebp - 0x224], 0x41e660
mov dword [ebp - 0x220], str.freeaddrinfo
mov dword [ebp - 0x21c], fcn.0041e370
jne 0x41ea37
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41ea2d
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0046b5c5
push str.ws2_32
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0047154b
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e982
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41e9df
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0046b5c5
push str.wship6
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.0047154b
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ea2c
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41e9df
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41ea2c
push esi
xor esi, esi
push dword [ebp + esi*8 - 0x230]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x41ea24
inc esi
cmp esi, 3
jl 0x41e9e2
mov eax, dword [ebp - 0x22c]
mov dword [0x4c0180], eax
mov eax, dword [ebp - 0x224]
mov dword [0x4c0188], eax
mov eax, dword [ebp - 0x21c]
mov dword [fcn.0041e370], eax
jmp 0x41ea2b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov dword [0x4c23dc], 1
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, dword [eax*8 + 0x4c0180]
call fcn.00464e2f
mov esp, ebp
pop ebp
ret 4
Function at 0x41ecc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push edi
mov edi, dword [ebp + 0x1c]
push dword [ebp + 8]
mov dword [edi], 0
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x41ed4e
cmp word [ebx + 8], 2
push esi
jne 0x41ed22
cmp word [ebx + 0xa], 4
jne 0x41ed22
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x41ed22
nop dword [eax + eax]
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041ebf0
mov dword [edi], eax
test eax, eax
je 0x41ed42
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x41ed00
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.00471665
add esp, 0x10
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
pop esi
pop edi
mov eax, 8
pop ebx
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x41ed5e.11001
jmp dword [eax*4 + 0x41ed88]
pop edi
mov eax, 0x2af9
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afa
pop ebx
pop ebp
ret 0x18
pop edi
mov eax, 0x2afb
pop ebx
pop ebp
ret 0x18

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebx + edi]
push eax
call fcn.0046b4f9
mov esi, eax
add esp, 4
test esi, esi
jne 0x41f3c3
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
push dword [ebp + 0x14]
push esi
call fcn.00466cc0
push ebx
push dword [ebp + 0xc]
lea eax, [esi + edi]
push eax
call fcn.00466cc0
add esp, 0x18
lea eax, [ebx + edi]
push 0
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jns 0x41f40c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send
push str.Socket_error:__s___d_n
call fcn.0041e0d0
add esp, 0xc
push esi
call fcn.0046b4f4
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret