joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021d30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10021efd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
or ebp, 0xffffffff
jmp 0x10021d5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10021d61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10021d50
mov eax, 1
add ebx, ebx
jne 0x10021d73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10021d68
jne 0x10021d84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10021d68
xor ecx, ecx
sub eax, 3
jb 0x10021d98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10021e0a
mov ebp, eax
add ebx, ebx
jne 0x10021da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10021db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10021dd4
inc ecx
add ebx, ebx
jne 0x10021dc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10021db5
jne 0x10021dd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10021db5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10021df4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10021de5
jmp 0x10021d56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10021df4
add edi, ecx
jmp 0x10021d56
pop esi
mov edi, esi
mov ecx, 0x50
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10021e12
cmp byte [edi], 1
jne 0x10021e12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10021e17
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x10021e8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10021e44
mov ecx, edi
jns 0x10021e73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2107c]
or eax, eax
je 0x10021e89
mov dword [ebx], eax
add ebx, 4
jmp 0x10021e61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10021ec0
cmp al, 0xef
ja 0x10021eb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10021e95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10021ea2
mov ebp, dword [esi + 0x21080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10021ef4
sub esp, 0xffffff80
jmp 0x10001b95
Function at 0x401c40
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, eax
shr edi, 2
xor edx, edx
test edi, edi
jle 0x401c7d
push ebx
lea ecx, [ecx]
mov ecx, dword [esi + edx*4]
mov eax, ecx
shl ecx, 0x10
shr eax, 0x10
or eax, ecx
mov ecx, eax
shr ecx, 8
mov ebx, eax
shl ebx, 8
xor ecx, ebx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov dword [esi + edx*4], ecx
inc edx
cmp edx, edi
jl 0x401c50
pop ebx
pop edi
ret
Function at 0x404400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
xor edx, edx
push edi
xor eax, eax
nop
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x404410
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], dl
mov byte [esp + 0x24], dl
xor bl, bl
lea ecx, [esi + 1]
mov dword [esp + 0x14], 0x40
mov al, byte [ecx - 1]
movzx edx, dl
mov dl, byte [edx + ebp]
add dl, al
add bl, dl
movzx edx, bl
add edx, esi
mov dword [esp + 0x10], edx
mov dl, byte [edx]
mov byte [ecx - 1], dl
mov edx, dword [esp + 0x10]
mov byte [edx], al
mov al, byte [esp + 0x24]
inc al
movzx eax, al
cdq
idiv edi
mov al, byte [ecx]
add ecx, 4
mov byte [esp + 0x24], dl
movzx edx, dl
mov dl, byte [edx + ebp]
add dl, al
add bl, dl
movzx edx, bl
add edx, esi
mov dword [esp + 0x10], edx
mov dl, byte [edx]
mov byte [ecx - 4], dl
mov edx, dword [esp + 0x10]
mov byte [edx], al
mov al, byte [esp + 0x24]
inc al
movzx eax, al
cdq
idiv edi
mov al, byte [ecx - 3]
mov byte [esp + 0x24], dl
movzx edx, dl
mov dl, byte [edx + ebp]
add dl, al
add bl, dl
movzx edx, bl
add edx, esi
mov dword [esp + 0x10], edx
mov dl, byte [edx]
mov byte [ecx - 3], dl
mov edx, dword [esp + 0x10]
mov byte [edx], al
mov al, byte [esp + 0x24]
inc al
movzx eax, al
cdq
idiv edi
mov al, byte [ecx - 2]
mov byte [esp + 0x24], dl
movzx edx, dl
mov dl, byte [edx + ebp]
add dl, al
add bl, dl
movzx edx, bl
add edx, esi
mov dword [esp + 0x10], edx
mov dl, byte [edx]
mov byte [ecx - 2], dl
mov edx, dword [esp + 0x10]
mov byte [edx], al
mov al, byte [esp + 0x24]
inc al
movzx eax, al
cdq
idiv edi
dec dword [esp + 0x14]
mov byte [esp + 0x24], dl
jne 0x404440
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x404520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
mov dl, byte [esi + 0x100]
mov bl, byte [esi + 0x101]
xor eax, eax
test ecx, ecx
jle 0x40459b
push ebp
push edi
jmp 0x404544
mov bl, byte [esp + 0x1c]
inc dl
movzx ecx, dl
lea edi, [ecx + esi]
mov cl, byte [edi]
add bl, cl
mov byte [esp + 0x1c], bl
movzx ebx, bl
lea ebp, [ebx + esi]
mov bl, byte [ebp]
mov byte [edi], bl
xor ebx, ebx
mov byte [ebp], cl
mov bl, byte [edi]
mov edi, dword [esp + 0x14]
add ebx, ecx
and ebx, 0xff
mov cl, byte [ebx + esi]
mov bl, byte [eax + edi]
xor bl, cl
mov ecx, dword [esp + 0x18]
mov byte [eax + edi], bl
inc eax
cmp eax, ecx
jl 0x404540
pop edi
mov byte [esi + 0x100], dl
mov dl, byte [esp + 0x18]
pop ebp
mov byte [esi + 0x101], dl
pop esi
pop ebx
ret
mov byte [esi + 0x101], bl
mov byte [esi + 0x100], dl
pop esi
pop ebx
ret
Function at 0x4047e0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x1a0
push esi
mov esi, dword [esp + 0x1b8]
lea eax, [esp + 0x14]
push eax
push 0x202
mov dword [esi], 0xffffffff
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x404812
or eax, 0xffffffff
pop esi
add esp, 0x1a0
ret
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x404836
call fcn.00410b82
mov eax, 0xfffffffe
pop esi
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1ac]
test ecx, ecx
je 0x404878
lea ecx, [esp + 0x1ac]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x404878
mov edx, dword [esi]
push edx
call sub.WSOCK32.dll_closesocket
call fcn.00410b82
mov dword [esi], 0xffffffff
mov eax, 0xfffffffe
pop esi
add esp, 0x1a0
ret
cmp dword [esp + 0x1a8], 1
jne 0x404913
mov eax, dword [esp + 0x1b4]
push eax
mov word [esp + 8], 2
call sub.WSOCK32.dll_htons
push 0
mov word [esp + 0xa], ax
call sub.WSOCK32.dll_htonl
mov edx, dword [esi]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4048de
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
call fcn.00410b82
mov dword [esi], 0xffffffff
mov eax, 0xfffffff9
pop esi
add esp, 0x1a0
ret
mov ecx, dword [esp + 0x1b0]
mov edx, dword [esi]
push ecx
push edx
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
jne 0x404913
mov eax, dword [esi]
push eax
call sub.WSOCK32.dll_closesocket
call fcn.00410b82
mov dword [esi], 0xffffffff
mov eax, 0xfffffff8
pop esi
add esp, 0x1a0
ret
xor eax, eax
pop esi
add esp, 0x1a0
ret
Function at 0x404920
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x120
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x124], 1
push esi
push edi
mov dword [esp + 0x10], 0x10
jne 0x404a1f
mov edi, dword [esp + 0x144]
test edi, edi
je 0x404b6d
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x404b62
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x404a11
mov eax, dword [esp + 0x134]
test eax, eax
jle 0x404b54
lea edx, [esp + 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 1
call sub.WSOCK32.dll___WSAFDIsSet
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
call sub.WSOCK32.dll_select
cmp eax, 1
jne 0x404b46
lea edx, [esp + 0x24]
push edx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x404b46
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x404b62
pop edi
mov eax, 0xfffffff6
pop esi
add esp, 0x120
ret
mov eax, dword [esp + 0x138]
test eax, eax
mov word [esp + 0x14], 2
je 0x404a50
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x404a4a
pop edi
mov eax, 0xfffffffc
pop esi
add esp, 0x120
ret
mov dword [esp + 0x18], eax
jmp 0x404a92
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x404b6d
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x404a77
pop edi
mov eax, 0xfffffffb
pop esi
add esp, 0x120
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x140]
push ecx
call sub.WSOCK32.dll_htons
mov esi, dword [esp + 0x130]
push 0x10
lea edx, [esp + 0x18]
push edx
push esi
mov word [esp + 0x22], ax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x404b62
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x404aed
cmp eax, 0x2735
je 0x404aed
cmp eax, 0x2748
je 0x404b62
pop edi
mov eax, 0xfffffffa
pop esi
add esp, 0x120
ret
mov eax, dword [esp + 0x134]
test eax, eax
jle 0x404b54
lea edx, [esp + 0x24]
xor ecx, ecx
mov dword [esp + 8], ecx
push edx
push esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], 1
call sub.WSOCK32.dll___WSAFDIsSet
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
call sub.WSOCK32.dll_select
cmp eax, 1
jne 0x404b46
lea edx, [esp + 0x24]
push edx
push esi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x404b62
pop edi
mov eax, 0xfffffff1
pop esi
add esp, 0x120
ret
pop edi
mov eax, 0xfffffff7
pop esi
add esp, 0x120
ret
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret
pop edi
mov eax, 0xfffffffd
pop esi
add esp, 0x120
ret
Function at 0x404b80
Capabilities:
Check mutex on windows
Send data
Send data on socket

Disassembly:
sub esp, 0x424
push ebx
mov ebx, dword [esp + 0x434]
push ebp
push esi
xor esi, esi
cmp ebx, 0x400
lea eax, [ebx + 8]
lea ebp, [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
jle 0x404bcb
push eax
call fcn.00411be5
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x404bcb
pop esi
pop ebp
mov eax, 0xfffffff5
pop ebx
add esp, 0x424
ret
mov esi, dword [esp + 0x438]
mov ecx, ebx
shr ecx, 0x10
mov byte [ebp + 5], cl
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 4], al
mov ecx, ebx
mov eax, ecx
push edi
mov edx, ebx
shr ecx, 2
shr edx, 8
mov byte [ebp + 7], bl
mov ebx, dword [esp + 0x1c]
mov byte [ebp], 0x4a
mov byte [ebp + 1], 0x5e
mov byte [ebp + 2], 0x7a
mov byte [ebp + 3], 4
mov byte [ebp + 6], dl
lea edi, [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x10], edi
mov esi, 0x40000000
jle 0x404ce9
mov eax, ebx
sub eax, edi
cmp eax, esi
jle 0x404c32
mov eax, esi
mov edx, dword [esp + 0x438]
push 0
push eax
lea ecx, [edi + ebp]
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x404cab
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2747
jne 0x404c82
sar esi, 1
cmp esi, 0x400000
jle 0x404c70
mov esi, 0x400000
mov dword [esp + 0x14], 0
jmp 0x404cd7
cmp esi, 0x100
jl 0x404ca1
mov dword [esp + 0x14], 0
jmp 0x404cd7
cmp eax, 0x2733
jne 0x404ca1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x14], eax
jle 0x404cd7
mov dword [esp + 0x10], 0xfffffff4
jmp 0x404ce9
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x14], ecx
jne 0x404ccf
push 0x1e
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x18], eax
jg 0x404ca1
jmp 0x404cd7
jle 0x404ce1
add edi, eax
mov dword [esp + 0x18], ecx
cmp edi, ebx
jl 0x404c28
jmp 0x404ce9
mov dword [esp + 0x10], 0xffffff9d
lea eax, [esp + 0x2c]
cmp ebp, eax
je 0x404cfa
push ebp
call fcn.00411acd
add esp, 4
test edi, edi
jle 0x404d82
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
push str.KASC_STAT_MUTEX
push ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x404d4b
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
jmp 0x404d4f
mov ebp, dword [esp + 0x1c]
mov ebx, 0x4266cc
mov eax, 0x42669c
call fcn.00404750
mov ecx, dword [0x42669c]
add ecx, edi
test esi, esi
mov dword [0x42669c], ecx
je 0x404d82
test ebp, ebp
jne 0x404d7b
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x406680
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
push esi
push edi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push 0x406640
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x4066d3
xor esi, esi
test eax, eax
jne 0x4066d3
cmp esi, 0x19
jge 0x4066d3
push 0xa
call edi
mov eax, dword [esp + 0x10]
inc esi
test eax, eax
je 0x4066c1
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jne 0x4066f3
push 0x1f4
mov dword [esp + 0xc], eax
call edi
pop edi
mov eax, 2
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x406c60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push esi
push edi
xor eax, eax
mov dword [esp + 0x10], 0x94
mov dword [esp + 0x14], 0
mov ecx, 0x23
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x406ce7
mov edi, dword [ebp + 8]
push edi
call fcn.00406840
mov esi, eax
add esp, 4
test esi, esi
je 0x406cb9
cmp esi, 0xfffffff2
je 0x406cb9
cmp esi, 0xfffffff1
jne 0x406cdf
cmp dword [esp + 0x14], 5
jb 0x406cdf
lea ecx, [esp + 0xc]
push ecx
push edi
mov dword [esp + 0x14], 0
call fcn.004109b0
add esp, 8
cmp eax, 1
jne 0x406cdf
mov esi, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
call fcn.00406190
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406f20
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call fcn.00406c60
add esp, 4
cmp eax, 0xffffffec
mov dword [esp + 4], eax
jl 0x406f5e
test eax, eax
jg 0x406f5e
mov eax, 1
add esp, 0xc
ret
push esi
push edi
lea edx, [esp + 8]
push edx
push 0x406640
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x406f96
xor esi, esi
test eax, eax
jne 0x406f96
cmp esi, 0x19
jge 0x406f96
push 0xa
call edi
mov eax, dword [esp + 0x10]
inc esi
test eax, eax
je 0x406f84
test eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jne 0x406fb6
push 0x1f4
mov dword [esp + 0xc], eax
call edi
pop edi
mov eax, 2
pop esi
add esp, 0xc
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x406fc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
push ebx
push esi
xor ebx, ebx
push edi
xor eax, eax
mov ecx, 0x42
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x407124
cmp byte [eax], 0
je 0x407124
push 0x104
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00410bf0
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407014
sub eax, edx
mov cl, byte [esp + eax + 0x14]
cmp cl, 0x2e
lea eax, [esp + eax + 0x18]
jne 0x407049
mov cl, byte [eax - 3]
or cl, 0x20
cmp cl, 0x65
jne 0x407049
mov dl, byte [eax - 2]
or dl, 0x20
cmp dl, 0x78
jne 0x407049
mov al, byte [eax - 1]
or al, 0x20
cmp al, cl
je 0x407069
lea edi, [esp + 0x18]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407050
mov ecx, dword [str..exe]
mov dl, byte [0x41e88c]
mov dword [edi], ecx
mov byte [edi + 4], dl
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00406f20
add esp, 8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x4070e0
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
push ebx
push 0xf060
push 0x112
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4070bd
push 0
push 0
push 0x10
push esi
call edi
push 0x32
call ebx
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407119
push 0
push 0
push 2
push esi
call edi
push 0x32
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407119
lea edx, [esp + 0x18]
push edx
call fcn.00406c60
add esp, 4
cmp eax, ebx
jbe 0x407119
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x407119
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4071f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x1000
call fcn.004116a0
push esi
mov esi, dword [esp + 0x100c]
cmp esi, 0xffffffff
jne 0x407211
or eax, esi
pop esi
add esp, 0x1000
ret
push ebx
mov ebx, dword [esp + 0x100c]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
push ebp
push edi
mov edi, dword [ebx + 4]
add eax, edi
cmp eax, ecx
jle 0x40728b
cmp edi, 0x1000
jbe 0x4072a1
push edi
call fcn.00411be5
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x407284
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
mov esi, dword [ebx + 0xc]
sub ecx, eax
mov edx, ecx
shr ecx, 2
add esi, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0xc]
sub ecx, edi
add ecx, eax
sub edi, eax
mov eax, ecx
shr ecx, 2
add edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1018]
test ebp, ebp
mov edi, dword [ebx + 4]
jne 0x4072a7
mov ecx, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
push 0
push edi
add ecx, ebp
push ecx
push esi
call sub.WSOCK32.dll_send
mov esi, eax
jmp 0x4072c4
lea ebp, [esp + 0x10]
jmp 0x407240
push 0
push edi
push ebp
push esi
call sub.WSOCK32.dll_send
lea edx, [esp + 0x10]
cmp ebp, edx
mov esi, eax
je 0x4072c4
push ebp
call fcn.00411acd
add esp, 4
cmp esi, 0xffffffff
je 0x4072f0
mov eax, dword [ebx + 8]
add eax, esi
cdq
idiv dword [ebx]
mov ebp, dword [ebx + 4]
mov ecx, dword [ebx + 0x10]
sub ebp, esi
add ecx, esi
cmp esi, edi
mov dword [ebx + 4], ebp
mov dword [ebx + 0x10], ecx
mov dword [ebx + 8], edx
jge 0x4072f0
sub edi, esi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edx
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
add esp, 0x1000
ret

Function at 0x4079d0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x1a4
push esi
mov esi, dword [esp + 0x1ac]
xor eax, eax
test esi, esi
je 0x407a93
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0xb]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x11]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1a]
push edx
lea eax, [esp + 0x28]
push eax
push str._d_c_d_c_d_c_d
push esi
call fcn.00412065
add esp, 0x24
cmp eax, 7
jl 0x407a45
mov cl, byte [esp + 6]
mov al, 0x2e
cmp cl, al
jne 0x407a45
cmp byte [esp + 5], al
jne 0x407a45
cmp byte [esp + 7], al
jne 0x407a45
push esi
call fcn.00412a77
add esp, 4
pop esi
add esp, 0x1a4
ret
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x407a89
push esi
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
call fcn.00410b82
test edi, edi
je 0x407a89
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WSOCK32.dll_inet_ntoa
push eax
call fcn.00412a77
add esp, 4
pop edi
pop esi
add esp, 0x1a4
ret
push esi
call fcn.00412a77
add esp, 4
pop edi
pop esi
add esp, 0x1a4
ret
Function at 0x407c10
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x124
xor eax, eax
mov dword [esp + 5], eax
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
push ecx
push 0x4d000001
xor esi, esi
mov byte [esp + 0x10], 0
mov dword [esp + 0x1d], eax
mov dword [esp + 0xc], eax
call fcn.00405230
lea edx, [esp + 0x18]
push edx
push 1
call fcn.00405230
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.00405230
add esp, 0x18
push 0xff
lea edx, [esp + 0x2c]
push edx
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x407dbe
lea eax, [esp + 0x28]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x407c90
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov esi, dword [edx]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00405230
mov edx, dword [esp + 0x134]
push 0x11
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x2c], 2
call fcn.00404b80
add esp, 0x14
test eax, eax
je 0x407cc8
mov eax, 0xe40001
pop esi
add esp, 0x124
ret
push ebx
push ebp
lea eax, [esp + 0x24]
push edi
push eax
or ebx, 0xffffffff
call fcn.0041141f
add esp, 4
xor ebp, ebp
lea ecx, [ecx]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x138]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14]
push edx
push esi
push eax
call fcn.00404da0
add esp, 0x10
test eax, eax
jne 0x407d85
mov esi, dword [esp + 0x10]
push esi
call fcn.00405200
add esp, 4
cmp eax, 0x4d000003
jne 0x407d63
lea ecx, [esi + 4]
push ecx
call fcn.00405200
add esi, 8
push esi
mov edi, eax
call fcn.00405200
mov ecx, dword [esp + 0x144]
add esp, 8
cmp edi, ecx
jne 0x407d63
cmp eax, 0x1000f
jne 0x407d4a
mov ebx, 1
jmp 0x407d5e
cmp eax, 0x10001
jne 0x407d55
xor ebx, ebx
jmp 0x407d5e
cmp eax, 0x2bad2bad
jne 0x407d63
mov ebx, eax
mov ebp, 1
mov edx, dword [esp + 0x10]
push edx
call fcn.004051c0
add esp, 4
test ebp, ebp
je 0x407ce0
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
cmp eax, 0xfffffff4
je 0x407d78
cmp eax, 0xfffffff5
je 0x407d78
cmp eax, 0xffffff9d
je 0x407d78
lea eax, [esp + 0x2c]
push eax
call fcn.0041141f
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, esi
jle 0x407ce0
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x124
ret
or eax, 0xffffffff
pop esi
add esp, 0x124
ret