joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473923
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x4739a3
push edi
push 0
push str.SCRIPT
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x4739a2
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4739a2
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4739a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4739a2
mov ecx, dword [ebx]
push 0
push edi
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
push edx
push edx
push edx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x474678
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.004422f0
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x47472e
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push str.___s
push eax
call fcn.0041fe8f
lea eax, [ebp - 0x10004]
push eax
call fcn.00424cf3
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x4746f1
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x4746f1
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474706
cmp byte [ebp + 0x10], al
je 0x47472e
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x474736
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.004226d0
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042d67b
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x4747c5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x474725
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x474730
Function at 0x479f9f
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47a03a
lea eax, [ebp - 0x22c]
push 0x49dce0
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a028
lea eax, [ebp - 0x22c]
push 0x4c7b94
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a028
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp + 0x10]
or ecx, dword [ebp + 0xc]
not eax
and ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47a0eb
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x479fc9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0x47a0e2
lea eax, [ebp - 0x258]
push eax
push 0x4c7b8c
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47a0d9
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x47a0c7
lea eax, [ebp - 0x22c]
push 0x49dce0
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a0c7
lea eax, [ebp - 0x22c]
push 0x4c7b94
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a0c7
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00479f9f
test al, al
je 0x47a0f6
push 0x4c7b94
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47a069
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x47a0e4
xor ebx, ebx
jmp 0x47a0db
Function at 0x47a0fa
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47a180
lea eax, [ebp - 0x22c]
push 0x49dce0
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a16e
lea eax, [ebp - 0x22c]
push 0x4c7b94
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a16e
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.0046e2ae
pop ecx
test al, al
je 0x47a231
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47a124
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0x47a228
lea eax, [ebp - 0x258]
push eax
push 0x4c7b8c
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47a21f
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x47a20d
lea eax, [ebp - 0x22c]
push 0x49dce0
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a20d
lea eax, [ebp - 0x22c]
push 0x4c7b94
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a20d
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047a0fa
test al, al
je 0x47a23c
push 0x4c7b94
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47a1af
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x47a22a
xor ebx, ebx
jmp 0x47a221
Function at 0x47a488
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.0040b25f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push 0x4c7b8c
mov dword [ebp - 0x18], eax
inc dword [eax]
call fcn.004065a4
lea eax, [ebp - 0x278]
mov bl, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x47a5e7
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.004741ce
cmp eax, 1
je 0x47a5e2
cmp eax, 0xb
jne 0x47a50d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x47a4ed
lea eax, [ebp - 0x24c]
push 0x49dce0
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a5c8
lea eax, [ebp - 0x24c]
push 0x4c7b94
push eax
call fcn.004255c2
pop ecx
pop ecx
test eax, eax
je 0x47a5c8
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040be6d
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004065a4
test byte [ebp - 0x278], 0x10
je 0x47a5a5
cmp byte [ebp + 0x18], 0
je 0x47a574
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x47a5c8
push 0x49dc30
lea ecx, [ebp - 0x14]
call fcn.004065a4
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.0047a488
mov bl, al
test bl, bl
je 0x47a5e4
jmp 0x47a5c8
mov edx, dword [ebp + 0xc]
xor eax, eax
or eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x47a5c8
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47a4ed
jmp 0x47a5e4
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x24]
call fcn.0040bd2c
lea ecx, [ebp - 0x14]
call fcn.0040bd2c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x47cdd3
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47cdf5
or eax, 0x800000
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47ce41
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47ce3a
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x47cf60
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47ce65
mov dword [esi + 0x18], 0xc
jmp 0x47cf39
cmp byte [ebp + 0xc], bl
je 0x47ce75
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047d95e
test dword [ebp - 4], 0x1000
je 0x47ceac
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47cf32
push edi
call fcn.0047cd94
cmp eax, 0xc8
jne 0x47cf32
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.0042668b
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47cf1a
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47cf11
call fcn.0047d877
jmp 0x47cf16
call fcn.0047d7a1
mov bl, al
jmp 0x47cf53
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cf2e
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov bl, 1
jmp 0x47cf53
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47cf53
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test edi, edi
je 0x47cf5e
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x47d67b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp eax, ebx
jne 0x47d698
movzx ecx, word [edi + 0x8c]
jmp 0x47d69c
movzx ecx, word [edi + 0x58]
movzx edx, cx
mov ecx, dword [edi + 0xc0]
cmp dx, bx
jne 0x47d6b2
xor esi, esi
push esi
push esi
push esi
push ebx
jmp 0x47d6d9
cmp dx, 2
jne 0x47d6d3
dec eax
neg eax
sbb eax, eax
and eax, 0xffffffcc
xor esi, esi
push esi
push str._local_
push dword [eax + edi + 0xb0]
push 3
jmp 0x47d6d9
xor esi, esi
push esi
push esi
push esi
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
jne 0x47d6eb
xor al, al
jmp 0x47d70b
cmp byte [edi + 0xdc], 0
je 0x47d709
push 8
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
push ecx
push 0x32
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47d7a1
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, ecx
push edi
push 0x4c7aac
push dword [esi + 0x34]
call fcn.0042e97b
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x47d7cd
mov dword [esi + 0x18], 0x1f
jmp 0x47d847
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47d840
cmp dword [ebp - 4], 0
je 0x47d818
push edi
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x404]
push eax
call fcn.0042df43
mov eax, dword [ebp - 4]
add esp, 0x10
add dword [esi + 8], eax
adc dword [esi + 0xc], 0
test eax, eax
jne 0x47d7d3
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47d829
mov dword [esi + 0x18], 0x21
jmp 0x47d847
and dword [esi + 0x18], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d863
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x47d863
mov dword [esi + 0x18], 0x20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d861
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor bl, bl
test edi, edi
je 0x47d86e
push edi
call fcn.0042ea08
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x47d877
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
inc eax
mov esi, ecx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47d8aa
mov eax, 0x400
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x47d902
test eax, eax
jne 0x47d8b7
mov edi, ebx
jmp 0x47d8c3
push eax
call fcn.0042019b
mov edi, eax
mov eax, dword [ebp - 8]
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x47d92f
cmp dword [ebp - 4], ebx
je 0x47d8f9
push dword [ebp - 4]
lea ecx, [esi + 0x44]
push edi
call fcn.0047dbdb
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
adc dword [esi + 0xc], ebx
test eax, eax
je 0x47d902
mov eax, dword [ebp - 8]
jmp 0x47d8af
push ebx
push edi
call fcn.0042015d
pop ecx
pop ecx
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x47d941
mov dword [esi + 0x18], 0x21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47d92b
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x47d957
push ebx
push edi
call fcn.0042015d
pop ecx
pop ecx
mov dword [esi + 0x18], 0x20
jmp 0x47d911
mov dword [esi + 0x18], ebx
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x47d955
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x47da51
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push 0x3c
xor esi, esi
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004226d0
xor eax, eax
mov dword [ebp - 0x4c], 0x7c
inc eax
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
push esi
push dword [ebp + 8]
call fcn.00424cf3
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x47daa8
xor al, al
jmp 0x47db60
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push edi
push dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
call fcn.004087f0
push dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
push esi
push dword [ebp - 0x3c]
call fcn.004087f0
push dword [ebp - 0x2c]
lea ecx, [ebx + 0x20]
push esi
push dword [ebp - 0x30]
call fcn.004087f0
push dword [ebp - 0x24]
lea ecx, [ebx + 0x30]
push esi
push dword [ebp - 0x28]
call fcn.004087f0
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x40]
push esi
push dword [ebp - 0x20]
call fcn.004087f0
push dword [ebp - 0x14]
lea esi, [ebx + 0x50]
push 0
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004087f0
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x40]
call fcn.0040662b
lea ecx, [ebx + 0x60]
cmp ecx, eax
je 0x47db23
push eax
call fcn.0040be6d
lea ecx, [ebp - 0x10]
call fcn.0040bd2c
mov ax, word [ebp - 0x34]
mov word [ebx + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x74], eax
sub eax, 1
je 0x47db55
sub eax, 1
je 0x47db4c
mov dword [ebx + 0x70], 3
jmp 0x47db5c
mov dword [ebx + 0x70], 2
jmp 0x47db5c
mov dword [ebx + 0x70], 1
pop edi
mov al, 1
pop ebx
pop esi
leave
ret 8

Function at 0x47db65
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x47dba1
cmp byte [ebp + 8], 0
je 0x47dba1
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.0047ca75
push esi
push 0
push 0x47dc35
call fcn.0042d55c
add esp, 0xc
cmp dword [esi + 0x18], 0
sete al
jmp 0x47dba9
push dword [ebp + 8]
call fcn.0047ccc1
pop esi
pop ebp
ret 4
Function at 0x482e1e
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
or edx, 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov ebx, eax
imul ebx, dword [ebp + 0x14]
push edi
mov edi, esi
lea eax, [esi + eax*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
shl ebx, 2
shl eax, 2
mov dword [ebp + 0xc], eax
movzx eax, byte [esi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi + 1]
xor edx, dword [ecx*4 + 0x4c4610]
movzx ecx, dl
xor ecx, eax
shr edx, 8
movzx eax, byte [esi]
add esi, ebx
xor edx, dword [ecx*4 + 0x4c4610]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4c4610]
cmp esi, dword [ebp + 8]
jb 0x482e95
add edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, dword [ebp + 0x10]
jb 0x482e51
not edx
mov dword [ebp + 8], edx
fild dword [ebp + 8]
test edx, edx
jns 0x482eac
fadd qword [0x4c91e0]
pop edi
fstp qword [ebp - 8]
fld qword [ebp - 8]
pop esi
pop ebx
leave
ret 0x10
Function at 0x4839ab
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 2
pop ecx
mov word [eax], cx
lea ecx, [ebp - 0x14]
call fcn.0041c170
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00483cb8
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0040bd2c
cmp edi, 0xffffffff
jne 0x483a4e
mov ebx, dword [ebx + 4]
mov edi, str.255.255.255.255
push edi
call fcn.00424cf3
pop ecx
cmp ebx, eax
jne 0x483a27
test ebx, ebx
je 0x483a21
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, edi
movzx ecx, word [eax + edi]
movzx edx, word [edi]
cmp cx, dx
jne 0x483a43
add edi, 2
sub ebx, 1
jne 0x483a0d
xor eax, eax
test eax, eax
je 0x483a4b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x483a3a
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 1
jmp 0x483a8b
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x483a23
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], edi
test eax, eax
jle 0x483a71
cmp eax, 0xffff
jg 0x483a71
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebx + 2], ax
mov al, 1
jmp 0x483a9f
mov eax, dword [esi]
mov ecx, dword [eax + 4]
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x483a84
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 2
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x483a99
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x483aa6
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x483aef
push ebx
push eax
jmp 0x483af1
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x483b1f
cmp byte [ebp + 0x14], al
je 0x483b78
mov eax, dword [edi]
mov ecx, dword [eax + 4]
cmp byte [ecx + edi + 0xd], 0
mov eax, dword [ecx + edi + 8]
je 0x483b16
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 0x274c
jmp 0x483b66
jle 0x483b4a
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x483b78
mov eax, dword [edi]
push 0xfffffffffffffffe
pop esi
mov ecx, dword [eax + 4]
cmp byte [ecx + edi + 0xd], 0
mov eax, dword [ecx + edi + 8]
je 0x483b45
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], esi
jmp 0x483b66
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
cmp byte [ecx + edi + 0xd], 0
mov edx, dword [ecx + edi + 8]
je 0x483b63
mov edx, dword [edx + 0x38]
mov dword [edx + 0x14], eax
cmp byte [ecx + edi + 0xd], 0
mov eax, dword [ecx + edi + 8]
je 0x483b74
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x48d593
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push esi
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x48d69b
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48d6ad
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0048d593
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x48d6ad
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48d64a
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48d64a
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x218]
push 0
push ebx
push ecx
push edi
call eax
jmp 0x48d65b
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x48d6a2
test esi, esi
je 0x48d66a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x10]
jne 0x48d5de
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
test esi, esi
je 0x48d6ad
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x48d69d