joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427576
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x490040], 0
push edi
mov edi, ecx
jne 0x4277a5
and dword [ebp - 4], 0
test byte [0x4901c4], 4
jne 0x4275ac
or byte [0x4901c4], 8
push 2
push str.SeDebugPrivilege
call fcn.0040cf93
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x49003c
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490044
push esi
push str.shutdown
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490048
push esi
push str.closesocket
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x49004c
push esi
push str.connect
call fcn.00426fd9
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x490050
push esi
push str.send
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490054
push esi
push str.select
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490058
push esi
push str.recvfrom
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x49005c
push esi
push str.sendto
call fcn.00426fd9
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x490060
push esi
push str.bind
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490064
push esi
push str.listen
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490068
push esi
push str.accept
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490070
push esi
push str.getsockname
call fcn.00426fd9
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x49006c
push esi
push str.getpeername
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490074
push esi
push str.ioctlsocket
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490078
push esi
push str.setsockopt
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x49007c
push esi
push str.ntohl
call fcn.00426fd9
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x490080
push esi
push str.htonl
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490084
push esi
push str.htons
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490088
push esi
push str.inet_addr
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x49008c
push esi
push str.gethostbyname
call fcn.00426fd9
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x490090
push esi
push str.inet_ntoa
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490094
push esi
push str.WSAGetLastError
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490098
push esi
push str.__WSAFDIsSet
call fcn.00426fd9
lea eax, [ebp - 4]
push eax
push 0x490040
push esi
push str.socket
call fcn.00426fd9
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x427d0f
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
push edi
call esi
test eax, eax
je 0x427d7a
cmp edi, dword [esp + 0xc]
je 0x427d7a
mov eax, dword [0x49016c]
cmp eax, edi
je 0x427d7a
push ebx
push ebp
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor ebp, ebp
test eax, eax
je 0x427d61
push ebp
push ebp
push dword [0x49016c]
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
push 1
push ebp
push edi
mov dword [0x49016c], edi
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x42849d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov esi, ecx
jne 0x4284ae
lea edi, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x4284da
and dword [esi + 8], 0
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
push 0x1000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x4284fa
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
mov dword [edi], eax
jmp 0x4284ff
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4288b9
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x18
push esi
push edi
push edi
push 0x70000
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebx
cmp dword [ebp - 8], edi
je 0x428918
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x428935
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.00467ab0
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.00467ab0
pop edi
pop ebx
leave
ret

Function at 0x428b20
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0xc0
push esi
push ebx
mov dword [edi], esi
call fcn.00466780
add esp, 0xc
push esi
lea eax, [ebp + 0x10]
push eax
push 0x100000
push ebx
push esi
push esi
push 0x70050
push dword [ebp + 8]
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x428b68
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x428d47
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x428da4
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [esp + 0x10]
push eax
call fcn.004669c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret

Function at 0x428dda
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x40
mov esi, ecx
push 0xc
push dword [esi]
lea edi, [esi + 4]
call ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x12
push edi
call ebx
push 0x12
push 0x47ec34
push edi
call fcn.004669c0
mov ecx, dword [ebp + 8]
lea eax, [edi + 0xe]
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [esi + 0x18]
add esp, 0xc
test esi, esi
je 0x428e3e
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x428e3e
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4292fa
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov ecx, dword [ebp + 0x10]
push ebx
mov bl, byte [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test bl, bl
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], edi
jne 0x429321
mov dword [ebp + 0x18], edi
mov eax, dword [ebp + 0x18]
cdq
push edi
add eax, ecx
mov edi, 0x200
push edi
adc edx, esi
push edx
push eax
call fcn.00468b90
neg bl
sbb ebx, ebx
and ebx, eax
test esi, esi
mov dword [ebp + 0x1c], ebx
jl 0x42943e
jle 0x429434
cmp dword [ebp + 0x18], 0
jne 0x429368
mov eax, dword [ebp + 0x1c]
cdq
cmp dword [ebp + 0x14], edx
jl 0x429368
jg 0x429364
cmp dword [ebp + 0x10], eax
jbe 0x429368
xor dl, dl
jmp 0x42936a
mov dl, 1
cmp dword [ebp + 0x14], 0
jl 0x429382
jg 0x42937b
cmp dword [ebp + 0x10], 0x10000000
jbe 0x429382
mov eax, 0x10000000
jmp 0x429385
mov eax, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov esi, eax
je 0x429408
mov esi, edi
sub esi, dword [ebp + 0x18]
mov eax, esi
cdq
cmp edx, dword [ebp + 0x14]
jl 0x4293a5
jg 0x4293a2
cmp eax, dword [ebp + 0x10]
jbe 0x4293a5
mov esi, dword [ebp + 0x10]
push 1
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
call fcn.00426f04
add esp, 0x10
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
lea eax, [ebp + eax - 0x218]
push eax
call fcn.004669c0
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00426f04
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
mov eax, edi
jmp 0x42940a
xor ebx, ebx
push ebx
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
cdq
sub dword [ebp + 0x10], eax
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], edx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x42934e
jl 0x42943e
cmp dword [ebp + 0x10], 0
ja 0x42934e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x429449
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jbe 0x4294bc
push ebx
mov ebx, 0x200
push dword [ebp + 0x18]
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42948a
mov eax, dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x4294b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x4294bb
cmp edi, ebx
jbe 0x4294bb
cmp dword [ebp + 0x10], ebx
jbe 0x4294b2
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x4294b5
and edi, 0xfffffe00
jmp 0x4294b5
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x429461
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
pop ebp
ret

Function at 0x429558
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4901a8], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x429585
or dword [0x4901a8], 2
test byte [ebp - 0xf0], 0x80
je 0x429595
or dword [0x4901a8], 4
test byte [ebp - 0xee], 0x80
je 0x4295a5
or dword [0x4901a8], 1
test byte [ebp - 0xa5], 0x80
je 0x4295b5
or dword [0x4901a8], 8
test byte [ebp - 0xa4], 0x80
je 0x4295c5
or dword [0x4901a8], 8
leave
ret
Function at 0x429bbb
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
cmp dword [ebp + 0xc], 2
push ebx
push esi
push edi
jb 0x429d34
cmp dword [ebp + 0xc], 3
jbe 0x429bea
cmp dword [ebp + 0xc], 5
jne 0x429d34
mov dword [ebp - 8], 0x47b4bc
jmp 0x429bf1
mov dword [ebp - 8], 0x47b4cc
push 0x12
xor esi, esi
push esi
push esi
push dword [ebp - 8]
call dword [0x48fdac]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x429d34
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x429d2b
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
call edi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call ebx
cmp dword [ebp - 4], esi
je 0x429d10
cmp dword [ebp - 4], 0x400
ja 0x429d10
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.00466780
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x429d10
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x429d10
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x429d07
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x429d3b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x429c4a
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
jmp 0x429d36

Function at 0x429e0f
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.00429dbf
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x42a140
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
push dword [ebp + 0x20]
push eax
push ecx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x42a18e
push 0
push dword [ebp + 0x18]
and esi, 4
push dword [ebp + 0x1c]
or esi, 8
shr esi, 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x42a2a3
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x40
push ebx
jae 0x42a2b5
xor eax, eax
jmp 0x42a460
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x42a2c7
xor eax, eax
jmp 0x42a45f
push esi
mov esi, dword [edi + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x42a45c
add esi, edi
cmp dword [esi], 0x4550
jne 0x42a45c
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x42a45c
test al, 2
je 0x42a45c
cmp word [esi + 0x14], 0xe0
jne 0x42a45c
lea ebx, [esi + 0xf8]
push ebx
push esi
push dword [ebp + 0xc]
push edi
call fcn.0042a212
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x42a45c
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x42a34f
lea edx, [ebx + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x42a349
cmp esi, dword [ebp + 0xc]
jae 0x42a349
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x42a33b
mov ecx, dword [edi + 0x3c]
mov ecx, dword [edi + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
jne 0x42a38a
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [ebx], eax
je 0x42a457
push dword [ebp + 0xc]
push edi
push dword [ebx]
call fcn.00466d00
mov eax, dword [ebx]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov edi, dword [ecx]
mov ecx, dword [edi + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x54]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
add esp, 0xc
mov esi, eax
imul esi, ecx
add esi, dword [ebx]
xor eax, eax
cmp word [edi + 6], ax
mov dword [ebp - 4], eax
jbe 0x42a457
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, edi
mov edx, dword [eax + 0xc]
test edx, edx
je 0x42a3ed
mov esi, dword [ebx]
add esi, edx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x42a432
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push edx
push eax
push esi
call fcn.00466d00
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edi]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0x10]
add esp, 0xc
cmp eax, edx
jae 0x42a428
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax + 0x38]
lea eax, [edx + ecx - 1]
jmp 0x42a439
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
jmp 0x42a435
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
add dword [ebp + 0xc], 0x28
imul eax, ecx
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x42a3dd
xor eax, eax
inc eax
jmp 0x42a45e
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x42a64d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx edx, word [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
and eax, 0x1000000
test edx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x1c], edx
jne 0x42a682
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
leave
ret
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov bl, dl
add eax, esi
xor bl, 0xa
cmp esi, eax
push edi
mov dword [ebp - 8], eax
jae 0x42a701
mov edi, dword [ebp + 0x14]
jmp 0x42a6a5
mov edx, dword [ebp + 0x1c]
mov ecx, esi
jmp 0x42a6b0
mov al, byte [esi]
inc esi
cmp bl, al
je 0x42a6b5
cmp esi, dword [ebp - 8]
jb 0x42a6a9
cmp ecx, esi
mov eax, ecx
jae 0x42a6c2
xor byte [eax], dl
inc eax
cmp eax, esi
jb 0x42a6bb
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 4]
push eax
push edi
mov eax, esi
sub eax, ecx
push eax
push ecx
push 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x42a6e9
cmp dword [ebp - 0xc], 0
je 0x42a6fc
xor eax, eax
jmp 0x42a704
add dword [ebp - 4], eax
dec eax
js 0x42a6fc
inc eax
mov cx, word [ebp + 0x1c]
xor word [edi], cx
inc edi
inc edi
dec eax
jne 0x42a6f0
cmp esi, dword [ebp - 8]
jb 0x42a6a2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42c3bd
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov edx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp edx, esi
push edi
mov dword [ebp - 4], esi
jne 0x42c411
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x42c3ef
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x42c411
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x42c40c
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x42c45b
cmp edx, esi
je 0x42c45b
push 9
pop ecx
xor eax, eax
push 0x28
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
pop eax
push esi
lea ecx, [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push edx
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [ebp - 0x1c]
jmp 0x42c45e
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.004029f8
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x42c692
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 4]
push eax
movzx eax, word [0x48fb88]
or eax, 0x2001b
push eax
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42c7e5
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x42c6e4
push 0x47a8e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x42c712
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042aed6
cmp dword [ebp - 0xc], esi
jne 0x42c7d1
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x42c781
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x42c781
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x42c77b
cmp word [edi], si
je 0x42c77e
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x42c77e
mov dword [ebp - 0xc], eax
dec ebx
jns 0x42c741
test byte [ebp + 0x10], 2
je 0x42c7cf
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x42c7cf
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x42c7c9
cmp word [edi], si
je 0x42c7cc
push edi
push dword [ebp - 4]
call dword [0x48ffe8]
cmp eax, esi
je 0x42c7cc
mov dword [ebp - 0xc], eax
dec ebx
jns 0x42c78f
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0042602e
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x42dd3f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00403b3c
cmp dword [ebp - 8], ebx
je 0x42dd84
push dword [ebp - 8]
call fcn.0042a969
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x42dd88
jl 0x42dd84
cmp esi, ebx
jae 0x42dd88
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.0042adba
cmp edi, ebx
jl 0x42ddd2
jg 0x42dd9a
cmp esi, ebx
jbe 0x42ddd2
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.0042adfe
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp eax, edi
jl 0x42ddcc
jg 0x42ddca
cmp ecx, esi
jbe 0x42ddcc
mov ecx, esi
mov eax, dword [ebp - 4]
mov byte [ecx + eax], bl
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 4]
call fcn.00409f00
lea ecx, [ebp - 4]
call fcn.0042602e
lea ecx, [ebp - 8]
call fcn.004029f8
pop edi
pop esi
pop ebx
leave
ret