joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406728
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edx, esi
xor ebx, ebx
jmp 0x40674a
call fcn.0043e785
test al, al
jne 0x406752
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x40673f
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x406763
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.004145c5
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x406783
inc esi
inc esi
mov ax, word [esi]
call fcn.0043e785
test al, al
jne 0x406781
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
je 0x4067f1
push 0x10020
lea ecx, [ebp - 0x824]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp + 8], eax
je 0x4067f1
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 0xc8
push edi
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp + 8]
call ebx
push edi
call esi
jmp 0x4067f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4068e7
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f8
push ebx
push esi
push edi
mov esi, str.service:
lea edi, [ebp - 0x7f8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
mov ecx, 0x1f9
lea edi, [ebp - 0x7e6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
call fcn.004040e6
mov edx, eax
mov ecx, edx
call fcn.004041ad
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x406935
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.00405b5e
add esp, 0xc
lea eax, [ebp - 0x7f8]
push eax
push 0x64
xor edi, edi
push edi
push 0x8000004
push edi
push 0xffffffffffffffff
mov word [ebp + esi*2 - 0x7e8], di
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x4069aa
push edi
push edi
push edi
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x4069aa
push 0x64
push edi
push esi
call fcn.004040f9
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x4db10c], eax
mov dword [0x4dcc5c], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40960a
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4dcc50], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x409649
mov eax, dword [edi]
test eax, eax
je 0x409649
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
push dword [edi]
call ebx
and dword [edi], 0
cmp byte [esp + 0x10], 0
je 0x409661
push 1
push 0
push str.shutdown__a
call fcn.004064a1
add esp, 0xc
push dword [0x4dcccc]
call fcn.0040422b
cmp byte [esp + 0x10], 0
pop ecx
je 0x40968d
push 3
pop esi
push 0
call dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
dec esi
jne 0x409677
pop esi
pop ebx
ret
Function at 0x40fba8
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x4dcd58
mov dword [0x4dcd58], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x4dcd5c], 5
je 0x40fbd0
xor eax, eax
leave
ret
mov eax, dword [0x4dcd60]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x40fbeb
dec eax
jne 0x40fc6c
mov ebx, 0x39000
jmp 0x40fbf0
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x4dcd20]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x4dce88
push esi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [0x4dccf8]
cmp eax, 0xc0000022
jne 0x40fc67
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x4dccf8]
push dword [0x4dce88]
call fcn.0040fada
pop ecx
push dword [0x4dce88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x4dccf8]
cmp eax, edi
pop esi
jge 0x40fc70
xor eax, eax
jmp 0x40fc94
push 0x1000
push ebx
push edi
push 6
push dword [0x4dce88]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4dce84], eax
neg eax
sbb eax, eax
and eax, dword [0x4dce88]
pop edi
pop ebx
leave
ret

Function at 0x40fc98
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40fcb1
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x40fcc4
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x40fd0c
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x4dce88]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3ff
mov ecx, dword [eax + ecx*4]
test ecx, 1
jne 0x40fcf9
xor eax, eax
jmp 0x40fd0e
mov esi, ecx
xor esi, edi
and esi, 0xfff
push eax
xor esi, ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
pop edi
ret

Function at 0x40fd11
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x4dce84]
call fcn.0040fc98
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x4dce88]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40fd46
pop esi
ret
shr esi, 2
and esi, 0x3ff
mov esi, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, esi
pop esi
ret

Function at 0x40fe34
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40fe52
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x40fe56
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
cmp word [eax], si
push edi
je 0x40fea4
cmp word [eax + 2], si
je 0x40fea4
cmp word [eax + 4], si
je 0x40fea4
cmp word [eax + 6], si
je 0x40fea4
cmp word [eax + 8], si
je 0x40fea4
cmp word [eax + 0xa], si
je 0x40fea4
cmp word [eax + 0xc], si
je 0x40fea4
cmp word [eax + 0xe], si
je 0x40fea4
lea ecx, [eax + 0x10]
jmp 0x40fe9f
cmp word [ecx], 0x5c
jne 0x40fe9d
mov word [ecx], 0x2f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x40fe92
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
cmp edi, esi
je 0x40febc
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ffac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 7
push 0xc0000000
push str.C:pe.debug.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x410008
push esi
push 2
push ebx
push ebx
push edi
call fcn.0043fb25
mov esi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi], bl
je 0x410000
push ebx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x410198
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x80000000
push dword [ebp + 8]
call fcn.00410117
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x41022f
push esi
push eax
call fcn.00410176
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x4101ca
mov dword [esi], eax
jmp 0x4101cd
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4101f3
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.00444e15
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.0043e825
test edi, edi
je 0x410223
and dword [ebp + 0xc], 0
push 0
lea eax, [ebp + 0xc]
push eax
push dword [esi]
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x410212
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.004ae820
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x410232
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret
Function at 0x410a77
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x410a8c
mov eax, dword [esp + 4]
mov dword [ecx + 0x10], eax
cmp word [eax], 0x5a4d
je 0x410a90
xor eax, eax
jmp 0x410b05
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x410aa4
xor eax, eax
jmp 0x410b04
add edx, eax
mov dword [ecx + 0x14], edx
cmp dword [edx], 0x4550
jne 0x410aa0
mov si, word [edx + 0x16]
test si, 0x2002
movzx eax, si
je 0x410aa0
test byte [edx + 0x16], 2
je 0x410aa0
cmp word [edx + 0x14], 0xe0
jne 0x410aa0
add edx, 0xf8
push edi
mov edi, dword [ecx + 0x14]
xor esi, esi
mov dword [ecx + 0x18], edx
cmp word [edi + 6], si
jbe 0x410b03
add edx, 0x10
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, dword [esp + 0x10]
ja 0x410b01
mov edi, dword [ecx + 0x14]
movzx edi, word [edi + 6]
inc esi
add edx, 0x28
cmp esi, edi
jl 0x410ae5
jmp 0x410b03
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x410b79
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x4dcbdc], esi
setne bl
test bl, bl
je 0x410bd9
push 0x28
push 8
push dword [0x4dd1fc]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x410bad
push 2
call fcn.00444ca3
cmp eax, 4
pop ecx
je 0x410b8a
mov dword [esi + 4], 0xaa55
and dword [esi + 4], 0
mov dword [esi], 0x20
or dword [esi + 0x1c], 0xffffffff
add esi, 8
push esi
mov dword [esi + 0x10], 0xfff80000
push dword [0x4dcbdc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x410be3
mov dword [eax], esi
pop esi
mov al, bl
pop ebx
ret

Function at 0x410be8
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, 0x4dcd00
jne 0x410c13
push dword [0x4dcbdc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x410c1c
cmp dword [eax], ebx
je 0x410c1c
mov edi, eax
jmp 0x410c1c
cmp dword [ebp + 0xc], 0xffffffff
je 0x410c1c
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x410c71
cmp byte [ebp + 8], bl
je 0x410c71
cmp dword [esi + 4], ebx
jle 0x410c71
mov eax, dword [esi]
cmp word [eax], bx
je 0x410c71
test byte [0x4dd490], 2
push eax
je 0x410c56
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x410c71
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 0xc]
push ecx
add eax, eax
push eax
push dword [esi]
mov dword [ebp + 0xc], ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
dec eax
cmp eax, 0x1ffff
jb 0x410c8f
push 0x10002
mov ecx, esi
mov dword [esi + 8], 0x10000
call fcn.00444fb1
mov eax, dword [esi]
mov word [eax], bx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
leave
ret
Function at 0x411077
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x4110af
cdq
jmp 0x4110c2
cmp dword [ebp + 0xc], esi
je 0x4110bc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x4110c2
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x4110ed
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x4dcbdc]
mov edi, 0x4dcd00
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x411117
cmp dword [eax], ebx
je 0x411117
mov dword [ebp - 4], eax
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x4111db
push 0x4ddd50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x4111d0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0xc96
jge 0x411155
add eax, 0x10c96
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00444fb1
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea eax, [ecx + eax*2 + 0x1000]
mov word [eax], bx
mov edi, dword [ebp + 0xc]
cmp edi, 0xffff
ja 0x411186
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, eax
push dword [0x4dcc88]
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [ebp + 0x10]
push ecx
push edi
push 0x7fd
push eax
call fcn.004aeb91
add esp, 0x10
cmp eax, ebx
jge 0x4111a7
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x4111c4
cmp byte [0x4dcd19], bl
je 0x4111d0
push dword [ebp - 4]
push 1
call fcn.00410be8
pop ecx
pop ecx
push 0x4ddd50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4111e0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x4dcbdc]
mov edi, 0x4dcd00
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x411200
cmp dword [eax], ebx
je 0x411200
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x411291
push 0x4ddd50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x411286
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x896
jge 0x41123a
add eax, 0x10896
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00444fb1
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x18]
push ecx
push dword [esp + 0x18]
push 0x7fd
push eax
call fcn.004aeb91
add esp, 0x10
cmp eax, ebx
jge 0x41125f
xor eax, eax
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
cmp dword [esi + 4], 0x10000
jg 0x41127c
cmp byte [0x4dcd19], bl
je 0x411286
push edi
push 1
call fcn.00410be8
pop ecx
pop ecx
push 0x4ddd50
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x411405
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push ebx
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [esi + 0x1b]
push eax
lea ecx, [ebp + 8]
call fcn.00444f8a
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xb]
push ecx
push eax
push ebx
mov dword [ebp - 0x18], eax
mov word [eax], di
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp + 8]
push edi
push edi
push 0x31
mov word [eax + esi*2 + 0x14], di
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call esi
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push ebx
call esi
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x10], edi
jge 0x4114d1
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx edx, word [ebp + 0x10]
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
push edi
push dword [0x4dcfa8]
push edx
push dword [ebp - 4]
push eax
push ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
push 0x4c3dd4
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push dword [ebp - 0x14]
mov edi, eax
push 0x30
push edi
call esi
push dword [ebp - 0x18]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0xb1
push edi
call esi
lea ecx, [ebp + 8]
call fcn.0043e825
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4117ee
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.00444f8a
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x411882
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.004110c5
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x411871
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x41186b
dec eax
jne 0x411871
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x411871
mov esi, eax
jmp 0x411885
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x411838
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.0043e825
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x411e1c
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411e4d
xor eax, eax
jmp 0x411ebc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x411eb1
cmp word [ebp - 0x48], 0x5a4d
jne 0x411eb1
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411eb1
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x411eb1
cmp dword [ebp - 0x140], 0x4550
jne 0x411eb1
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4120c5
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4120fb
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4120f4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4120f4
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x4121ad
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 1
jne 0x4121f0
push 0x5c
push 0
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x4121f0
sub eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
sar eax, 1
inc eax
push eax
push dword [ebp + 0xc]
call fcn.0044e844
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 8]
mov byte [esi], 2
call fcn.0043e825
mov al, byte [esi]
pop esi
pop ebp
ret

Function at 0x4121f5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4c4024
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x4dd0f0
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x41228f
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00460564
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00444692
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x41221f
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x4122b3
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.00434146
leave
ret