joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003ce07
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10055140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100317af
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100317af
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1003ce7e
cmp word [ecx], dx
je 0x1003ce7e
mov eax, dword [0x1004aa0c]
push edi
dec eax
push eax
push 0x1004a8f8
call fcn.1003cda6
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003cef1
cmp word [eax], dx
je 0x1003cef1
mov eax, dword [edi]
test eax, eax
je 0x1003cea2
cmp word [eax], dx
je 0x1003cea2
lea eax, [ebp - 0x10]
push eax
call fcn.1003c789
jmp 0x1003ceab
lea eax, [ebp - 0x10]
push eax
call fcn.1003c824
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003cf1b
mov eax, dword [0x1004a8f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1004a5e8
call fcn.1003cda6
add esp, 0xc
test al, al
je 0x1003cf1b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003cee6
cmp word [eax], di
je 0x1003cee6
lea eax, [ebp - 0x10]
push eax
call fcn.1003c789
pop ecx
jmp 0x1003cf1d
lea eax, [ebp - 0x10]
push eax
call fcn.1003c824
jmp 0x1003cee3
mov eax, dword [edi]
test eax, eax
je 0x1003cf08
cmp word [eax], dx
je 0x1003cf08
lea eax, [ebp - 0x10]
push eax
call fcn.1003c73e
pop ecx
jmp 0x1003cf1b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1003cfe6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003cc2b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003cfe6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003cfe6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003cfe6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003cf73
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1002ff03
test ebx, ebx
je 0x1003cfe1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1002ff03
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003cfe6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003cfe6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1003f102
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003cfe8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002486b
leave
ret
Function at 0x1003f321
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1003f29d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1003f490
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1003f490
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1003f445
jg 0x1003f37d
test eax, eax
je 0x1003f43b
push 1
push 0x1000
call fcn.1002f852
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1003f3a0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003f432
push 0x8000
push ebx
call fcn.1003f1ce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1003f3c9
jg 0x1003f3c4
cmp ecx, 0x1000
jb 0x1003f3c9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10034790
add esp, 0x10
cmp eax, 0xffffffff
je 0x1003f40e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1003f3c4
jl 0x1003f3f5
test ecx, ecx
jne 0x1003f3b6
push dword [ebp - 0xc]
push ebx
call fcn.1003f1ce
push esi
call fcn.1002f8af
add esp, 0xc
xor ebx, ebx
jmp 0x1003f49e
cmp byte [edi + 0x24], 0
je 0x1003f425
cmp dword [edi + 0x20], 5
jne 0x1003f425
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1003f430
mov ebx, dword [edi + 0x18]
jmp 0x1003f432
xor ebx, ebx
push esi
call fcn.1002f8af
pop ecx
jmp 0x1003f49e
test ecx, ecx
jg 0x1003f407
jl 0x1003f445
test eax, eax
jae 0x1003f407
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10035f64
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1003f465
cmp byte [edi + 0x1c], 0
je 0x1003f407
jmp 0x1003f496
push ebx
call fcn.100391c0
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1003f407
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003f49e
cmp byte [edi + 0x1c], 0
je 0x1003f49b
mov ebx, dword [edi + 0x18]
jmp 0x1003f49e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10035f64
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10040ba0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10040bcd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10040bcd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406048
xor eax, eax
test eax, eax
je 0x40605a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40605a
xor ecx, ecx
jmp 0x40605d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x40613e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406118
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406113
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40616f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406151
pop edi
not eax
pop esi
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x406b2c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004043f0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406bc7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4092e4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406bc7
cmp eax, 1
je 0x406be8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406bc7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406b94
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406bc3
xor eax, eax
inc eax
jmp 0x406c07
cmp edi, eax
jae 0x406bcb
xor eax, eax
jmp 0x406c07
cmp eax, esi
jae 0x406bd2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4092e4]
jmp 0x406beb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x100034e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 8]
call fcn.1000bb80
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x100035a5
push 0x1000fe00
push 0x10090a78
push 0x10086cb0
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b860
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 8]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003599
cmp dword [ebp - 8], 0
jbe 0x10003599
mov eax, dword [ebp - 8]
xor ecx, ecx
push ecx
push eax
lea edx, [ebp - 0x408]
push edx
mov ecx, 0x10086cb0
call fcn.1000b400
jmp 0x10003559
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100035e7
push 0x1000fe00
push 0x10090a8c
push 0x10086cb0
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b860
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x10004d00
Capabilities:
Delete directory
Log keystrokes via polling
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10004e95
push 0x10090bf0
mov eax, dword [ebp + 8]
push eax
call fcn.100218c4
add esp, 8
test eax, eax
jne 0x10004e95
push 0
push 0x10090c00
call dword [sym.imp.USER32.dll_OemToCharW]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CreateIconFromResource]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutexWhenCallbackReturns]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CheckNameLegalDOS8Dot3W]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push 0
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
push 0
push 0
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
push 0
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0
push 0
call dword [sym.imp.USER32.dll_CharLowerBuffW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessPreferredUILanguages]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push 0
call dword [sym.imp.USER32.dll_SetDisplayAutoRotationPreferences]
push 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push 0
call dword [sym.imp.KERNEL32.dll_GetPhysicallyInstalledSystemMemory]
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_PrintWindow]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov ecx, 4
imul edx, ecx, 0x82
add edx, dword [0x10087b48]
push edx
mov eax, 4
imul ecx, eax, 0x82
mov edx, dword [0x10087b48]
mov eax, dword [edx + ecx]
push eax
mov ecx, 4
imul edx, ecx, 0x1b
mov eax, dword [0x10087b48]
mov ecx, dword [eax + edx]
push ecx
mov edx, 4
imul eax, edx, 0xe5
mov ecx, dword [0x10087b5c]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebp
ret
Function at 0x10006780
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035de9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x518
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x2d4]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], 0x10090efc
mov dword [ebp - 0x44], 0x41
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1000696a
lea ecx, [ebp - 0x2d4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, 0x10087b84
call fcn.10009ef0
lea ecx, [ebp - 0x2d4]
push ecx
lea ecx, [ebp - 0x84]
call fcn.1000bc10
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
push 0x10090f20
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.10010160
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.1000bba0
lea edx, [ebp - 0x524]
push edx
lea ecx, [ebp - 0x6c]
call fcn.1000bb80
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x10006943
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0xcc]
call fcn.1000bc10
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 3
push 0x10090f30
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xb4]
push eax
call fcn.10010160
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x4f8]
push edx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.10010160
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x34]
push eax
mov ecx, 0x10087b84
call fcn.10009f50
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x9c]
call fcn.1000bba0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xb4]
call fcn.1000bba0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.1000bba0
lea ecx, [ebp - 0x524]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1000687a
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [0x10037b0c], 0xffffffff
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1000bba0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100081e0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0x41
cmp dword [ebp - 8], 0
je 0x10008318
mov eax, dword [ebp - 8]
and eax, 1
je 0x10008302
movsx ecx, byte [ebp - 1]
push ecx
push 0x100912a8
lea edx, [ebp - 0xc]
push edx
call fcn.10010190
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10008302
push 0x1000fe00
lea ecx, [ebp - 0xc]
push ecx
push 0x100912b0
push 0x10086cb0
call fcn.1000fe30
add esp, 8
push eax
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b860
push 0x1000fe00
push 0x100912cc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x100912e0
push 0x10086cb0
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b530
push eax
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b860
push 0x1000fe00
push 0x100912f4
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x10]
push edx
push ecx
push 0x10091310
push 0x10086cb0
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b530
push eax
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b860
push 0x1000fe00
push 0x10091328
push 0x10086cb0
call fcn.1000fe30
add esp, 8
mov ecx, eax
call fcn.1000b860
mov eax, dword [ebp - 8]
shr eax, 1
mov dword [ebp - 8], eax
mov cl, byte [ebp - 1]
add cl, 1
mov byte [ebp - 1], cl
jmp 0x100081f3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10020c9e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10020cdd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10020cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10020cdd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10020cdd
cmp dword [ecx + 0x74], 0xe
jbe 0x10020cdd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10027f34
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008cd90
push 0x1008cd88
push 0x1008a68c
push 0x1f
call fcn.10027d9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10027f68
push dword [ebp + 8]
mov ecx, esi
call dword [0x10088b0c]
call esi
jmp 0x10027f6e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10027fb2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008cda0
push 0x1008cd98
push 0x1008a6b0
push 0x21
call fcn.10027d9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10027fe9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10088b0c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10027ff4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1008cda8
push 0x1008cda0
push 0x1008a6c4
push 0x22
call fcn.10027d9f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002802e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10088b0c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10028733
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100177a0
mov eax, dword [0x10037080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10022102
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10028775
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100288d1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10035400
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10087708]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10029f21
mov ecx, dword [esi*4 + 0x10087708]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100288ca
cmp eax, dword [ecx + edi + 0x24]
jne 0x100288ca
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100288ca
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10029f21
add esp, 0x14
test edx, edx
jl 0x100288ca
jg 0x10028840
test eax, eax
jb 0x100288ca
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100288ca
jl 0x1002885a
cmp dword [ebp - 0x1008], eax
ja 0x100288ca
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10028878
test ebx, ebx
je 0x100288b1
cmp ecx, edi
jae 0x100288b1
mov al, byte [ecx]
cmp al, 0xd
jne 0x10028892
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1002889e
cmp byte [ecx + 1], 0xa
jne 0x1002889e
inc ecx
jmp 0x1002889e
movzx eax, al
movsx eax, byte [eax + 0x10037330]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10028878
cmp edx, ebx
jne 0x10028878
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100288cf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10016f16
leave
ret