joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a9c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push str.SetDeviceParam
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x43176c], eax
push str.GetDeviceParam
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431770], eax
push str.DisconnectMessage
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431774], eax
push str.ReconnectMessage
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431778], eax
push str.RemoveDeviceMessage
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x43177c], eax
push str.SetMouseMode
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431784], eax
push str.GetMouseMode
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431780], eax
push str.SetRotation
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431788], eax
push str.SetMultiMonitor
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x43178c], eax
push str.SetMonitorRect
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x431790], eax
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.USBDRVWNDNAME
push str.USBDRVCLASS
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40aaaa
xor eax, eax
jmp 0x40ab54
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 5
mov edx, dword [0x431710]
mov dword [ebp - 0x18], edx
mov eax, dword [0x431714]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x431718]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x43171c]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov dword [0x43170c], eax
mov edx, dword [ebp - 4]
push edx
call fcn.0040ab5a
add esp, 4
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call fcn.0040a1c5
push 0
push 0
push 0
call fcn.0040a21d
push 0
push 0
push 0
call fcn.0040a275
push 0x431738
call dword [sym.imp.Touch32Ex.dll_GetTouchFilterCoeff]
add esp, 4
push 0x431720
call dword [sym.imp.Touch32Ex.dll_GetTouchBoundCoeff]
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x411249
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x430da8
cmp edx, dword [eax]
je 0x41126b
add eax, 8
inc ecx
cmp eax, 0x430e38
jl 0x41125c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x430da8]
jne 0x411399
mov eax, dword [0x4337ac]
cmp eax, 1
je 0x411373
test eax, eax
jne 0x41129c
cmp dword [0x430434], 1
je 0x411373
cmp edx, 0xfc
je 0x411399
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4112d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bfb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411316
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429e24
push edi
call fcn.00414010
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bfb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bfc0
lea eax, [ebp - 0xa0]
push 0x429e04
push eax
call fcn.0040bfc0
push dword [esi + 0x430dac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bfc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413f7b
add esp, 0x2c
pop edi
jmp 0x411399
lea eax, [ebp + 8]
lea esi, [esi + 0x430dac]
push 0
push eax
push dword [esi]
call fcn.0040c570
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x418820
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040c9b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4188eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4188eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41889e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4188a9
or bh, 8
and edi, 0x8000000
je 0x4188c4
mov eax, dword [0x434f5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4188eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x418ceb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x418d0f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x418d2a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41bdda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41be1c
call fcn.00423f15
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41be1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41be13
xor eax, eax
jmp 0x41be24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041be2a
pop edi
pop esi
pop ebx
ret 4

Function at 0x424ab8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x424ae6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424b04
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424a1e
jmp 0x424b04
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424b04
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424a1e
test edi, edi
mov eax, edi
jne 0x424aee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x424fc5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x425075
mov ecx, 0x433790
call fcn.00424ba5
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x425053
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x425031
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x425031
push ebx
push edi
push eax
call fcn.0041ea6f
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0041d0d0
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x422377
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004195c7
and dword [ebp - 4], 0
cmp dword [0x42efe8], 0
mov ebx, eax
jne 0x422428
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4224d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4224d9
push eax
call fcn.00419555
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42efe8], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42efec], eax
call esi
push eax
call fcn.00419555
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42eff0], eax
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff8], eax
test eax, eax
je 0x422428
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00419555
pop ecx
mov dword [0x42eff4], eax
mov eax, dword [0x42eff4]
cmp eax, ebx
je 0x422480
cmp dword [0x42eff8], ebx
je 0x422480
push eax
call fcn.004195d0
push dword [0x42eff8]
mov esi, eax
call fcn.004195d0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422480
test edi, edi
je 0x422480
call esi
test eax, eax
je 0x422477
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422477
test byte [ebp - 0xc], 1
jne 0x422480
or dword [ebp + 0x10], 0x200000
jmp 0x4224b9
mov eax, dword [0x42efec]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4224b9
mov eax, dword [0x42eff0]
cmp eax, ebx
je 0x4224b9
push eax
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42efe8]
call fcn.004195d0
pop ecx
test eax, eax
je 0x4224d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4224db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x506030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb1000]
push edi
jmp 0x50604a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x506051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x506040
mov eax, 1
add ebx, ebx
jne 0x506063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x506074
jne 0x506093
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x506093
dec eax
add ebx, ebx
jne 0x506080
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x506058
add ebx, ebx
jne 0x50608f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5060e5
xor ecx, ecx
sub eax, 3
jb 0x5060ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50611a
sar eax, 1
mov ebp, eax
jmp 0x5060b6
add ebx, ebx
jne 0x5060b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x506084
inc ecx
add ebx, ebx
jne 0x5060c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x506084
add ebx, ebx
jne 0x5060d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5060c6
jne 0x5060e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5060c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x506104
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5060f6
jmp 0x506046
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x506104
add edi, ecx
jmp 0x506046
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x506122
cmp byte [edi], 0x11
jne 0x506122
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x506127
lea edi, [esi + 0xff000]
mov eax, dword [edi]
or eax, eax
je 0x50619f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x134998]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x134b14]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x506154
mov ecx, edi
jns 0x506183
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x134b18]
or eax, eax
je 0x506199
mov dword [ebx], eax
add ebx, 4
jmp 0x506171
call dword [esi + 0x134b28]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5061d0
cmp al, 0xef
ja 0x5061c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5061a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5061b2
mov ebp, dword [esi + 0x134b1c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x506204
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x100fab5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 3
add ecx, 4
pop edx
xor eax, dword [ecx]
add ecx, 4
dec edx
jne 0x100fac5
pop ebp
ret 4

Function at 0x1012095
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1036a44]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x14], ebx
je 0x101211c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x101211c
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
call fcn.0101ee58
test eax, eax
jge 0x10120d0
or byte [esi + 0x27], 4
jmp 0x101212e
cmp dword [ebp - 0x14], ebx
je 0x101212e
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.01011fea
mov ebx, eax
test ebx, ebx
je 0x101211c
push 0
lea eax, [ebp - 0x18]
push eax
push edi
mov edi, dword [fcn.0100112c]
push ebx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x14]
call edi
test al, al
jne 0x101213d
push ebx
call fcn.01011fc4
or byte [esi + 0x27], 4
cmp dword [ebp - 0x14], 0
je 0x101212e
push dword [ebp - 0x14]
call fcn.0101f4b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 4
mov eax, dword [ebx + 0x1c]
cmp eax, 1
je 0x1012184
jle 0x101217e
cmp eax, 3
jle 0x1012178
cmp eax, 4
je 0x1012172
cmp eax, 5
je 0x101216c
cmp eax, 6
je 0x1012166
cmp eax, 7
jne 0x101217e
or byte [esi + 0x27], 2
jmp 0x1012188
or byte [esi + 0x27], 0x20
jmp 0x1012188
or byte [esi + 0x27], 0x10
jmp 0x1012188
or byte [esi + 0x27], 1
jmp 0x1012188
or byte [esi + 0x27], 0x40
jmp 0x1012188
or byte [esi + 0x27], 4
jmp 0x1012188
or byte [esi + 0x27], 0x80
push ebx
call fcn.01011fc4
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push 8
lea ecx, [ebp - 0x20]
push ecx
push eax
push eax
push 0x41018
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1012120
movzx eax, byte [ebp - 0x1a]
mov dword [esi + 0x30], eax
movzx eax, byte [ebp - 0x1c]
mov dword [esi + 0x2c], eax
movzx eax, byte [ebp - 0x19]
mov dword [esi + 0x34], eax
jmp 0x1012120
Function at 0x1012537
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x1036a44]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], ebx
mov dword [esi], 1
je 0x101257c
lea ecx, [ebp - 0x408]
push ecx
push ebx
push eax
call fcn.0101ee58
test eax, eax
jge 0x1012589
mov dword [esi], 0x10
xor eax, eax
jmp 0x1012731
push edi
mov edi, dword [fcn.0100112c]
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0xc
lea eax, [ebp - 0x428]
push eax
push ebx
push ebx
push 0x2d1080
push dword [ebp - 0x408]
call edi
test al, al
je 0x101263f
cmp dword [ebp - 0x428], 2
jne 0x101263f
push ebx
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
push 0x2d0c04
push dword [ebp - 0x408]
call edi
push dword [ebp - 0x408]
mov byte [ebp - 0x409], al
call fcn.0101f4b2
cmp byte [ebp - 0x409], bl
je 0x101260a
cmp dword [ebp - 0x404], 2
je 0x101260a
push 5
jmp 0x101260c
push 3
pop edi
lea eax, [ebp - 0x408]
push eax
push 0x80000001
push dword [ebp - 0x418]
call fcn.0101ee58
test eax, eax
jge 0x101262d
or dword [esi], 2
jmp 0x1012638
push dword [ebp - 0x408]
call fcn.0101f4b2
mov eax, edi
jmp 0x1012730
push dword [ebp - 0x408]
call fcn.0101f4b2
lea eax, [ebp - 0x408]
push eax
push 0x80000000
push dword [ebp - 0x418]
call fcn.0101ee58
test eax, eax
jge 0x1012672
mov dword [esi], 0x10
xor eax, eax
jmp 0x1012730
push 0x18
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push 0x70000
lea eax, [ebp - 0x448]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x408]
call dword [fcn.01001360]
cmp eax, ebx
jge 0x10126b0
cmp eax, 0xc0000013
jne 0x101271f
push 2
pop eax
or dword [esi], eax
mov dword [ebp - 0x410], eax
jmp 0x101271f
cmp dword [ebp - 0x438], 0xb
jne 0x10126c5
mov dword [ebp - 0x410], 2
jmp 0x101271f
cmp dword [ebp - 0x438], 0xc
jne 0x101271f
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x408]
call fcn.0101f113
test eax, eax
jge 0x10126ec
mov dword [esi], 0x10
jmp 0x101271f
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x414]
push dword [ebp - 0x408]
call fcn.01005fb3
cmp eax, 1
mov dword [ebp - 0x410], eax
jne 0x1012714
mov byte [0x1036bd0], al
push dword [ebp - 0x414]
call fcn.01011fc4
push dword [ebp - 0x408]
call fcn.0101f4b2
mov eax, dword [ebp - 0x410]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 8