joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b663
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x440b40
call fcn.004151bc
mov eax, 0x7918
call fcn.00416000
mov eax, dword [0x466c7c]
push ebx
push esi
push edi
push 1
xor ebx, ebx
pop esi
mov edi, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 0x5e6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004363be
push esi
push ebx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040bf1d
lea eax, [edi + 0x238]
push 0x453458
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00432b8c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00432a96
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.004329a9
push 0x462974
lea ecx, [ebp - 0x14]
call fcn.00432c5f
push dword [ebp - 0x14]
lea eax, [ebp - 0x7924]
push 0x7800
push eax
push 0x467e68
push ebx
push str.TV_STANDARDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x7924], bl
lea esi, [ebp - 0x7924]
je 0x40b7e1
push dword [ebp - 0x14]
lea eax, [ebp - 0x124]
push 0xff
push eax
push str.Error
push esi
push str.TV_STANDARDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x124]
push str.Error
push eax
call fcn.00415510
pop ecx
test eax, eax
pop ecx
je 0x40b7c7
push 1
lea eax, [ebp - 0x124]
push 0xff
push eax
push esi
push str.SoftwareMatroxPowerDeskVersion6DiagnosticTvStandards
push 0x80000001
call fcn.004014ae
add esp, 0x18
test eax, eax
jne 0x40b781
mov dword [ebp - 0x20], ebx
push 0x462e98
lea ecx, [ebp - 0x10]
call fcn.00432ae6
push esi
lea ecx, [ebp - 0x10]
call fcn.00432c5f
push 0x462e94
lea ecx, [ebp - 0x10]
call fcn.00432c5f
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x10]
push eax
call fcn.00432c5f
push 1
push ebx
push dword [ebp - 0x10]
mov ecx, edi
call fcn.0040bf1d
mov dword [ebp - 0x1c], 1
push esi
call fcn.00415410
cmp byte [esi + eax + 1], bl
lea esi, [esi + eax + 1]
pop ecx
jne 0x40b722
cmp dword [ebp - 0x1c], ebx
jne 0x40b814
push 0x5e4
lea ecx, [ebp - 0x10]
call fcn.004363be
push 0x462e98
lea ecx, [ebp - 0x18]
call fcn.00432ae6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.00432c9b
push 1
push ebx
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040bf1d
push 1
push ebx
push 0x467e68
mov ecx, edi
call fcn.0040bf1d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004329a9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004329a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004329a9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c84e
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x440cf4
call fcn.004151bc
sub esp, 0x550
mov eax, dword [0x466c7c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00408f7c
push str..inf
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
call fcn.00432b8c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00432a96
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004329a9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004329a9
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
mov edi, 0x453458
je 0x40c92f
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00408f7c
push dword [eax]
lea eax, [ebp - 0x55c]
push eax
call fcn.004155a0
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004329a9
lea eax, [ebp - 0x55c]
push edi
push eax
call fcn.004155b0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.004155b0
add esp, 0xc
lea eax, [ebp - 0x55c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00432a17
lea ecx, [esi + 0x184]
call fcn.0040ee67
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x40c9b3
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00408f7c
push dword [eax]
lea eax, [ebp - 0x55c]
push eax
call fcn.004155a0
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004329a9
lea eax, [ebp - 0x55c]
push edi
push eax
call fcn.004155b0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.004155b0
add esp, 0xc
lea eax, [ebp - 0x55c]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.00432a17
lea ecx, [esi + 0x184]
call fcn.0040ee67
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x14]
jmp 0x40c93f
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004329a9
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40d571
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x440e28
call fcn.004151bc
sub esp, 0x160
mov al, byte [ebp - 0x11]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
mov byte [ebp - 0x2c], al
call fcn.00404e00
mov eax, dword [0x466c7c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x16c]
push 0x100
push eax
push str.Matrox_Powerdesk
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov byte [ebp - 4], 2
call fcn.004013fc
add esp, 0x14
test eax, eax
je 0x40d6cc
lea eax, [ebp - 0x16c]
push esi
push eax
call fcn.00415410
pop ecx
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e9a
mov esi, 0x4632d8
push esi
call fcn.00415410
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404c75
mov ecx, dword [ebp - 0x24]
sub ecx, eax
inc ecx
dec eax
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404794
mov eax, dword [ebp - 0x28]
pop esi
cmp eax, ebx
jne 0x40d626
mov eax, 0x444464
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.004155a0
lea eax, [ebp - 0x6c]
push 0x40
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.00401000
add esp, 0x14
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d987
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00432a96
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004329a9
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040d704
push dword [eax]
lea eax, [ebp - 0x6c]
push eax
call fcn.004155a0
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.004329a9
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d987
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00432a96
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004329a9
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00415510
pop ecx
cmp eax, ebx
pop ecx
setg bl
jmp 0x40d6ce
xor bl, bl
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004329a9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004329a9
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
call fcn.00404e00
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40dc8a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
call fcn.00406c49
mov ecx, eax
call fcn.00409048
cmp dword [eax + 4], 0
jne 0x40dd6e
call fcn.00406c49
mov ecx, eax
call fcn.00409048
add eax, 0x54
mov eax, dword [eax]
cmp dword [eax - 8], 0
je 0x40dd6e
call fcn.00406c49
mov ecx, eax
call fcn.00409048
add eax, 0x54
push 1
push 1
lea ecx, [ebp - 0xcc]
push dword [eax]
call fcn.0040e24d
lea eax, [ebp - 0xcc]
test eax, eax
je 0x40dcfe
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0xcc]
mov ecx, dword [eax + 4]
and cl, 6
neg cl
sbb ecx, ecx
not ecx
test eax, ecx
je 0x40dd63
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00415690
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.open
call fcn.00406c49
mov ecx, eax
call fcn.00409048
add eax, 0x54
mov eax, dword [eax]
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xcc]
call fcn.0040dd70
leave
ret
Function at 0x40e079
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4447b8
push 0x416354
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x420], esi
mov al, byte [0x467e68]
mov byte [ebp - 0x41c], al
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x1c], esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
push eax
call fcn.004155a0
push dword [ebp + 0x10]
call fcn.00415410
add esp, 0xc
test eax, eax
je 0x40e10a
push 0x453458
lea eax, [ebp - 0x41c]
push eax
call fcn.004155b0
push dword [ebp + 0x10]
lea eax, [ebp - 0x41c]
push eax
call fcn.004155b0
add esp, 0x10
mov dword [ebp - 4], esi
lea eax, [ebp - 0x420]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x41c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e1fb
push dword [ebp + 8]
push 4
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x40e1fb
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x428], esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
push esi
push esi
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40e1fb
mov eax, dword [ebp - 0x428]
lea edi, [eax + 1]
mov dword [ebp - 0x42c], edi
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x40e1fb
mov dword [ebp - 0x430], esi
mov eax, dword [ebp - 0x430]
cmp eax, dword [ebp - 0x424]
jge 0x40e1fb
mov dword [ebp - 0x434], edi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x434]
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40e1f3
push dword [ebp - 0x1c]
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
mov ecx, ebx
call fcn.0040e079
inc dword [ebp - 0x430]
jmp 0x40e1ac
or dword [ebp - 4], 0xffffffff
call fcn.0040e217
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41b291
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x463f38
cmp edx, dword [eax]
je 0x41b2b3
add eax, 8
inc ecx
cmp eax, 0x463fc8
jl 0x41b2a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x463f38]
jne 0x41b3e1
mov eax, dword [0x468118]
cmp eax, 1
je 0x41b3bb
test eax, eax
jne 0x41b2e4
cmp dword [0x463534], 1
je 0x41b3bb
cmp edx, 0xfc
je 0x41b3e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b31b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004155a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b35e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x445dc4
push edi
call fcn.004151e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004155a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004155b0
lea eax, [ebp - 0xa0]
push 0x4631bc
push eax
call fcn.004155b0
push dword [esi + 0x463f3c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004155b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041f20a
add esp, 0x2c
pop edi
jmp 0x41b3e1
lea eax, [ebp + 8]
lea esi, [esi + 0x463f3c]
push 0
push eax
push dword [esi]
call fcn.00415410
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43546b
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 0x4354ad
call fcn.0043e0fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4354ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4354a4
xor eax, eax
jmp 0x4354b5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004354bb
pop edi
pop esi
pop ebx
ret 4
Function at 0x4378c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x441df4
call fcn.004151bc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0043e0fe
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x437904
call fcn.0043e0fe
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x437912
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x437920
or eax, 0xffffffff
jmp 0x437a08
mov ecx, esi
call fcn.0043783b
mov dword [ebp - 0x14], eax
call fcn.004337f4
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x437957
push dword [ebp - 0x14]
call dword [0x467ca0]
test eax, eax
je 0x437957
push edi
push dword [ebp - 0x14]
call dword [0x467c64]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.004337a8
push dword [ebp - 0x14]
call fcn.004332f6
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0043760c
cmp eax, edi
je 0x4379ca
test byte [esi + 0x24], 0x10
je 0x437998
push 4
mov ecx, esi
pop ebx
call fcn.00435c81
test ah, 1
je 0x437990
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004355bd
cmp dword [esi + 0x1c], edi
je 0x4379ca
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00435d77
jmp 0x4379ca
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4379de
push 1
push dword [ebp - 0x14]
call dword [0x467c64]
cmp dword [ebp - 0x14], edi
je 0x4379f7
call dword [0x467cb0]
cmp eax, dword [esi + 0x1c]
jne 0x4379f7
push dword [ebp - 0x14]
call dword [0x467ccc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00437875
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xb2808df
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x39bd01c3
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4099c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d9f40
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x40]
push 4
push str.EULA
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00405a70
mov byte [ebp - 4], 1
call fcn.0044e6f0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0044e110
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x409a49
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406d90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push str.explorer
push 0x61ee04
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x409a80
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x40ac50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5da192
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x64106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.004c076c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40ace4
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], 0x5e7eac
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00401a90
push eax
push esi
call fcn.004c0ab4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x416580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x4165a7
cmp dword [ebx + 0x14], 0x10
mov dword [ebx + 0x10], 0
jb 0x4165a2
mov eax, dword [ebx]
jmp 0x4165a4
mov eax, ebx
mov byte [eax], 0
call fcn.0041a440
test al, al
je 0x4165b9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00418ab0
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4165b0
push 0x10000
call fcn.004c24ba
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.005144b1
mov edi, eax
add esp, 0x10
test edi, edi
je 0x416646
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x41661c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.004060c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x41665c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.005144b1
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x416600
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.005134ff
add esp, 4
test eax, eax
jne 0x41665f
mov byte [ebp - 1], 1
jmp 0x416663
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00513787
add esp, 4
test esi, esi
je 0x416679
push esi
call fcn.004c2285
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4174e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x64106c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41761f
cmp byte [ebx + 0x3d], 0
je 0x41761f
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x41752d
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [esp + 0x1c]
call fcn.004113e0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
lea eax, [esp + 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x18]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41759e
sub eax, 1
je 0x4175a2
sub eax, 2
je 0x417600
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.004051e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp ecx, 0x10
mov esi, dword [esp + 0x10]
cmovae eax, edx
sub esi, eax
je 0x4175e1
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x18]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00513d4b
add esp, 0x10
cmp esi, eax
jne 0x41757f
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
cmp byte [ebx + 0x3d], 0
je 0x417600
test esi, esi
jne 0x417542
push esi
push 8
lea ecx, [esp + 0x1c]
call fcn.00412b10
jmp 0x41753a
lea ecx, [esp + 0x14]
mov bl, 1
call fcn.004051e0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x417d00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.004254b0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004255d0
cmp dword [ebp - 0x10], ebx
je 0x417e4b
nop
cmp byte [ebp - 0x2e4], 0
jne 0x417d8a
test bl, 1
je 0x417d72
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.0041f840
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.0050b930
add esp, 0xc
jmp 0x417da3
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
test bl, 1
je 0x417dc6
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
shr ebx, 4
test bl, 1
je 0x417df9
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00417d00
add esp, 4
test al, al
je 0x417ea7
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x417e0b
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x417ea7
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004255d0
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x417e33
push 0xffffffffffffffff
push 0
push eax
call fcn.00405b70
lea ecx, [ebp - 0x38]
call fcn.00405040
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x417d50
lea ecx, [ebp - 0x20]
call fcn.00405040
mov bl, 1
mov eax, dword [ebp - 0x90]
cmp eax, 0xffffffff
je 0x417e67
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x54]
call fcn.004259b0
push dword [ebp - 0x54]
call fcn.0057e960
add esp, 4
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x6c]
call fcn.00405040
lea ecx, [ebp - 0x8c]
call fcn.00405040
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.00405040
xor bl, bl
jmp 0x417e55