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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040d490
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40caea
push 0xf01ff
push str.WinMaster_Service7
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40cae7
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call ebx
push str._t_t_t_Terminate_All_Service__done.
call fcn.004033d0
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
add esp, 4
push 0
push str.Win_Win7_32_User_Class7
call edi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x40cb26
push 0
push 0
push 0x10
push eax
call esi
push 0
push str.Win_Win7_32_Proc_Class7
call edi
test eax, eax
je 0x40cb3c
push 0
push 0
push 0x10
push eax
call esi
push 0
push str.Win_Win7_32_Service_Class7
call edi
test eax, eax
je 0x40cb52
push 0
push 0
push 0x10
push eax
call esi
push str._t_t_t_Terminate_All_AP__done.
call fcn.004033d0
add esp, 4
push 0x7d0
call ebx
call fcn.0040cb80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040d7f6
mov esp, ebp
pop ebp
ret
Function at 0x40d7f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42603c]
jne 0x40d800
repz ret
jmp fcn.0040f148

Function at 0x40e72e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40e755
call fcn.0041048e
mov dword [eax], esi
call fcn.0041047b
push 0x16
pop esi
mov dword [eax], esi
call fcn.00410429
mov eax, esi
jmp 0x40e7aa
test dword [ebp + 0xc], 0xfffffff9
jne 0x40e73b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e782
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004104a1
pop ecx
call fcn.0041047b
mov eax, dword [eax]
jmp 0x40e7aa
test al, 0x10
jne 0x40e7a8
test al, 1
je 0x40e7a8
test byte [ebp + 0xc], 2
je 0x40e7a8
call fcn.0041048e
mov dword [eax], 5
call fcn.0041047b
mov dword [eax], 0xd
jmp 0x40e779
xor eax, eax
pop esi
pop ebp
ret
Function at 0x415244
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040fc6b
and dword [ebp - 0x14], 0
cmp dword [0x4286dc], 0
mov dword [ebp - 0x18], eax
jne 0x4152f7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41539f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419af8
push ebx
call edi
test eax, eax
je 0x41539f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4286dc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4286e0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4286e4], eax
call edi
push eax
call esi
mov dword [0x4286ec], eax
test eax, eax
je 0x4152f7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4286e8], eax
mov eax, dword [0x4286e8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x415350
cmp dword [0x4286ec], ecx
je 0x415350
push eax
call esi
push dword [0x4286ec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x415350
test ebx, ebx
je 0x415350
call edi
test eax, eax
je 0x415347
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x415347
test byte [ebp - 8], 1
jne 0x415350
or dword [ebp + 0x10], 0x200000
jmp 0x415383
mov eax, dword [0x4286e0]
cmp eax, dword [ebp - 0x18]
je 0x415383
push eax
call esi
test eax, eax
je 0x415383
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x415383
mov eax, dword [0x4286e4]
cmp eax, dword [ebp - 0x18]
je 0x415383
push eax
call esi
test eax, eax
je 0x415383
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4286dc]
call esi
test eax, eax
je 0x41539f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4153a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7f6
leave
ret
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
push ebx
push esi
sub eax, 0xa
mov dword [ebp - 8], ecx
movzx eax, ax
xor esi, esi
push edi
movzx edi, ax
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
call fcn.10008514
add esp, 4
mov dword [ebp + 0x14], eax
cmp word [ebp - 4], si
jbe 0x1000110a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.100084e5
mov esi, dword [ebp + 0x14]
mov ebx, edi
add esp, 4
mov edi, 0x5e
call fcn.100084c4
cdq
lea esi, [esi + 1]
idiv edi
add dl, 0x20
mov byte [esi - 1], dl
sub ebx, 1
jne 0x10001052
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov word [esi + 8], ax
lea eax, [esi + 0xa]
push eax
mov dword [ebp + 0x10], eax
call fcn.10007f50
mov ebx, dword [ebp + 0xc]
add esp, 0xc
xor ecx, ecx
test ebx, ebx
jle 0x100010c4
add esi, edi
mov eax, ecx
cdq
idiv edi
mov eax, dword [ebp + 0x14]
mov dl, byte [edx + eax]
mov eax, dword [ebp + 8]
mov al, byte [ecx + eax]
test al, al
je 0x100010bb
cmp al, dl
je 0x100010bb
xor al, dl
mov byte [esi + ecx + 0xa], al
inc ecx
cmp ecx, ebx
jl 0x100010a0
xor esi, esi
mov dword [ebp - 0x18], 0x37313826
mov dword [ebp - 0x14], 0x2f414030
mov word [ebp - 0x10], 0x3e63
test edi, edi
je 0x10001102
nop
mov eax, 0xcccccccd
mul esi
mov eax, esi
shr edx, 3
lea ecx, [edx + edx*4]
add ecx, ecx
sub eax, ecx
mov ecx, dword [ebp + 0x10]
mov al, byte [ebp + eax - 0x18]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x100010e0
mov eax, dword [ebp + 0x14]
mov esi, 1
push eax
call fcn.100084f7
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100015a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x22a]
push 0x1ea
mov edx, 0x5c
mov dword [ebp - 0x248], 0x3a0043
push 0
push eax
mov dword [ebp - 0x244], 0x50005c
mov dword [ebp - 0x240], 0x6f0072
mov dword [ebp - 0x23c], 0x720067
mov dword [ebp - 0x238], 0x6d0061
mov dword [ebp - 0x234], 0x610044
mov dword [ebp - 0x230], 0x610074
mov word [ebp - 0x22c], dx
call fcn.10006250
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6f0043
mov dword [ebp - 0x10], 0x6d006d
mov dword [ebp - 0xc], 0x5c0073
push eax
lea eax, [ebp - 0x248]
push eax
call esi
xor eax, eax
mov dword [ebp - 0x40], 0x69004d
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], 0x720063
push eax
mov dword [ebp - 0x38], 0x73006f
mov dword [ebp - 0x34], 0x66006f
mov dword [ebp - 0x30], 0x5c0074
call esi
xor eax, eax
mov dword [ebp - 0x28], 0x690057
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x24], 0x64006e
push eax
mov dword [ebp - 0x20], 0x77006f
mov dword [ebp - 0x1c], 0x5c0073
call esi
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004cce
mov esp, ebp
pop ebp
ret 4

Function at 0x100016f0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
jmp 0x10001760
jmp fcn.10001770
Function at 0x10001770
Capabilities:
Accept command line arguments
Contain obfuscated stackstrings
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [eax + 0x10019870]
movups xmm1, xmmword [eax + 0x10019871]
pxor xmm1, xmm0
movups xmmword [eax + 0x10019870], xmm1
movups xmm0, xmmword [eax + 0x10019880]
movups xmm1, xmmword [eax + 0x10019881]
pxor xmm1, xmm0
movups xmmword [eax + 0x10019880], xmm1
movups xmm0, xmmword [eax + 0x10019890]
movups xmm1, xmmword [eax + 0x10019891]
pxor xmm1, xmm0
movups xmmword [eax + 0x10019890], xmm1
movups xmm1, xmmword [eax + 0x100198a1]
movups xmm0, xmmword [eax + 0x100198a0]
pxor xmm1, xmm0
movups xmmword [eax + 0x100198a0], xmm1
add eax, 0x40
cmp eax, 0x840
jl 0x10001790
cmp eax, 0x87f
jge 0x10001827
mov bl, byte [eax + 0x10019870]
lea esi, [eax + 0x10019870]
mov al, byte [esi + 1]
lea ecx, [esi + 1]
xor al, bl
mov bl, byte [ecx]
mov byte [esi], al
mov esi, ecx
cmp esi, 0x1001a0ef
jl 0x10001811
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x3c], 2
mov esi, eax
jne 0x100018f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.100084e5
add esp, 4
call fcn.10001d40
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x62002f
push eax
push dword [esi + 4]
mov dword [ebp - 0x34], 0x630061
mov dword [ebp - 0x30], 0x67006b
mov dword [ebp - 0x2c], 0x6f0072
mov dword [ebp - 0x28], 0x6e0075
mov dword [ebp - 0x24], 0x64
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100018f1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x6c656873
push eax
mov dword [ebp - 0xc], 0x2e32336c
mov dword [ebp - 8], 0x6c6c64
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x100018f8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x6c656853
push ecx
push eax
mov dword [ebp - 0x1c], 0x6578456c
mov dword [ebp - 0x18], 0x65747563
mov word [ebp - 0x14], 0x57
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001ae58], eax
test eax, eax
je 0x100018f8
call fcn.10001b60
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001b60
Capabilities:
Check mutex on windows
Contain obfuscated stackstrings
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001140b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10c
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.10006250
push 0x208
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.10006250
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1c]
add esp, 0x18
mov dword [ebp - 0x1c], 0x696b6447
mov dword [ebp - 0x18], 0x694e676e
mov dword [ebp - 0x14], 0x746867
push eax
lea eax, [ebp - 0x22c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x128]
push eax
call esi
mov byte [ebp - 0x128], 0x4d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push eax
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, eax
test edi, edi
je 0x10001c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov ecx, 1
push edi
cmove esi, ecx
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0x20]
test esi, esi
jne 0x10001cf4
test eax, eax
je 0x10001c5c
push eax
call ebx
push dword [ebp - 0x20]
call edi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10001cc7
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10001b50
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10001910
push 0
push 0
mov dword [ebp - 0x230], eax
call esi
mov ecx, eax
mov eax, dword [ebp - 0x230]
cmp eax, 0xffffffff
je 0x10001cbb
cmp ecx, 0xffffffff
jne 0x10001d35
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10001cd9
push ecx
call ebx
push dword [ebp - 0x24]
call edi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x10001ced
push eax
call ebx
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10001cf7
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10001d06
push ecx
call ebx
push dword [ebp - 0x24]
call edi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
test eax, eax
je 0x10001d19
push eax
call ebx
push dword [ebp - 0x20]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004cce
mov esp, ebp
pop ebp
ret
call fcn.10002210
int3
Function at 0x10001d40
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40ac
call fcn.10011080
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x40ac]
mov dword [ebp - 0xa8], 0x4f0053
push eax
push 2
xor edi, edi
mov dword [ebp - 0xa4], 0x540046
push edi
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa0], 0x410057
push eax
push 0x80000001
mov dword [ebp - 0x9c], 0x450052
mov dword [ebp - 0x98], 0x4d005c
mov dword [ebp - 0x94], 0x630069
mov dword [ebp - 0x90], 0x6f0072
mov dword [ebp - 0x8c], 0x6f0073
mov dword [ebp - 0x88], 0x740066
mov dword [ebp - 0x84], 0x57005c
mov dword [ebp - 0x80], 0x6e0069
mov dword [ebp - 0x7c], 0x6f0064
mov dword [ebp - 0x78], 0x730077
mov dword [ebp - 0x74], 0x43005c
mov dword [ebp - 0x70], 0x720075
mov dword [ebp - 0x6c], 0x650072
mov dword [ebp - 0x68], 0x74006e
mov dword [ebp - 0x64], 0x650056
mov dword [ebp - 0x60], 0x730072
mov dword [ebp - 0x5c], 0x6f0069
mov dword [ebp - 0x58], 0x5c006e
mov dword [ebp - 0x54], 0x750052
mov dword [ebp - 0x50], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001f89
push 0x2000
push eax
mov dword [ebp - 0x14], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x40a8]
push eax
mov dword [ebp - 0x24], 0x690057
mov dword [ebp - 0x20], 0x42006e
mov dword [ebp - 0x1c], 0x6f006f
mov dword [ebp - 0x18], 0x74
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
call fcn.10006250
add esp, 0xc
lea eax, [ebp - 0x40a8]
push eax
call fcn.100015a0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40a8]
mov dword [ebp - 0x34], 0x740053
push eax
mov dword [ebp - 0x30], 0x720061
mov dword [ebp - 0x2c], 0x5c0074
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x40a8]
push eax
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40a8]
push eax
call esi
push 0x2000
lea eax, [ebp - 0x20a8]
push edi
push eax
call fcn.10006250
add esp, 0xc
lea eax, [ebp - 0x20a8]
push 0x10016c18
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x40a8]
push eax
lea eax, [ebp - 0x20a8]
push eax
call esi
push 0x10016c1c
lea eax, [ebp - 0x20a8]
push eax
call esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x62002f
push eax
lea eax, [ebp - 0x20a8]
mov dword [ebp - 0x48], 0x630061
push eax
mov dword [ebp - 0x44], 0x67006b
mov dword [ebp - 0x40], 0x6f0072
mov dword [ebp - 0x3c], 0x6e0075
mov dword [ebp - 0x38], 0x64
call esi
lea eax, [ebp - 0x20a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x20a8]
push eax
push 1
push edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x40ac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
push dword [ebp - 0x40ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004cce
mov esp, ebp
pop ebp
ret
Function at 0x10001fb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002089
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x2c0
jb 0x10002082
push esi
push 0x2c0
call fcn.10008514
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
xor esi, esi
nop
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, 0x2c0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000203f
add esi, dword [ebp - 8]
cmp esi, 0x2c0
jb 0x10002010
mov edi, 0
cmp esi, 0x2c0
jne 0x10002076
mov ecx, dword [ebp - 0xc]
mov edx, 0x1001a0f0
mov esi, 0x2bc
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10002076
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10002060
mov edi, 1
push dword [ebp - 0xc]
call fcn.100084f7
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.10004cce
mov esp, ebp
pop ebp
ret
Function at 0x10002370
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10002490
mov edx, 1
sub edx, esi
mov dword [ebp - 0x30], edx
xor edx, edx
nop dword [eax + eax]
mov edi, eax
mov dword [ebp - 0x2c], edi
test al, 1
je 0x10002471
mov bl, byte [ebp - 0x24]
add bl, 0x41
cmp bl, 0x43
je 0x1000246b
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x5c2e5c5c
push eax
mov word [ebp - 0xb], 0x3a
mov byte [ebp - 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002465
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 8
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x2d0c14
push edi
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10002453
cmp byte [ebp - 0x16], 0
je 0x10002453
cmp byte [ebp - 0x18], 0
je 0x10002453
mov byte [esi], bl
inc esi
mov ebx, dword [ebp - 0x20]
inc ebx
push edi
mov dword [ebp - 0x20], ebx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
jmp 0x1000246e
mov ebx, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
jmp 0x1000246e
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
inc edx
shr eax, 1
add ecx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp ecx, 0x104
jge 0x10002490
cmp edi, 2
jae 0x100023b0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004cce
mov esp, ebp
pop ebp
ret 4
Function at 0x10002590
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x10019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
mov ebx, ecx
push esi
push eax
mov dword [ebp - 0x680], ebx
call fcn.10006250
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10016c28
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x684], edi
cmp edi, 0xffffffff
je 0x100027a9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
xor ebx, ebx
mov dword [ebp - 0x67c], ebx
nop dword [eax + eax]
lea eax, [ebp - 0x64c]
push eax
push 0x10016c2c
call esi
test eax, eax
je 0x10002786
lea eax, [ebp - 0x64c]
push eax
push 0x10016c30
call esi
test eax, eax
je 0x10002786
test byte [ebp - 0x678], 0x10
jne 0x10002786
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10006250
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002780
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xa
jbe 0x10002780
push 0xa
call fcn.10008514
add esp, 4
mov edi, eax
xor esi, esi
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
mov eax, 0xa
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002715
add esi, dword [ebp - 0x424]
cmp esi, 0xa
jb 0x100026e0
mov ebx, dword [ebp - 0x67c]
cmp esi, 0xa
jne 0x10002769
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4034b50
mov dword [ebp - 8], 0x14
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x10002769
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
jne 0x10002769
movzx eax, byte [edi + 8]
mov byte [ebp - 0x428], al
movzx eax, byte [edi + 9]
mov byte [ebp - 0x427], al
mov eax, dword [ebp - 0x428]
add eax, 0xffffffe0
cmp ax, 0x7f
ja 0x10002769
inc ebx
mov dword [ebp - 0x67c], ebx
push edi
call fcn.100084f7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
add esp, 4
mov edi, dword [ebp - 0x684]
jmp 0x10002786
mov ebx, dword [ebp - 0x67c]
lea eax, [ebp - 0x678]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002620
xor esi, esi
mov eax, 1
cmp ebx, 2
cmovge esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004cce
mov esp, ebp
pop ebp
ret