joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d1c4
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10000
mov eax, dword [esi + 0x464]
test eax, eax
je 0x44d1da
cmp eax, ecx
jne 0x44d1f5
push dword [esi + 0x1c]
push ecx
push 1
push dword [esi + 0x45c]
call fcn.00424f7e
add esp, 0x10
and dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret

Function at 0x44d20d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x460]
mov esi, dword [edi + 0x458]
mov byte [esi + edx], al
inc dword [edi + 0x460]
mov eax, 0x10000
cmp dword [edi + 0x460], eax
jne 0x44d254
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x458]
call fcn.0042420e
add esp, 0x10
and dword [edi + 0x460], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0x44d25a
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x460]
test eax, eax
je 0x44d282
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.0042420e
add esp, 0x10
and dword [esi + 0x460], 0
pop esi
ret

Function at 0x44d43a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.0044d284
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.0044d2d0
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x44d47e
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0044d40e
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x44d468
pop edi
pop esi
leave
ret 0xc
Function at 0x44e548
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x44e6a1
push ebx
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x20c]
push str.___s
push eax
call fcn.00422e2b
lea eax, [ebp - 0x20c]
push eax
call fcn.004223db
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x20e], 0x5c
jne 0x44e5bc
cmp word [ebp + ebx*2 - 0x210], 0x3a
je 0x44e5bc
xor eax, eax
mov word [ebp + ebx*2 - 0x20e], ax
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x44e5d6
cmp byte [ebp + 0x10], al
je 0x44e692
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
je 0x44e689
push 0x618
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.00422450
lea eax, [ebx + ebx]
mov word [ebp - 0x81a], ax
mov eax, dword [ebp - 0x81a]
add eax, 2
mov word [ebp - 0x818], ax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x814]
push eax
mov dword [ebp - 0x824], 0xa0000003
call fcn.004236f0
mov eax, dword [ebp - 0x81a]
add esp, 0x18
add eax, 0xc
xor edx, edx
push edx
mov word [ebp - 0x820], ax
lea ecx, [ebp + 8]
push ecx
push edx
movzx eax, ax
push edx
add eax, 8
push eax
lea eax, [ebp - 0x824]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x44e696
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x44e69f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret 0xc
Function at 0x452ca6
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 0x452d41
lea eax, [ebp - 0x22c]
push 0x49eaa0
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452d2f
lea eax, [ebp - 0x22c]
push 0x4b4a70
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452d2f
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
or ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
not eax
and ecx, eax
push ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x452df2
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452cd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0x452de9
lea eax, [ebp - 0x258]
push eax
push 0x4b4a68
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x452de0
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x452dce
lea eax, [ebp - 0x22c]
push 0x49eaa0
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452dce
lea eax, [ebp - 0x22c]
push 0x4b4a70
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452dce
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.00452ca6
test al, al
je 0x452dfd
push 0x4b4a70
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452d70
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 0x452deb
xor ebx, ebx
jmp 0x452de2
Function at 0x452e01
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 0x452e87
lea eax, [ebp - 0x22c]
push 0x49eaa0
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452e75
lea eax, [ebp - 0x22c]
push 0x4b4a70
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452e75
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.00448081
pop ecx
test al, al
je 0x452f38
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452e2b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0x452f2f
lea eax, [ebp - 0x258]
push eax
push 0x4b4a68
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x452f26
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x452f14
lea eax, [ebp - 0x22c]
push 0x49eaa0
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452f14
lea eax, [ebp - 0x22c]
push 0x4b4a70
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x452f14
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.00452e01
test al, al
je 0x452f43
push 0x4b4a70
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452eb6
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 0x452f31
xor ebx, ebx
jmp 0x452f28
Function at 0x45310b
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 - 0x14], ecx
lea ecx, [ebp - 0x10]
call fcn.0040c540
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
push 0x4b4a68
inc dword [eax]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
call fcn.00403465
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x10]
mov bl, 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x45326a
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0041f5f8
cmp eax, 1
je 0x453265
cmp eax, 0xb
jne 0x453190
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x453170
lea eax, [ebp - 0x24c]
push 0x49eaa0
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x45324b
lea eax, [ebp - 0x24c]
push 0x4b4a70
push eax
call fcn.00422ce3
pop ecx
pop ecx
test eax, eax
je 0x45324b
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bf9c
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403465
test byte [ebp - 0x278], 0x10
je 0x453228
cmp byte [ebp + 0x18], 0
je 0x4531f7
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x45324b
push 0x49ec84
lea ecx, [ebp - 0x10]
call fcn.00403465
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0045310b
mov bl, al
test bl, bl
je 0x453267
jmp 0x45324b
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x25c]
xor eax, eax
or eax, dword [ebp - 0x258]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x45324b
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 0x453170
jmp 0x453267
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x24]
call fcn.00407487
lea ecx, [ebp - 0x10]
call fcn.00407487
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x455881
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp dword [ebx + 0x74], 4
push edi
mov edi, ecx
mov esi, dword [edi + 0x54]
mov dword [ebp - 4], esi
jne 0x4558a4
or esi, 0x800000
mov dword [ebp - 4], esi
movzx eax, word [ebx + 0x78]
push 0
push 0
push dword [ebx + 0x70]
push dword [ebx + 0x30]
push dword [ebx + 0x20]
push eax
push dword [ebx + 0x10]
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi], eax
test eax, eax
jne 0x4558dc
push eax
push 0xdeadbeef
push 0xb
mov ecx, edi
call fcn.00456308
jmp 0x4559cb
xor ecx, ecx
push ecx
push esi
push ecx
push ecx
push ecx
push dword [ebx + 0x60]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x455901
push eax
push 0xdeadbeef
push 0xc
jmp 0x4559b5
cmp byte [ebp + 0xc], 0
je 0x455910
push ebx
push esi
mov ecx, edi
call fcn.00456362
test dword [ebp - 4], 0x1000
je 0x455945
push 4
pop ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4559ad
push esi
call fcn.00455843
cmp eax, 0xc8
jne 0x4559ad
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push esi
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.00422d2a
pop ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov ecx, edi
cmp byte [ebp + 0x10], bl
je 0x4559a7
push esi
call fcn.0045616a
jmp 0x4559bc
push 1
push ebx
push ebx
jmp 0x4559b7
push ebx
push 0xdeadbeef
push 0xd
mov ecx, edi
call fcn.00456308
mov bl, al
test esi, esi
je 0x4559c9
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x456054
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
inc ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x45606f
movzx eax, word [edi + 0x8c]
jmp 0x456073
movzx eax, word [edi + 0x58]
movsx ecx, ax
lea edx, [edi + 0xb0]
cmp dword [ebp + 8], ebx
je 0x456084
lea edx, [edi + 0x7c]
mov eax, dword [edi + 0xc0]
xor esi, esi
push esi
cmp ecx, ebx
jne 0x456096
push esi
push esi
push ebx
jmp 0x4560a9
cmp ecx, 2
jne 0x4560a6
push str._local_
push dword [edx]
push 3
jmp 0x4560a9
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
cmp eax, esi
jne 0x4560bb
xor al, al
jmp 0x4560db
cmp byte [edi + 0xdc], 0
je 0x4560d9
push 8
lea ecx, [ebp - 8]
push ecx
push 0x32
push esi
mov dword [ebp - 8], ebx
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 0x45616a
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x30], 0
je 0x456179
pop ebp
jmp fcn.00456238
pop ebp
jmp fcn.0045617f

Function at 0x456436
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00422450
xor eax, eax
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]
mov dword [ebp - 0x4c], 0x7c
call fcn.004223db
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x45648d
xor al, al
jmp 0x45653d
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push dword [ebp - 0x44]
mov ecx, ebx
push esi
push dword [ebp - 0x48]
call fcn.004079e3
push dword [ebp - 0x38]
lea ecx, [ebx + 0x10]
push esi
push dword [ebp - 0x3c]
call fcn.004079e3
push dword [ebp - 0x2c]
lea ecx, [ebx + 0x20]
push esi
push dword [ebp - 0x30]
call fcn.004079e3
push dword [ebp - 0x24]
lea ecx, [ebx + 0x30]
push esi
push dword [ebp - 0x28]
call fcn.004079e3
push dword [ebp - 0x1c]
lea ecx, [ebx + 0x40]
push esi
push dword [ebp - 0x20]
call fcn.004079e3
push dword [ebp - 0x14]
lea esi, [ebx + 0x50]
push 0
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004079e3
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x40]
call fcn.0043cb31
push eax
lea ecx, [ebx + 0x60]
call fcn.0040bf9c
lea ecx, [ebp - 0x10]
call fcn.00407487
mov ax, word [ebp - 0x34]
mov word [ebx + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x74], eax
dec eax
je 0x456532
dec eax
je 0x456529
mov dword [ebx + 0x70], 3
jmp 0x456539
mov dword [ebx + 0x70], 2
jmp 0x456539
mov dword [ebx + 0x70], 1
pop edi
mov al, 1
pop ebx
pop esi
leave
ret 8
Function at 0x456542
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0xd0], 0
je 0x45657f
cmp byte [ebp + 8], 0
je 0x45657f
sub esp, 0x10
lea ecx, [esi + 0xd4]
call fcn.004555ad
push esi
push 0
push 0x456610
call fcn.0042562d
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
jmp 0x456587
push dword [ebp + 8]
call fcn.0045577f
pop esi
pop ebp
ret 4

Function at 0x45aeae
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
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]
lea eax, [esi + eax*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
or edx, 0xffffffff
shl ebx, 2
shl eax, 2
push edi
mov dword [ebp + 0xc], eax
mov edi, esi
movzx eax, byte [esi + 2]
movzx ecx, dl
xor ecx, eax
movzx eax, byte [esi + 1]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0b70]
movzx ecx, dl
xor ecx, eax
movzx eax, byte [esi]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0b70]
add esi, ebx
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4c0b70]
cmp esi, dword [ebp + 8]
jb 0x45af23
add edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, dword [ebp + 0x10]
jb 0x45aedf
not edx
movd xmm0, edx
cvtdq2pd xmm0, xmm0
pop edi
shr edx, 0x1f
pop esi
addsd xmm0, qword [edx*8 + 0x4b7590]
pop ebx
pop ebp
ret 0x10
Function at 0x45af45
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov edi, dword [esi + 4]
cmp eax, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0xc]
setl bl
cmp ecx, edi
setl bh
mov byte [ebp - 1], bl
mov byte [ebp + 0xf], bh
test bl, bl
je 0x45af78
mov dword [esi], eax
mov dword [esi + 8], edx
test bh, bh
je 0x45af82
mov dword [esi + 4], ecx
mov dword [esi + 0xc], edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x108]
call fcn.004577e2
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add dword [esi + 8], ecx
add dword [esi + 0xc], eax
add dword [esi], ecx
add dword [esi + 4], eax
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
sub edi, dword [esi]
sub ebx, dword [esi + 4]
inc edi
inc ebx
push 0
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push dword [ebp - 8]
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dh, byte [ebp + 0xf]
mov dword [ebp - 0x14], eax
mov ecx, ebx
test dh, dh
je 0x45aff3
neg ecx
mov dl, byte [ebp - 1]
mov eax, edi
test dl, dl
je 0x45affe
neg eax
test dh, dh
je 0x45b007
mov ebx, dword [esi + 0xc]
jmp 0x45b00a
mov ebx, dword [esi + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0xc]
test dl, dl
je 0x45b019
mov edx, dword [esi + 8]
jmp 0x45b01b
mov edx, dword [esi]
mov esi, dword [ebp - 0x10]
push 0xcc0020
push ecx
push eax
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push ebx
push edi
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov eax, ebx
neg eax
mov dword [ebp - 0x40], eax
push 0x20
xor eax, eax
inc eax
xor ecx, ecx
mov word [ebp - 0x3c], ax
pop eax
push ecx
mov word [ebp - 0x3a], ax
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
push ecx
push dword [ebp + 8]
mov dword [ebp - 0x48], 0x28
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDIBits]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], ecx
call esi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x10]
push ecx
mov dword [eax], ecx
call fcn.00420bea
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x48]
push eax
push edi
push ebx
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
push ebx
call esi
push dword [ebp - 0x14]
mov esi, eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
je 0x45b0c4
mov eax, edi
jmp 0x45b0cd
push edi
call fcn.00420c5e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45b9a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 2
pop eax
mov word [edi], ax
lea eax, [ebp - 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push eax
call fcn.0045bb08
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00407487
cmp ebx, 0xffffffff
jne 0x45b9ee
mov ecx, dword [ebp + 0xc]
mov edx, str.255.255.255.255
call fcn.0043e0a3
test al, al
je 0x45b9ee
push 0
push 1
jmp 0x45ba11
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ebx
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x45ba0d
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [edi + 2], ax
mov al, 1
jmp 0x45ba1f
push 0
push 2
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
call fcn.0044e415
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4649d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
mov ebx, edx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x464acf
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 8]
push ecx
push eax
push 0
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464ae4
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.004649d0
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x464ae4
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call fcn.00464827
test al, al
lea eax, [ebp - 0x228]
je 0x464a81
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.0046375b
call eax
jmp 0x464a8c
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x464ad5
cmp dword [ebp - 0x18], eax
je 0x464a9e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push ecx
push esi
mov dword [ebp - 4], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x1c]
jne 0x464a1a
mov al, 1
pop esi
pop ebx
leave
ret
cmp dword [ebp - 0x18], 0
je 0x464ae4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x464ad1