joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473910
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4a9868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x4cd448]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], 0x4ad884
call fcn.004768e0
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.00473a60
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov byte [esp + 0x50], 6
call esi
test eax, eax
jne 0x473a13
push 0x4cb3b4
lea ecx, [esp + 0x48]
call fcn.004989c1
mov cl, byte [0x4ad8c8]
push ecx
lea ecx, [esp + 0x48]
call fcn.0049de19
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x473a13
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.0049da16
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00476860
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 4]
lea ecx, [esp + 0x44]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x3c], 5
call fcn.0049da16
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00476860
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x473a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x473a99
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.0049d757
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x473ac2
push edi
xor bl, bl
call fcn.0049d780
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.0049db9f
push edi
call fcn.0049d780
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x473ae0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x473b90
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4a98b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4cd448]
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], 0x4ad884
call fcn.004768e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.00473a60
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
lea ecx, [esp + 0x2c]
sete bl
call fcn.0049da16
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00476860
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x473c40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a98f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x4cd448]
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], 0x4ad884
call fcn.004768e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 5
push ecx
lea ecx, [esp + 8]
call fcn.00473a60
push 0x4cb3b4
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 6
call fcn.004989c1
mov dl, byte [0x4ad8c8]
lea ecx, [esp + 0x2c]
push edx
call fcn.0049de19
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.0049da16
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00476860
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x473d50
Capabilities:
Delete file

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x474e6b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x474f6e
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 + 0x4ad900]
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 + 0x4ad900]
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 + 0x4ad900]
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 + 0x4ad900]
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 + 0x4ad900]
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 + 0x4ad900]
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 + 0x4ad900]
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 + 0x4ad900]
xor eax, edx
inc ecx
dec edi
jne 0x474e86
pop edi
test esi, esi
je 0x474f90
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad900]
xor eax, edx
inc ecx
dec esi
jne 0x474f72
pop esi
pop ebx
not eax
ret
Function at 0x475070
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a9a18
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.00470880
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.004728b0
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.004708c0
mov edx, dword [esi + 4]
mov ecx, 0x4cb9a8
cmp edx, dword [ecx]
je 0x47515c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004708b0
xor al, al
jmp 0x4751ef
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.004708f0
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.004728b0
test bp, bp
je 0x4751a8
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.004708f0
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.004728b0
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x4751d0
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.004708f0
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.004728b0
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.004708b0
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 0x476c70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a9c18
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.0049da84
mov cl, byte [0x4ad8c8]
mov dword [esp + 0x2c], 0
push ecx
lea ecx, [esp + 0x38]
call fcn.00498a14
mov eax, dword [0x4cd448]
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], 0x4ad884
call fcn.004768e0
mov esi, dword [esp + 0x34]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 6
call fcn.0046f350
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x34], 7
call fcn.004886d4
add esp, 8
or esi, 0xffffffff
test eax, eax
je 0x476d2d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00473b60
add esp, 4
cmp eax, esi
sete al
test al, al
jne 0x476d2d
xor bl, bl
jmp 0x476d2f
mov bl, 1
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 6
call fcn.0049da16
test bl, bl
jne 0x476db5
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.0046f350
mov eax, dword [eax]
mov byte [esp + 0x2c], 8
push eax
call fcn.00476c70
add esp, 4
lea ecx, [esp + 8]
test al, al
sete bl
mov byte [esp + 0x2c], 6
call fcn.0049da16
test bl, bl
jne 0x476d87
mov eax, dword [esp + 0x34]
push eax
call fcn.00473dc0
add esp, 4
test al, al
jne 0x476db5
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00476860
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.0049da16
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.00476860
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], esi
call fcn.0049da16
mov ecx, dword [esp + 0x24]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x47ac40
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4a9c41
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.0047c830
push 0x47b240
lea edi, [esi + 0x130]
push 4
push 0x10d08
push edi
mov dword [esp + 0x1bc], ebx
call fcn.004887b2
lea eax, [esp + 0x10]
mov dword [esi], 0x4aea5c
push eax
push 2
mov dword [esi + 0x88], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x47ace5
push ebx
call fcn.00489285
mov ax, word [esp + 0x10]
cmp al, 2
jne 0x47ad2b
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x47ad2b
lea eax, [esi + 0x43550]
mov ecx, edi
mov edx, 4
mov dword [eax], ecx
add eax, 4
add ecx, 0x10d08
dec edx
jne 0x47ad03
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.00489285
nop
nop
nop
nop
nop
nop
nop
nop
nop
push esi
mov esi, ecx
call fcn.0047ad70
test byte [esp + 8], 1
je 0x47ad58
push esi
call fcn.0049d780
add esp, 4
mov eax, esi
pop esi
ret 4
Function at 0x47ae20
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 0x4c40f0
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 0x47ae7b
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 0x47ae98
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.0047f190
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 0x47aeed
lea ecx, [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x2f
je 0x47aee2
cmp al, 0x3a
jne 0x47aee5
mov byte [ecx], 0x5f
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x47aed8
lea edx, [esp + 0x10]
mov byte [esi], 0
push edx
push 0x4c40f0
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 0x47af75
mov edi, dword [esp + 0x98]
lea ebx, [ebp + 0x130]
push ebp
push edi
push esi
mov ecx, ebx
call fcn.0047b590
test al, al
je 0x47af84
mov eax, dword [ebp + 0x88]
inc esi
add edi, 0xe4
add ebx, 0x10d08
cmp esi, eax
jb 0x47af50
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 0x47d250
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 0x47d3f5
mov eax, dword [esi + 0x84]
test eax, eax
je 0x47d3f5
mov ecx, dword [esp + 0xb10]
lea eax, [esp + 0xb14]
push eax
lea edx, [esp + 0x60c]
push ecx
push edx
call fcn.00489378
mov al, byte [esi + 0xa1]
add esp, 0xc
test al, al
je 0x47d2c0
lea eax, [esp + 8]
push eax
call fcn.0048971e
lea ecx, [esp + 0x8c]
push ecx
call fcn.004896a5
add esp, 8
jmp 0x47d2cd
mov byte [esp + 8], 0
mov byte [esp + 0x88], 0
mov al, byte [esi + 0xa0]
test al, al
mov al, byte [esi + 0xa1]
je 0x47d348
test al, al
mov eax, dword [esi + 0x80]
je 0x47d31e
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 0x47d397
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 0x47d397
test al, al
je 0x47d379
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 0x47d397
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 0x47d3f5
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 0x47f110
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 [0x4ccd54]
imul edx, eax
mov eax, 0x4e80c4
sub ecx, eax
mov esi, dword [ecx + eax]
add eax, 4
xor esi, edx
cmp eax, 0x4e80d4
mov dword [eax - 4], esi
jl 0x47f136
mov eax, 0x4e80c4
pop esi
ret

Function at 0x47f150
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 0x47fcb0
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 0x47fcd3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov al, byte [edi + 0x18]
test al, al
jne 0x47fcf3
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 0x47fd17
cmp al, 1
jne 0x47fd13
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 0x47fd17
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 0x47fd48
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 0x47fd70
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 0x47fd9c
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 0x47fdbc
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 0x47fde0
cmp al, 1
jne 0x47fddc
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 0x47fde0
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 0x47fe19
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 0x47fe46
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 0x47fe50
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 0x47fe9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [edi], eax
je 0x47fe94
inc dword [esi + 0x48]
pop edi
xor al, al
pop esi
ret 0x10
pop edi
mov al, 1
pop esi
ret 0x10

Function at 0x47feb0
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 0x47ff1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov dword [ebx], eax
jne 0x47ff0d
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 0x47ff30
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 0x47ff69
cmp eax, 0xffffffff
jne 0x47ff4b
pop edi
pop esi
pop ebx
add esp, 0x80
ret 4