joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d0b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x8c]
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, 0xf
push ebx
mov ebx, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
lea esi, [eax*4 + 0x100cc7a0]
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x50]
mov eax, edi
imul eax, dword [esp + 0x84]
mov edx, edi
imul edx, dword [esp + 0x90]
imul edi, dword [esp + 0x8c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], edi
test eax, eax
jle 0x1000d14d
mov esi, eax
push edx
push ebp
push ebx
call fcn.100922e0
add ebp, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edi
dec esi
jne 0x1000d135
mov eax, dword [esp + 0x20]
mov ecx, 1
sub eax, dword [esp + 0x10]
imul eax, edi
mov dword [esp + 0x28], ecx
add ebx, eax
cmp dword [esp + 0x54], ecx
jle 0x1000d201
lea ecx, [ecx]
mov esi, dword [esp + ecx*4 + 0x68]
mov eax, edx
cdq
idiv esi
mov ecx, dword [esp + ecx*4 + 0x58]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cdq
idiv ecx
mov ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x24]
cdq
idiv esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
cdq
idiv esi
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x1000d1e3
mov esi, ecx
mov edi, eax
jmp 0x1000d1c0
push dword [esp + 0x38]
push ebp
push ebx
call fcn.100922e0
add ebp, dword [esp + 0x3c]
add esp, 0xc
add ebx, edi
dec esi
jne 0x1000d1c0
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub edi, ecx
mov ecx, dword [esp + 0x28]
imul edi, eax
inc ecx
mov dword [esp + 0x28], ecx
add ebx, edi
cmp ecx, dword [esp + 0x54]
jl 0x1000d170
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1008c1b5
add esp, 0x6c
ret 0x20
Function at 0x1000de30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, 1
push esi
mov esi, ecx
mov ecx, 0x37
push edi
push 0x114
push 0
mov dword [esi + 0x11e4], 0
lea edi, [esi + 0x11f0]
mov dword [esi + 0x11e8], 2
mov dword [esi + 0x11ec], 0
mov dword [esi + 0x1348], 0
mov dword [esi + 0x134c], 0
mov dword [esi + 0x1318], 2
rep stosd dword es:[edi], eax
mov dword [esi + 0x1250], 0
mov dword [esi + 0x125c], 0
mov dword [esi + 0x1264], 0
mov dword [esi + 0x1274], 0
mov dword [esi + 0x135c], eax
mov dword [esi + 0x12cc], eax
mov dword [esi + 0x12a4], 0
mov dword [esi + 0x12d0], eax
mov dword [esi + 0x12d4], eax
mov dword [esi + 0x12d8], eax
mov dword [esi + 0x12dc], eax
mov dword [esi + 0x12e4], eax
mov dword [esi + 0x12e8], eax
mov dword [esi + 0x12ec], eax
mov dword [esi + 0x12f0], eax
mov dword [esi + 0x12f4], eax
mov dword [esi + 0x12f8], eax
mov dword [esi + 0x1300], eax
mov dword [esi + 0x1308], eax
mov dword [esi + 0x130c], eax
mov dword [esi + 0x1310], eax
mov dword [esi + 0x1314], eax
mov dword [esi + 0x12fc], 0
mov dword [esi + 0x12e0], 0
mov dword [esi + 0x1304], 0
mov dword [esi + 0x131c], 0
mov dword [esi + 0x1320], eax
mov dword [esi + 0x1324], eax
mov dword [esi + 0x1328], eax
mov dword [esi + 0x132c], eax
mov dword [esi + 0x1334], eax
lea eax, [esp + 0x10]
mov dword [esi + 0x1330], 0
push eax
mov dword [esi + 0x1338], 3
mov dword [esi + 0x133c], 0
mov dword [esi + 0x1340], 0
call fcn.10092930
add esp, 0xc
mov dword [esp + 8], 0x114
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 6
mov ecx, dword [esp + 0x11c]
sbb eax, eax
mov dword [esi + 0x1350], 0
inc eax
mov dword [esi + 0x1354], 0
mov dword [esi + 0x1344], eax
xor eax, eax
pop edi
mov dword [esi + 0x1358], 1
pop esi
xor ecx, esp
call fcn.1008c1b5
add esp, 0x118
ret
Function at 0x1007f500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b3996
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100ca040]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov dword [ebx], vtable.ISubRenderConsumer.0
lea edi, [ebx + 0x3c]
mov dword [ebx + 4], vtable.CSubRenderOptionsImpl.0
mov dword [ebx + 8], 0x100bd6d0
mov dword [ebx + 0xc], edi
push 0
push str.CLAVSubtitleConsumer
lea ecx, [ebx + 0x10]
mov dword [esp + 0x24], 0
call fcn.1008a0b0
mov byte [esp + 0x1c], 1
lea ecx, [ebx + 0x30]
push 0
push 0
mov dword [ebx], vtable.CLAVSubtitleConsumer.2.0
mov dword [ebx + 4], vtable.CLAVSubtitleConsumer.1.0
mov dword [ebx + 0x10], vtable.CLAVSubtitleConsumer.0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.1008a200
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xffffffff
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
push dword [ebx + 0x30]
mov dword [edi], 0x100bf534
mov dword [ebx + 0x40], 0x100c0cd4
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x1007f610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b39e1
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100ca040]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CLAVSubtitleConsumer.2.0
mov dword [esi + 4], vtable.CLAVSubtitleConsumer.1.0
mov dword [esi + 0x10], vtable.CLAVSubtitleConsumer.0
mov dword [esp + 0x14], 2
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1007f661
mov eax, dword [ecx]
push ecx
call dword [eax + 0x50]
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x1007f675
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1007f68d
push eax
call dword [sym.imp.swscale_2.dll_sws_freeContext]
add esp, 4
mov dword [esi + 0x34], 0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.1008a2b0
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 0
call fcn.1008a0e0
mov dword [esi + 4], vtable.CSubRenderOptionsImpl.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x10081d90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100b3b58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100ca040]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x24]
push str.Subtitle_Input
push dword [esp + 0x30]
push dword [esp + 0x30]
push esi
push str.CLAVVideoSubtitleInputPin
call fcn.100868d0
mov dword [esp + 0x18], 0
lea ecx, [edi + 0x108]
mov dword [edi + 0xd8], vtable.CDeCSSPinHelper.0
call fcn.10086150
mov dword [edi + 0xdc], 0xffffffff
xor eax, eax
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], eax
mov word [edi + 0xe8], ax
mov dword [edi + 0xea], eax
mov byte [edi + 0xee], al
mov dword [edi + 0xf9], eax
mov word [edi + 0xfd], ax
mov dword [edi + 0xff], eax
mov word [edi + 0x103], ax
lea eax, [edi + 0x150]
push eax
mov dword [edi], vtable.CLAVVideoSubtitleInputPin.4.0
mov dword [edi + 0xc], vtable.CLAVVideoSubtitleInputPin.3.0
mov dword [edi + 0x10], vtable.CLAVVideoSubtitleInputPin.2.0
mov dword [edi + 0x98], vtable.CLAVVideoSubtitleInputPin.1.0
mov dword [edi + 0xd8], vtable.CLAVVideoSubtitleInputPin.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x168], 0
mov eax, edi
mov dword [edi + 0x16c], 0
mov dword [edi + 0x170], esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x14

Function at 0x10084870
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, ecx
push 0
push 1
lea ecx, [edi + 8]
mov dword [edi], vtable.CBaseTrayIcon.0
mov dword [edi + 4], eax
call fcn.1008a200
push 0x3b8
lea eax, [edi + 0xa4]
mov dword [edi + 0xc], 0
push 0
push eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x9c], 0x100bf534
mov dword [edi + 0xa0], 0x67
call fcn.10092930
add esp, 0xc
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push edi
push 0x10084970
push 0
push 0
call fcn.10092f13
add esp, 0x18
mov dword [edi + 0xc], eax
push 0xffffffffffffffff
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x10085100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, byte [edx]
push edi
mov edi, ecx
movzx ecx, byte [edx + 1]
movzx eax, byte [edi + 0x54]
lea ebx, [edi + 0x800]
xor eax, esi
movzx esi, byte [edi + 0x55]
xor esi, ecx
or eax, 0x100
mov ecx, dword [edi + 0x56]
xor ecx, dword [edx + 2]
mov edx, ebx
lea ebp, [ecx*2 + 8]
and ecx, 7
sub ebp, ecx
lea ecx, [edi + 0x80]
xor edi, edi
sub edx, ecx
cmp ecx, ebx
mov dword [esp + 0x10], edi
cmova edx, edi
mov dword [esp + 0x14], edx
test edx, edx
je 0x100851de
mov ebx, ecx
lea esp, [esp]
movzx ecx, byte [eax + 0x100bd9a0]
lea ebx, [ebx + 1]
movzx esi, byte [esi + 0x100bdba0]
xor esi, ecx
mov ecx, eax
shr ecx, 1
and eax, 1
mov dword [esp + 0x1c], ecx
mov ecx, ebp
shr ecx, 3
xor ecx, ebp
shl eax, 8
shr ecx, 1
xor eax, esi
xor ecx, ebp
shr ecx, 8
xor ecx, ebp
shl ebp, 8
shr ecx, 5
and ecx, 0xff
or ebp, ecx
movzx edx, byte [ecx + 0x100bd8a0]
movzx ecx, byte [esi + 0x100bd7a0]
mov esi, dword [esp + 0x1c]
add ecx, edi
add edx, ecx
movzx ecx, byte [ebx - 1]
mov cl, byte [ecx + str.3s_ckv_6n.f]
xor cl, dl
shr edx, 8
mov byte [ebx - 1], cl
mov edi, edx
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x14]
jne 0x10085160
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10086c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b3cc3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100ca040]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 1
test eax, eax
je 0x10086c4e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x10086c5b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1008a0e0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x1008a3b0
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x14], 0
jne 0x1008a3f2
push 0
push 0
push edi
push 0x1008a420
push 0
push 0
call fcn.10092f13
add esp, 0x18
mov dword [edi + 0x14], eax
test eax, eax
je 0x1008a3f2
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
ret
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
ret
Function at 0x1008a7e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x27c
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [esp + 0x280]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x284]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x288]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28c]
push ebp
mov ebp, dword [esp + 0x2a0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x298]
push esi
mov esi, dword [esp + 0x298]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2a0]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
push 0x27
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [esp + 0x28]
push eax
push str.CLSID_ls
lea eax, [esp + 0x80]
push 0x104
push eax
call fcn.1008a490
add esp, 0x10
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x7c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1008a89a
or eax, 0x80070000
jmp 0x1008a9fc
push edi
push esi
push 0x100b5910
lea eax, [esp + 0x84]
push 0x104
push eax
call fcn.1008a490
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
lea eax, [esp + 0x8c]
add esp, 0x10
push 0x208
push eax
push 1
push 0
push dword [esp + 0x1c]
call edi
mov esi, eax
test esi, esi
jne 0x1008a911
push ebp
push 0x100b5910
lea eax, [esp + 0x84]
push 0x104
push eax
call fcn.1008a490
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
je 0x1008a928
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0x80070000
mov eax, esi
jmp 0x1008a9fb
push dword [esp + 0x18]
lea eax, [esp + 0x80]
push 0x100b5910
push 0x104
push eax
call fcn.1008a490
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x8c]
add esp, 0x10
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x80]
push eax
push 1
push 0
push dword [esp + 0x20]
call edi
mov edi, eax
test edi, edi
je 0x1008a990
push dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [esp + 0x10]
call esi
or edi, 0x80070000
jmp 0x1008a9f9
push dword [esp + 0x14]
lea eax, [esp + 0x80]
push 0x100b5910
push 0x104
push eax
call fcn.1008a490
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x80]
push eax
push 1
push 0
push str.ThreadingModel
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
push dword [esp + 0x10]
call esi
test edi, edi
jle 0x1008a9f9
movzx edi, di
or edi, 0x80070000
mov eax, edi
pop edi
mov ecx, dword [esp + 0x280]
pop esi
pop ebp
xor ecx, esp
call fcn.1008c1b5
add esp, 0x27c
ret 0x20
Function at 0x1008aa20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100ca040]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x224]
push esi
mov esi, dword [esp + 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1008aa59
mov eax, 0x80004005
jmp 0x1008aaed
lea eax, [esp + 8]
push eax
push 0x2000000
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1008aaeb
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x1008aad8
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
call fcn.1008aa20
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push dword [esp + 0x28]
call edi
test eax, eax
je 0x1008aaa1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
xor eax, eax
mov ecx, dword [esp + 0x220]
pop esi
pop ebx
xor ecx, esp
call fcn.1008c1b5
add esp, 0x21c
ret 8

Function at 0x1008e34f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x403559
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403576
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403585
mov ebx, 0x4193c4
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40359a
mov ecx, dword [0x44ba98]
add ecx, eax
push ecx
call fcn.00403787
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403755
test eax, eax
je 0x403743
test byte [ebp + 0x17], 0x80
je 0x4036e9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4152f8
mov dword [ebp - 0xc], eax
call fcn.0040675e
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40374b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4035ea
mov esi, dword [ebp + 0x14]
mov edi, 0x4153c4
push esi
push edi
call fcn.00403755
test eax, eax
je 0x403743
sub dword [ebp + 0x14], esi
mov dword [0x415310], edi
mov dword [0x415314], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4152f8
mov dword [0x415318], ebx
mov dword [0x41531c], eax
call fcn.00406780
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4036e1
mov esi, dword [0x415318]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x40a81c], 1
mov edi, eax
je 0x40368c
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403659
cmp dword [ebp + 0x14], 0
jne 0x40368c
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.0040556a
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4036d6
cmp dword [ebp + 0x10], eax
jne 0x4036b5
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036e5
cmp dword [ebp - 0x10], esi
jne 0x4036e5
add dword [ebp - 4], esi
jmp 0x4036cb
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x415318]
jl 0x40374b
cmp dword [ebp - 0x14], 1
je 0x40374b
jmp 0x40360d
cmp dword [ebp + 0x14], eax
jg 0x4035dd
jmp 0x40374b
push 0xfffffffffffffffc
jmp 0x403745
push 0xfffffffffffffffe
jmp 0x403745
test edi, edi
jne 0x403730
cmp dword [ebp + 0x14], 0
jle 0x40374b
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4036fe
mov esi, dword [ebp + 0x14]
mov edi, 0x4153c4
push esi
push edi
call fcn.00403755
test eax, eax
je 0x403743
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4036e5
cmp esi, dword [ebp + 0x10]
jne 0x4036e5
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x4036ed
cmp dword [ebp + 0x14], esi
jge 0x403738
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403755
test eax, eax
jne 0x403748
push 0xfffffffffffffffd
pop eax
jmp 0x40374e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403e5f
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x47c000], 0
push ebx
push ebp
push esi
push edi
mov ebx, pe_overlay
mov edi, 0x47c000
je 0x403e7e
push edi
call fcn.004061f7
jmp 0x403e84
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x44ba84]
mov ecx, esi
dec esi
test ecx, ecx
je 0x403ed8
mov ecx, dword [0x44ba48]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x44ba80]
mov bp, word [ecx]
xor bp, ax
and ebp, ebx
test bp, bp
je 0x403ebf
mov ebp, esi
dec esi
add ecx, edx
test ebp, ebp
jne 0x403ea7
jmp 0x403ed8
mov edx, dword [ecx + 2]
mov dword [0x447a20], edx
mov edx, dword [ecx + 6]
mov dword [0x44bae8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403eea
cmp bx, 0xffff
jne 0x403ee6
mov ebx, 0x3ff
jmp 0x403e84
xor ebx, ebx
jmp 0x403e84
mov dword [0x447a1c], edx
movzx eax, word [ecx]
push eax
push edi
call fcn.004061de
push 0xfffffffffffffffe
push 0x447a40
call fcn.004062b0
push eax
push dword [0x4353dc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x44ba6c]
mov esi, dword [0x44ba68]
mov ecx, eax
dec eax
test ecx, ecx
je 0x403f44
lea ebx, [esi + 0x18]
lea ebp, [eax + 1]
mov edi, 0x2018
mov eax, dword [esi]
test eax, eax
je 0x403f3d
push eax
push ebx
call fcn.004062b0
add esi, edi
add ebx, edi
dec ebp
jne 0x403f30
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405ab1
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x43ac00], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405ad5
test al, 0x10
jne 0x405ad8
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x43ac00
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405b03
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405b83
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405e68
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x405bb7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x44bac8], eax
jmp 0x405d80
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405bd5
test eax, eax
je 0x405d04
test byte [ebp + 0xc], 2
je 0x405d04
mov esi, 0x436400
push edi
push esi
call fcn.00406281
test ebx, ebx
je 0x405bf2
push str..
push esi
call fcn.0040629f
jmp 0x405bf8
push edi
call fcn.00405dcd
push 0x40a23c
push edi
call fcn.0040629f
push edi
call fcn.00406292
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cfa
cmp byte [ebp - 0x118], 0x2e
jne 0x405c49
cmp byte [ebp - 0x117], 0x2e
je 0x405cdd
cmp byte [ebp - 0x117], 0
je 0x405cdd
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.00406281
test byte [ebp - 0x144], 0x10
je 0x405c74
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cdd
push dword [ebp + 0xc]
push edi
call fcn.00405b83
jmp 0x405cdd
push edi
push str.Delete:_DeleteFile___s__
call fcn.00406627
mov eax, dword [ebp - 0x144]
pop ecx
pop ecx
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405cd5
test byte [ebp + 0xc], 4
push edi
je 0x405cc1
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406627
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040556a
push 0
push edi
call fcn.00405fca
jmp 0x405cdd
push str.Delete:_DeleteFile_failed___s__
call fcn.00406627
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405cdd
push edi
push 0xfffffffffffffff2
call fcn.0040556a
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c26
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d04
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x405d80
cmp dword [ebp - 4], esi
push edi
jne 0x405d26
push str.RMDir:_RemoveDirectory_invalid_input___s__
call fcn.00406627
inc dword [0x44bac8]
pop ecx
pop ecx
jmp 0x405d80
call fcn.00406643
test eax, eax
je 0x405d80
push edi
call fcn.00405d86
push edi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406627
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405d78
test byte [ebp + 0xc], 4
push edi
je 0x405d71
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406627
pop ecx
pop ecx
push edi
push 0xfffffffffffffff1
call fcn.0040556a
push esi
push edi
call fcn.00405fca
jmp 0x405d80
push str.RMDir:_RemoveDirectory_failed___s__
jmp 0x405d17
push edi
push 0xffffffffffffffe5
call fcn.0040556a
pop edi
pop esi
leave
ret 8