joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435262
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.004832e0
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 0x4352aa
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x435614
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x318], esi
mov ecx, 0xc3
lea edi, [ebp - 0x314]
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
inc edi
test eax, eax
jne 0x43565b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x43565e
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x2200000
push 3
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43568b
xor eax, eax
jmp 0x435713
push dword [ebp + 0xc]
mov dword [ebp - 0x318], 0xa0000003
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0xc]
shl eax, 1
mov word [ebp - 0x30e], ax
mov eax, dword [ebp - 0x30e]
add eax, 2
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x308]
push eax
call fcn.00485b85
movzx eax, word [ebp - 0x30e]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push esi
add eax, 0xc
push esi
mov dword [ebp - 0x314], eax
add eax, 8
push eax
lea eax, [ebp - 0x318]
push eax
push 0x900a4
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43570a
cmp dword [ebp - 4], esi
jne 0x435708
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x435741
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43579e
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.00410b58
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 0x4357d4
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 0x49cf44
push edi
call fcn.00410b58
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 0x435838
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x435838
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x435def
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp + 0x14], 0x80
jbe 0x435e7e
push ebx
mov ebx, 0x200
push dword [ebp + 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x435e48
mov eax, dword [ebp - 4]
test eax, eax
jne 0x435e3e
cmp dword [ebp + 0x14], eax
jg 0x435e3b
mov eax, edi
jmp 0x435e3e
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x435e77
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x435e7d
cmp edi, ebx
jbe 0x435e7d
cmp dword [ebp + 0x10], ebx
jbe 0x435e74
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x435e77
and edi, 0xfffffe00
jmp 0x435e77
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x435e0f
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x435ef9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4b0280], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x435f26
or dword [0x4b0280], 2
test byte [ebp - 0xf0], 0x80
je 0x435f36
or dword [0x4b0280], 4
test byte [ebp - 0xee], 0x80
je 0x435f46
or dword [0x4b0280], 1
test byte [ebp - 0xa5], 0x80
je 0x435f56
or dword [0x4b0280], 8
test byte [ebp - 0xa4], 0x80
je 0x435f66
or dword [0x4b0280], 8
leave
ret
Function at 0x43689b
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4368d3
cmp dword [ebp + 0xc], 2
jb 0x4368e8
cmp dword [ebp + 0xc], 3
jbe 0x4368cc
cmp dword [ebp + 0xc], 5
jne 0x4368e8
mov dword [ebp - 4], 0x4989a8
jmp 0x4368d3
mov dword [ebp - 4], 0x4989b8
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4afdcc]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x4368ef
xor eax, eax
jmp 0x436a34
push ebx
push edi
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 - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x436a10
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
call ebx
cmp dword [ebp - 8], esi
je 0x4369f5
cmp dword [ebp - 8], 0x400
ja 0x4369f5
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.004832e0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x4369f5
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 0x4369f5
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 0x4369ec
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x436a1d
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 - 4]
push esi
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x43692f
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x436a32
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x436ba4
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.00436b54
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x436bc5
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x436be7
xor eax, eax
jmp 0x436cb2
mov eax, dword [esi]
push edi
mov edi, dword [esi + 8]
push ebx
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [esi + 0xc]
push ebx
push str.DISPLAY
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 4], eax
call ebx
push 0xa
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call ebx
xor ecx, ecx
cmp dword [ebp - 0xc], ecx
jge 0x436c29
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x436c31
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x10]
jle 0x436c39
mov edi, dword [ebp - 0x10]
cmp esi, eax
jle 0x436c3f
mov esi, eax
sub edi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
cmp edi, ecx
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], esi
jle 0x436ca9
cmp esi, ecx
jle 0x436ca9
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push dword [ebp - 0x10]
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 0xcc0020
push dword [ebp - 8]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x14]
push edi
call esi
push edi
mov dword [ebp - 0x14], eax
call ebx
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4378bb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x437979
cmp word [esi + 2], 0x3a
jne 0x437979
cmp word [esi + 4], 0
jne 0x437979
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x4378fb
and dword [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x20c]
jne 0x437952
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x437952
cmp dword [ebp + 0xc], edi
jae 0x437937
mov eax, edi
jmp 0x437989
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.00410b58
add esp, 0xc
lea eax, [edi - 1]
jmp 0x437989
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x437989
mov eax, dword [ebp + 0x10]
mov cx, word [esi]
and word [eax + 6], 0
push 3
mov word [eax], cx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
pop eax
jmp 0x437989
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
pop esi
leave
ret
Function at 0x438c9f
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 0x438cf3
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 0x438cd1
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x438cf3
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x438cee
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x438d3d
cmp edx, esi
je 0x438d3d
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 0x438d40
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402b75
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x438d9d
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
push 4
push 0x2001b
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00432a66
add esp, 0x14
cmp eax, esi
jne 0x438eeb
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 0x438dea
push 0x497994
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 0x438e18
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043719c
cmp dword [ebp - 0xc], esi
jne 0x438ed7
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x438e87
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x438e87
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 0x438e81
cmp word [edi], si
je 0x438e84
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x438e84
mov dword [ebp - 0xc], eax
dec ebx
jns 0x438e47
test byte [ebp + 0x10], 2
je 0x438ed5
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x438ed5
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 0x438ecf
cmp word [edi], si
je 0x438ed2
push edi
push dword [ebp - 4]
call dword [0x4b0074]
cmp eax, esi
je 0x438ed2
mov dword [ebp - 0xc], eax
dec ebx
jns 0x438e95
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00431c4c
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x43a247
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.00404863
cmp dword [ebp - 8], ebx
je 0x43a28c
push dword [ebp - 8]
call fcn.00477e78
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x43a290
jl 0x43a28c
cmp esi, ebx
jae 0x43a290
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.00437055
cmp edi, ebx
jl 0x43a2da
jg 0x43a2a2
cmp esi, ebx
jbe 0x43a2da
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.00437099
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 0x43a2d4
jg 0x43a2d2
cmp ecx, esi
jbe 0x43a2d4
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.0043723b
lea ecx, [ebp - 4]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00402b75
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43a885
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 8]
call fcn.00477e78
mov edi, eax
test edi, edi
pop ecx
jg 0x43a8a2
xor eax, eax
jmp 0x43aa1a
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edi
shr eax, 1
push esi
add eax, 0xc
push eax
mov ecx, ebx
call fcn.004371c5
mov esi, dword [ebx]
or dword [ebp - 8], 0xffffffff
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 8]
test edi, edi
jle 0x43aa16
test eax, eax
je 0x43aa16
push 0xa
lea eax, [edi + esi]
push 0
push eax
call fcn.004832e0
lea eax, [edi + 0xa]
add esp, 0xc
mov dword [ebp - 4], eax
push 2
push 0x49c8ec
push esi
call fcn.00431d19
add esp, 0xc
test eax, eax
jne 0x43a913
push edi
push esi
call fcn.0043599a
pop ecx
pop ecx
push 2
push 0x49c8e8
push esi
call fcn.00431d19
add esp, 0xc
neg eax
sbb eax, eax
inc eax
cmp byte [esi], 0
je 0x43a951
cmp byte [esi + 1], 0
jne 0x43a951
push dword [ebp - 4]
lea eax, [esi + 2]
push esi
push eax
call fcn.00410b0e
add dword [ebp - 4], 2
add esp, 0xc
inc edi
xor eax, eax
inc edi
mov word [esi], 0xfeff
inc eax
test eax, eax
jne 0x43a97e
cmp byte [esi], al
jne 0x43a987
cmp byte [esi + 1], al
je 0x43a987
push dword [ebp - 4]
lea eax, [esi + 2]
push esi
push eax
call fcn.00410b0e
add esp, 0xc
inc edi
inc edi
add dword [ebp - 4], 2
mov word [esi], 0xfffe
jmp 0x43a8f6
mov eax, edi
shr eax, 1
jmp 0x43aa18
mov eax, dword [ebx]
and dword [ebx], 0
push edi
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.004371c5
mov eax, dword [ebx]
mov cx, word [0x49c8e8]
push 3
mov word [eax], cx
pop eax
push eax
push 0x49c8f0
push esi
mov dword [ebp - 0xc], eax
call fcn.00431d19
add esp, 0xc
test eax, eax
je 0x43a9e3
mov eax, dword [ebx]
push edi
inc eax
inc eax
push eax
push edi
push esi
push 8
push 0
call dword [0x4afb54]
mov edi, eax
xor eax, eax
test edi, edi
jle 0x43a9e6
lea ecx, [ebp - 4]
call fcn.00431c4c
lea eax, [edi + 1]
jmp 0x43aa18
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebx]
push edi
inc ecx
inc ecx
push ecx
sub edi, eax
push edi
add eax, esi
push eax
push 0
push 0xfde9
call dword [0x4afb54]
test eax, eax
jle 0x43aa08
lea esi, [eax + 1]
jmp 0x43aa0a
xor esi, esi
lea ecx, [ebp - 4]
call fcn.00431c4c
mov eax, esi
jmp 0x43aa18
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x43ad23
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov byte [ebp - 0x28], bl
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00404863
cmp dword [ebp - 4], ebx
je 0x43ad77
push ebx
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00434929
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402b75
mov al, bl
pop ebx
leave
ret
Function at 0x43af5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor eax, eax
push edi
inc eax
xor ebx, ebx
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x21c], bx
call fcn.0043719c
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x43afb4
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x21c]
je 0x43b0c4
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x43afc7
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4b0098]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x43b01a
cmp dword [ebp - 0xc], 1
jne 0x43b00c
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
call dword [0x4b0098]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x43afe0
cmp dword [ebp + 0x14], ebx
jne 0x43b01a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x43b0b5
push edi
push dword [ebp + 0x14]
call dword [0x4b009c]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x43b041
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x4b00a0]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x43b05d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x43b0a7
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x43b070
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4b00a4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x43b0a7
cmp dword [ebp - 0xc], 2
jne 0x43b09c
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4b00a4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x43b0a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], ebx
je 0x43b0b5
push dword [ebp - 8]
call dword [0x4b00a8]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x43b0c4
push dword [ebp + 0x14]
call dword [0x4b00a8]
lea ecx, [ebp - 0x10]
call fcn.00431c4c
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x43b309
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
movzx eax, word [0x4afb70]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x43b3b0
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0x1000
mov ecx, edi
mov dword [esi], 0xffa
call fcn.00437099
mov eax, dword [edi]
mov byte [eax], bl
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call ebx
cmp eax, 0xea
mov dword [ebp - 4], eax
jne 0x43b39b
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 6
push eax
mov ecx, edi
call fcn.00437099
mov eax, dword [edi]
push esi
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 4], 0
je 0x43b3be
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x43b3b9
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x43b3ef
xor ecx, ecx
cmp dword [esi], ecx
jge 0x43b3c6
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [esi]
mov edx, dword [edi]
inc eax
shr eax, 1
lea eax, [edx + eax*2]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.00437099
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret