joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bde0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x102e2a30], 0
jne 0x1000be63
lea eax, [ebp - 0x198]
mov byte [0x102e2a30], 1
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000be3d
push str.Winsock_DLL_Initialize_error._r_n
push 0x1855d10
mov eax, 0xf598fb
call eax
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102996ff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x1000be76
shr eax, 8
cmp al, 2
jne 0x1000be76
mov dword ds:[0xa6a1774], 0
movzx eax, word [ebp - 0x12]
mov dword ds:[0xa6a1770], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.102996ff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Winsock_version_low._r_n
jmp 0x1000be1e

Function at 0x1000bf80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push edi
mov edi, dword [ebp + 8]
push 0x80
push 0
push eax
call fcn.1029c3a0
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.1029c3a0
add esp, 0x18
mov dword [ebp - 0x118], 0x80
cmp byte [0x102e2a31], 0
mov dword [ebp - 0x114], 0x80
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xffff0000
je 0x1000c032
push 4
push 0x102e2a34
push 0x1b
push 0x29
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1000c032
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.102996ff
mov esp, ebp
pop ebp
ret 8
push 0
push 0
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push edi
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_WSAConnectByNameA]
test eax, eax
je 0x1000c012
push 0
push 0
push 0x7010
push 0xffff
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1000c012
cmp byte [0x102e2a31], 0
je 0x1000c0b6
lea ecx, [ebp - 0x88]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
cmp eax, dword [edx]
jne 0x1000c0af
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1000c0af
mov eax, dword [ecx + 8]
cmp eax, dword [edx + 8]
jne 0x1000c0af
xor al, al
jmp 0x1000c0b1
mov al, 1
mov byte [0x102e2a38], al
push 0x23
push 0x400
push dword [0x102dfd30]
push dword [0x102e2a2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
je 0x1000c012
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.102996ff
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ec00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102c0a78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000ed2e
cmp byte [ebx + 0x3d], 0
je 0x1000ed2e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000ec59
xor al, al
jmp 0x1000ed30
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10006a30
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000ecbf
sub eax, 1
je 0x1000ecc3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1000ed16
xor bl, bl
jmp 0x1000ed18
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1000ecf8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.102a2f15
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1000ecbb
cmp byte [ebx + 0x3d], 0
je 0x1000ed16
test esi, esi
jne 0x1000ec81
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10008710
jmp 0x1000ec7e
mov bl, 1
cmp ecx, 0x10
jb 0x1000ed2a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10009330
mov al, bl
jmp 0x1000ed30
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102996ff
mov esp, ebp
pop ebp
ret
Function at 0x10257c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 1
cmp ax, dx
jae 0x10257c66
push ebx
movzx ebx, word [ebp + 8]
lea eax, [ecx + 1]
push esi
push edi
lea edi, [ecx - 1]
sub ebx, edi
sub edi, ecx
lea ecx, [edx - 1]
movzx esi, cx
lea edx, [edi + eax]
lea ecx, [edx + ebx]
and ecx, 0x1f
lea eax, [eax + 1]
mov cl, byte [ecx + 0x102d8430]
xor cl, byte [eax - 1]
xor cl, byte [edx]
mov byte [eax - 1], cl
sub esi, 1
jne 0x10257c44
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10257c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea eax, [edx - 1]
push esi
movzx esi, ax
test si, si
je 0x10257cb7
push ebx
movzx ebx, word [ebp + 8]
lea eax, [ecx + esi]
push edi
lea edi, [ecx - 1]
sub ebx, edi
sub edi, ecx
nop
lea edx, [edi + eax]
add esi, 0xffff
lea ecx, [edx + ebx]
and ecx, 0x1f
lea eax, [eax - 1]
mov cl, byte [ecx + 0x102d8430]
xor cl, byte [eax + 1]
xor cl, byte [edx]
mov byte [eax + 1], cl
test si, si
jne 0x10257c90
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x10258b40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x14
mov ecx, dword [0x102df56c]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x102e2c74]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ecx + 4]
jle 0x10258b94
push 0x102e2c74
call fcn.10299bfa
add esp, 4
cmp dword [0x102e2c74], 0xffffffff
jne 0x10258b94
call esi
push 0x102e2c74
mov dword [0x102e2c78], eax
call fcn.10299bbb
add esp, 4
call esi
sub eax, dword [0x102e2c78]
cmp eax, 0x2710
jbe 0x10258c47
call esi
mov dword [0x102e2c78], eax
mov eax, dword [0x102e208c]
mov cl, al
mov dword [ebp - 8], eax
add cl, 0xdc
mov al, byte [ebp - 5]
mov dl, byte [ebp - 7]
add al, 0xd9
mov bl, byte [ebp - 6]
add dl, 0xdb
mov byte [ebp - 1], al
add bl, 0xda
mov eax, dword [0x102e2088]
mov dh, al
mov dword [ebp - 8], eax
add dh, 0xe0
mov al, byte [ebp - 6]
mov bh, byte [ebp - 7]
add al, 0xde
mov byte [ebp - 2], al
add bh, 0xdf
mov al, byte [ebp - 5]
movzx ecx, cl
add al, 0xdd
shl ecx, 8
mov byte [ebp - 3], al
movzx eax, dl
or ecx, eax
movzx eax, bl
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
movzx eax, bh
push ecx
movzx ecx, dh
shl ecx, 8
or ecx, eax
mov al, byte [ebp - 2]
movzx eax, al
shl ax, 8
shl ecx, 0x10
movzx eax, ax
or ecx, eax
movzx eax, byte [ebp - 3]
or ecx, eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.10259140
movzx edx, byte [ebp - 0x13]
lea ecx, [ebp - 0x14]
call fcn.10258a80
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10258c50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test cl, cl
mov byte [0x102ddd89], cl
mov ecx, dword [0x102e2ac8]
push ebx
push esi
push edi
mov esi, dword [ecx]
je 0x10258d45
cmp esi, ecx
je 0x10258cf6
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10258cab
mov bl, byte [esi + 0x18]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call edx
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call eax
mov ecx, dword [0x102e2ac8]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [esi + 0xd], 0
jne 0x10258cf2
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10258cd0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10258cf2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10258cc4
jmp 0x10258cf2
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10258cf0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10258cf0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10258ce0
mov esi, eax
cmp esi, ecx
jne 0x10258c77
xor edi, edi
mov esi, 0x678f47
xor eax, eax
nop
mov bl, byte [eax + 0x102d84a4]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call edx
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push esi
call eax
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [edi + 1]
lea eax, [edi*8]
mov esi, dword [eax + 0x102d84a0]
test esi, esi
jne 0x10258d00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, ecx
je 0x10258dcb
nop dword [eax]
mov edi, dword [esi + 0x14]
test edi, edi
je 0x10258d84
mov bl, byte [esi + 0x19]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call edx
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call eax
mov ecx, dword [0x102e2ac8]
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp byte [esi + 0xd], 0
jne 0x10258dc7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10258dac
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10258dc7
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10258da0
jmp 0x10258dc7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10258dc5
cmp esi, dword [eax + 8]
jne 0x10258dc5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10258db5
mov esi, eax
cmp esi, ecx
jne 0x10258d50
xor edi, edi
mov esi, 0x678f47
xor eax, eax
mov bl, byte [eax + 0x102d84a5]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push esi
call edx
lea eax, [ebp - 4]
mov byte [esi], bl
push eax
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push esi
call eax
mov edx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [edi + 1]
lea eax, [edi*8]
mov esi, dword [eax + 0x102d84a0]
test esi, esi
jne 0x10258dd4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10258e20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push edi
push eax
push 0x40
push 4
push 0x181d95c
mov edi, ecx
call esi
lea eax, [ebp - 4]
mov dword [0x181d95c], 0xffffffff
push eax
push dword [ebp - 4]
push 4
push 0x181d95c
call esi
mov eax, dword [edi + 4]
test eax, eax
jns 0x10258e97
xor esi, esi
push esi
call fcn.1000ac00
add esp, 4
test eax, eax
je 0x10258e77
mov ax, word [eax + 0x3e]
cmp ax, word [edi + 8]
je 0x10258e86
inc esi
cmp esi, 0x190
jl 0x10258e60
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov eax, 0x5d7945
call eax
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
call fcn.1000ac00
add esp, 4
test eax, eax
je 0x10258ebb
mov ax, word [eax + 0x3e]
cmp ax, word [edi + 8]
jne 0x10258ebb
push dword [edi + 4]
mov eax, 0x5d7945
call eax
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10259bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x102dd418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0xc]
movq qword [ecx + 4], xmm0
mov word [ecx + 0xc], 0
push ebx
lea ebx, [ecx + 4]
movq qword [ebp - 0x10], xmm0
mov byte [ebx + 0xa], 0
movups xmmword [ecx + 0xf], xmm0
push edi
lea edi, [ecx + 0xf]
mov word [ebp - 8], 0
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x28]
mov byte [edi + 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
movq xmm0, qword [eax]
mov ax, word [eax + 8]
mov word [ebp - 8], ax
mov eax, dword [edx + 0x10]
xor byte [ebp - 8], 0xab
xor byte [ebp - 7], 0xfc
mov dword [ebp - 0x18], eax
mov eax, 1
sub eax, ecx
movq qword [ebp - 0x10], xmm0
movups xmm0, xmmword [edx]
xor byte [ebp - 0x10], 0xfc
xor byte [ebp - 0xf], 0xcf
xor byte [ebp - 0xe], 0xab
xor byte [ebp - 0xd], 0xfc
xor byte [ebp - 0xc], 0xcf
xor byte [ebp - 0xb], 0xab
xor byte [ebp - 0xa], 0xfc
xor byte [ebp - 9], 0xcf
mov dword [ebp - 0x30], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x34], eax
xor edi, edi
mov eax, 3
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, 4
sub eax, ecx
mov byte [ebp - 6], 0
mov byte [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x2c], 0xcffc
mov byte [ebp - 0x2a], 0xab
mov dword [ebp - 0x3c], eax
push esi
mov eax, 0xaaaaaaab
lea esi, [ebp - 0x28]
mul edi
add esi, edi
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2c]
lea ecx, [esi + ebx]
xor byte [esi], al
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2b]
xor byte [esi + 1], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x34]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x2a]
xor byte [esi + 2], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x38]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x29]
xor byte [esi + 3], al
mov eax, 0xaaaaaaab
mov ecx, dword [ebp - 0x3c]
lea ecx, [esi + ecx]
mul ecx
mov ecx, edi
add edi, 5
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x28]
xor byte [esi + 4], al
cmp edi, 0x14
jl 0x10259cd4
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x44]
mov eax, ecx
sub ebx, eax
pop esi
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x10259d80
lea eax, [ebp - 0x28]
mov ecx, eax
sub edi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x10259d94
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.102996ff
mov esp, ebp
pop ebp
ret 8
Function at 0x1025a3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 1
push edi
mov bl, dl
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov byte [edi], bl
push eax
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1025a3f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 8]
cmp al, 0xff
je 0x1025a410
mov byte [esi], al
mov eax, dword [ebp + 0x10]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10261f40
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x10261f93
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.10272c70
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x10261f56
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x3f
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x1026e7b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x673], 0
je 0x1026e83c
cmp dword [esi + 0x19c], 0
je 0x1026e803
push esi
call fcn.1025d5c0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.1025d850
push dword [esi + 0x14c]
mov eax, dword [esi + 0x19c]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.1025d850
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x1026e83c
push dword [esi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x102c2c68
push 2
push eax
call fcn.102a2f15
push dword [esi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.102a2f15
add esp, 0x20
pop esi
ret

Function at 0x10270e90
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x102c30c8
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x10270eaa
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x102c30e4
push esi
call fcn.102a8b60
add esp, 8
test eax, eax
je 0x10270ef2
test ebp, ebp
je 0x10270ee3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x10270f18
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10270f18
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x10270fcf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270f35
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10270fc5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10270fc5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270f67
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10270f80
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10270f90
test ebp, ebp
je 0x10270fbc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x102dd004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x102dd004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x10276db0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10276dcf
cmp dword [esi + 0x84], 0
je 0x10276dcf
push 2
push 3
push esi
call fcn.10273290
add esp, 0xc
push dword [esp + 0xc]
call fcn.10276810
add esp, 4
test esi, esi
je 0x10276df3
cmp dword [esi + 0x84], 0
je 0x10276df3
push 3
push esi
call fcn.102732d0
add esp, 8
pop esi
ret

Function at 0x10276f00
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10276f40
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x10276f2f
push 0
call fcn.10276f00
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov ecx, dword [esi + 0x7c]
xor eax, eax
pop esi
cmp byte [ecx + 0x104], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10276f5d
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
Function at 0x10280ae0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.102629f0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.102b057f
push dword [esp + 0x40]
mov edi, eax
call fcn.102b057f
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 0x10280b75
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.102629f0
movups xmm0, xmmword [esp + 0x14]
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.10262a90
add esp, 0x20
test edx, edx
ja 0x10280b99
jb 0x10280b67
cmp eax, 0x3e8
ja 0x10280b99
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10280b30
test edi, edi
je 0x10280b82
push edi
call fcn.102a29cd
add esp, 4
test esi, esi
je 0x10280b8f
push esi
call fcn.102a29cd
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x10280ba6
push edi
call fcn.102a29cd
add esp, 4
test esi, esi
je 0x10280bb3
push esi
call fcn.102a29cd
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x102810a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10281231
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1028121c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x102810fe
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x102810f0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10281100
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10281111
lea ebp, [eax + 0xe]
jmp 0x1028111d
cmp eax, 0x17
jne 0x102811be
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x102811be
mov eax, dword [esi + 0x10]
test eax, eax
je 0x102811be
cmp eax, ebp
jb 0x102811be
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x1028120d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.1029c630
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x102811aa
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.1029c630
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x102811ba
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x102810e2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x102811de
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10281218
test ebx, ebx
je 0x102811fd
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x102dd004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x102811e6
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x102811cd
test ebx, ebx
jne 0x10281228
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret