joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413b94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov eax, 0x4f0298
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x44], 0x19
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
xor eax, eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x2f], eax
call fcn.004120fc
test al, al
jne 0x413bfb
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x413caf
cmp ebx, 4
jne 0x413c15
lea ecx, [ebp - 0x44]
push ecx
push 0x413554
call fcn.00401be4
add esp, 8
mov ebx, eax
jmp 0x413c4f
lea eax, [ebp - 0x44]
push eax
push 0x4137f8
call fcn.00401be4
add esp, 8
mov ebx, eax
jmp 0x413c4f
push ebx
call fcn.00401c6c
pop ecx
test al, al
je 0x413c56
call sub.KERNEL32.dll_GetTickCount
sub eax, esi
cmp eax, 0x2ee0
ja 0x413c56
push 0
push 0
call fcn.00401400
add esp, 8
mov al, byte [ebp - 0x30]
test al, al
je 0x413c2a
mov edx, dword [ebp - 0x2f]
test edx, edx
jne 0x413c64
mov cl, byte [ebp - 0x30]
test cl, cl
jne 0x413c72
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x413caf
mov al, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x413caf
mov esp, ebp
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x48]
pop ebp
ret
Function at 0x415014
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
push ebx
call sub.KERNEL32.dll_GetComputerNameA
test eax, eax
je 0x415035
mov al, 1
jmp 0x415071
call fcn.004120fc
test al, al
je 0x415050
push pe_nt_image_headers32
push ebx
call sub.WSOCK32.dll_gethostname
inc eax
je 0x415050
mov al, 1
jmp 0x415071
push 1
push pe_nt_image_headers32
push ebx
push 0x5e5f91
push 0x5e5f56
push 0x80000002
call fcn.00406a10
add esp, 0x18
mov al, 1
pop ebx
pop ecx
pop ebp
ret

Function at 0x4150c4
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
mov eax, 0x4f02de
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.004120fc
push 0x11
push 2
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x415110
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415256
test esi, esi
je 0x41511e
mov cl, byte [esi]
test cl, cl
je 0x41511e
xor edi, edi
jmp 0x415123
mov edi, 1
push 0x10
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.004d2d9c
add esp, 0xc
mov word [ebp - 0x14c], 2
push 0
call sub.WSOCK32.dll_htons
mov word [ebp - 0x14a], ax
xor edx, edx
mov dword [ebp - 0x148], edx
lea ecx, [ebp - 0x14c]
push 0x10
push ecx
push ebx
call sub.WSOCK32.dll_bind
inc eax
push 0x10
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.004d2d9c
add esp, 0xc
mov word [ebp - 0x13c], 2
mov dx, word [ebp + 0xc]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x13a], ax
dec edi
jne 0x4151be
mov dword [ebp - 0x2c], 1
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 0x20
push 0xffff
push ebx
call sub.WSOCK32.dll_setsockopt
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
mov dword [ebp - 0x138], eax
jmp 0x4151e0
lea eax, [ebp - 0x12c]
push eax
push esi
call fcn.00414c30
add esp, 8
lea edx, [ebp - 0x12c]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x138], eax
push 0x10
lea ecx, [ebp - 0x13c]
push ecx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp + 0x10]
push edx
push ebx
call sub.WSOCK32.dll_sendto
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
inc ecx
jne 0x415216
push ebx
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415256
push ebx
call sub.WSOCK32.dll_closesocket
mov word [ebp - 0x14], 0
jmp 0x415247
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x158]
mov esi, dword [ebp - 0x154]
mov ebx, dword [ebp - 0x150]
pop ebp
ret
Function at 0x41526c
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov eax, 0x4f02f2
push ebx
push esi
push edi
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.004120fc
test al, al
jne 0x4152a7
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415354
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4152cd
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415354
push 0x10
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004d2d9c
add esp, 0xc
mov word [ebp - 0x38], 2
mov ax, word [ebp + 8]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x36], ax
lea edx, [ebp - 0x38]
push 0x10
push edx
push ebx
call sub.WSOCK32.dll_bind
inc eax
jne 0x415317
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415354
push ebx
call sub.WSOCK32.dll_closesocket
mov word [ebp - 0x14], 0
jmp 0x415348
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
mov esp, ebp
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
pop ebp
ret

Function at 0x415ae8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
mov ebx, 0xa
push eax
push 0x8004667e
push esi
call sub.WSOCK32.dll_ioctlsocket
lea edx, [ebp - 4]
push edx
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
inc eax
jne 0x415b35
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x415b35
xor eax, eax
jmp 0x415b66
mov edx, dword [ebp - 4]
test edx, edx
jne 0x415b63
dec ebx
test ebx, ebx
je 0x415b63
push 0
push 0
call fcn.00401400
add esp, 8
push 1
call fcn.004dee84
pop ecx
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x415b13
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x415d60
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x4f0457
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
mov esi, 0x7918
call fcn.00401298
mov dword [ebp - 0x34], eax
call fcn.00401298
mov edx, dword [ebp - 0x34]
sub eax, edx
cmp esi, eax
jae 0x415db6
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x415eea
xor eax, eax
mov dword [ebp - 0x138], eax
xor eax, eax
lea edx, [ebp - 0x134]
jmp 0x415dd2
mov ecx, dword [edx]
cmp ebx, ecx
je 0x415ddc
inc eax
add edx, 4
mov ecx, dword [ebp - 0x138]
cmp eax, ecx
jb 0x415dc8
mov edx, dword [ebp - 0x138]
cmp eax, edx
jne 0x415df8
cmp edx, 0x40
jae 0x415df8
mov dword [ebp + eax*4 - 0x134], ebx
inc dword [ebp - 0x138]
xor eax, eax
lea edx, [ebp - 0x138]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 1
push eax
push 0
push edx
push 0
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x415e4f
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415e3c
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415eea
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x415d97
dec eax
je 0x415e65
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x415d97
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x415ea7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415e94
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x415eea
push 0
call sub.KERNEL32.dll_Sleep
push 0xa
call sub.KERNEL32.dll_Sleep
jmp 0x415d97
test eax, eax
je 0x415d97
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x415eea
mov esp, ebp
mov edi, dword [ebp - 0x144]
mov esi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x13c]
pop ebp
ret
Function at 0x415f00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x4f046b
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
mov esi, 0x3e80
call fcn.00401298
mov dword [ebp - 0x34], eax
call fcn.00401298
mov edx, dword [ebp - 0x34]
sub eax, edx
cmp esi, eax
jae 0x415f56
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x416084
xor eax, eax
mov dword [ebp - 0x138], eax
xor eax, eax
lea edx, [ebp - 0x134]
jmp 0x415f72
mov ecx, dword [edx]
cmp ebx, ecx
je 0x415f7c
inc eax
add edx, 4
mov ecx, dword [ebp - 0x138]
cmp eax, ecx
jb 0x415f68
mov edx, dword [ebp - 0x138]
cmp eax, edx
jne 0x415f98
cmp edx, 0x40
jae 0x415f98
mov dword [ebp + eax*4 - 0x134], ebx
inc dword [ebp - 0x138]
xor eax, eax
lea edx, [ebp - 0x138]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 1
push eax
push 0
push 0
push edx
push 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x415fed
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415fdc
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416084
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x415f37
dec eax
je 0x416001
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x415f37
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x416041
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x416030
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416084
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x415f37
test eax, eax
je 0x415f37
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x416084
mov esp, ebp
mov edi, dword [ebp - 0x144]
mov esi, dword [ebp - 0x140]
mov ebx, dword [ebp - 0x13c]
pop ebp
ret
Function at 0x416204
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, 0x4f04a7
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
call fcn.004120fc
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x416262
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x416256
mov eax, 0x1ce9
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416309
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
jmp 0x416265
mov dword [ebp - 0x34], eax
mov word [ebp - 0x38], 2
mov cx, word [ebp + 0x10]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x36], ax
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov dword [ebx], esi
cmp esi, 0xffffffff
jne 0x41629e
mov eax, 0x1cea
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416309
push 0x10
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [ebx]
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x4162c9
mov edx, dword [ebx]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, 0x1ceb
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416309
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416309
mov esp, ebp
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
pop ebp
ret
Function at 0x416338
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
mov eax, 0x4f04bb
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
xor ecx, ecx
mov dword [ebp - 0x134], ecx
xor eax, eax
lea edx, [ebp - 0x130]
jmp 0x41637e
mov ecx, dword [edx]
cmp ebx, ecx
je 0x416388
inc eax
add edx, 4
mov ecx, dword [ebp - 0x134]
cmp eax, ecx
jb 0x416374
mov edx, dword [ebp - 0x134]
cmp eax, edx
jne 0x4163a4
cmp edx, 0x40
jae 0x4163a4
mov dword [ebp + eax*4 - 0x130], ebx
inc dword [ebp - 0x134]
xor eax, eax
mov dword [ebp - 0x238], eax
xor eax, eax
lea edx, [ebp - 0x234]
jmp 0x4163c0
mov ecx, dword [edx]
cmp ebx, ecx
je 0x4163ca
inc eax
add edx, 4
mov ecx, dword [ebp - 0x238]
cmp eax, ecx
jb 0x4163b6
mov edx, dword [ebp - 0x238]
cmp eax, edx
jne 0x4163e6
cmp edx, 0x40
jae 0x4163e6
mov dword [ebp + eax*4 - 0x234], ebx
inc dword [ebp - 0x238]
xor eax, eax
test esi, esi
mov dword [ebp - 0x30], eax
jne 0x4163f4
mov esi, 1
mov eax, esi
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov dword [ebp - 0x2c], eax
xor eax, eax
cmp edi, 1
jne 0x416429
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x238]
push edx
push ecx
lea eax, [ebp - 0x134]
push 0
push eax
lea edx, [ebx + 1]
push edx
call sub.WSOCK32.dll_select
cmp edi, 2
jne 0x41644b
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x238]
push ecx
push eax
lea edx, [ebp - 0x134]
lea ecx, [ebx + 1]
push edx
push 0
push ecx
call sub.WSOCK32.dll_select
test eax, eax
jne 0x416460
mov eax, 0x1c85
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4164d6
inc eax
jne 0x416474
mov eax, 0x1c86
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4164d6
lea ecx, [ebp - 0x238]
push ecx
push ebx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x416496
mov eax, 0x1c86
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4164d6
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4164d6
mov esp, ebp
mov edi, dword [ebp - 0x244]
mov esi, dword [ebp - 0x240]
mov ebx, dword [ebp - 0x23c]
pop ebp
ret
Function at 0x4164ec
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x4f04e4
push ebx
push esi
push edi
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov esi, 0x4f04d0
lea edi, [ebp - 0x3c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 8
call fcn.00401298
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
xor esi, esi
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41653f
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x41654d
mov dword [ebp + 0x14], 0x2ee0
mov ecx, dword [ebp + 0x14]
push ecx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00416338
add esp, 0xc
cmp eax, 0x1c85
jne 0x41657a
mov eax, 0x1c21
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416659
cmp eax, 0x1c86
jne 0x416595
mov eax, 0x1c22
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416659
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_recv
mov ebx, eax
test ebx, ebx
jg 0x4165e1
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4165d2
push 0
call sub.USER32.dll_MessageBeep
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x416595
test ebx, ebx
jne 0x4165dd
mov ebx, 0x1c24
jmp 0x416609
mov ebx, eax
jmp 0x416609
add esi, ebx
xor ebx, ebx
cmp edi, esi
jbe 0x416609
mov eax, dword [ebp + 0x14]
push eax
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00416338
add esp, 0xc
cmp eax, 0x1c85
je 0x416609
cmp eax, 0x1c86
jne 0x416595
test esi, esi
jne 0x416614
mov ecx, dword [ebp + 0xc]
mov byte [ecx + esi], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, ebx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x416659
mov esp, ebp
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
pop ebp
ret
Function at 0x416668
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x4f050c
push ebx
push esi
push edi
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov esi, 0x4f04f8
lea edi, [ebp - 0x3c]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x14], 8
call fcn.00401298
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
test edx, edx
mov eax, dword [eax]
mov edi, eax
jne 0x4166b5
mov dword [ebp + 0x14], 0x2ee0
test eax, eax
jne 0x4166ca
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x4167c9
mov eax, dword [ebp + 0x14]
push eax
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00416338
add esp, 0xc
cmp eax, 0x1c85
jne 0x4166f7
mov eax, 0x1bbd
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4167c9
cmp eax, 0x1c86
jne 0x416712
mov eax, 0x1bbe
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4167c9
xor esi, esi
push 0
mov eax, edi
sub eax, esi
push eax
mov edx, dword [ebp + 0xc]
add edx, esi
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_send
mov ebx, eax
test ebx, ebx
jg 0x416760
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x416751
push 0
call sub.USER32.dll_MessageBeep
push 0
push 0
call fcn.00401400
add esp, 8
jmp 0x416714
test ebx, ebx
jne 0x41675c
mov ebx, 0x1bc0
jmp 0x416784
mov ebx, eax
jmp 0x416784
add esi, ebx
xor ebx, ebx
cmp edi, esi
jbe 0x416784
mov eax, dword [ebp + 0x14]
push eax
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00416338
add esp, 0xc
mov ebx, eax
cmp ebx, 0x1c86
jmp 0x416714
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, ebx
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x4167c9
mov esp, ebp
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
pop ebp
ret
Function at 0x4170d4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x4170dd
add esp, 0xfffff7d0
mov eax, dword [ebp - 4]
mov eax, 0x4f0564
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
call fcn.004d57f0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
test ebx, ebx
jne 0x41711e
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x417260
mov eax, dword [ebx]
cmp eax, 0x114
je 0x417136
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x417260
test byte [ebx + 0xc], 4
je 0x41714b
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
jmp 0x417260
test byte [ebx + 0xc], 0x10
je 0x41715f
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
jmp 0x417260
mov esi, dword [ebx + 4]
xor eax, eax
mov dword [ebx + 4], eax
lea edx, [ebp - 0x2c]
or dword [ebx + 0xc], 0x20
push 0
push edx
lea ecx, [ebp - 0x1c30]
push 0x1c00
push ecx
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x417219
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x417219
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x1c30]
push ecx
call fcn.00416fb0
add esp, 8
test eax, eax
je 0x417219
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x417219
lea edx, [ebp - 0x3834]
push edx
lea ecx, [ebp - 0x1c30]
push ecx
push ebx
call dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 0xfffe
jne 0x4171dc
or dword [ebx + 0xc], 0x10
jmp 0x417219
mov edx, dword [ebp - 0x2c]
cmp edx, 0x1c00
jbe 0x4171ee
mov dword [ebp - 0x2c], 0x1c00
mov ecx, dword [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x3834]
push eax
call fcn.00416e6c
add esp, 8
test eax, eax
je 0x417219
push 0
lea edx, [ebp - 0x2c]
push edx
push eax
lea ecx, [ebp - 0x3834]
push ecx
push esi
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_FlushFileBuffers
push esi
call sub.KERNEL32.dll_DisconnectNamedPipe
push esi
call sub.KERNEL32.dll_CloseHandle
mov word [ebp - 0x14], 0
jmp 0x417256
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov esp, ebp
mov edi, dword [ebp - 0x3840]
mov esi, dword [ebp - 0x383c]
mov ebx, dword [ebp - 0x3838]
pop ebp
ret
Function at 0x41fcc8
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov edx, 0x7f7f7f
test eax, eax
je 0x41fd01
mov edx, 0x811c9dc5
jmp 0x41fcfb
and ebx, 0xff
xor edx, ebx
inc eax
imul ebx, edx, 0x1000193
mov edx, ebx
inc ecx
cmp ecx, 0x104
jg 0x41fd01
mov bl, byte [eax]
test bl, bl
jne 0x41fce1
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x4244a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4244a9
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
je 0x424640
mov eax, dword [ebp + 0x14]
add eax, ebx
cmp eax, dword [ebp + 0xc]
jg 0x424634
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
lea eax, [ebx + edi]
push eax
call fcn.004d3138
add esp, 0xc
test eax, eax
jne 0x424634
test ebx, ebx
je 0x424503
jmp 0x4244fa
dec ebx
movsx edx, byte [edi + ebx]
cmp edx, 0x2d
je 0x4244f9
test ebx, ebx
je 0x424516
movsx eax, byte [edi + ebx]
cmp eax, 0xd
je 0x424515
cmp eax, 0xa
jne 0x424516
dec ebx
test esi, esi
je 0x42462f
lea edx, [ebp - 0x2004]
push edx
push 0x2000
call sub.KERNEL32.dll_GetTempPathA
test eax, eax
je 0x42462f
push esi
call fcn.00416dc4
movzx ecx, ax
and ecx, 0xfff
push ecx
call fcn.0041ffd0
and eax, 0xfff
push eax
push 0x5e77db
lea eax, [ebp - 0x4004]
push eax
call fcn.004d75f8
add esp, 0x14
lea edx, [ebp - 0x4004]
push edx
push 0x5e77e9
lea ecx, [ebp - 0x2004]
push ecx
call fcn.004d2f1c
pop ecx
lea edx, [ebp - 0x2004]
add eax, edx
push eax
call fcn.004d75f8
add esp, 0xc
push pe_nt_image_headers32
lea eax, [ebp - 0x2004]
push eax
call fcn.00405c58
add esp, 8
test eax, eax
je 0x4245b1
push 0x64
call sub.KERNEL32.dll_Sleep
jmp 0x424537
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x4004]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x2004]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 6
push eax
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
push edx
call fcn.00403e5c
pop ecx
test eax, eax
jne 0x42460e
push 2
lea ecx, [ebp - 0x2004]
push ecx
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x42462f
push ebx
push edi
mov edx, dword [ebp - 4]
push edx
call fcn.004042d0
add esp, 0xc
test eax, eax
lea ecx, [ebp - 4]
push ecx
call fcn.00403e94
pop ecx
lea eax, [ebx + 2]
jmp 0x424642
inc ebx
mov edx, dword [ebp + 0xc]
cmp ebx, edx
jl 0x4244c9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b190
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov esi, 0x811c9dc5
jmp 0x42b1b0
and edx, 0xff
xor esi, edx
inc eax
imul ecx, esi, 0x1000193
mov esi, ecx
mov dl, byte [eax]
test dl, dl
jne 0x42b19f
mov edx, esi
movzx ecx, si
sar ecx, 8
mov eax, esi
shr eax, 0x10
and esi, 0xff000000
shr esi, 0x18
mov ebx, esi
xor al, bl
mov bl, byte [ebp + 0x10]
test bl, bl
je 0x42b1f2
or dl, 0x88
or cl, 0x88
or al, 0x88
cmp dl, 0xff
jne 0x42b1e5
dec edx
cmp cl, 0xff
jne 0x42b1eb
dec ecx
cmp al, 0xff
jne 0x42b209
dec eax
jmp 0x42b209
and dl, 0x77
and cl, 0x77
and al, 0x77
test dl, dl
jne 0x42b1ff
inc edx
test cl, cl
jne 0x42b204
inc ecx
test al, al
jne 0x42b209
inc eax
mov esi, edx
xor edx, edx
mov dl, cl
and eax, 0xff
movzx ecx, dx
shl ecx, 8
and esi, 0xff
shl eax, 0x10
or esi, ecx
or esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42b248
mov edx, esi
and edx, 0xffffff
push edx
push 0x5e8ef1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004d75f8
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x42d73c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edx, eax
test eax, eax
je 0x42d754
dec eax
dec edx
xor byte [edx], 0x33
test eax, eax
jne 0x42d74b
pop ebp
ret

Function at 0x42d758
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edx, eax
test eax, eax
je 0x42d770
dec eax
dec edx
xor byte [edx], 0x33
test eax, eax
jne 0x42d767
pop ebp
ret