joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432709
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 0x43272b
xor eax, eax
jmp 0x4327f6
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 0x43276d
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 8], ecx
jge 0x432775
mov dword [ebp - 8], ecx
cmp edi, dword [ebp - 0x10]
jle 0x43277d
mov edi, dword [ebp - 0x10]
cmp esi, eax
jle 0x432783
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 0x4327ed
cmp esi, ecx
jle 0x4327ed
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 0x4333c5
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 0x433483
cmp word [esi + 2], 0x3a
jne 0x433483
cmp word [esi + 4], 0
jne 0x433483
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x433405
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 0x43345c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x43345c
cmp dword [ebp + 0xc], edi
jae 0x433441
mov eax, edi
jmp 0x433493
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.0047a010
add esp, 0xc
lea eax, [edi - 1]
jmp 0x433493
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x433493
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 0x433493
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 0x4347a9
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 0x4347fd
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 0x4347db
xor eax, eax
cmp eax, esi
mov dword [ebp - 4], eax
mov edx, eax
jne 0x4347fd
push esi
push esi
push 3
push esi
push 3
push esi
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
jne 0x4347f8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, 0xffffffff
je 0x434847
cmp edx, esi
je 0x434847
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 0x43484a
or esi, 0xffffffff
lea ecx, [ebp - 4]
call fcn.00402ad9
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4348a7
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 [0x4a5b68]
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 0x4349fa
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 0x4348f9
push 0x48e984
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 0x434927
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00432cd5
cmp dword [ebp - 0xc], esi
jne 0x4349e6
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x434996
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x434996
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 0x434990
cmp word [edi], si
je 0x434993
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x434993
mov dword [ebp - 0xc], eax
dec ebx
jns 0x434956
test byte [ebp + 0x10], 2
je 0x4349e4
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x4349e4
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 0x4349de
cmp word [edi], si
je 0x4349e1
push edi
push dword [ebp - 4]
call dword [0x4a6054]
cmp eax, esi
je 0x4349e1
mov dword [ebp - 0xc], eax
dec ebx
jns 0x4349a4
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.0042dd2d
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x435b83
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.004041da
cmp dword [ebp - 8], ebx
je 0x435bc8
push dword [ebp - 8]
call fcn.0046f582
mov edi, edx
cmp edi, ebx
pop ecx
mov esi, eax
jg 0x435bcc
jl 0x435bc8
cmp esi, ebx
jae 0x435bcc
xor esi, esi
xor edi, edi
lea ecx, [ebp - 4]
call fcn.00432b41
cmp edi, ebx
jl 0x435c16
jg 0x435bde
cmp esi, ebx
jbe 0x435c16
lea eax, [esi + 5]
push eax
lea ecx, [ebp - 4]
call fcn.00432b85
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 0x435c10
jg 0x435c0e
cmp ecx, esi
jbe 0x435c10
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.00432d74
lea ecx, [ebp - 4]
call fcn.0042dd2d
lea ecx, [ebp - 8]
call fcn.00402ad9
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43625f
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.004041da
cmp dword [ebp - 4], ebx
je 0x4362b3
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.004304e9
add esp, 0xc
mov bl, al
lea ecx, [ebp - 4]
call fcn.00402ad9
mov al, bl
pop ebx
leave
ret
Function at 0x43647e
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.00432cd5
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x4364d5
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 0x4365e5
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x4364e8
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x4a6078]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x43653b
cmp dword [ebp - 0xc], 1
jne 0x43652d
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 [0x4a6078]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x436501
cmp dword [ebp + 0x14], ebx
jne 0x43653b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x4365d6
push edi
push dword [ebp + 0x14]
call dword [0x4a607c]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x436562
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x4a6080]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x43657e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x4365c8
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x436591
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4a6084]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x4365c8
cmp dword [ebp - 0xc], 2
jne 0x4365bd
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x4a6084]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x4365c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], ebx
je 0x4365d6
push dword [ebp - 8]
call dword [0x4a6088]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x4365e5
push dword [ebp + 0x14]
call dword [0x4a6088]
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x43682a
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 [0x4a5b68]
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 0x4368cf
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0xffe
mov ecx, edi
mov dword [esi], 0xffa
call fcn.00432b85
mov eax, dword [edi]
push esi
mov byte [eax], bl
push dword [edi]
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 0x4368ba
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 4
push eax
mov ecx, edi
call fcn.00432b85
push esi
push dword [edi]
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 0x4368dd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4368d8
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x436908
xor ecx, ecx
cmp dword [esi], ecx
jge 0x4368e5
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [edi]
add eax, dword [esi]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.00432b85
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436a92
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x10]
neg esi
sbb esi, esi
mov eax, 0x2000000
and esi, eax
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
add esi, eax
mov eax, dword [ebp + 0x14]
xor eax, 0xa
push edi
mov dword [ebp - 0x10], eax
call fcn.0040deff
and dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
pop ecx
pop ecx
lea ecx, [edi + eax*2]
mov dword [ebp - 8], ecx
mov ebx, eax
mov dword [ebp + 0x10], edi
jne 0x436adb
mov edi, ecx
jmp 0x436afe
cmp edi, dword [ebp - 8]
jae 0x436ba0
mov dword [ebp + 0x10], edi
mov ax, word [edi]
inc edi
inc edi
cmp word [ebp - 0x10], ax
je 0x436af7
cmp edi, dword [ebp - 8]
jb 0x436ae7
mov ebx, edi
sub ebx, dword [ebp + 0x10]
sar ebx, 1
mov eax, dword [ebp + 0x10]
cmp eax, edi
jae 0x436b12
mov cx, word [ebp + 0x14]
xor word [eax], cx
inc eax
inc eax
cmp eax, edi
jb 0x436b05
push 0
push 0
push ebx
push dword [ebp + 0x10]
mov eax, 0x20804
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [eax + ecx + 1]
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00432cfe
push dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*2]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push esi
mov eax, 0x20804
push eax
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov dword [ebp - 4], eax
lea eax, [ebx + ebx]
push eax
push 0
push dword [ebp + 0x10]
call fcn.00479cf0
mov eax, dword [ebp - 4]
add esp, 0xc
test eax, eax
jle 0x436adb
add dword [ebp + 8], eax
dec eax
js 0x436adb
lea ecx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dx, word [ebp + 0x14]
xor word [eax], dx
inc eax
inc eax
dec ecx
mov dword [ebp - 0xc], eax
jne 0x436b89
jmp 0x436adb
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
mov dx, word [ebp + 0x14]
pop edi
mov word [ecx + esi*2], dx
mov eax, dword [eax]
pop esi
pop ebx
leave
ret
Function at 0x436bb7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x209
lea ecx, [ebp - 4]
call fcn.00432cd5
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
xor esi, esi
push str.Device_
mov word [eax], si
call fcn.0042ecb0
add esp, 0xc
test al, al
jne 0x436c19
push 0xc
push edi
push str.DosDevices_
call fcn.0042ecb0
add esp, 0xc
test al, al
jne 0x436c19
cmp word [edi], si
je 0x436c1d
cmp word [edi + 2], si
je 0x436c1d
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x436c1d
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x494b58
call fcn.0042ecb0
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x436c41
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x436c6b
cmp byte [ebp + 0x18], 0
je 0x436c54
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
push eax
call fcn.0043091a
pop ecx
push edi
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x436c7c
cmp byte [ebp + 0x18], al
jl 0x436cc5
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x436ca4
cmp byte [ebp + 0x18], 0
jle 0x436cc5
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x436cc5
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x436cc5
test esi, esi
jne 0x436cc5
mov byte [ebp + 0x18], 0xff
jmp 0x436c41
lea ecx, [ebp - 4]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x436cd4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
xor esi, esi
push esi
push 0x20000000
push 3
push esi
push 3
push 0x100080
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.004041da
cmp dword [ebp - 4], esi
jne 0x436d08
or esi, 0xffffffff
jmp 0x436d43
or dword [ebp - 0xc], 0xffffffff
push esi
lea eax, [ebp - 0x1a0]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x2d1080
push dword [ebp - 4]
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x436d03
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x436d40
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402ad9
mov eax, esi
pop esi
leave
ret
Function at 0x437284
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
ja 0x4372b1
cmp dword [ebp + 0x18], ebx
jbe 0x4372ba
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp eax, ebx
jne 0x4372c4
lea eax, [ebp - 0x14]
mov dword [ebp + 0x20], eax
mov edi, dword [ebp + 0x14]
cmp edi, ebx
mov esi, dword [ebp + 8]
jg 0x4372d8
push dword [esi]
call fcn.00430a4c
pop ecx
mov edi, eax
mov eax, dword [ebp + 0x10]
shl eax, 7
lea eax, [eax + edi - 1]
xor edx, edx
div edi
inc eax
inc eax
mov dword [ebp + 0x10], eax
add eax, 2
imul eax, edi
push eax
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00479cf0
xor eax, eax
push eax
push eax
push eax
push dword [esi]
mov dword [ebp + 0x14], eax
call fcn.0042ec1a
add esp, 0x1c
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
ja 0x43734b
jb 0x43732c
cmp dword [ebp + 0x18], ecx
ja 0x43734b
mov eax, 0x1c2
cmp byte [eax + ebx], 0xee
jne 0x437341
mov edx, dword [eax + ebx + 4]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
add eax, 0x10
cmp eax, 0x1f2
jle 0x437331
push ecx
push dword [ebp - 8]
mov eax, edi
push dword [ebp - 0xc]
cdq
push edx
push eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
call fcn.00479e00
push edx
push eax
push dword [esi]
call fcn.0042ec1a
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
inc eax
imul eax, edi
push eax
lea eax, [ebx + edi]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
lea eax, [ebx + edi*2 + 0x10000]
mov dword [ebp + 0x10], eax
je 0x4373f5
push edi
push 0
push eax
call fcn.00479cf0
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp dword [eax + 4], 0
ja 0x4373c5
jb 0x4373b4
cmp dword [eax], 2
jae 0x4373c5
mov ecx, dword [ebx + 0x220]
mov dword [eax], ecx
mov ecx, dword [ebx + 0x224]
mov dword [eax + 4], ecx
push 0
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00479e00
push edx
push eax
push dword [esi]
call fcn.0042ec1a
add esp, 0x10
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437879
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
push ebx
push esi
push edi
push 0
mov ebx, 0x200
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00479e00
and dword [ebp - 4], 0
push 0
push edx
push eax
push dword [ebp + 8]
lea edi, [ebp - 0x404]
and edi, 0xfffffe00
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
lea esi, [edi + 0x200]
call fcn.0042ec1a
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x43796f
cmp edx, dword [ebp + 0x10]
jne 0x43796f
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43796f
push ebx
push esi
push edi
call fcn.0047a010
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x437915
push 0x10
push dword [ebp + 0x14]
lea eax, [edi + 0x3ce]
push eax
call fcn.0047a010
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [edi + 0x3fe], si
call fcn.0042ec1a
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x43796f
cmp edx, dword [ebp + 0x10]
jne 0x43796f
push ebx
lea esi, [edi + 0x200]
push esi
push edi
call fcn.00432f87
add esp, 0xc
test eax, eax
jne 0x43796f
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x437ce0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.00432cfe
push 0xca
lea ecx, [ebp - 0x10]
call fcn.00432cd5
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x437db5
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x437db5
and dword [ebp - 4], 0xfffffffc
jmp 0x437db5
test edx, edx
jl 0x437dba
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x437db2
cmp dword [ebp - 8], 0
je 0x437d84
movsx ax, cl
push eax
call fcn.004795c5
test eax, eax
pop ecx
je 0x437db2
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x437d98
mov ax, word [ebp + 0xc]
test ax, ax
je 0x437d98
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x437db2
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x437d4a
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x437df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
cmp byte [esi], 0x23
push edi
sete byte [esp + 0x14]
cmp byte [esp + 0x14], 0
je 0x437e08
inc esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
mov ebp, dword [esp + 0x18]
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, ebp
call fcn.00432b85
mov eax, dword [ebp]
xor ebx, ebx
mov byte [eax], 0
mov dword [esp + 0x18], eax
xor cl, cl
jmp 0x437e44
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x437e85
test cl, cl
jle 0x437e43
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
jne 0x437e31
push dword [esp + 0x18]
mov byte [eax], 0
call edi
cmp byte [esp + 0x14], 0
mov esi, eax
je 0x437e7d
xor ecx, ecx
test esi, esi
jle 0x437e7d
mov eax, dword [esp + 0x18]
lea edi, [ecx + eax]
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov al, byte [edx + 0x493694]
xor byte [edi], al
inc ecx
cmp ecx, esi
jl 0x437e61
mov eax, dword [ebp]
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dl, 0x2b
jne 0x437e8e
xor dl, dl
jmp 0x437eb4
cmp dl, 0x2f
jne 0x437e98
add dl, 0xd2
jmp 0x437eb4
cmp dl, 0x39
ja 0x437ea2
add dl, 0xd2
jmp 0x437eb4
cmp dl, 0x5a
ja 0x437eac
add dl, 0xcb
jmp 0x437eb4
cmp dl, 0x7a
ja 0x437eb9
add dl, 0xc5
movzx edx, dl
jmp 0x437ebc
or edx, 0xffffffff
test edx, edx
jl 0x437ee8
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x437edd
test cl, cl
jle 0x437e43
cmp byte [esi], 0
jne 0x437e43
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x437ec7
xor eax, eax
jmp 0x437e80