joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005fac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x1005fb08
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1005fb08
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1005fb08
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1005fae7
mov dword [esi], 0
push ecx
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
test esi, esi
je 0x1005fafb
mov dword [esi], eax
sub eax, edi
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffffe
pop edi
pop ebp
ret
or eax, 0xffffffff
pop edi
pop ebp
ret

Function at 0x1005fb90
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x1005fc03
test esi, esi
je 0x1005fc03
push edi
push 0
push eax
lea edi, [ebp - 0x204]
call fcn.1005fc80
push 0
push esi
lea edi, [ebp - 0x404]
call fcn.1005fc80
add esp, 0x10
push 0
mov eax, edi
push eax
lea ecx, [ebp - 0x204]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x277a
pop esi
call fcn.1015eea7
mov esp, ebp
pop ebp
ret

Function at 0x1005fc20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1005fc4d
mov eax, 0x277a
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
push edi
push 0
push eax
lea edi, [ebp - 0x204]
call fcn.1005fc80
add esp, 8
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1005fe20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x10415990]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.10061600
mov edi, eax
mov al, byte [edi]
add esp, 4
mov dword [esp + 0x14], edi
mov esi, edi
cmp al, 0x61
jb 0x1005fe55
cmp al, 0x7a
jbe 0x1005fe5d
cmp al, 0x41
jb 0x1005feb1
cmp al, 0x5a
ja 0x1005feb1
cmp byte [edi + 1], 0x3a
jne 0x1005feb1
cmp byte [edi + 2], 0x5c
jne 0x1005feb1
mov cl, byte [edi + 2]
lea esi, [edi + 1]
mov byte [esp + 0x10], al
mov al, byte [esi]
lea edx, [esp + 0x18]
mov byte [esp + 0x11], al
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x1a], cl
add esi, 2
mov byte [esp + 0x1b], 0
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 8
test eax, eax
jns 0x1005feb1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
test al, al
jne 0x1005fed0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
cmp al, 0x2f
je 0x1005fed8
cmp al, 0x5c
jne 0x1005fee0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1005fed0
cmp byte [esi], 0
je 0x1005fef5
mov al, byte [esi]
cmp al, 0x2f
je 0x1005fef5
cmp al, 0x5c
je 0x1005fef5
inc esi
cmp byte [esi], 0
jne 0x1005fee5
movzx eax, byte [esi]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1005ff03
mov byte [esi], 0
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.MSVCR100.dll__stat64i32]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x1005ff54
mov edx, dword [esp + 0x1e]
and edx, 0xf000
cmp edx, 0x4000
je 0x1005ffba
mov esi, dword [sym.imp.MSVCR100.dll__errno]
call esi
push 3
mov dword [eax], 0x14
call dword [sym.imp.WS2_32.dll_WSASetLastError]
call esi
mov dword [eax], 3
or ebx, 0xffffffff
jmp 0x10060006
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 2
jne 0x10060006
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1005ffb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp edi, 0xb7
jne 0x10060002
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll__stat64i32]
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x10060002
mov edx, dword [esp + 0x1e]
and edx, 0xf000
cmp edx, 0x4000
jne 0x1005ffeb
mov edi, dword [esp + 0x14]
jmp 0x1005ffba
xor ebx, ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005ffc4
mov byte [esi], al
cmp byte [esi], 0
je 0x10060006
lea esp, [esp]
mov al, byte [esi]
cmp al, 0x2f
je 0x1005ffda
cmp al, 0x5c
jne 0x1005ffe0
inc esi
cmp byte [esi], 0
jne 0x1005ffd0
cmp byte [esi], 0
jne 0x1005fee5
jmp 0x10060006
push 0x14
call dword [sym.imp.WS2_32.dll_WSASetLastError]
call dword [sym.imp.MSVCR100.dll__errno]
mov dword [eax], 0x14
or ebx, 0xffffffff
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x10060d60
Capabilities:
Encode data using xor

Disassembly:
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10060d65
sub eax, edx
mov edx, eax
mov ecx, edx
shr ecx, 5
inc ecx
xor eax, 0x83885780
cmp edx, ecx
jb 0x10060d9e
push ebx
push edi
movzx edi, byte [esi + edx - 1]
mov ebx, eax
shl ebx, 5
add edi, ebx
mov ebx, eax
shr ebx, 2
add edi, ebx
sub edx, ecx
xor eax, edi
cmp edx, ecx
jae 0x10060d81
pop edi
pop ebx
ret
Function at 0x10062790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x828
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
xor ecx, ecx
add esp, 4
cmp edi, ecx
jne 0x100627af
xor eax, eax
pop edi
pop ebp
ret
lea eax, [edi + 0xb4]
mov edx, 0x44
lea ebx, [ebx]
mov dword [eax - 4], ecx
cmp eax, ecx
je 0x100627d8
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
add eax, 0x1c
dec edx
jne 0x100627c0
mov edx, dword [ebp + 8]
push esi
cmp edx, ecx
je 0x1006284b
push ebx
lea ebx, [edi + 4]
cmp ebx, ecx
je 0x1006281a
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100627f3
sub eax, esi
mov esi, eax
cmp esi, 0x40
jl 0x10062808
mov esi, 0x3f
push esi
push edx
push ebx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp + 8]
add esp, 0xc
mov byte [esi + ebx], 0
lea ebx, [edi + 0x44]
test ebx, ebx
je 0x1006284a
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10062826
sub eax, esi
mov esi, eax
cmp esi, 0x40
jl 0x1006283b
mov esi, 0x3f
push esi
push edx
push ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
pop ebx
push 0
push 0
push 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x8c], eax
test eax, eax
je 0x100628a2
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x90], eax
test eax, eax
je 0x100628a2
lea eax, [edi + 0x88]
push eax
push 0
push edi
push 0x100631b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x84], eax
test eax, eax
jne 0x100628df
mov eax, dword [edi + 0x8c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100628b5
push eax
call esi
mov eax, dword [edi + 0x90]
test eax, eax
je 0x100628c2
push eax
call esi
mov eax, dword [edi + 0x84]
test eax, eax
je 0x100628cf
push eax
call esi
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop esi
xor eax, eax
pop edi
pop ebp
ret
pop esi
mov eax, edi
pop edi
pop ebp
ret

Function at 0x10063de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0x400
mov byte [ebp - 0x44], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push 0x20019
push 0
push 0x104464e8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10063e67
lea edx, [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x104464fc
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10063e67
lea eax, [ebp - 0x44]
push eax
mov ecx, esi
call fcn.10063d90
add esp, 4
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x10063e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push 0x3f
lea eax, [ebp - 0x43]
push esi
push eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov byte [ebp - 0x44], 0
call sub.MSVCR100.dll_memset
mov eax, ebx
add esp, 0xc
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10063eb7
sub eax, esi
je 0x10063ef0
push edi
mov edi, ebx
lea edx, [ebp - 0x44]
sub edi, edx
lea ebx, [ebx]
lea eax, [ebp + ecx - 0x44]
mov dl, byte [edi + eax]
add dl, 2
mov byte [eax], dl
mov eax, ebx
inc ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10063ee2
sub eax, esi
cmp ecx, eax
jb 0x10063ed0
pop edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicroSys
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
pop ebx
test eax, eax
jne 0x10063f33
push 0x20
lea edx, [ebp - 0x44]
push edx
push 1
push eax
mov eax, dword [ebp - 0x48]
push str.Reference
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x10066780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x208], ecx
test eax, eax
jne 0x100667ae
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
xor edx, edx
push esi
push edi
cmp edx, 0x10445680
je 0x100667de
push edx
push eax
lea edi, [ebp - 0x204]
call fcn.1005fc80
mov eax, edi
push 0x10445680
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x100667f0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.MSVCR100.dll_ftell]
push ebx
push esi
call edi
push 2
push 0
push esi
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_fseek]
push esi
call edi
push 0
push ebx
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0x20
cmp edi, 0xfffffffc
jae 0x10066829
lea eax, [edi + 3]
and eax, 0xfffffffc
add eax, 8
jmp 0x1006682b
mov eax, edi
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10066858
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1006686a
push esi
push edi
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 0x208]
add esp, 4
test eax, eax
je 0x10066880
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1006a180
Capabilities:
Encode data using xor

Disassembly:
mov ecx, eax
test eax, eax
je 0x1006a1a4
push esi
push edi
movzx esi, byte [ecx + edx - 1]
dec ecx
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
xor eax, esi
test ecx, ecx
jne 0x1006a188
pop edi
pop esi
ret
Function at 0x1006dff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [eax]
mov edx, dword [eax + 4]
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x1006e048
push edi
inc cl
movzx edi, cl
mov ecx, dword [eax + edi*4 + 8]
add dl, cl
mov dword [ebp - 8], ecx
movzx ecx, dl
mov edx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + ecx*4 + 8]
mov dword [eax + edi*4 + 8], ecx
add cl, dl
movzx ecx, cl
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
mov dword [eax + edi*4 + 8], edx
mov dl, byte [eax + ecx*4 + 8]
mov ecx, dword [ebp + 8]
xor byte [esi + ecx], dl
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, edi
cmp esi, dword [ebp + 0xc]
jl 0x1006e004
pop edi
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1006f860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
call esi
mov dword [0x1045b900], eax
cmp eax, ebx
je 0x1006f8a9
push ebx
push ebx
push ebx
call esi
mov dword [0x1045b904], eax
cmp eax, ebx
jne 0x1006f8bf
mov eax, dword [0x1045b900]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1045b900], ebx
mov eax, 0x2791
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
push 0xd8
push ebx
push 0x1045cb40
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edi, edi
mov esi, 0x1045cb40
lea esp, [esp]
inc edi
push edi
push str.l_engine__d
lea ecx, [ebp - 0x48]
push 0x40
push ecx
call fcn.1005f880
push esi
lea edx, [ebp - 0x48]
push 0x1006ea10
push edx
call fcn.10063770
add esp, 0x1c
mov dword [esi], eax
cmp eax, ebx
je 0x1006f8a9
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
add esi, 0x24
cmp esi, 0x1045cc18
jl 0x1006f8e0
push 0x40
mov edi, 0x1045cc40
mov dword [0x1045cc40], eax
mov dword [0x1045cc44], eax
mov dword [0x1045cc48], eax
call fcn.10060da0
xor eax, eax
add esp, 4
push 0x40
mov edi, 0x1045cc30
mov dword [0x1045cc30], eax
mov dword [0x1045cc34], eax
mov dword [0x1045cc38], eax
call fcn.10060da0
xor eax, eax
add esp, 4
push 0x40
mov edi, 0x1045cc20
mov dword [0x1045cc20], eax
mov dword [0x1045cc24], eax
mov dword [0x1045cc28], eax
call fcn.10060da0
xor eax, eax
add esp, 4
cmp eax, 0x10443aa0
je 0x1006f9e7
xor ecx, ecx
cmp ecx, str.SYS_MSG_START
je 0x1006f9e7
mov edx, dword [0x104580a4]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10443aa0
push 0x104580b4
call fcn.10061070
add esp, 8
cmp eax, ebx
je 0x1006f9db
push 0x1002
push str.SYS_MSG_START
push eax
call fcn.100696f0
add esp, 0xc
mov eax, dword [0x104580a4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1015eea7
mov esp, ebp
pop ebp
ret
Function at 0x1006fba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
test eax, eax
je 0x1006fcbb
cmp dword [ebp + 0x10], 0
je 0x1006fcbb
cmp dword [ebp + 0xc], 0
je 0x1006fcbb
test ebx, ebx
je 0x1006fcbb
push esi
push edi
push ebx
push 0x1006fb20
push eax
call fcn.1006d530
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1006fc44
mov edi, dword [sym.imp.MSVCR100.dll_malloc]
push 0xd8
call edi
mov esi, eax
add esp, 4
test esi, esi
je 0x1006fc3a
mov eax, dword [ebp + 0xc]
push 0x80
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.10061420
push 0x40
lea edx, [esi + 0x90]
push ebx
push edx
call fcn.10061420
push 0x10
call edi
add esp, 0x1c
test eax, eax
je 0x1006fc2a
mov dword [eax + 4], esi
mov edi, eax
test eax, eax
jne 0x1006fc56
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
mov eax, 0x2775
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
mov esi, dword [edi + 4]
push edi
push ebx
call fcn.1006d400
add esp, 8
jmp 0x1006fc59
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp + 0x10]
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
mov dword [esi], eax
mov dword [esi + 4], edx
lea ecx, [esi + 8]
jae 0x1006fc7b
mov dword [ecx], 0xffffffff
jmp 0x1006fc7f
add eax, edx
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
push ecx
push 0x1006fb80
push ebx
mov dword [esi + 0xc], edx
call fcn.1006d530
add esp, 0xc
test eax, eax
je 0x1006fcaa
push eax
push edi
push ebx
call fcn.1006d390
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push edi
push ebx
call fcn.1006d4b0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, 0x277a
pop ebx
pop ebp
ret

Function at 0x1006ff50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.MSVCR100.dll__time64]
mov ecx, dword [ebp + 8]
add esp, 4
lea edx, [ebp - 0x18]
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], 0x102d5d30
mov dword [ebp - 8], fcn.10070300
xor eax, 0x10
mov ecx, 0x10
lea edx, [ebp - 5]
push edi
movzx esi, byte [edx + ecx - 0x10]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
dec ecx
xor eax, esi
cmp ecx, 1
jae 0x1006ff92
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1015eea7
mov esp, ebp
pop ebp
ret

