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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
lea edi, [ebp - 0x15]
mov word [ebp - 0x18], cx
mov byte [ebp - 0x16], cl
mov dword [ebp - 0x24], 0x1010020
stosd dword es:[edi], eax
push 0x54
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebx + 0x20]
push eax
call fcn.0055f7f0
add esp, 0xc
mov esi, 0x5faae8
mov edi, ebx
push 8
pop edx
mov ecx, edx
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x24]
sub esi, ebx
mov ecx, dword [esi + ebx]
xor dword [ebx], ecx
lea ebx, [ebx + 4]
sub edx, 1
jne 0x4e82ca
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.005462f1
leave
ret
Function at 0x4eaee7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, ebx
push edi
mov edi, dword [ebp + 0x10]
shr eax, 3
mov dword [ebp - 8], eax
cmp edi, ebx
jb 0x4eafee
push esi
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
test eax, eax
je 0x4eafd6
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 7]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [ebp + 0xc]
shld ecx, esi, 8
shl esi, 8
movzx eax, byte [eax + 6]
cdq
or esi, eax
or ecx, edx
mov eax, dword [ebp + 0xc]
shld ecx, esi, 8
shl esi, 8
movzx eax, byte [eax + 5]
cdq
or esi, eax
or ecx, edx
mov eax, dword [ebp + 0xc]
shld ecx, esi, 8
shl esi, 8
movzx eax, byte [eax + 4]
cdq
or esi, eax
or ecx, edx
mov eax, dword [ebp + 0xc]
shld ecx, esi, 8
shl esi, 8
movzx eax, byte [eax + 3]
cdq
or esi, eax
or ecx, edx
mov eax, dword [ebp + 0xc]
shld ecx, esi, 8
shl esi, 8
movzx eax, byte [eax + 2]
cdq
or esi, eax
or ecx, edx
mov eax, dword [ebp + 0xc]
shld ecx, esi, 8
shl esi, 8
movzx eax, byte [eax + 1]
cdq
or esi, eax
or ecx, edx
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 8
shld ecx, esi, 8
movzx eax, byte [eax]
cdq
or ecx, edx
shl esi, 8
or esi, eax
push ecx
push esi
call fcn.004ea542
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor dword [edi + ecx*8], eax
xor dword [edi + ecx*8 + 4], edx
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, ebx
jb 0x4eaf1a
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push esi
call fcn.004ea63c
mov eax, dword [ebp - 8]
sub edi, ebx
mov dword [ebp + 0x10], edi
pop ecx
cmp edi, ebx
jae 0x4eaf08
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x4eb1cb
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4eb399
dec esi
lea edx, [eax + 0x14]
push ebx
lea ebx, [eax + 0xc]
shr esi, 3
push edi
mov edi, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], edx
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
lea edi, [edi + 8]
shl eax, 8
or ecx, eax
movzx eax, byte [edi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi - 3]
shl eax, 8
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [edi - 4]
or ecx, eax
movzx eax, byte [edi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi - 1]
shl eax, 0x18
or ecx, eax
mov al, byte [ebx]
and al, 0xdf
mov dword [ebp - 0x8c], ecx
or al, 0x40
mov dword [ebp - 0x98], ecx
mov byte [ebx], al
mov al, byte [edx]
and al, 0xbf
mov dword [ebp - 0xa0], ecx
or al, 0x20
push ebx
mov byte [edx], al
call fcn.004d22a6
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.004d207f
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004cf5b4
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.004d22a6
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.004d207f
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.004cf5b4
mov ecx, dword [ebp - 0x8c]
add esp, 0x30
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
xor edx, ecx
xor ecx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x9c]
xor ebx, eax
mov dword [ebp - 0x8c], ecx
xor eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x88]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x88]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, dword [ebp - 0x94]
mov byte [ecx + 4], dl
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov edx, ecx
sub esi, 1
jne 0x4eb209
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005462f1
leave
ret
Function at 0x4f33e1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push str.kernel32.dll
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
test edi, edi
je 0x4f3477
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4f3477
mov eax, dword [ebp + 8]
mov ecx, 0x14c
cmp ax, cx
jne 0x4f3440
mov dword [esi + 0x1c], 1
jmp 0x4f3477
mov ecx, 0x8664
cmp ax, cx
jne 0x4f3453
mov dword [esi + 0x1c], 2
jmp 0x4f3477
mov ecx, 0x1c4
cmp ax, cx
jne 0x4f3466
mov dword [esi + 0x1c], 3
jmp 0x4f3477
mov ecx, 0xaa64
cmp ax, cx
jne 0x4f3477
mov dword [esi + 0x1c], 4
cmp dword [esi + 0x1c], ebx
jne 0x4f34c3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x28]
test ax, ax
jne 0x4f3498
mov dword [esi + 0x1c], 1
jmp 0x4f34c3
cmp ax, 9
jne 0x4f34a7
mov dword [esi + 0x1c], 2
jmp 0x4f34c3
cmp ax, 5
jne 0x4f34b6
mov dword [esi + 0x1c], 3
jmp 0x4f34c3
cmp ax, 0xc
jne 0x4f34c3
mov dword [esi + 0x1c], 4
push dword [esi + 0x1c]
call fcn.004f36a7
lea edi, [esi + 0x10]
mov dword [esi + 0x18], eax
mov edx, dword [edi + 4]
pop ecx
mov ecx, dword [edi]
mov eax, ecx
or eax, edx
jne 0x4f34f1
push edi
lea eax, [esi + 0x6b]
push 0x40
push eax
call fcn.004f2d2d
mov ecx, dword [edi]
add esp, 0xc
mov edx, dword [edi + 4]
or ecx, edx
jne 0x4f34fc
push edi
call fcn.004f2e19
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f38d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x44]
push 0x10
pop ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0xc]
xor esi, esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
movzx ecx, byte [esi + 0x5fd930]
mov edx, eax
xor edx, ebx
and edx, edi
xor edx, eax
movzx eax, byte [esi + 0x5fd8f0]
add edx, dword [ebp + eax*4 - 0x44]
mov eax, ebx
add edx, dword [esi*4 + 0x5fd970]
mov ebx, edi
add edx, dword [ebp - 0x50]
rol edx, cl
mov ecx, dword [ebp - 0x48]
add edx, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
mov edi, edx
cmp esi, 0x10
jb 0x4f3915
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
cmp esi, 0x20
jae 0x4f39a3
mov ebx, dword [ebp - 0x4c]
movzx ecx, byte [esi + 0x5fd930]
mov edx, ebx
xor edx, edi
and edx, eax
movzx eax, byte [esi + 0x5fd8f0]
xor edx, ebx
add edx, dword [ebp + eax*4 - 0x44]
mov eax, ebx
add edx, dword [esi*4 + 0x5fd970]
mov ebx, edi
add edx, dword [ebp - 0x50]
rol edx, cl
mov ecx, dword [ebp - 0x48]
add edx, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
mov edi, edx
cmp esi, 0x20
jb 0x4f3960
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
cmp esi, 0x30
jae 0x4f39ef
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 0x5fd8f0]
xor edx, ebx
movzx ecx, byte [esi + 0x5fd930]
xor edx, edi
mov eax, dword [ebp + eax*4 - 0x44]
add eax, edx
mov edx, ebx
add eax, dword [esi*4 + 0x5fd970]
mov ebx, edi
add eax, dword [ebp - 0x50]
rol eax, cl
mov ecx, dword [ebp - 0x48]
add eax, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
mov edi, eax
cmp esi, 0x30
jb 0x4f39ae
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
cmp esi, 0x40
jae 0x4f3a3a
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 0x5fd8f0]
not edx
movzx ecx, byte [esi + 0x5fd930]
or edx, edi
xor edx, ebx
mov eax, dword [ebp + eax*4 - 0x44]
add eax, edx
mov edx, ebx
add eax, dword [esi*4 + 0x5fd970]
mov ebx, edi
add eax, dword [ebp - 0x50]
rol eax, cl
mov ecx, dword [ebp - 0x48]
add eax, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
mov edi, eax
cmp esi, 0x40
jb 0x4f39f7
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
add dword [ebx + 8], ecx
add dword [ebx + 0xc], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
add dword [ebx + 0x10], eax
add dword [ebx + 0x14], edx
pop edi
pop esi
pop ebx
call fcn.005462f1
leave
ret 4

Function at 0x4f3b68
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
ret
Function at 0x4f3bee
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f3c04
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.005475e0
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.004f2b67
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4f3c5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4f3c56
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4f3c5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f3c63
mov eax, dword [0x5fd8ac]
lea esp, [ebp - 0xc]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005462f1
leave
ret

Function at 0x4f4249
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 0x4f68d3
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 0x4f693a
push esi
call fcn.004f6bb2
pop ecx
test al, al
jne 0x4f693a
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.004f6b53
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x4f6933
mov al, byte [esi]
push eax
call fcn.004fbe69
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x4f6916
pop edi
movzx eax, bl
pop ebx
jmp 0x4f693c
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4fb1a9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov edx, dword [eax + ecx*4 + 0x158]
push ebx
mov dword [ebp - 0x108], edx
call fcn.004fb556
add esp, 0xc
test eax, eax
je 0x4fb1f5
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x4fb263
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
and dword [esi], 0
mov edi, eax
cmp edi, 0xffffffff
jne 0x4fb261
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x4fb22e
xor edi, edi
mov dword [esi], 0x51
jmp 0x4fb261
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0050c46e
push eax
push str.Send_failure:__s
push ebx
call fcn.004faec1
mov eax, dword [ebp - 0x108]
add esp, 0x18
mov dword [ebx + 0x948], eax
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
lea esi, [edx + 0x18]
mov eax, dword [ecx + 0x298]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4fb60b
cmp dword [ecx + edx*4 + 0x170], 0x4fb0e6
jne 0x4fb60b
xor eax, eax
cmp dword [esi], eax
je 0x4fb597
test edi, edi
je 0x4fb60b
mov ebx, dword [ecx + edx*4 + 0x158]
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00501cd0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4fb60b
test al, 1
je 0x4fb60b
mov ecx, dword [esi]
test ecx, ecx
jne 0x4fb5ee
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4d8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x637f58]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x4fb5df
push 0x1b
pop eax
jmp 0x4fb60d
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x4fb607
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4fb60b
add dword [esi + 8], eax
jmp 0x4fb60b
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4fba33
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4fbb66
push ebx
push edi
push 0x5fe6c0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x5fe6d0
push edi
mov dword [ebp - 8], ebx
call fcn.0057373c
pop ecx
pop ecx
test eax, eax
je 0x4fba89
test ebx, ebx
je 0x4fba80
push 8
jmp 0x4fbaa4
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4fbaa8
test ebx, ebx
je 0x4fbaaf
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fbaaf
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x4fbb62
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4fbb62
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4fbac9
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x637f58]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4fbb5a
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4fbb5a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4fbb03
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4fbb1e
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, ebx
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x4fbb33
mov eax, dword [ebp - 8]
test eax, eax
je 0x4fbb51
push 8
push esi
push ebx
call eax
jmp 0x4fbb58
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x637f5c]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x4fbb69
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4fbbb6
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4fbb9d
push 2
pop eax
jmp 0x4fbc16
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4fbbae
shr eax, 8
cmp al, 2
je 0x4fbbb6
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4fbb98
call fcn.0050db0a
test eax, eax
jne 0x4fbc16
push str.iphlpapi.dll
call fcn.004fba33
mov dword [0x643bfc], eax
pop ecx
test eax, eax
je 0x4fbbf0
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x643bf8]
test eax, eax
cmovne ecx, eax
mov dword [0x643bf8], ecx
push 3
push 2
push 0
push 6
call fcn.0050ce03
add esp, 0x10
test al, al
setne byte [0x6450dc]
push 0x6450e0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005462f1
leave
ret
Function at 0x4fce83
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4fcea4
cmp dword [esi + 0x84], 0
je 0x4fcea4
push 2
push 3
push esi
call fcn.004fc77e
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004fcb0a
pop ecx
test esi, esi
je 0x4fcec4
cmp dword [esi + 0x84], 0
je 0x4fcec4
push 3
push esi
call fcn.004fc7ba
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x50490d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.004fc7f3
push dword [ebp + 8]
mov esi, eax
lea edi, [ebp - 0x14]
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 fcn.00503e62
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.00503e62
add esp, 0xc
mov ebx, eax
jmp 0x504984
lea eax, [ebp - 0x24]
push eax
call fcn.004fc7f3
sub esp, 0xc
lea esi, [ebp - 0x14]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
mov edi, esp
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 fcn.004fc883
add esp, 0x20
test edx, edx
ja 0x5049af
jb 0x504979
cmp eax, 0x3e8
ja 0x5049af
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 4]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x504944
test esi, esi
je 0x50499d
push esi
call fcn.0056237b
pop ecx
test ebx, ebx
je 0x5049a8
push ebx
call fcn.0056237b
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5049bd
push eax
call fcn.0056237b
pop ecx
test ebx, ebx
je 0x5049c8
push ebx
call fcn.0056237b
pop ecx
xor eax, eax
inc eax
jmp 0x5049aa

Function at 0x5058da
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
push 4
pop edi
push esi
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x14], esi
call fcn.0055f7f0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x505993
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x505976
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x505976
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x505976
cmp esi, dword [ebp - 0xc]
jb 0x505976
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
cmp dword [ebp - 4], ebx
je 0x505984
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], ebx
je 0x505993
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5113f2
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x638034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0xf0000040
inc ebx
mov dword [ebp - 0x1c], 8
push ebx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x511434
xor al, al
jmp 0x5114c1
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.005114d0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00511c18
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x511488
xor bl, bl
jmp 0x5114b4
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005462f1
leave
ret