joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432330
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481ce8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.0042cb70
test eax, eax
je 0x432438
lea ecx, [esp + 0xc]
call fcn.00405580
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0042cb70
mov ecx, eax
call fcn.0042a280
test eax, eax
je 0x43241f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43241f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43241f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00405780
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x432401
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43241f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4b7158]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x489270
call fcn.00405780
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x432490
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.0042cb70
test eax, eax
je 0x43257f
mov ecx, edi
call fcn.0042cb70
mov ecx, eax
call fcn.0042a130
test eax, eax
jne 0x43257f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43257f
mov eax, dword [0x4b7158]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x4324f2
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.0042cb70
mov ecx, eax
call fcn.0042a360
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x43257f
cmp ebx, eax
jne 0x43257f
cmp dword [esp + 0x10], eax
jne 0x432565
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4352e0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481f78
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x435319
inc eax
mov dword [esi + 0x10], eax
jmp 0x43542c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43532d
mov eax, 0xffffffc7
jmp 0x43542e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43533e
cmp dword [esi + 8], eax
jne 0x43532d
cmp dword [esi + 8], eax
jne 0x435357
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435357
mov eax, 0xffffffc7
jmp 0x43542e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43536b
push eax
mov ecx, ebx
call fcn.00434b10
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00405580
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43539c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004055a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00434280
test eax, eax
mov dword [esp + 0x38], eax
je 0x4353cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4892a0
call fcn.00405780
mov eax, dword [esp + 0x38]
jmp 0x43542e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00435140
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x435413
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435160
mov esi, eax
test esi, esi
jne 0x435443
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00435140
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4353e5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4892a0
call fcn.00405780
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4892a0
call fcn.00405780
mov eax, esi
jmp 0x43542e

Function at 0x439e70
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x439ed0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x439ed0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x439ed0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x439ed0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x439f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x445a90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047b2cd
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004453f0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047b1fb
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00477abf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00477abf
push 1
push 0
push 0
mov ecx, esi
call fcn.00477a67
push 1
push 0
push 1
mov ecx, esi
call fcn.00477a67
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b33f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x445c10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047b2cd
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004453f0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047b1fb
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x445cd4
cmp dword [esp + 0x40], 1
jne 0x445cd2
cmp ecx, eax
jge 0x445cd4
mov eax, ecx
cmp eax, 0xc8
jge 0x445ce0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00445a90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b33f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4464e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00475edd
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047b575
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047ca91
test eax, eax
je 0x4465fc
mov ecx, dword [esp + 0x3c]
call fcn.0047b5a2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4465c0
push edi
mov ecx, esi
call fcn.00478c09
mov ecx, esi
call fcn.004467a0
cmp dword [esp + 0x38], 1
jne 0x4465f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00478d44
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4487e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448813
push esi
call fcn.00456b90
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44880c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448899
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448882
mov eax, dword [esi + 8]
test eax, eax
je 0x448837
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44887e
cmp eax, 2
je 0x448882
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44882a
cmp eax, 3
je 0x44885d
cmp eax, 1
jne 0x44882a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44882a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44882a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004488c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4488a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004488c0
add esp, 4
pop esi
ret

Function at 0x449140
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x449161
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x449161
mov eax, dword [eax + 0x44]
test eax, eax
je 0x449161
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x476cd2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476d0a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00474d89
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474d61
jmp 0x476d16
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4783c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478405
call fcn.0047de81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478405
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4783fc
xor eax, eax
jmp 0x47840d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00478413
pop edi
pop esi
pop ebx
ret 4
Function at 0x47e3b1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47e3df
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e3fd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e317
jmp 0x47e3fd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e3fd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e317
test edi, edi
mov eax, edi
jne 0x47e3e7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x401020
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41900c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401097
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401097
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401289
leave
ret
Function at 0x100344e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x31c], eax
push eax
mov dword [ebp - 0x314], esi
call fcn.01003361
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
call edi
push 0x10014dc
push 0x10014c4
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.010161e1
add esp, 0x10
push 0
push dword [ebp - 0x314]
lea eax, [ebp - 0x310]
push eax
call esi
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
call edi
push dword [ebp - 0x31c]
call fcn.0100d2b1
push 0
push dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
push eax
call esi
push eax
push dword [ebp - 0x318]
push ebx
call edi
push 0x10014dc
push 0x10014b0
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.010161e1
add esp, 0x10
push 0
push dword [ebp - 0x314]
lea eax, [ebp - 0x310]
push eax
call esi
push eax
lea eax, [ebp - 0x310]
push eax
push ebx
call edi
push dword [ebp - 0x31c]
call fcn.0100d1ed
push 0
push dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
push eax
call esi
push eax
push dword [ebp - 0x318]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 0x10

