joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bdcc
Capabilities:
Get file size

Disassembly:
mov eax, 0x6085b8
call fcn.00465b38
sub esp, 0x39c
cmp dword [ebp + 8], 0xffffffff
jne 0x44bde9
xor eax, eax
jmp 0x44bf0d
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push 1
push eax
push ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
call esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x14]
push 1
push eax
push edi
push dword [ebp + 8]
call esi
cmp eax, dword [ebp - 0x28]
jne 0x44be43
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
je 0x44befa
mov ecx, 0xdb
xor eax, eax
lea edi, [ebp - 0x3a7]
mov byte [ebp - 0x3a8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x18]
stosb byte es:[edi], al
call fcn.004a8620
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004a8620
xor eax, eax
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3a8]
push eax
push dword [ebp + 8]
call fcn.0043c6ac
add esp, 0x10
test eax, eax
je 0x44bee3
lea eax, [ebp - 0x38]
push ebx
push eax
push ebx
push dword [ebp + 8]
call fcn.0043b5c2
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.004290f5
mov eax, dword [ebp - 0x37c]
mov edi, dword [ebp - 0x380]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], bl
call fcn.004a8750
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004a8750
jmp 0x44be26
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004a8750
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004a8750
lea eax, [ebp - 0x1c]
push ebx
push eax
push dword [ebp - 0x24]
push dword [ebp + 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x44db70
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
mov eax, 0x608814
call fcn.00465b38
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44dc09
push edi
call fcn.00465c4f
test eax, eax
pop ecx
je 0x44dc09
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call esi
cmp eax, 0xffffffff
jne 0x44dc09
push edi
lea ecx, [ebp - 0x10]
call fcn.00480200
and dword [ebp - 4], 0
mov edi, 0x674fbc
push dword [edi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004811d0
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x44dbe5
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00480a70
add edi, 4
cmp edi, 0x674fc4
jl 0x44dbb3
jmp 0x44dbfd
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00480a70
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x45092f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push dword [0x68007c]
mov dword [ebp - 8], esi
call fcn.00450447
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x450954
xor eax, eax
jmp 0x4509f6
push ebx
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
je 0x45096c
cmp eax, 0x80
jne 0x4509e0
push dword [0x680074]
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
cmp ebx, esi
je 0x4509e0
push edi
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x4509d8
push 0x1000
push edi
call fcn.004509f9
pop ecx
test eax, eax
pop ecx
je 0x4509d1
cmp dword [ebp + 8], esi
mov esi, dword [ebp + 0xc]
je 0x4509cd
mov eax, dword [edi]
mov dword [ebp - 8], 1
cmp dword [esi], eax
jbe 0x4509bc
mov dword [esi], eax
push dword [esi]
lea eax, [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.00465c70
add esp, 0xc
mov eax, dword [edi]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop ebx
pop esi
leave
ret

Function at 0x450beb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
xor esi, esi
push edi
push esi
call fcn.00450bb0
pop ecx
push 2
push esi
push 0xffffffffffffffe0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], esi
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x24]
push 0x20
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450c39
push 0xe0
jmp 0x450c44
cmp dword [ebp - 4], 0x20
jae 0x450c48
push 0xe5
push 7
jmp 0x450c85
cmp dword [ebp - 0x24], 0x4f504554
jne 0x450c8c
lea eax, [ebp - 0x1c]
push 0x18
push eax
call fcn.00450c92
cmp dword [ebp - 0x20], eax
pop ecx
pop ecx
jne 0x450c7e
cmp dword [ebp + 0xc], esi
je 0x450c79
lea eax, [ebp - 0x24]
push 0x20
push eax
push dword [ebp + 0xc]
call fcn.00465c70
add esp, 0xc
push 1
pop eax
jmp 0x450c8e
push 0xf4
push 0xc
call fcn.00450b92
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x451a5f
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x608c00
call fcn.00465b38
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x451b2d
push edi
call fcn.00465c4f
test eax, eax
pop ecx
je 0x451b2d
push edi
lea ecx, [ebp + 8]
call fcn.005ece05
push 3
push 0x5c
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.005ed2db
push 2
push 0x66a238
push edi
mov esi, eax
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x451ac5
inc esi
lea ecx, [ebp + 8]
push esi
push 0x5c
call fcn.005ed2db
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x451b3e
lea eax, [ebp - 0x10]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.005e1c4f
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x451af8
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x451afa
test al, 0x10
je 0x451b17
inc esi
lea ecx, [ebp + 8]
push esi
push 0x5c
call fcn.005ed2db
lea ecx, [ebp - 0x10]
mov esi, eax
mov byte [ebp - 4], bl
call fcn.005ecd91
jmp 0x451ac8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.005ecd91
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
push 1
pop eax
jmp 0x451b2f
Function at 0x451f4e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x451f84
push dword [esp + 4]
call fcn.00465c4f
test eax, eax
pop ecx
je 0x451f84
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451f84
test al, 0x10
jne 0x451f84
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x451f80
mov dword [ecx], eax
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x452001
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1003c
call fcn.00466c20
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x452170
cmp word [eax], bx
je 0x452170
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x452170
cmp word [ecx], bx
je 0x452170
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 5
push SysReAllocStringLen
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x452063
push 0x407
push 3
jmp 0x452177
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 0x14], 1
push dword [ebp - 4]
call fcn.00450beb
pop ecx
test eax, eax
pop ecx
je 0x452137
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 1
push ebx
push 5
push 0x40000000
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x45213c
mov esi, dword [ebp - 0x28]
mov ecx, 0x4000
xor eax, eax
lea edi, [ebp - 0x1003b]
mov byte [ebp - 0x1003c], bl
mov dword [ebp - 0x10], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], ebx
mov edi, 0x10000
cmp esi, ebx
je 0x452125
cmp esi, edi
jb 0x4520eb
mov eax, edi
sub esi, edi
jmp 0x4520ef
mov eax, esi
xor esi, esi
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
lea eax, [ebp - 0x1003c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x452125
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x1003c]
push dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4520dd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
jmp 0x45214a
mov dword [ebp - 0x14], ebx
jmp 0x45214a
push 0x423
push 3
call fcn.00450b92
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
pop edi
jne 0x45216b
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004e6d50
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x452180
push 0x3f7
push 1
call fcn.00450b92
pop ecx
xor eax, eax
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x4529c4
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4529d8
push esi
call fcn.00452854
test eax, eax
pop ecx
je 0x4529dd
or eax, 0xffffffff
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
ret
Function at 0x452dac
Capabilities:
Get disk information

Disassembly:
mov eax, 0x608c60
call fcn.00465b38
sub esp, 0x21c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x69dc58
lea ecx, [ebp + 8]
mov ebx, esi
call fcn.00480200
and dword [ebp - 4], 0
push 0xe
push 0x6802cc
push esi
call fcn.00465b57
add esp, 0xc
test eax, eax
je 0x452e52
push 0xe
push 0x6802ac
push esi
call fcn.00465b57
add esp, 0xc
test eax, eax
je 0x452e52
push 0xe
push 0x68028c
push esi
call fcn.00465b57
add esp, 0xc
test eax, eax
je 0x452e52
push 4
push 0x68025c
push esi
call fcn.00466bdc
add esp, 0xc
test eax, eax
je 0x452e4d
push 4
push 0x66bcd8
push esi
call fcn.00466bdc
add esp, 0xc
test eax, eax
je 0x452e4d
push 4
push 0x680280
push esi
call fcn.00466bdc
add esp, 0xc
test eax, eax
jne 0x452e6a
lea ebx, [esi + 8]
jmp 0x452e6a
add esi, 8
lea eax, [ebp + 8]
push esi
push 0x680270
push eax
call fcn.00483a80
mov ebx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.00465c4f
cmp eax, 4
pop ecx
jb 0x452f1f
cmp word [ebx + 2], 0x3a
jne 0x452f1f
cmp word [ebx + 4], 0x5c
lea eax, [ebx + 4]
mov dword [ebp - 0x10], eax
jne 0x452f1f
mov esi, 0x680268
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.0046776f
mov word [ebp - 0x20], ax
pop ecx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x452f1f
and word [ebp - 0x228], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x452f1f
push dword [ebp - 0x10]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x66a948
push eax
push dword [ebp + 0xc]
call fcn.004674a3
add esp, 0x14
jmp 0x452f30
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.0046634f
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00480a70
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x452f4e
Capabilities:
Get disk information

Disassembly:
mov eax, 0x608c74
call fcn.00465b38
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x69dc58
lea ecx, [ebp + 8]
mov ebx, esi
call fcn.0047aad0
and dword [ebp - 4], 0
push 0xe
push str..TSD_VOLUME
push esi
call fcn.004771c0
add esp, 0xc
test eax, eax
je 0x452ff4
push 0xe
push str.__TSD_VOLUME
push esi
call fcn.004771c0
add esp, 0xc
test eax, eax
je 0x452ff4
push 0xe
push str._TSD_VOLUME
push esi
call fcn.004771c0
add esp, 0xc
test eax, eax
je 0x452ff4
push 4
push 0x680310
push esi
call fcn.00466a60
add esp, 0xc
test eax, eax
je 0x452fef
push 4
push 0x680308
push esi
call fcn.00466a60
add esp, 0xc
test eax, eax
je 0x452fef
push 4
push str.._
push esi
call fcn.00466a60
add esp, 0xc
test eax, eax
jne 0x45300c
lea ebx, [esi + 4]
jmp 0x45300c
add esi, 4
lea eax, [ebp + 8]
push esi
push str.__s
push eax
call fcn.0047e290
mov ebx, dword [ebp + 8]
add esp, 0xc
push ebx
call fcn.00467290
cmp eax, 4
pop ecx
jb 0x4530bc
cmp byte [ebx + 1], 0x3a
jne 0x4530bc
cmp byte [ebx + 2], 0x5c
lea eax, [ebx + 2]
mov dword [ebp - 0x18], eax
jne 0x4530bc
mov esi, 0x6802f4
lea edi, [ebp - 0x14]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
lea edi, [ebp - 0x11]
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, byte [ebx]
push eax
call fcn.0046776f
mov byte [ebp - 0x14], al
pop ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x4530bc
and byte [ebp - 0x120], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x11f]
mov dword [ebp - 0x1c], 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MPR.dll_WNetGetConnectionA
test eax, eax
jne 0x4530bc
push dword [ebp - 0x18]
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x6802ec
push eax
push dword [ebp + 0xc]
call fcn.00467400
add esp, 0x14
jmp 0x4530cd
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.00466960
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0047b2e0
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4550bb
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
mov esi, ecx
push 2
call sub.WS2_32.dll_socket
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x4550d7
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
jne 0x4550eb
xor esi, esi
jmp 0x455112
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00466c20
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.005ed410
mov esi, eax
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00466010
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
push esi
mov word [ebp - 0xe], ax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x455156
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x45516c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
mov ecx, edi
call fcn.00455170
lea esp, [ebp - 0x18]
pop edi
pop esi
leave
ret 8
xor eax, eax
jmp 0x455163

Function at 0x455170
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx]
call sub.WS2_32.dll_connect
neg eax
sbb eax, eax
inc eax
ret 8

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

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call sub.WS2_32.dll_send
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

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

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call sub.WS2_32.dll_recv
ret 8

Function at 0x4551ce
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 0xc]
push esi
mov esi, 0x3e8
push edi
xor edx, edx
mov edi, esi
div edi
xor edx, edx
push 1
xor edi, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
div esi
mov eax, dword [ecx]
pop esi
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10c]
push edi
push eax
push edi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 4], edx
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x455223
xor eax, eax
jmp 0x455231
xor ecx, ecx
cmp eax, edi
mov eax, dword [ebp + 8]
setne cl
mov dword [eax], ecx
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x455555
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, esi
push 8
cdq
pop edi
mov ebx, dword [ebp + 0xc]
idiv edi
test ebx, ebx
mov dword [ebp - 4], ecx
mov edi, eax
je 0x4555b1
test edi, edi
jl 0x4555b1
jle 0x45558e
push 0
push dword [ebp + 8]
call fcn.00455750
mov ecx, dword [ebp - 4]
push edi
push ebx
push ebx
call fcn.004556ee
mov eax, edi
shl eax, 3
sub esi, eax
test esi, esi
lea ecx, [eax + ebx]
jle 0x4555ac
mov edx, dword [ebp + 8]
mov eax, ecx
sub edx, ecx
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x4555a3
push 1
pop eax
jmp 0x4555b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4555ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, esi
push 8
cdq
pop edi
mov ebx, dword [ebp + 0xc]
idiv edi
test ebx, ebx
mov dword [ebp - 4], ecx
mov edi, eax
je 0x455616
test edi, edi
jl 0x455616
jle 0x4555f3
push 1
push dword [ebp + 8]
call fcn.00455750
mov ecx, dword [ebp - 4]
push edi
push ebx
push ebx
call fcn.004556ee
mov eax, edi
shl eax, 3
sub esi, eax
test esi, esi
lea ecx, [eax + ebx]
jle 0x455611
mov edx, dword [ebp + 8]
mov eax, ecx
sub edx, ecx
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
dec esi
jne 0x455608
push 1
pop eax
jmp 0x455618
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x455750
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
xor edx, edx
movzx eax, byte [edx + 0x620bf4]
mov esi, dword [ebp + 8]
mov ecx, eax
sar ecx, 3
and eax, 7
mov cl, byte [ecx + esi]
test byte [eax*2 + 0x620b84], cl
setne al
mov byte [ebp + edx - 0x78], al
inc edx
cmp edx, 0x38
jl 0x455761
and dword [ebp + 8], 0
mov dword [ebp - 4], 0x1e
cmp dword [ebp + 0xc], 1
jne 0x4557a0
mov eax, dword [ebp - 4]
jmp 0x4557a5
mov eax, dword [ebp + 8]
add eax, eax
and dword [ebp + eax*4 - 0xf4], 0
and dword [ebp + eax*4 - 0xf8], 0
lea edx, [ebp + eax*4 - 0xf4]
lea esi, [ebp + eax*4 - 0xf8]
mov eax, dword [ebp + 8]
xor ecx, ecx
movzx eax, byte [eax + 0x620c2c]
mov edi, eax
cmp edi, 0x1c
jge 0x4557dc
mov bl, byte [ebp + edi - 0x78]
jmp 0x4557e3
mov bl, byte [ebp + edi - 0x94]
mov byte [ebp + ecx - 0x40], bl
inc ecx
inc edi
cmp ecx, 0x1c
jl 0x4557d1
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x4557fe
mov cl, byte [ebp + eax - 0x78]
jmp 0x455805
mov cl, byte [ebp + eax - 0x94]
mov byte [ebp + edi - 0x40], cl
inc edi
inc eax
cmp edi, 0x38
jl 0x4557f3
xor edi, edi
mov ecx, 0x620b94
movzx ebx, byte [edi + 0x620c3c]
lea eax, [edi + 0x620c54]
cmp byte [ebp + ebx - 0x40], 0
je 0x45582f
mov ebx, dword [ecx]
or dword [esi], ebx
movzx eax, byte [eax]
cmp byte [ebp + eax - 0x40], 0
je 0x45583d
mov eax, dword [ecx]
or dword [edx], eax
add ecx, 4
inc edi
cmp ecx, 0x620bf4
jl 0x455817
sub dword [ebp - 4], 2
inc dword [ebp + 8]
cmp dword [ebp - 4], 0xfffffffe
jg 0x455795
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xf8]
push eax
call fcn.00455870
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45612d
Capabilities:
Create directory
Get file attributes

Disassembly:
mov eax, 0x608f74
call fcn.00465b38
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x456228
push ebx
call fcn.00465c4f
test eax, eax
pop ecx
je 0x456228
push ebx
lea ecx, [ebp + 8]
call fcn.005ece05
and dword [ebp - 4], 0
push 3
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
mov edi, 0x66bcd8
push 4
push edi
push ebx
mov esi, eax
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x45619b
push edi
call fcn.00465c4f
pop ecx
push eax
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
inc eax
push eax
jmp 0x4561b1
push 2
push 0x66a238
push ebx
call fcn.00465b57
add esp, 0xc
test eax, eax
jne 0x4561bd
inc esi
push esi
push 0x5c
lea ecx, [ebp + 8]
call fcn.005ed2db
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x456239
lea eax, [ebp - 0x10]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.005e1c4f
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, edi
jne 0x4561f1
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4561f3
test al, 0x10
je 0x456211
inc esi
lea ecx, [ebp + 8]
push esi
push 0x5c
call fcn.005ed2db
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.005ecd91
jmp 0x4561c0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.005ecd91
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [ebp + 8]
call fcn.004cccf0
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call fcn.005ecd91
push 1
pop eax
jmp 0x45622a

Function at 0x4568bd
Capabilities:
Delete service

Disassembly:
push ecx
push ebp
call fcn.004d8390
test eax, eax
je 0x4568da
xor ebp, ebp
cmp dword [esp + 0xc], ebp
jne 0x4568e1
mov dword [0x6a0034], 0x57
xor eax, eax
jmp 0x45696a
push ebx
push esi
push edi
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x1c], ebp
xor ebx, ebx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebp
je 0x45692d
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebx, eax
cmp ebx, ebp
je 0x45692d
push 0xf01ff
push dword [esp + 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebp
je 0x45692d
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], ebp
mov dword [0x6a0034], ebp
jne 0x456944
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x6a0034], eax
cmp esi, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x456951
push esi
call ebp
test ebx, ebx
je 0x45695c
push ebx
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
test edi, edi
je 0x456963
push edi
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret