joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002e740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x10
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x1002e895
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
cmp edx, 8
jb 0x1002e878
lea eax, [ebx - 1]
add eax, edx
cmp edi, eax
ja 0x1002e77e
lea eax, [edx - 1]
add eax, edi
cmp eax, ebx
jae 0x1002e878
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x1002e794
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jae 0x1002e878
cmp edx, 0x40
jb 0x1002e835
mov eax, edx
and eax, 0x3f
mov dword [ebp - 4], eax
mov eax, edx
sub eax, dword [ebp - 4]
mov edx, edi
sub edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 8], edx
mov ebx, esi
sub ebx, dword [ebp + 0xc]
mov edx, esi
sub edx, edi
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [ebp - 8]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
xorps xmm1, xmm0
movups xmmword [edx - 0x60], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 0xc]
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [ebp + 0x10]
xorps xmm1, xmm0
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [esi + ecx + 0x30]
add ecx, 0x40
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x1002e7d0
cmp dword [ebp - 4], 8
mov edx, dword [ebp + 0x14]
jb 0x1002e871
mov eax, dword [ebp + 0xc]
jmp 0x1002e83c
mov eax, dword [ebp + 0xc]
mov ebx, esi
sub ebx, eax
mov dword [ebp + 0x14], edx
add eax, ecx
and dword [ebp + 0x14], 0xfffffff8
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
nop dword [eax + eax]
movq xmm1, qword [ebx + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [edi + eax - 8], xmm1
cmp ecx, dword [ebp + 0x14]
jb 0x1002e850
mov edi, dword [ebp + 0x10]
cmp ecx, edx
jae 0x1002e893
mov ebx, dword [ebp + 0xc]
sub esi, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [edi + eax - 1], cl
sub edx, 1
jne 0x1002e881
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10032b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], esi
mov word [ebp - 0xe], 0x6b56
lea edx, [ecx + 1]
mov dword [ebp - 0x1b], 0x58726843
movups xmmword [esi], xmm0
mov dword [ebp - 0x17], 0x72725231
mov dword [ebp - 0x21], 0x574d7459
mov dword [ebp - 0x13], 0x4b516933
mov dword [ebp - 0xc], 0x65756e72
mov dword [ebp - 0x25], 0x41595a32
mov word [ebp - 0x1d], 0x5066
mov word [ebp - 0x27], 0x4d69
mov byte [ebp - 8], 0
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0xf], 0x4b
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032bd0
sub ecx, edx
lea eax, [ebp - 0x28]
push ecx
push eax
mov ecx, esi
call fcn.10003b90
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008c562
mov esp, ebp
pop ebp
ret

Function at 0x10032c00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x1c], esi
mov word [ebp - 0xa], 0x3030
lea edx, [ecx + 1]
mov word [ebp - 0x13], 0x3338
movups xmmword [esi], xmm0
mov word [ebp - 0x10], 0x3233
mov word [ebp - 0x18], 0x3731
mov byte [ebp - 8], 0
mov word [ebp - 0xd], 0x3030
mov word [ebp - 0x15], 0x3730
mov byte [ebp - 0xe], 0x30
mov byte [ebp - 0x11], 0x32
mov byte [ebp - 0x16], 0x32
mov byte [ebp - 0xb], 0x30
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032c70
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
mov ecx, esi
call fcn.10003b90
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x10034f30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
cmp dword [esi + 0x14], 7
jbe 0x10034f43
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10034f9c
mov eax, 0x10624dd3
mov edi, 1
imul dword [ebp + 0xc]
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
cmp ebx, edi
jle 0x10034f95
nop dword [eax]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10034f7a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10034f9c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, ebx
jl 0x10034f70
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
Function at 0x10039900
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x1ab
push eax
mov dword [0x100dcd40], 0x927c0
call fcn.1002f4a0
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1003993d
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x21c]
push str._s___s_
push eax
call fcn.1000e5c0
mov ecx, dword [ebp - 0x220]
add esp, 0x10
cmp ecx, 7
jbe 0x10039993
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10039989
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039b2f
push ecx
push edx
call fcn.1008c554
add esp, 8
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.1008e490
lea eax, [ebp - 0x234]
push 0x1ad
push eax
call fcn.1002f4a0
add esp, 0x14
cmp dword [eax + 0x14], 7
jbe 0x100399c2
mov eax, dword [eax]
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 0x220]
cmp ecx, 7
jbe 0x10039a15
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10039a0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039b34
push ecx
push edx
call fcn.1008c554
add esp, 8
lea ecx, [ebp - 0x244]
mov dword [0x100dcd40], 0x92ba8
push ecx
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], 0x44
push ecx
push 0
push 0
xor eax, eax
mov dword [ebp - 0x25c], 1
cmp dword [ebp - 0x208], 7
xorps xmm0, xmm0
push 0
push 0
mov word [ebp - 0x246], ax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x21c]
cmova eax, dword [ebp - 0x21c]
push 0
push 0
push eax
lea eax, [ebp - 0x204]
movlpd qword [ebp - 0x284], xmm0
push eax
movlpd qword [ebp - 0x27c], xmm0
movlpd qword [ebp - 0x274], xmm0
movlpd qword [ebp - 0x26c], xmm0
movlpd qword [ebp - 0x264], xmm0
movlpd qword [ebp - 0x256], xmm0
movlpd qword [ebp - 0x24e], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x240]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100dcd40], 0x92f90
call esi
push dword [ebp - 0x244]
call esi
mov ecx, dword [ebp - 0x208]
mov dword [0x100dcd40], 0x93378
cmp ecx, 7
jbe 0x10039b20
mov edx, dword [ebp - 0x21c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10039b16
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039b39
push ecx
push edx
call fcn.1008c554
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008c562
mov esp, ebp
pop ebp
ret
call fcn.10091b9f
call fcn.10091b9f
call fcn.10091b9f
int3
Function at 0x10042b10
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10042ba6
push esi
call fcn.10052e40
add esp, 4
test al, al
jne 0x10042ba6
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10042b35
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.100607b0
add esp, 0xc
test eax, eax
je 0x10042b69
sub eax, esi
push eax
push 0x2e
push esi
call fcn.100607b0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10042b6b
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x10042b9e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.10051200
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x10042b80
pop edi
movzx eax, bl
pop ebx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1004caf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x6f9], 0
je 0x1004cb84
cmp dword [edi + 0x1a8], 0
je 0x1004cb41
push esi
push 1
push edi
call fcn.1003dc20
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.1003dc20
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x1004cb55
sub ecx, 1
je 0x1004cb55
sub ecx, 1
jne 0x1004cb84
push dword [edi + 0x148]
lea eax, [edx*2 + 0x100bce78]
push 1
add eax, edx
push 2
push eax
call fcn.1009ceaa
push dword [edi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1009ceaa
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret
Function at 0x1004d0c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov ecx, dword [ebx + 0xc]
push esi
mov esi, 0x178
push edi
mov edx, dword [ecx + 0x154]
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x150]
mov eax, dword [eax + ecx]
mov dword [ebp - 0x108], eax
mov eax, 0x188
cmove esi, eax
mov eax, dword [ecx + 0x2a8]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x1004d1c1
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x168]
cmp dword [eax + ecx], 0x1004cd50
jne 0x1004d1c1
cmp dword [esi], 0
je 0x1004d152
test edi, edi
je 0x1004d1c1
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x108]
call fcn.1005c930
add esp, 0x14
cmp eax, 0xffffffff
je 0x1004d1c1
test al, 1
je 0x1004d1c1
mov ecx, dword [esi]
test ecx, ecx
jne 0x1004d1a5
mov eax, dword [ebx + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100dcd44]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x1004d1f8
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1004d1c1
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x110]
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x1004d246
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1004d21a
xor edi, edi
lea eax, [edi + 0x51]
jmp 0x1004d246
mov ecx, dword [ebp - 0x10c]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.10079b20
push eax
push str.Send_failure:__s
push ebx
call fcn.1004cb90
add esp, 0x18
mov dword [ebx + 0x948], esi
mov eax, 0x37
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1a4], 0
je 0x1004d6b0
push eax
call fcn.10047420
add esp, 4
test eax, eax
je 0x1004d6d1
mov al, 1
pop ebp
ret
mov eax, dword [eax + 0x150]
cmp eax, 0xffffffff
je 0x1004d6d1
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x1004d930
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.1008e490
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004d9ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10079b20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1004d9f0
push edi
push esi
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.1004d500
add esp, 0x10
test al, al
jne 0x1004d9f9
call fcn.10091c69
mov esi, dword [eax]
call fcn.10091c69
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10079b20
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.1004cb90
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c562
mov esp, ebp
pop ebp
ret