Function at 0x10045ef
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0xffffffff
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x278], 1
je 0x1004701
test esi, esi
je 0x1004701
cmp dword [esi + 8], 0
jne 0x100463f
push esi
call fcn.01004238
push ebx
mov ebx, 0x26c
push ebx
lea eax, [ebp - 0x270]
push eax
push esi
call fcn.01003589
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x270]
push eax
call esi
push eax
lea eax, [ebp - 0x270]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
mov eax, dword [ebp - 0x274]
push dword [eax + 0x68]
call fcn.010182e3
jmp 0x10046f2
lea eax, [ebp - 0x27c]
push eax
push dword [ebp - 0x278]
push dword [ebp - 0x274]
push dword [ebp - 0x280]
call fcn.0100344e
push 0x1001584
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.010161e1
add esp, 0xc
push 0
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x270]
push eax
call esi
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x280]
call edi
push dword [ebp - 0x274]
inc dword [ebp - 0x278]
call fcn.01018340
test eax, eax
mov dword [ebp - 0x274], eax
jne 0x100468c
xor eax, eax
pop ebx
jmp 0x1004704
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01015dd4
leave
ret 8
Function at 0x1007db3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0
lea eax, [ebp - 4]
push eax
call fcn.01007cb6
mov esi, eax
test esi, esi
je 0x1007e0c
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007dff
cmp dword [ebp - 8], 1
jne 0x1007dff
cmp dword [ebp - 4], eax
je 0x1007df9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
dec eax
jmp 0x1007e28
cmp dword [ebp - 4], 0
je 0x1007e0c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x10]
push 0x104
push dword [ebp + 0x14]
call fcn.0101627b
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop esi
leave
ret 0x14

Function at 0x1007e9e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
push esi
mov esi, dword [ebp + 0xc]
sete al
push eax
push esi
push dword [ebp + 8]
call fcn.01007d34
cmp eax, dword [ebp + 0x10]
je 0x1007f27
push 0x100178c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0101627b
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1007f27
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.01015dd4
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1009426
xor eax, eax
jmp 0x1009431
not al
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1009451
xor eax, eax
jmp 0x100945a
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret 4
Function at 0x1009463
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x10]
call fcn.010182e3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x10094f5
push dword [esi]
call ebx
push eax
push dword [esi]
push dword [0x1021d74]
call fcn.01018410
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10094ef
cmp dword [esi + 0x2c], 0
je 0x10094ba
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
push dword [esi + 0x28]
push dword [0x1021d74]
call fcn.01018410
mov eax, dword [esi + 4]
and dword [esi + 0x28], 0
test eax, eax
je 0x10094ef
push eax
call ebx
inc eax
push eax
push dword [esi + 4]
push dword [0x1021d74]
call fcn.01018410
and dword [esi + 4], 0
push esi
call fcn.01018340
mov esi, eax
test esi, esi
jne 0x100947e
lea eax, [edi + 0x10]
push eax
call fcn.01017f28
lea esi, [edi + 0x14]
push dword [esi]
call fcn.010182e3
jmp 0x1009520
push dword [ebp + 8]
call fcn.01009463
push dword [ebp + 8]
call fcn.01018340
test eax, eax
mov dword [ebp + 8], eax
jne 0x1009510
push esi
call fcn.01017f28
push dword [edi]
call ebx
inc eax
push eax
push dword [edi]
push dword [0x1021d74]
call fcn.01018410
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10095a5
Capabilities:
Get file attributes
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x1020204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x14c], eax
call fcn.01008d48
test eax, eax
je 0x10095e2
xor eax, eax
jmp 0x1009692
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1009650
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
jne 0x100961a
xor eax, eax
jmp 0x1009691
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, esi
je 0x1009636
mov eax, dword [ebp - 0x130]
mov dword [edi], eax
mov eax, dword [ebp - 0x12c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14c]
cmp eax, esi
je 0x1009648
mov ecx, dword [ebp - 0x144]
mov dword [eax], ecx
mov eax, dword [ebp - 0x124]
jmp 0x1009691
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, esi
mov dword [ebp - 0x150], eax
je 0x100966c
push edi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edi, dword [ebp - 0x14c]
cmp edi, esi
je 0x1009684
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x150]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01015dd4
leave
ret 0xc