Function at 0x10074b30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, edx
shr ecx, 5
mov eax, edx
xor eax, dword [ebp + 8]
inc ecx
cmp edx, ecx
jb 0x10074b61
push ebx
push edi
movzx edi, byte [esi + edx - 1]
mov ebx, eax
shl ebx, 5
add edi, ebx
mov ebx, eax
shr ebx, 2
add edi, ebx
sub edx, ecx
xor eax, edi
cmp edx, ecx
jae 0x10074b44
pop edi
pop ebx
pop ebp
ret
Function at 0x10074ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0xc]
mov ebx, dword [esi + 0x30]
mov eax, edi
shr eax, 5
inc eax
xor ebx, edi
mov dword [ebp - 8], esi
mov ecx, edi
mov dword [ebp - 4], edi
cmp edi, eax
jb 0x10074ce9
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx - 1]
mov edx, ebx
shl edx, 5
add ecx, edx
mov edx, ebx
shr edx, 2
add ecx, edx
xor ebx, ecx
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, eax
jae 0x10074cc5
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov dword [ebp - 4], eax
test eax, eax
je 0x10074d6d
lea esp, [esp]
cmp ebx, dword [eax + 8]
jne 0x10074d64
cmp edi, dword [eax + 0xc]
jne 0x10074d64
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x10074d2e
mov eax, dword [esi]
cmp eax, dword [edx]
jne 0x10074d5e
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x10074d17
mov eax, dword [ebp - 4]
test ecx, ecx
je 0x10074dd9
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10074d5e
cmp ecx, 1
jbe 0x10074dd6
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10074d5e
cmp ecx, 2
jbe 0x10074dd6
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x10074dd6
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10074d00
mov eax, dword [esi + 0x20]
cmp dword [esi + 0x1c], eax
jb 0x10074d8b
cmp eax, 0x3ffffffe
jg 0x10074d8b
mov ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
call fcn.10074b70
add esp, 8
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec edx
and edx, ebx
lea eax, [eax + edx*4]
push eax
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x11]
push ecx
push 4
call fcn.100766e0
mov edx, dword [ebp + 0xc]
mov esi, eax
push edi
push edx
lea eax, [esi + 0x10]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
mov byte [esi + 6], 0
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0x18
mov byte [esi + edi + 0x10], 0
inc dword [eax + 0x1c]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov cl, byte [eax + 5]
mov dl, byte [edx + 0x34]
xor cl, 3
xor dl, 3
test cl, dl
jne 0x10074dd0
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10079390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
test esi, esi
jne 0x100793a5
mov eax, 0x277a
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x104580d8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push closesocket
push eax
call edi
push esi
push 0x104580e8
call fcn.10061070
mov esi, eax
add esp, 8
test esi, esi
je 0x1007943f
cmp dword [esi + 0x4c], 0
je 0x1007943f
mov ecx, dword [esi + 0x50]
push closesocket
push ecx
call edi
lea edx, [esi + 8]
push 0x1044279c
push edx
call fcn.1005f990
mov edi, eax
add esp, 8
test edi, edi
je 0x10079435
lea eax, [ebp - 4]
push ebx
push eax
mov eax, dword [esi + 0x48]
call fcn.100882d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1007942a
mov eax, dword [ebp - 4]
test eax, eax
je 0x10079420
push edi
push eax
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop ebx
mov ecx, dword [esi + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [0x104580d8]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10079ab0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push edi
mov edi, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
cmp esi, eax
je 0x10079bba
mov ecx, dword [0x1045b910]
mov edx, dword [0x1045b8f0]
push eax
push eax
mov eax, dword [esi]
push eax
push esi
push str.connected___x__x
push 0x1bf
push 0x10440d10
push ecx
push 6
push edx
call fcn.10062060
add esp, 0x28
cmp dword [esi + 0x2c], 6
jne 0x10079b07
mov dword [esi + 0x34], edi
jmp 0x10079b15
mov dword [esi + 0x34], 5
mov dword [esi + 0x70], 1
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [ebp - 4]
push edx
push 0x80
push 0xffff
push eax
mov dword [esi + 0x6c], 1
mov dword [ebp - 4], 1
call edi
mov edx, dword [esi]
push 4
lea ecx, [ebp - 8]
push ecx
push 1
push 6
push edx
mov dword [ebp - 8], 1
call edi
mov edx, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 4
push 6
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x1045b910]
push 0
push eax
mov eax, dword [0x1045b8f0]
push esi
push ecx
push str.mss_d__x__x
push 0x1da
push 0x10440d5c
push edx
push 6
push eax
call fcn.10062060
add esp, 0x28
cmp dword [esi + 0x2c], 6
je 0x10079bba
mov eax, dword [esi + 0x80]
test eax, eax
je 0x10079bba
mov ecx, dword [esi + 0x84]
push 0
push 0
push 1
push ecx
call eax
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret