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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x1010aa54], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jne 0x1006a759
lea eax, [ebp - 8]
mov dword [0x1010aa54], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x1010aea4], eax
test eax, eax
je 0x1006a739
push 0x1010aea8
call esi
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.100db670
divsd xmm0, qword [0x100df510]
jmp 0x1006a751
call fcn.1006e7c7
movsd xmm0, qword [0x10104788]
mov dword [0x1010aea8], eax
mov dword [0x1010aeac], edx
movsd qword [0x1010aeb0], xmm0
cmp dword [0x1010aea4], 0
je 0x1006a770
lea eax, [ebp - 0x10]
push eax
call esi
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
jmp 0x1006a782
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
or ecx, dword [ebp - 0x18]
sub ecx, dword [0x1010aea8]
sbb edx, dword [0x1010aeac]
call fcn.100db670
divsd xmm0, qword [0x1010aeb0]
call fcn.100db570
push ebx
push 0
push 0xf4240
push edx
push eax
call fcn.100db310
pop ebx
nop
mov esi, dword [ebp + 0xc]
cdq
mov dword [esi], eax
imul eax, ecx, 0x3e8
mov dword [esi + 4], edx
mov dword [esi + 8], eax
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x1006a7c9
Capabilities:
Convert ip address from string
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1006a80b
cmp word [edi + 8], 2
jne 0x1006a80b
push esi
mov esi, dword [ebp + 8]
push 0xffff
and dword [esi], 0
and dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
jmp 0x1006a820
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
neg eax
sbb eax, eax
neg eax
dec eax
pop edi
pop ebp
ret

Function at 0x1006e384
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], 2
push 0
sete al
inc eax
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
ret

Function at 0x1006e3b2
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0x1c
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1006e3e7
or eax, eax
jmp 0x1006e40b
push esi
push edi
push dword [ebp - 0x1e]
mov edi, ebx
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebx + 0x10], ax
mov ax, word [ebp - 8]
pop edi
mov word [ebx + 0x12], ax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100daa0d
leave
ret
Function at 0x1006e418
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
push eax
push eax
mov dword [ebp - 0x24], eax
test ebx, ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x1c
cmove eax, edx
test ebx, ebx
push eax
lea eax, [ebp - 0x20]
cmove eax, edx
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x14]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x1006e481
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x1006e47d
sub eax, 0x13
jne 0x1006e48a
xor eax, eax
jmp 0x1006e4b8
test dword [ebp - 0x24], 0x8000
je 0x1006e48f
or eax, 0xffffffff
jmp 0x1006e4b8
test ebx, ebx
je 0x1006e4b5
push esi
push edi
push dword [ebp - 0x1e]
mov edi, ebx
lea esi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebx + 0x10], ax
mov ax, word [ebp - 8]
pop edi
mov word [ebx + 0x12], ax
pop esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100daa0d
leave
ret

Function at 0x1006e4c5
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x1006e51d
push esi
push edi
push 0x1c
lea eax, [ebp - 0x20]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x17
pop eax
mov word [ebp - 0x20], ax
movzx eax, word [ebx + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea edi, [ebp - 0x18]
movzx eax, word [ebx + 0x12]
mov esi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov dword [ebp - 8], eax
pop esi
push 0
push 0
mov eax, ebx
neg eax
sbb eax, eax
xor ecx, ecx
and eax, 0x1c
test ebx, ebx
push eax
lea eax, [ebp - 0x20]
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x24]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASendTo]
pop ebx
cmp eax, 0xffffffff
jne 0x1006e561
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x1006e564
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100daa0d
leave
ret
Function at 0x1006e648
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
xor edi, edi
push edi
push 0x3e8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100db460
mov dword [ebp - 0x210], ebx
pop ebx
nop
mov dword [ebp - 0x214], eax
xor ebx, ebx
imul eax, ecx, 0x3e8
inc ebx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x108], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x210], eax
test byte [esi], bl
je 0x1006e6b7
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], ebx
test byte [esi], 2
je 0x1006e6c8
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], ebx
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x1006e6f2
or eax, 0xffffffff
jmp 0x1006e722
and dword [esi], 0
test eax, eax
je 0x1006e720
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1006e70c
or dword [esi], ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1006e720
or dword [esi], 2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100daa0d
leave
ret
Function at 0x100a4063
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
movzx ecx, word [ebx]
mov dword [ebp - 4], ecx
mov edi, dword [edi]
mov dword [ebp - 8], edi
cmp edi, eax
jb 0x100a4087
xor eax, eax
jmp 0x100a40e4
sub eax, edi
push esi
mov esi, dword [ebp + 0x14]
cmp esi, eax
cmova esi, eax
xor edx, edx
mov dword [ebp + 0x14], esi
test esi, esi
je 0x100a40d3
mov ebx, dword [ebp + 0x10]
sub edi, ebx
movzx eax, byte [edi + ebx]
mov edx, ecx
shr edx, 8
xor edx, eax
add eax, ecx
imul eax, eax, 0x3193
mov ecx, 0x58bf
mov byte [ebx], dl
sub ecx, eax
inc ebx
movzx ecx, cx
sub esi, 1
jne 0x100a40a0
mov esi, dword [ebp + 0x14]
mov edx, esi
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
lea ecx, [edi + esi]
pop esi
mov dword [eax], ecx
mov eax, edx
mov ecx, dword [ebp - 4]
mov word [ebx], cx
pop edi
pop ebx
leave
ret

