joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bcd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47bce3
xor al, al
ret
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov al, 1
ret

Function at 0x47bdc0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4b2f60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4d8cb8]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x4b782c
call fcn.0047f130
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.0047ba40
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 0x2c]
sete bl
call fcn.004a6b19
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0047f0b0
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x47be70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4d8cb8]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 4]
push eax
mov byte [esp + 0x28], 4
mov dword [esp + 8], 0x4b782c
call fcn.0047f130
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.0047ba40
push 0x4d6c24
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 6
call fcn.004a1ac1
mov dl, byte [0x4b7870]
lea ecx, [esp + 0x2c]
push edx
call fcn.004a6f1c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 5
setne bl
call fcn.004a6b19
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0047f0b0
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x47bf80
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x47bfa3
mov al, byte [esp + 0xc]
test al, al
je 0x47bfa7
push esi
push 0x71
call fcn.00477f40
add esp, 8
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x47d090
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47d09b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x47d19e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4b78a8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b78a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b78a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b78a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b78a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b78a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b78a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b78a8]
xor eax, edx
inc ecx
dec edi
jne 0x47d0b6
pop edi
test esi, esi
je 0x47d1c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b78a8]
xor eax, edx
inc ecx
dec esi
jne 0x47d1a2
pop esi
pop ebx
not eax
ret
Function at 0x47d2a0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b30c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00478100
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0047a840
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.00478140
mov edx, dword [esi + 4]
mov ecx, 0x4d721c
cmp edx, dword [ecx]
je 0x47d38c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00478130
xor al, al
jmp 0x47d41f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.00478170
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0047a840
test bp, bp
je 0x47d3d8
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.00478170
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0047a840
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x47d400
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.00478170
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.0047a840
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x50]
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.00478130
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x47d800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b3108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.00478100
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x4d7220]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
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 [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.0047b590
lea ecx, [ebx + 0x2c]
call fcn.00478140
mov eax, dword [esi + 0x50]
mov word [ebx + 0x20], ax
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0x18]
add eax, edx
mov dword [esp + 0x2c], 0xffffffff
sub eax, edi
mov dword [ebx + 0x28], eax
call fcn.00478130
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x47f4c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b32e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.004a6b87
mov cl, byte [0x4b7870]
mov dword [esp + 0x2c], 0
push ecx
lea ecx, [esp + 0x38]
call fcn.004a1b14
mov eax, dword [0x4d8cb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
mov byte [esp + 0x30], 5
mov dword [esp + 0x10], 0x4b782c
call fcn.0047f130
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 6
call fcn.00474de0
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x34], 7
call fcn.00490fca
add esp, 8
or esi, 0xffffffff
test eax, eax
je 0x47f57d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0047bd90
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x47f57d
xor bl, bl
jmp 0x47f57f
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.004a6b19
test bl, bl
jne 0x47f605
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.00474de0
mov eax, dword [eax]
mov byte [esp + 0x2c], 8
push eax
call fcn.0047f4c0
add esp, 4
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x2c], 6
call fcn.004a6b19
test bl, bl
jne 0x47f5d7
mov eax, dword [esp + 0x34]
push eax
call fcn.0047bff0
add esp, 4
test al, al
jne 0x47f605
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0047f0b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004a6b19
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.0047f0b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.004a6b19
mov ecx, dword [esp + 0x24]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x483510
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4b3311
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea eax, [esi + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ebx, ebx
mov byte [esi + 0x12c], 1
mov byte [esi + 0x8c], bl
mov dword [esi + 0x10c], ebx
mov byte [esi + 0x12f], bl
mov dword [esi + 0x110], ebx
mov byte [esi + 0x12d], bl
mov byte [esi + 0x12e], bl
push fcn.00485110
push 0x483b20
lea edi, [esi + 0x130]
push 4
push 0x10d08
push edi
mov dword [esp + 0x1bc], ebx
call fcn.004910a8
lea eax, [esp + 0x10]
mov dword [esi], 0x4b8a04
push eax
push 2
mov dword [esi + 0x88], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4835b5
push ebx
call fcn.00491b75
mov ax, word [esp + 0x10]
cmp al, 2
jne 0x4835fb
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x4835fb
lea eax, [esi + 0x43550]
mov ecx, edi
mov edx, 4
mov dword [eax], ecx
add eax, 4
add ecx, 0x10d08
dec edx
jne 0x4835d3
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call fcn.00491b75
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
mov esi, ecx
call fcn.00483640
test byte [esp + 8], 1
je 0x483628
push esi
call fcn.004a6883
add esp, 4
mov eax, esi
pop esi
ret 4
Function at 0x4836f0
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [esp + 0x98]
push edi
mov dword [ebp + 0x88], eax
lea eax, [ebp + 8]
push ecx
push 0x4cf898
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [esp + 0xac]
add esp, 0xc
test edi, edi
lea ebx, [ebp + 0x43560]
je 0x48374b
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x483768
mov edi, str..NetLog
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.00487a70
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp + 8]
lea ecx, [esp + 0x14]
push eax
push ebx
push str._s_s_Sys_d.log
push ecx
call edi
mov al, byte [esp + 0x24]
add esp, 0x14
test al, al
lea esi, [ebp + 0x8c]
je 0x4837bd
lea ecx, [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x2f
je 0x4837b2
cmp al, 0x3a
jne 0x4837b5
mov byte [ecx], 0x5f
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4837a8
lea edx, [esp + 0x10]
mov byte [esi], 0
push edx
push 0x4cf898
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 0x80], 0
mov byte [esi + 0xa3], 1
mov dword [esi + 0x84], 1
mov byte [esi + 0xa0], 1
mov byte [esi + 0xa1], 1
mov byte [esi + 0xa2], 1
mov eax, dword [ebp + 0x88]
xor esi, esi
test eax, eax
jbe 0x483845
mov edi, dword [esp + 0x98]
lea ebx, [ebp + 0x130]
push ebp
push edi
push esi
mov ecx, ebx
call fcn.00483e70
test al, al
je 0x483854
mov eax, dword [ebp + 0x88]
inc esi
add edi, 0xe4
add ebx, 0x10d08
cmp esi, eax
jb 0x483820
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x80
ret 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x80
ret 0x10
Function at 0x485b30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb04
push esi
mov esi, dword [esp + 0xb0c]
mov al, byte [esi + 0xa3]
test al, al
je 0x485cd5
mov eax, dword [esi + 0x84]
test eax, eax
je 0x485cd5
mov ecx, dword [esp + 0xb10]
lea eax, [esp + 0xb14]
push eax
lea edx, [esp + 0x60c]
push ecx
push edx
call fcn.00491c68
mov al, byte [esi + 0xa1]
add esp, 0xc
test al, al
je 0x485ba0
lea eax, [esp + 8]
push eax
call fcn.0049200e
lea ecx, [esp + 0x8c]
push ecx
call fcn.00491f95
add esp, 8
jmp 0x485bad
mov byte [esp + 8], 0
mov byte [esp + 0x88], 0
mov al, byte [esi + 0xa0]
test al, al
mov al, byte [esi + 0xa1]
je 0x485c28
test al, al
mov eax, dword [esi + 0x80]
je 0x485bfe
lea edx, [eax + 1]
lea ecx, [esp + 0x608]
mov dword [esi + 0x80], edx
push ecx
lea edx, [esp + 0x8c]
lea ecx, [esp + 0xc]
push edx
push ecx
push eax
lea edx, [esp + 0x118]
push str._d__s__s_:__s_r_n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x485c77
lea edx, [esp + 0x608]
lea ecx, [eax + 1]
push edx
push eax
lea eax, [esp + 0x110]
push str._s_:__s_r_n
push eax
mov dword [esi + 0x80], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x485c77
test al, al
je 0x485c59
lea ecx, [esp + 0x608]
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x114]
push str._s__s__s_r_n
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x485c77
lea edx, [esp + 0x608]
lea eax, [esp + 0x108]
push edx
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x485cd5
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 8]
push 0
push ecx
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x114]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0xb04
ret

Function at 0x4879f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 4]
sub eax, edx
mov edx, dword [ecx]
sub eax, esi
add eax, edx
mov edx, dword [0x4d85c4]
imul edx, eax
mov eax, 0x4f47a4
sub ecx, eax
mov esi, dword [ecx + eax]
add eax, 4
xor esi, edx
cmp eax, 0x4f47b4
mov dword [eax - 4], esi
jl 0x487a16
mov eax, 0x4f47a4
pop esi
ret

Function at 0x487a30
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x100
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea ecx, [esp]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [esp + 0x104]
mov ecx, dword [eax]
mov eax, 1
mov dword [edx], ecx
add esp, 0x100
ret
Function at 0x488590
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
lea esi, [ebx + ebx*8]
shl esi, 4
mov eax, dword [edi + 0x10]
mov cl, byte [eax + esi + 0x30]
test cl, cl
je 0x4885b3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov al, byte [edi + 0x18]
test al, al
jne 0x4885d3
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [edi + 0x10]
mov dword [ecx + esi], eax
mov eax, 0x10
jmp 0x4885f7
cmp al, 1
jne 0x4885f3
push 0x4e8
push 5
push 6
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [edi + 0x10]
mov dword [edx + esi], eax
mov eax, 0xe
jmp 0x4885f7
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + esi]
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x488628
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
ret 8
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
push 0x31
mov eax, dword [edx + ebx*4]
mov edx, dword [ecx + esi]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
and eax, 3
pop ebx
add eax, 0xfffffffd
ret 8

Function at 0x488650
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov esi, ecx
lea edi, [ebx + ebx*8]
shl edi, 4
mov eax, dword [esi + 0x10]
mov cl, byte [eax + edi + 0x30]
test cl, cl
je 0x48867c
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor al, al
mov dword [ecx], 0xffffffff
pop ebx
ret 0xc
mov al, byte [esi + 0x18]
test al, al
jne 0x48869c
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [esi + 0x10]
mov dword [edx + edi], eax
mov eax, 0x10
jmp 0x4886c0
cmp al, 1
jne 0x4886bc
push 0x4e8
push 5
push 6
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi + 0x10]
mov dword [ecx + edi], eax
mov eax, 0xe
jmp 0x4886c0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x10]
push edx
mov ecx, dword [eax + edi]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4886f9
mov edx, dword [esi + 0x10]
mov eax, dword [edx + edi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
xor al, al
ret 0xc
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push 0x31
mov eax, dword [edx + ebx*4]
mov edx, dword [ecx + edi]
push eax
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x488726
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0xfffffffd
xor al, al
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
Function at 0x488730
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push 0
push eax
mov eax, dword [esp + 0x14]
mov esi, ecx
mov ecx, dword [esp + 0x18]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x10]
push ecx
shl edx, 4
mov ecx, dword [edx + eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x48877b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [edi], eax
je 0x488774
inc dword [esi + 0x48]
pop edi
xor al, al
pop esi
ret 0x10
pop edi
mov al, 1
pop esi
ret 0x10

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

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, ecx
lea esi, [eax + eax*8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
push 0
shl esi, 4
push eax
push ecx
mov eax, dword [edx + esi]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4887fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebx], eax
jne 0x4887ed
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x50]
inc edx
lea eax, [ecx + esi + 0x54]
mov dword [edi + 0x50], edx
pop edi
pop esi
mov ecx, dword [eax]
pop ebx
inc ecx
mov dword [eax], ecx
xor al, al
ret 0x10
mov eax, dword [edi + 0x4c]
inc eax
mov dword [edi + 0x4c], eax
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
pop edi
pop esi
mov al, 1
pop ebx
ret 0x10

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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x80
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
push esi
lea esi, [eax + eax*8]
push edi
mov edi, ecx
shl esi, 4
mov ecx, dword [edi + 0x10]
push 0
lea eax, [esp + 0x10]
push 0x80
mov edx, dword [ecx + esi]
push eax
push edx
call ebx
test eax, eax
je 0x488849
cmp eax, 0xffffffff
jne 0x48882b
pop edi
pop esi
pop ebx
add esp, 0x80
ret 4