joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e2c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44e2f3
push esi
call fcn.0045c660
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44e2ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44e379
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44e362
mov eax, dword [esi + 8]
test eax, eax
je 0x44e317
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44e35e
cmp eax, 2
je 0x44e362
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44e30a
cmp eax, 3
je 0x44e33d
cmp eax, 1
jne 0x44e30a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44e30a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44e30a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044e3a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44e388
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044e3a0
add esp, 4
pop esi
ret

Function at 0x44ec10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x44ec31
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x44ec31
mov eax, dword [eax + 0x44]
test eax, eax
je 0x44ec31
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess_1]

Function at 0x476225
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
cmp dword [0x740a1d], 0
jne 0x47627b
cmp dword [0x740a11], 0
jle 0x476267
push 2
push dword [0x740a11]
call dword [sym.imp.user32.dll_GetAncestor]
nop
nop
nop
nop
mov dword [0x740a1d], eax
jmp 0x47627b
push 0x740a1d
push 0x47639e
call dword [sym.imp.user32.dll_EnumWindows]
nop
nop
nop
nop
mov eax, dword [0x740a1d]
jmp 0x476285
mov esp, ebp
pop ebp
ret
Function at 0x4a7d24
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
fild dword [ebp + 0xc]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fsub qword [0x6d4565]
fstp qword [ebp - 0x18]
push 0x80000601
push 0x40100000
push 0
push 0x80000601
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
mov ebx, 0x48
call fcn.00639a60
add esp, 0x1c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
fld qword [ebp - 0x28]
call fcn.0046a036
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a7da2
cmp dword [ebp - 4], 1
je 0x4a7da2
xor eax, eax
jmp 0x4a7da7
mov eax, 1
test eax, eax
je 0x4a7e0c
mov ebx, dword [ebp + 8]
push dword [ebx]
push 4
push 0
push 4
push 0
push 0xffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
nop
nop
nop
nop
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.004a7e42
jmp 0x4a7e3c
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push getpeername
push 0
push 0x6d456d
push 3
mov ebx, 0x300
call fcn.00639a90
add esp, 0x28
mov esp, ebp
pop ebp
ret 0xc
Function at 0x55e31b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x55e347
mov eax, 0x6cf8d6
push eax
push 1
mov ebx, 0x194
call fcn.006391f0
add esp, 0x10
mov dword [ebp - 4], eax
push 0x40
push 0x1000
push dword [ebp - 4]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
nop
nop
nop
nop
mov dword [ebp - 8], eax
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x55e38b
add eax, 8
push eax
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_RtlMoveMemory]
nop
nop
nop
nop
mov eax, dword [ebp - 8]
jmp 0x55e3a1
mov esp, ebp
pop ebp
ret 4

Function at 0x6393c0
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00647fbc
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x63942a
push esi
lea edi, [eax + 0x400]
call fcn.00647fe5
push edi
call fcn.00647fbc
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x6393fa
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x639446
push ecx
push esi
call fcn.0063add0
add esp, 8
mov ebx, eax
push esi
call fcn.00647fe5
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x639c90
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x639cae
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x639ca3
pop esi
ret

Function at 0x63a100
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x63a169
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00638f10
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x63a3d0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x63a3fb
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x63a423
mov byte [esp + 0xc], al
jmp 0x63a423
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x63a441
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x63a453
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00638f10
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x63a4d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x63a562
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x63a554
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x63a54c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x63a515
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x63a720
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x63a770
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x63a765
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0063add0
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x63a780
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x63a803
push ebp
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x63a803
push ebx
push edi
call dword [sym.imp.user32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x63a7f6
push ebx
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.user32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.user32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x652db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68d480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov byte [esi], al
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov cl, byte [esp + 0x2c]
mov dword [esp + 0x20], eax
mov byte [esp + 8], cl
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push ecx
push 1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x38], edx
call fcn.004421f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edx
push eax
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004421f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edx
push eax
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004421f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edx
push eax
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004421f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edx
push eax
push 1
push ecx
lea ecx, [esp + 0x14]
call fcn.004421f0
mov eax, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.00652ec0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0067e62a
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 0x18
Function at 0x657c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68d6a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.00657d60
test al, al
jne 0x657ce7
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x657cd2
mov al, byte [ecx - 1]
cmp al, bl
je 0x657cc8
cmp al, 0xff
je 0x657cc8
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.0067e62a
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.00650ef0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.00658ae0
mov ecx, eax
call fcn.00651410
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00651240
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x657d3e
mov al, byte [ecx - 1]
cmp al, bl
je 0x657d34
cmp al, 0xff
je 0x657d34
dec al
mov byte [ecx - 1], al
jmp 0x657d3e
dec ecx
push ecx
call fcn.0067e62a
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x6588c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x68d78b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [0x6afbec]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
push ebx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00653490
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x6589b5
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x6589b5
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x658975
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x658968
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.0065b9f0
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.0065a450
jmp 0x6589e0
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x6589e0
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.00658fa0
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
jmp 0x6589e0
mov ecx, esi
call fcn.0065a450
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea edx, [ecx + 0x20]
mov dword [esi + 0x1c], edx
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x6589e0
lea eax, [esp + 0xc]
push eax
call fcn.0065b9f0
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x658a0c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x658a03
cmp al, 0xff
je 0x658a03
dec al
mov byte [ecx], al
jmp 0x658a0c
push ecx
call fcn.0067e62a
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x65e630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68da68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x28]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
call fcn.00650060
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jae 0x65e680
push ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00650280
mov esi, dword [esp + 0x2c]
mov dl, byte [esp + 0xc]
lea ecx, [esp + 0xc]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x6afbec]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00653490
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x65e6db
mov al, byte [ecx - 1]
cmp al, bl
je 0x65e6d1
cmp al, 0xff
je 0x65e6d1
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.0067e62a
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x65f160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68db13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.006794dd
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.0067937a
mov edi, dword [0x78712c]
lea ecx, [esp + 8]
call fcn.0067937a
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x65f1ac
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.00679416
lea ecx, [esp + 0xc]
call fcn.00679416
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.0065f270
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x6afd20
jne 0x65f21a
mov eax, 4
test cl, 2
jne 0x65f221
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x662f00
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x755b54]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x662f13
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x662f54
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x755bfc]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x662f86
mov bl, byte [esp + ecx + 0x4c]
jmp 0x662f8a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x662f7b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x662fa8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x662fac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x662f9d
xor ecx, ecx
mov eax, 0x755b64
xor ebx, ebx
mov bl, byte [ecx + 0x755c0c]
cmp byte [esp + ebx + 0x14], 0
je 0x662fd7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x755c24]
cmp byte [esp + ebx + 0x14], 0
je 0x662fee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x662fbe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x662f47
lea edx, [esp + 0x84]
push edx
call fcn.00663030
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x664640
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x6646a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x6646a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x664687
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x664a30
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x664a68
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x665690
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x6656d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x665b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x68df00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00665700
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00665780
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00665780
lea ecx, [esi + 0xc]
call fcn.0067e84b
lea ecx, [esi + 0x10]
call fcn.0067e84b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00666d10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00666d10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00666d10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0067e8c0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0067e8c0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret