joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b26
Capabilities:
Reference sql statements

Disassembly:
push 0x21c
mov eax, 0x4349b1
call fcn.0041aa70
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004025a7
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004020dd
push 0x437d3c
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.0040229e
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.00402366
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x21c], ebx
je 0x405bba
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push dword [ebp - 0x224]
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
test esi, esi
jne 0x405c7f
push ebx
push dword [ebp - 0x21c]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
jne 0x405c7f
cmp dword [ebp - 0x220], eax
je 0x405c08
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
push dword [ebp - 0x21c]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
test esi, esi
jne 0x405c7f
mov eax, 0x104
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041bf90
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x220]
call sub.msi.dll_MsiRecordSetStreamA
mov esi, eax
test esi, esi
jne 0x405c7f
lea eax, [ebp - 0x218]
push eax
call fcn.0041fc2e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004035ee
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x220], 0
je 0x405ca1
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x21c], 0
je 0x405cb5
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.0041aa1a
ret

Function at 0x405daa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x405dfa
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x407622
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x434e61
call fcn.0041aa3c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40779f
cmp dword [eax - 0xc], 4
jb 0x40779f
add eax, 0xfffffff0
push eax
call fcn.00402448
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.0041d3d4
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x4076a7
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4076a7
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
jne 0x4076a7
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a3e
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004021f9
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a54
mov esi, str..
push esi
call fcn.0041fc2e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402366
lea ecx, [ebp - 0x34]
call fcn.0040d94a
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push 0
push esi
mov byte [ebp - 4], 3
call fcn.0040dbd0
test eax, eax
je 0x407756
lea ecx, [ebp - 0x34]
call fcn.0040dd80
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.0040e180
test eax, eax
jne 0x407752
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040de90
mov eax, dword [ebp - 0x34]
push 0x10
mov byte [ebp - 4], 4
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x43654c]
lea ecx, [ebp - 0x34]
call edi
test eax, eax
je 0x407739
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00402448
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.00407622
jmp 0x407742
lea eax, [ebp - 0x14]
push eax
call fcn.0040412d
pop ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a54
test ebx, ebx
jne 0x4076db
lea ecx, [ebp - 0x34]
call fcn.0040db70
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40778c
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.00403231
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0040daf6
lea ecx, [esi - 0x10]
call fcn.00401a54
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00401a54
call fcn.0041aa05
ret
Function at 0x407903
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x434eef
call fcn.0041aa3c
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x44
pop ebx
push ebx
mov edi, dword [eax]
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x1c], 0x20
call fcn.0041bf90
push 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x70], ebx
push esi
push eax
mov dword [ebp - 0x68], str.winsta0default
call fcn.0041bf90
add esp, 0x18
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
push ebx
push edi
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x407962
mov dword [ebp - 0x1c], 0x420
jmp 0x407992
push str.CreateEnvironmentBlock_failed
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
call fcn.004020dd
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], esi
push eax
push ebx
call fcn.00403231
mov ecx, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a54
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push str._Skip
push eax
call fcn.0040405d
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 4], ebx
mov eax, dword [eax - 0xc]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b702
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x407a06
push str.new_wchar_t_failed
lea ecx, [ebp - 0x18]
call fcn.004020dd
mov esi, 0x372
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x18]
push eax
push 1
call fcn.00403231
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407ab1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax - 0xc]
lea eax, [ecx + 1]
push eax
push ebx
call fcn.004224f8
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
push esi
push esi
push ebx
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x407a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateProcessAsUser_failed
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004020dd
mov byte [ebp - 4], 3
jmp 0x407a69
push str.CreateProcessAsUser_succeeded
lea ecx, [ebp - 0x1c]
call fcn.004020dd
mov byte [ebp - 4], 4
push esi
lea eax, [ebp - 0x1c]
push eax
push 1
call fcn.00403231
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a54
cmp dword [ebp - 0x10], 0
je 0x407a91
push dword [ebp - 0x10]
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0040b6fd
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401a54
mov eax, esi
call fcn.0041aa05
ret
Function at 0x4086a1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
xor esi, esi
call fcn.004020dd
mov eax, dword [ebp - 8]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408712
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x4086ed
cmp ecx, 2
je 0x4086ed
push edi
jmp 0x4086f1
lea eax, [edi + edi]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401a54
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x408723
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408787
push esi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
test esi, esi
pop esi
cmove edi, eax
mov eax, edi
pop edi
leave
ret
Function at 0x414f85
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x43587d
call fcn.0041aaa7
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x41508f
cmp ebx, dword [esi + 0xc]
jge 0x41508f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x414fdc
cmp ebx, dword [edi + 8]
jl 0x41507d
cmp dword [ebp + 0xc], 0
je 0x41507d
xor ebx, ebx
jmp 0x415016
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.00414c12
mov edi, eax
test edi, edi
je 0x414ff6
mov dword [edi], vtable.CThreadData.0
jmp 0x414ff8
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00414f18
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x415031
push 4
push dword [esi + 0xc]
call fcn.0040bcc3
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x415049
push 2
push 4
push dword [esi + 0xc]
call fcn.0040bcc3
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4150b6
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.0041bf90
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x41508f
cmp ebx, dword [edi + 8]
jge 0x41508f
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041aa05
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0040b79e
int3
Function at 0x416c9b
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4484a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0041bf90
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00422ad6
push eax
call fcn.0040233c
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x43ba34]
je 0x416e05
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x416e19
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x416e19
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x416d34
mov eax, edi
jmp 0x416d63
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x416d51
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00416a80
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x416d5a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040e1bc
test eax, eax
je 0x416d88
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d982
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x416d8c
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040e1bc
test eax, eax
je 0x416db3
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d982
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x416db7
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040e1bc
test eax, eax
je 0x416ddf
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d982
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x416de1
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x416df3
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x416e05
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a9f4
leave
ret 4
xor eax, eax
jmp 0x416e08

Function at 0x42b61b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b2cc

Function at 0x42b626
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b456
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x408e84
nop
nop
mov ecx, 0x78b01487
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x531e0527
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0xe30e20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9db000]
push edi
jmp 0xe30e3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe30e41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe30e30
mov eax, 1
add ebx, ebx
jne 0xe30e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe30e64
jne 0xe30e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe30e83
dec eax
add ebx, ebx
jne 0xe30e70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xe30e48
add ebx, ebx
jne 0xe30e7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xe30ed5
xor ecx, ecx
sub eax, 3
jb 0xe30e9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe30f0a
sar eax, 1
mov ebp, eax
jmp 0xe30ea6
add ebx, ebx
jne 0xe30ea6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe30e74
inc ecx
add ebx, ebx
jne 0xe30eb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe30e74
add ebx, ebx
jne 0xe30ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe30eb6
jne 0xe30ed2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe30eb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe30ef4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe30ee6
jmp 0xe30e36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe30ef4
add edi, ecx
jmp 0xe30e36
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe30f12
cmp byte [edi], 0x11
jne 0xe30f12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xe30f17
lea edi, [esi + 0xa29000]
mov eax, dword [edi]
or eax, eax
je 0xe30f8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1389058]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13891d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe30f44
mov ecx, edi
jns 0xe30f73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13891d8]
or eax, eax
je 0xe30f89
mov dword [ebx], eax
add ebx, 4
jmp 0xe30f61
call dword [esi + 0x13891e8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xe30fc0
cmp al, 0xef
ja 0xe30fb3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xe30f95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xe30fa2
mov ebp, dword [esi + 0x13891dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe30ff4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x401750
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 8]
push ecx
xorps xmm0, xmm0
push 1
mov eax, dword [esi]
movlpd qword [esp + 0x18], xmm0
push dword [esp + 0x1c]
movlpd qword [esp + 0x14], xmm0
push dword [esp + 0x1c]
push esi
call dword [eax + 0x14]
test eax, eax
js 0x4017d1
mov eax, dword [esi]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [eax + 0x14]
test eax, eax
js 0x4017d1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4017bf
mov eax, dword [esi]
push 0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call dword [eax + 0x14]
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4017d1
movzx eax, ax
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x4019b0
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00401e10
pop ebp
ret 0x10
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4019bf
mov dword [edi], 0
xor esi, esi
lea ecx, [ebp + 0x14]
push esi
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019ed
test edi, edi
je 0x401a02
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x401a02
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x401a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push esi
test eax, eax
jne 0x401a42
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x401a79
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401a3d
movzx eax, ax
or eax, 0x80070000
pop esi
pop ebp
ret 0x10
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x401a4f
mov dword [esi], 0
push 0
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401a2b
test esi, esi
je 0x401a79
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x401e10
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x401e2b
mov dword [eax], 0
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
xor edx, edx
mov al, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
nop dword [eax]
test ebx, ebx
je 0x401fe1
test al, al
je 0x401fe1
mov ebx, dword [esi + 0x258]
test ebx, ebx
je 0x401ee9
mov eax, dword [esi + 0x23c]
mov edi, dword [esi + 0x238]
mov edx, dword [esi + 0x250]
cmp eax, dword [esi + 0x254]
jb 0x401ee9
ja 0x401e7e
cmp edi, edx
jb 0x401ee9
xor eax, eax
mov dword [esp + 0x14], ebx
add dword [esp + 0x14], edx
adc eax, dword [esi + 0x254]
cmp dword [esi + 0x23c], eax
ja 0x401ee9
jb 0x401e9e
cmp edi, dword [esp + 0x14]
jae 0x401ee9
mov eax, dword [esi + 0x248]
mov ecx, edi
sub ecx, edx
sub edx, edi
add edx, ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
mov edi, ebx
cmovae edi, edx
add eax, ecx
push edi
push eax
push dword [ebp + 8]
call fcn.00407960
mov eax, dword [esi]
add esp, 0xc
add dword [ebp + 8], edi
sub ebx, edi
add dword [esp + 0x1c], edi
mov dword [ebp + 0xc], ebx
push 0
push 1
push 0
push edi
push esi
call dword [eax + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x18]
jmp 0x401fd9
mov edx, dword [esi + 0x23c]
mov eax, dword [esi + 0x238]
mov ebx, dword [esi + 0x240]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
cmp edx, dword [esi + 0x244]
jb 0x401f18
ja 0x401f11
cmp eax, ebx
jb 0x401f18
xor al, al
jmp 0x401fd2
mov ecx, dword [esi + 0x248]
test ecx, ecx
je 0x401f5f
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [esi + 0x240]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x248], 0
mov dword [esi + 0x250], 0
mov dword [esi + 0x254], 0
mov dword [esi + 0x258], 0
mov edi, dword [0x41c574]
push 0
push edi
push edx
push eax
call fcn.00411bb0
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, ebx
mov dword [esp + 0x14], ecx
sbb dword [esp + 0x10], edx
sub eax, ecx
sub ebx, ecx
cmp edi, eax
cmovb ebx, edi
test ebx, ebx
je 0x401fbe
mov edi, dword [esp + 0x10]
push ebx
push ecx
push edi
push 4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x401ff9
mov dword [esi + 0x248], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x250], eax
mov dword [esi + 0x254], edi
mov dword [esi + 0x258], ebx
xor ecx, ecx
mov eax, dword [esp + 0x18]
xor edx, edx
cmp dword [esi + 0x258], edx
movzx eax, al
cmove eax, edx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
test ecx, ecx
jns 0x401e40
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401fee
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x402010
movzx ecx, cx
or ecx, 0x80070000
test ecx, ecx
js 0x401fe1
jmp 0x401fc0