Function at 0x1004e1d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ddeac]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1004e222
push 3
push 2
push eax
push eax
push 6
call fcn.1007a180
add esp, 0x14
test al, al
je 0x1004e216
mov dword [0x100ddeac], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100ddeac], 1
jmp 0x1004e227
cmp eax, 2
je 0x1004e267
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1004e24e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1004e267
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x1004f450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a46b9

Function at 0x1004f6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x100bd148
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004f6f0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x100bd164
push esi
mov dword [ebp - 8], ebx
call fcn.100a0326
add esp, 8
test eax, eax
je 0x1004f73c
test ebx, ebx
je 0x1004f72c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x1004f765
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f765
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x1004f810
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f781
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x100dcd44]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1004f806
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004f806
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f7b2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f7d0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x1004f7e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x1004f7fd
push 8
push 0
push ebx
call eax
jmp 0x1004f804
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x100dcd48]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1004f860
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x1004f8b9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1004f8a6
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1004f8a0
shr eax, 8
cmp al, 2
je 0x1004f8b9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
call fcn.1007b280
test eax, eax
jne 0x1004fa4f
push esi
push edi
push 0x100bd148
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x1004f8e6
mov dword [0x100ddeb4], esi
jmp 0x1004fa25
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100bd164
push str.iphlpapi.dll
mov ebx, eax
call fcn.100a0326
add esp, 8
test eax, eax
je 0x1004f933
test ebx, ebx
je 0x1004f921
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1004f9fd
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x1004f9fd
test ebx, ebx
je 0x1004f95c
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004f95c
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x1004f9fd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x198], eax
test eax, eax
je 0x1004f9fd
lea ecx, [eax + 0xd]
push ecx
call dword [0x100dcd44]
mov edi, eax
add esp, 4
test edi, edi
je 0x1004f9f3
push dword [ebp - 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004f9f3
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004f9a0
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004f9b7
sub edx, ecx
mov ecx, str.iphlpapi.dll
sub edx, ecx
add edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1004f9d0
test ebx, ebx
je 0x1004f9ea
push 8
push 0
push edi
call ebx
jmp 0x1004f9f1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x100dcd48]
add esp, 4
mov dword [0x100ddeb4], esi
pop ebx
test esi, esi
je 0x1004fa25
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x100ddeb0]
test eax, eax
cmovne ecx, eax
mov dword [0x100ddeb0], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.1007a180
add esp, 0x14
test al, al
setne byte [0x100dec30]
push 0x100dec38
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
Function at 0x10052e40
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100dcd80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x10052e86
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
pop esi
setg al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c562
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1008c562
mov esp, ebp
pop ebp
ret

Function at 0x10052fb0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x10052fc5
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
pop ebp
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10052fda
xor al, al
pop ebp
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop ebp
ret
Function at 0x10060e40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10052310
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.100a4190
push dword [ebp + 0xc]
mov edi, eax
call fcn.100a4190
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10060ec7
lea eax, [ebp - 0x20]
push eax
call fcn.10052310
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.100523c0
add esp, 0x20
test edx, edx
ja 0x10060eea
jb 0x10060eb5
cmp eax, 0x3e8
ja 0x10060eea
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10060e80
test edi, edi
je 0x10060ed4
push edi
call fcn.10097ef8
add esp, 4
test esi, esi
je 0x10060ee1
push esi
call fcn.10097ef8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10060ef7
push edi
call fcn.10097ef8
add esp, 4
test esi, esi
je 0x10060f04
push esi
call fcn.10097ef8
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret