joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b3a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
push eax
xor eax, eax
pop eax
je 0x43b3b9
invalid
mov bl, byte [ebp + 0xc]
movsx eax, bl
push eax
call fcn.0042b7d4
add esp, 4
test eax, eax
jne 0x43b420
mov ebx, dword [ebp + 8]
mov cl, byte [ebp + 0xf]
mov edi, 0x4c05e4
push 1
mov byte [ebx], cl
or ecx, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp + 0xc], esi
call fcn.00401850
test al, al
je 0x43b516
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x4c05e4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43b50c
mov al, byte [0x4c05e4]
mov edx, dword [0x4b7af4]
mov byte [ebp - 0x10c], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x10c]
push esi
push esi
rep stosd dword es:[edi], eax
push esi
push esi
mov dword [ebp - 4], edx
push esi
lea ecx, [ebp - 0x10c]
push 0x104
lea edx, [ebp - 4]
push ecx
push edx
mov byte [ebp - 4], bl
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x43b4c2
mov al, byte [ebp + 0xf]
mov edi, 0x4c05e4
mov byte [ebx], al
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp + 0xc], esi
call fcn.00401850
test al, al
je 0x43b516
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x4c05e4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x43b50c
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [ebp + 0xf]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov byte [ebx], dl
mov dword [ebp + 0xc], esi
call fcn.00401850
test al, al
je 0x43b516
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
lea esi, [ebp - 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43b850
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push eax
xor eax, eax
pop eax
je 0x43b85f
invalid
mov bl, byte [ebp + 8]
movsx eax, bl
push eax
call fcn.0042b7d4
add esp, 4
test eax, eax
jne 0x43b87f
or eax, 0xffffffff
or edx, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4b7af4]
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 4]
push 0
mov dword [ebp - 4], ecx
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x43b8ae
or eax, 0xffffffff
or edx, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x442d20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push edi
push eax
xor eax, eax
pop eax
je 0x442d2f
invalid
mov edx, dword [ebp + 8]
test edx, edx
jne 0x442d42
mov eax, 0xc000000d
pop edi
mov esp, ebp
pop ebp
ret 8
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x30]
push 4
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], eax
push 0x28
lea eax, [ebp - 8]
push ecx
push eax
push edx
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x442d70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push eax
xor eax, eax
pop eax
je 0x442d7e
invalid
mov eax, dword [ebp + 8]
test eax, eax
jne 0x442d90
mov eax, 0xc000000d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
push 0x14
lea ecx, [ebp - 8]
push 8
lea edx, [ebp - 0x10]
push ecx
push edx
push eax
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x442dc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push eax
xor eax, eax
pop eax
je 0x442dce
invalid
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x442de0
mov eax, 0xc000000d
mov esp, ebp
pop ebp
ret 4
push eax
xor eax, eax
pop eax
je 0x442de8
invalid
push 0xd
lea eax, [ebp + 0xb]
push 1
lea edx, [ebp - 8]
push eax
push edx
push ecx
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntdll.dll_ZwSetInformationFile]
mov esp, ebp
pop ebp
ret 4
Function at 0x449be0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x449c06
invalid
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x449c1f
mov dword [0x104d5000], 0x104d5000
mov al, byte [0x4cb878]
push ebx
lea ecx, [ebp - 0x20]
mov byte [0x4cbdf1], 1
mov byte [ebp - 0x20], al
call fcn.004017b0
mov ecx, dword [0x492cd4]
push ecx
push ebx
push 0x4cb878
lea ecx, [ebp - 0x20]
call fcn.004094e0
mov edi, 0x4b3b88
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x492cd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ecx, dword [ebp - 0x18]
sub edx, ecx
cmp edx, esi
ja 0x449c74
call fcn.0047ac24
cmp esi, ebx
jbe 0x449cb4
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
lea ebx, [eax + esi]
push ebx
call fcn.00401850
test al, al
je 0x449cb4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov esi, 0x4b3b88
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
call fcn.004099d0
mov eax, dword [0x492cd4]
lea ecx, [ebp - 0x20]
push eax
push 0
push 0x4cbcb0
call fcn.00412f10
mov edi, 0x4b3b88
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x492cd4]
sub ecx, edx
cmp ecx, esi
ja 0x449cee
call fcn.0047ac24
test esi, esi
jbe 0x449d2f
mov edx, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
lea ebx, [edx + esi]
push ebx
call fcn.00401850
test al, al
je 0x449d2f
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov esi, 0x4b3b88
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [ecx + ebx], 0
mov edx, dword [0x492cd4]
lea ecx, [ebp - 0x20]
push edx
push 0
push 0x4cbd70
call fcn.00412f10
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x449d51
mov eax, 0x48e810
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x449d69
mov eax, 0x48e810
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x449da2
mov al, byte [ecx - 1]
test al, al
je 0x449d98
cmp al, 0xff
je 0x449d98
dec al
mov byte [ecx - 1], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.00486808
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a0a5
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
mov dword [ebp - 0x34], 0x10
xor eax, dword [edi]
mov dword [ebp - 0x2c], eax
push 0
push eax
push ebx
push 0
call fcn.0044a0f0
add esp, 0x10
xor eax, esi
mov esi, dword [ebp - 0x2c]
add edi, 4
dec dword [ebp - 0x34]
jne 0x44a0bc
mov ecx, dword [ebx + 0x44]
xor ecx, eax
xor esi, dword [ebx + 0x48]
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
ret

Function at 0x44a225
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 0x4a9934
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 0x4c]
mov edx, pe_nt_image_headers32
mov esi, dword [eax]
mov dword [ecx], esi
add eax, 4
add ecx, 4
dec edx
jne 0x44a235
cmp eax, 0x4aa934
jl 0x44a230
xor ecx, ecx
mov esi, 0x4a98ec
add edi, 4
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x3c], 4
xor ebx, ebx
mov bl, byte [ecx + edx]
shl eax, 8
or eax, ebx
inc ecx
cmp ecx, dword [ebp + 0x14]
jl 0x44a271
xor ecx, ecx
dec dword [ebp - 0x3c]
jne 0x44a25f
xor eax, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
cmp esi, 0x4a9934
jl 0x44a256
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0xc]
lea esi, [ebx + 8]
mov edi, 9
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0
call fcn.0044a040
add esp, 0x14
mov edx, dword [ebp - 0x24]
mov dword [esi - 4], edx
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
add esi, 8
dec edi
jne 0x44a29b
lea esi, [ebx + 0x50]
mov dword [ebp - 0x40], 4
mov edi, 0x80
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push ebx
push 0
call fcn.0044a040
add esp, 0x14
mov eax, dword [ebp - 0x24]
mov dword [esi - 4], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esi], ecx
add esi, 8
dec edi
jne 0x44a2d0
dec dword [ebp - 0x40]
jne 0x44a2cb
ret

Function at 0x44a545
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 0x48]
mov dword [ebp - 0x34], 0x10
xor eax, dword [edi]
mov dword [ebp - 0x2c], eax
push 0
push eax
push ebx
push 0
call fcn.0044a0f0
add esp, 0x10
xor eax, esi
mov esi, dword [ebp - 0x2c]
sub edi, 4
dec dword [ebp - 0x34]
jne 0x44a55c
mov ecx, dword [ebx + 8]
xor ecx, eax
xor esi, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
ret
Function at 0x44f9f9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, 0x4c7fe0
jmp 0x44f9e0
push 0xffffffffffffffff
push 0x48d879
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x49ba0c
mov al, byte [esp + 0xb]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 8], al
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov cl, byte [esp + 0xb]
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x18], cl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.004566a0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 3
call fcn.004566a0
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x4aa994
mov word [esi + 4], bx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], 0xffffffff
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4520d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48db0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x49ba0c
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x20]
mov dl, byte [esp + 0x1c]
xor ebx, ebx
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov byte [esi + 0x20], dl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x30], ebx
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 1
call fcn.004566a0
lea ecx, [esi + 0x40]
mov byte [esp + 0x14], 2
call fcn.004566a0
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x4aa9b0
mov dword [esi + 8], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x455b90
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret

Function at 0x4569b0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x48de38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 8]
lea eax, [esi + 8]
push eax
call fcn.004567a0
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push 0
push esi
push 0x456b00
push 0
push 0
call fcn.0042d78b
add esp, 0x18
test eax, eax
je 0x456a33
cmp eax, 0xffffffff
je 0x456a33
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
lea ecx, [esp + 8]
inc eax
mov dword [esp + 0x18], 0xffffffff
mov dword [esi + 4], eax
call fcn.004567e0
mov al, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
call fcn.004567e0
mov ecx, dword [esp + 0x10]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x45d120
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0xc]
push 0
push ecx
mov eax, dword [edi + eax*4 + 0x7c]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45d172
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45d15a
pop edi
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00467bb0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.0045cf40
add esp, 0x14
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov eax, dword [ebp]
mov eax, dword [eax + 8]
test eax, eax
je 0x45d274
push eax
call fcn.00468190
add esp, 4
mov byte [esp + 0x14], 1
test al, al
jne 0x45d279
mov byte [esp + 0x14], 0
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 0x80]
mov ebx, dword [esp + 0x24]
mov al, byte [esp + 0x14]
xor ecx, ecx
cmp edi, edx
sete cl
test al, al
mov esi, ecx
mov dword [ebx], 0
je 0x45d30a
mov edx, dword [ebp + 0x4138]
mov eax, dword [ebp + 0x413c]
mov ecx, dword [esp + 0x20]
sub eax, edx
cmp eax, ecx
jb 0x45d2b6
mov eax, ecx
test eax, eax
jbe 0x45d2f3
mov edi, dword [esp + 0x1c]
mov ecx, eax
lea esi, [edx + ebp + 0x138]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x4138]
pop edi
add ecx, eax
mov byte [ebp + 0xd6], 0
mov dword [ebp + 0x4138], ecx
pop esi
mov dword [ebx], eax
pop ebp
xor eax, eax
pop ebx
ret
cmp ecx, 0x4000
mov eax, ecx
jb 0x45d302
mov eax, 0x4000
lea ecx, [ebp + 0x138]
jmp 0x45d337
mov eax, dword [ebp]
mov eax, dword [eax + 0x294]
test eax, eax
mov ecx, eax
jne 0x45d31e
mov ecx, 0x4000
mov edx, dword [esp + 0x20]
cmp edx, ecx
jge 0x45d32a
mov eax, edx
jmp 0x45d333
test eax, eax
jne 0x45d333
mov eax, 0x4000
mov ecx, dword [esp + 0x1c]
mov dl, byte [esi + ebp + 0x84]
test dl, dl
je 0x45d35a
push eax
push ecx
push esi
push ebp
call fcn.0045f280
add esp, 0x10
cmp eax, 0xffffffff
jne 0x45d389
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
ret
mov edx, dword [ebp + 0x128]
test edx, edx
jne 0x45d374
push 0
push eax
push ecx
push edi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x45d389
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x45d3bd
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test eax, eax
jl 0x45d3bd
mov cl, byte [esp + 0x14]
test cl, cl
je 0x45d3bb
mov edi, dword [esp + 0x1c]
mov ecx, eax
mov edx, ecx
lea esi, [ebp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x413c], eax
mov dword [ebp + 0x4138], eax
add dword [ebx], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x4661a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
lea edx, [ecx + eax]
mov eax, 0x1505
cmp ecx, edx
jae 0x4661c7
push esi
mov esi, eax
shl esi, 5
add eax, esi
movsx esi, byte [ecx]
xor eax, esi
inc ecx
cmp ecx, edx
jb 0x4661b5
pop esi
ret
Function at 0x468ad0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov esi, dword [edi + 0x427c]
mov dword [esp + 0x10], eax
mov ebx, dword [eax + 0x1c0]
test ebx, ebx
jne 0x468afe
mov eax, dword [eax + 0x1bc]
test eax, eax
mov ebx, eax
jne 0x468afe
mov ebx, 0x12c
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
mov ebp, eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], 0
push eax
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x468b61
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x468bb9
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x4274], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x468b81
mov edx, dword [edi + 0x4270]
mov dword [eax], edx
mov eax, dword [edi + 0x4270]
xor esi, esi
test eax, eax
jne 0x468c63
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x468bd5
push ebp
mov esi, ebp
call fcn.00467890
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.0045cf40
add esp, 0x10
jmp 0x468c63
mov eax, dword [edi + 0x4278]
push eax
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x468b71
mov al, byte [edi + 0x4274]
test al, al
je 0x468c37
mov al, byte [edi + 0xc0]
mov ecx, dword [edi + 0x4278]
test al, al
push ecx
push edi
je 0x468c14
call fcn.00467bb0
mov edx, dword [edi + 0x4c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.0045cf40
add esp, 0x18
mov esi, 5
jmp 0x468c63
call fcn.00467bb0
mov edx, dword [edi + 0x38]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.0045cf40
add esp, 0x18
mov esi, 6
jmp 0x468c63
cmp ebp, 0xffffffff
je 0x468c48
cmp dword [edi + 0x4278], 0x2afc
jne 0x468c5e
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.0045cf40
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x4268]
push eax
call fcn.004689f0
mov eax, dword [edi + 0x4270]
add esp, 4
test eax, eax
pop ebp
jne 0x468c83
mov byte [edi + 0xbc], bl
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x468d10
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push esi
mov ebx, dword [edi]
mov dword [eax], 0
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x468d48
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push eax
call fcn.0045f830
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x1c]
push 0
push ebp
push esi
push edi
call fcn.00468dd0
add esp, 0x10
test al, al
je 0x468d6e
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00467bb0
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.0045ced0
add esp, 0x18
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
jne 0x468dbb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push edi
call fcn.00467bb0
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.0045ced0
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push ebp
push eax
call fcn.004691f0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x468dd0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 1
push 0x24
call dword [0x4ba964]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x468e06
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 0x4268]
lea ebp, [edi + 0x4268]
push eax
mov dword [esp + 0x20], ebp
call fcn.0045f8a0
mov ecx, dword [esp + 0x24]
push ecx
call dword [0x4ba960]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x468e51
push esi
call dword [0x4ba958]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x24]
push ebx
push 1
mov dword [edi + 0x426c], edx
mov byte [edi + 0x4274], bl
mov dword [edi + 0x4278], ebx
mov dword [edi + 0x4270], ebx
mov dword [edi + 0x427c], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x468e8e
push ebp
jmp 0x468ee1
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x468edc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x468eb9
mov ecx, dword [esp + 0x1c]
push ecx
jmp 0x468ee1
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x468ece
mov edx, dword [esp + 0x1c]
push edx
jmp 0x468ee1
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x468efb
mov eax, dword [esp + 0x1c]
push eax
call fcn.004689f0
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x468f70
push ebx
push ebx
call fcn.0042d78b
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x468f3b
call fcn.0042e2c2
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x1c]
push eax
call fcn.004689f0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0xffffffffffffffff
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x18]
push ebx
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret