joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100066c5
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 0x100066e7
call fcn.10002df6
test al, al
jne 0x100066ef
inc esi
inc esi
mov ax, word [esi]
cmp ax, bx
jne 0x100066dc
mov eax, esi
sub eax, edx
sar eax, 1
mov ecx, 0x400
cmp eax, ecx
jle 0x10006700
mov eax, ecx
lea edi, [eax + eax]
push edi
push edx
lea eax, [ebp - 0x824]
push eax
call fcn.100144ff
add esp, 0xc
mov word [ebp + edi - 0x824], bx
jmp 0x10006720
inc esi
inc esi
mov ax, word [esi]
call fcn.10002df6
test al, al
jne 0x1000671e
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 0x1000678e
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 0x1000678e
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 0x10006794
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006884
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.1000408e
mov edx, eax
mov ecx, edx
call fcn.10004155
mov esi, eax
sub esi, edx
sar esi, 1
mov eax, 0x3e8
cmp esi, eax
jl 0x100068d2
mov esi, eax
push esi
push edx
lea eax, [ebp - 0x7e8]
push eax
call fcn.10005b3b
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 0x10006947
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 0x10006947
push 0x64
push edi
push esi
call fcn.100040a1
mov dword [esi], 0xffffffff
mov dword [esi + 8], edi
lea eax, [esi + 4]
add esp, 0xc
mov dword [0x100e111c], eax
mov dword [0x100e2c5c], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008e77
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 [0x100e2c50], 0
call ebx
and dword [esi], 0
test edi, edi
je 0x10008eb6
mov eax, dword [edi]
test eax, eax
je 0x10008eb6
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 0x10008ece
push 1
push 0
push str.shutdown__a
call fcn.1000643e
add esp, 0xc
push dword [0x100e2ccc]
call fcn.100041d3
cmp byte [esp + 0x10], 0
pop ecx
je 0x10008efa
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 0x10008ee4
pop esi
pop ebx
ret
Function at 0x1000f9dc
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x100e2d50
mov dword [0x100e2d50], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x100e2d54], 5
je 0x1000fa04
xor eax, eax
leave
ret
mov eax, dword [0x100e2d58]
push ebx
push edi
xor edi, edi
sub eax, edi
je 0x1000fa1f
dec eax
jne 0x1000faa0
mov ebx, 0x39000
jmp 0x1000fa24
mov ebx, 0x30000
push esi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [0x100e2d18]
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 6
mov esi, 0x100e2e88
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 [0x100e2cf0]
cmp eax, 0xc0000022
jne 0x1000fa9b
lea eax, [ebp - 0x20]
push eax
push 0x60000
push esi
call dword [0x100e2cf0]
push dword [0x100e2e88]
call fcn.1000f90e
pop ecx
push dword [0x100e2e88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push 6
push esi
call dword [0x100e2cf0]
cmp eax, edi
pop esi
jge 0x1000faa4
xor eax, eax
jmp 0x1000fac8
push 0x1000
push ebx
push edi
push 6
push dword [0x100e2e88]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100e2e84], eax
neg eax
sbb eax, eax
and eax, dword [0x100e2e88]
pop edi
pop ebx
leave
ret

Function at 0x1000facc
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 0x1000fae5
xor eax, eax
pop edi
ret
test al, al
push esi
jns 0x1000faf8
mov esi, eax
xor esi, edi
and esi, 0x3fffff
xor esi, eax
jmp 0x1000fb40
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [0x100e2e88]
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 0x1000fb2d
xor eax, eax
jmp 0x1000fb42
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 0x1000fb45
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 8]
push dword [0x100e2e84]
call fcn.1000facc
pop ecx
pop ecx
push 0x1000
mov esi, eax
and eax, 0xfffff000
push eax
push 0
push 6
push dword [0x100e2e88]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x1000fb7a
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 0x1000fc68
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 0x1000fc86
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret
Function at 0x1000fc8a
Capabilities:
Check mutex on windows

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

Function at 0x1000fde0
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 0x1000fe3c
push esi
push 2
push ebx
push ebx
push edi
call fcn.10040d01
mov esi, dword [ebp + 8]
add esp, 0x10
cmp byte [esi], bl
je 0x1000fe34
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 0x1000ffcc
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.1000ff4b
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x10010063
push esi
push eax
call fcn.1000ffaa
mov esi, dword [ebp + 0x10]
test esi, esi
pop ecx
mov dword [ebp - 8], eax
je 0x1000fffe
mov dword [esi], eax
jmp 0x10010001
lea esi, [ebp - 8]
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10010027
add eax, 0x10
push eax
lea ecx, [ebp + 0xc]
call fcn.10045fcc
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
lea ecx, [ebp + 0xc]
call fcn.1003f96c
test edi, edi
je 0x10010057
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 0x10010046
xor eax, eax
push 6
mov dword [esi], eax
add eax, edi
push 0
push eax
call fcn.100b40f0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
jmp 0x10010066
mov edi, dword [ebp + 0xc]
mov eax, edi
pop edi
leave
ret
Function at 0x100108ab
Capabilities:
Parse pe header

Disassembly:
cmp dword [esp + 8], 0x40
jb 0x100108c0
mov eax, dword [esp + 4]
mov dword [ecx + 0x10], eax
cmp word [eax], 0x5a4d
je 0x100108c4
xor eax, eax
jmp 0x10010939
mov edx, dword [eax + 0x3c]
push esi
lea esi, [edx + 0xf8]
cmp dword [esp + 0xc], esi
jae 0x100108d8
xor eax, eax
jmp 0x10010938
add edx, eax
mov dword [ecx + 0x14], edx
cmp dword [edx], 0x4550
jne 0x100108d4
mov si, word [edx + 0x16]
test si, 0x2002
movzx eax, si
je 0x100108d4
test byte [edx + 0x16], 2
je 0x100108d4
cmp word [edx + 0x14], 0xe0
jne 0x100108d4
add edx, 0xf8
push edi
mov edi, dword [ecx + 0x14]
xor esi, esi
mov dword [ecx + 0x18], edx
cmp word [edi + 6], si
jbe 0x10010937
add edx, 0x10
mov edi, dword [edx + 4]
add edi, dword [edx]
cmp edi, dword [esp + 0x10]
ja 0x10010935
mov edi, dword [ecx + 0x14]
movzx edi, word [edi + 6]
inc esi
add edx, 0x28
cmp esi, edi
jl 0x10010919
jmp 0x10010937
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x100109ad
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
xor esi, esi
cmp dword [0x100e2bdc], esi
setne bl
test bl, bl
je 0x10010a0d
push 0x28
push 8
push dword [0x100e3214]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x100109e1
push 2
call fcn.10045e5a
cmp eax, 4
pop ecx
je 0x100109be
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 [0x100e2bdc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10010a17
mov dword [eax], esi
pop esi
mov al, bl
pop ebx
ret

Function at 0x10010a1c
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, 0x100e2cf8
jne 0x10010a47
push dword [0x100e2bdc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
je 0x10010a50
cmp dword [eax], ebx
je 0x10010a50
mov edi, eax
jmp 0x10010a50
cmp dword [ebp + 0xc], 0xffffffff
je 0x10010a50
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x10010aa5
cmp byte [ebp + 8], bl
je 0x10010aa5
cmp dword [esi + 4], ebx
jle 0x10010aa5
mov eax, dword [esi]
cmp word [eax], bx
je 0x10010aa5
test byte [0x100e34ac], 2
push eax
je 0x10010a8a
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 0x10010aa5
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 0x10010ac3
push 0x10002
mov ecx, esi
mov dword [esi + 8], 0x10000
call fcn.10046168
mov eax, dword [esi]
mov word [eax], bx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
leave
ret
Function at 0x10010ec0
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 0x10010ef8
cdq
jmp 0x10010f0b
cmp dword [ebp + 0xc], esi
je 0x10010f05
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x10010f0b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x10010f36
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x100e2bdc]
mov edi, 0x100e2cf8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x10010f60
cmp dword [eax], ebx
je 0x10010f60
mov dword [ebp - 4], eax
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x10011024
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x10011019
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0xc96
jge 0x10010f9e
add eax, 0x10c96
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.10046168
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 0x10010fcf
push 0x400
push eax
push dword [ebp + 0xc]
mov edi, eax
push dword [0x100e2c88]
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.100b4461
add esp, 0x10
cmp eax, ebx
jge 0x10010ff0
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 0x1001100d
cmp byte [0x100e2d11], bl
je 0x10011019
push dword [ebp - 4]
push 1
call fcn.10010a1c
pop ecx
pop ecx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011029
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push dword [0x100e2bdc]
mov edi, 0x100e2cf8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
je 0x10011049
cmp dword [eax], ebx
je 0x10011049
mov edi, eax
cmp dword [edi], ebx
lea esi, [edi + 4]
je 0x100110da
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi], ebx
je 0x100110cf
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, eax
cmp ecx, 0x896
jge 0x10011083
add eax, 0x10896
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.10046168
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.100b4461
add esp, 0x10
cmp eax, ebx
jge 0x100110a8
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 0x100110c5
cmp byte [0x100e2d11], bl
je 0x100110cf
push edi
push 1
call fcn.10010a1c
pop ecx
pop ecx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret
Function at 0x1001124e
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.10046141
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 0x1001131a
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 [0x100e2fc0]
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 0x100c8e04
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.1003f96c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100117d1
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.10046141
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 0x10011865
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.10010f0e
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x10011854
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x1001184e
dec eax
jne 0x10011854
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 0x10011854
mov esi, eax
jmp 0x10011868
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 0x1001181b
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10011e13
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 0x10011e44
xor eax, eax
jmp 0x10011eb3
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 0x10011ea8
cmp word [ebp - 0x48], 0x5a4d
jne 0x10011ea8
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10011ea8
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 0x10011ea8
cmp dword [ebp - 0x140], 0x4550
jne 0x10011ea8
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 0x100120bc
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 0x100120f2
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x100120eb
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100120eb
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
Function at 0x100121a4
Capabilities:
Set current directory

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

Function at 0x100121ec
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x100c903c
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, 0x100e3108
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 0x10012286
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.10063431
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.100457c2
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x10012216
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x100122aa
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.10034bed
leave
ret