Function at 0x100b4697
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0x10
xor eax, dword [ebp + 8]
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret
Function at 0x100bedf6
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x100bee0c
push 0x28
pop eax
jmp 0x100bef2d
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100bee39
xor eax, eax
inc eax
jmp 0x100bef2b
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x100bef1c
cmp dword [ebp - 8], ebx
jg 0x100bef1c
mov eax, dword [ebp - 0xc]
jl 0x100bee6d
cmp eax, 0x7fffffff
ja 0x100bef1c
or eax, dword [ebp - 8]
je 0x100bef1c
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x100bef1a
mov ecx, dword [ebp - 0xc]
xor eax, eax
push eax
push eax
push eax
push 4
push ebx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov dword [esi], eax
call dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
je 0x100beeb7
mov eax, 0x100bef66
jmp 0x100beef5
push dword [esi + 4]
push dword [esi + 0x1c]
call fcn.100bef30
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
je 0x100bef1c
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
sub eax, ebx
push eax
mov eax, dword [esi]
add eax, ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bef0e
add ebx, dword [ebp - 4]
cmp ebx, dword [esi + 4]
jne 0x100beeca
mov eax, 0x100bef45
xor ebx, ebx
push edi
mov dword [esi + 0x18], eax
call dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], ebx
jmp 0x100bef2b
push dword [esi]
push dword [esi + 0x1c]
call fcn.100bef83
pop ecx
pop ecx
xor ebx, ebx
push edi
call dword [ebp + 8]
push 0x51
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100bf3e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100bf3f1
Function at 0x100c4840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x1010aec0], 0
push esi
mov esi, dword [ebp + 8]
jne 0x100c494e
mov eax, 1
lock xadd dword [0x1010aec4], eax
inc eax
cmp eax, 1
jne 0x100c493d
test esi, esi
jne 0x100c4932
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x100c4911
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x100c4911
push str.CryptGenRandom
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x100c4911
push str.CryptReleaseContext
push esi
call edi
mov edi, eax
test edi, edi
je 0x100c4911
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x100c4911
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x100c4911
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x100c4926
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x1010aec0], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
call esi
cmp dword [0x1010aec0], 0
je 0x100c4943
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100c4960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x100c4a6c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x100c49a0
cmp edx, 0xc
ja 0x100c4ad8
jmp dword [edx*4 + 0x100c4b28]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100da340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [eax - 1]
mov dword [ebp + 0x14], eax
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
xor edx, edx
xor esi, esi
mov dword [ebp - 0xc], edx
test edi, edi
jle 0x100da3b3
nop dword [eax + eax]
mov eax, dword [ebx + edx*4]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov edx, dword [ebp - 0xc]
cmp ecx, esi
mov eax, ecx
mov ecx, edx
cmovle ecx, dword [ebp - 4]
cmovle eax, esi
inc edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ecx
mov esi, eax
mov dword [ebp - 0xc], edx
cmp edx, edi
jl 0x100da380
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x10]
cmp eax, 1
mov eax, esi
jne 0x100da3c3
sar eax, 1
and esi, 1
add eax, esi
jmp 0x100da3c8
sar eax, cl
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x100da416
mov ecx, dword [ebp - 4]
mov edx, 0x27ffe
cmp eax, edx
cmovl edx, eax
inc ecx
imul ecx, edx
mov eax, 0x7fff
sub eax, edx
shl eax, 0xe
cdq
sar ecx, 2
idiv ecx
add eax, 0xffbe
push eax
push edi
push ebx
call fcn.100da2a0
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov dword [ebp - 8], eax
cmp eax, 0xa
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 1]
jl 0x100da370
xor edx, edx
cmp dword [ebp - 8], 0xa
jne 0x100da4c4
test edi, edi
jle 0x100da503
mov esi, dword [ebp + 0x14]
cmp esi, 1
jne 0x100da477
mov ecx, dword [ebx + edx*4]
mov eax, ecx
sar eax, 1
and ecx, 1
add eax, ecx
cmp eax, 0x7fff
jle 0x100da44c
mov eax, 0x7fff
jmp 0x100da459
cmp eax, 0xffff8000
mov ecx, 0xffff8000
cmovl eax, ecx
mov ecx, dword [ebp + 8]
movzx eax, ax
mov word [ecx + edx*2], ax
mov ecx, esi
cwde
shl eax, cl
mov dword [ebx + edx*4], eax
inc edx
cmp edx, edi
jl 0x100da432
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
nop dword [eax]
mov eax, dword [ebx + edx*4]
lea ecx, [esi - 1]
sar eax, cl
inc eax
sar eax, 1
cmp eax, 0x7fff
jle 0x100da499
mov eax, 0x7fff
jmp 0x100da4a6
cmp eax, 0xffff8000
mov ecx, 0xffff8000
cmovl eax, ecx
mov ecx, dword [ebp + 8]
movzx eax, ax
mov word [ecx + edx*2], ax
mov ecx, esi
cwde
shl eax, cl
mov dword [ebx + edx*4], eax
inc edx
cmp edx, edi
jl 0x100da480
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100da503
cmp dword [ebp + 0x14], 1
mov esi, dword [ebp + 8]
jne 0x100da4ed
mov ecx, dword [ebx + edx*4]
mov eax, ecx
sar eax, 1
and ecx, 1
add eax, ecx
mov word [esi + edx*2], ax
inc edx
cmp edx, edi
jl 0x100da4d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebx + edx*4]
sar eax, cl
inc eax
sar eax, 1
mov word [esi + edx*2], ax
inc edx
cmp edx, edi
jl 0x100da4f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x87c274]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449935
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.0044b090
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x45a570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4