joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e7ae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x435450]
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 0x40e7d8
xor al, al
jmp 0x40e945
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 0x40e942
cmp dword [ebp - 0x24], ebx
je 0x40e942
cmp dword [ebp - 0x20], ebx
je 0x40e942
cmp dword [ebp - 0x18], ebx
je 0x40e942
cmp dword [ebp - 0x1c], ebx
je 0x40e942
cmp dword [ebp - 0x28], ebx
je 0x40e942
cmp eax, ebx
je 0x40e942
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 0x40e93e
push 0x20
lea eax, [ebp - 0x4c]
push ebx
push eax
call fcn.0041e490
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 0x40e938
push 0x14
call fcn.0041ddb2
pop ecx
mov edi, eax
push esi
push edi
call dword [ebp - 0x20]
test eax, eax
je 0x40e928
push ebx
push dword [ebp - 0x10]
push esi
push edi
call dword [ebp - 0x18]
test eax, eax
je 0x40e928
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x40e915
mov eax, dword [eax + 4]
jmp 0x40e918
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.0041e9db
pop ecx
push dword [ebp - 0x14]
call dword [ebp - 0x2c]
mov al, bl
jmp 0x40e944
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.0041ed5e
leave
ret
Function at 0x40edfb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x435450]
mov ecx, dword [ebp + 0xa8]
push 0x42a937
mov dword [ebp + 0x94], eax
call fcn.0040ece4
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 0x40eea2
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 0x40ee99
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp + eax - 0x74], 0
jbe 0x40ee99
push edi
lea edi, [ebp - 0x74]
call fcn.0040e2d3
test al, al
pop edi
je 0x40ee99
mov ecx, dword [ebp + 0xa8]
lea eax, [ebp - 0x74]
push eax
call fcn.0040ece4
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
call fcn.0041ed5e
add ebp, 0x98
leave
ret

Function at 0x40eeb5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4293a4
call fcn.0041e9bc
sub esp, 0x12c
mov eax, dword [0x435450]
push ebx
xor ebx, ebx
push 0x42a937
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x138], ebx
call fcn.0040ed01
lea eax, [ebp - 0x2c]
push eax
push str.Common_AppData
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call fcn.0040edfb
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x40ef5e
lea eax, [ebp - 0x2c]
push eax
push str.AppData
push SysReAllocString
call fcn.0040edfb
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x40ef5e
push esi
lea eax, [ebp - 0x134]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jbe 0x40ef38
cmp eax, esi
jbe 0x40ef58
push edi
lea edi, [ebp - 0x134]
call fcn.0040e2d3
test al, al
pop edi
je 0x40ef58
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040ece4
cmp dword [ebp - 0x18], ebx
pop esi
je 0x40efa2
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40ef6a
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp byte [eax + ecx - 1], 0x5c
je 0x40ef80
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040eaa1
push 0xffffffffffffffff
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
call fcn.0040eb90
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ed41
lea eax, [ebp - 0x2c]
push eax
call fcn.0040e7ae
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ec94
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040e6f9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041ed5e
leave
ret
Function at 0x40fd6d
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x42a948
lea eax, [ebp + 1]
xor ebx, ebx
xor edi, edi
push eax
jmp 0x40fda3
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 0x42a948
inc esi
push esi
call fcn.004201a0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x40fd84
cmp byte [esp + 0x18], bl
jne 0x40fdc9
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebp
call fcn.0041fbdd
mov ebx, eax
jmp 0x40fde4
cmp edi, ebx
je 0x40fdec
mov al, byte [edi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [edi], bl
call fcn.0041fbdd
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 0x40fdf3
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x435450]
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.0041ee10
mov esi, 0x42a948
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.00417eef
add esp, 0x10
test al, al
jne 0x40fe4c
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0041ee20
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.0041fbdd
test eax, eax
pop ecx
pop ecx
jne 0x40fed4
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 0x40fed4
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 0x40febe
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 0x40fec9
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.0041ed5e
add ebp, 0x190
leave
ret
Function at 0x40fff5
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x435450]
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.0041e490
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.0041e490
push dword [ebp + 0xe4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0041ee10
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0041f6c0
add esp, 0x28
cmp eax, ebx
je 0x41005d
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 0x410099
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.0041ed5e
add ebp, 0xdc
leave
ret
Function at 0x410664
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 0x410697
push esi
call fcn.0041ea20
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x410686
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x41067d
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 0x41069c
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x435450]
mov dword [ebp - 4], eax
je 0x4108b8
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4108b7
push dword [ebp + 0xc]
call fcn.0041ea20
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x4108b7
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.0041f6c0
cmp eax, edi
pop ecx
pop ecx
je 0x41071f
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.0041ee20
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 0x41077d
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 0x4108b5
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4107ba
cmp eax, 0x19000
jbe 0x4107ba
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 0x4107c0
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x4108b5
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 0x4107f9
push dword [ebp + 0x10]
call fcn.0041ea20
cmp eax, esi
pop ecx
jle 0x4107f9
push dword [ebp + 0x10]
call fcn.0041ea20
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.0041ddb2
mov ebx, 0x42bab0
mov esi, eax
push ebx
push esi
call fcn.0041ee10
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x410820
push edi
call fcn.00410664
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0041fc23
lea eax, [ebp + 8]
push eax
call fcn.00420a7b
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.00420a60
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.0041ee10
push edi
call fcn.00410664
push dword [ebp + 0xc]
push esi
call fcn.0041ee10
push edi
call fcn.00410664
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x410897
push dword [ebp + 0x10]
call fcn.0041ea20
test eax, eax
pop ecx
jbe 0x410897
push dword [ebp + 0x10]
push esi
call fcn.0041ee10
push edi
call fcn.00410664
add esp, 0xc
push ebx
push esi
call fcn.0041ee10
push edi
call fcn.00410664
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041e9db
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.0041ed5e
leave
ret
Function at 0x41295b
Capabilities:
Delete file

Disassembly:
mov eax, 0x4294e5
call fcn.0041e9bc
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], 0x42bca0
mov dword [ebp - 4], ebx
je 0x4129bc
call fcn.0041155b
mov edi, eax
cmp edi, ebx
je 0x4129a0
mov eax, dword [esi + 0x1c]
push dword [eax + 4]
push 0x430058
push edi
call fcn.004072b0
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x4129b0
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 0x4129e0
push dword [esi + 0x2c]
push 0x4300c8
push dword [esi + 0x28]
call fcn.004072b0
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 0x4129ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x4129fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x412a06
call fcn.004105db
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x412a14
push eax
call fcn.0041f756
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x412a22
push eax
call fcn.0041f756
pop ecx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x412a30
push eax
call fcn.0041f756
pop ecx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x412a3e
push eax
call fcn.0041f756
pop ecx
lea eax, [esi + 0x48]
cmp byte [eax], bl
je 0x412a4c
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 0x413e1d
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 0x413ed0
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 0x413ecf
cmp dword [ebp - 8], 1
jne 0x413e90
cmp byte [ebp - 2], bl
je 0x413e90
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 0x413e69
cmp al, bl
je 0x413ecf
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x413ecf
mov edi, dword [ebp - 0xc]
inc edi
push edi
call fcn.0041ddb2
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 0x413ecc
cmp dword [ebp - 8], edi
mov byte [ebp - 1], 1
je 0x413ecf
mov byte [ebp - 1], bl
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret
Function at 0x413f29
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 0x413f79
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 0x413f79
cmp dword [ebp - 8], 2
jne 0x413f79
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 0x416fac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
push esi
mov esi, ecx
mov byte [ebp - 1], 0
je 0x41712e
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
mov dword [ebp + 8], ebx
je 0x41712d
lea ecx, [esi + 4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x417124
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x417124
lea ecx, [esi + 0x70]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x417124
lea ecx, [esi + 0x108]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
test al, al
je 0x417124
push edi
lea edi, [esi + 0x114]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x10]
test al, al
je 0x417123
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x18]
test al, al
je 0x417123
mov eax, dword [esi + 0x124]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jbe 0x417092
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push dword [esi + 0x130]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x41711f
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0x124]
jne 0x41711f
cmp dword [esi + 0x128], 0
mov byte [ebp - 1], 1
jbe 0x417123
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x60]
add eax, 3
lea eax, [eax + eax*4]
add eax, dword [esi + 0x104]
lea edx, [ecx + eax*8]
mov eax, dword [esi + 0x118]
test eax, eax
je 0x417123
mov edi, dword [eax + 0x2c]
mov ecx, dword [eax + 0x2c]
cmp ecx, edi
jae 0x4170ce
mov edi, ecx
mov eax, dword [eax + 4]
test eax, eax
jne 0x4170c5
test edi, edi
jbe 0x417123
cmp edi, edx
jbe 0x417123
sub edi, edx
je 0x417123
mov eax, dword [esi + 0x128]
cmp edi, eax
jbe 0x4170ed
mov edi, eax
push 0
push 0
push edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41711f
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x134]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x41711f
cmp dword [ebp - 8], edi
mov byte [ebp - 1], 1
je 0x417123
mov byte [ebp - 1], 0
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov al, byte [ebp - 1]
pop esi
leave
ret 4

Function at 0x4173d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x4173f9
push 0x434220
lea ecx, [ebp - 0xc]
call fcn.00420c51
push 0x4327b0
lea eax, [ebp - 0xc]
push eax
call fcn.0041edce
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x41741b
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 0x41740b
pop edi
pop esi
leave
ret 8
Function at 0x418163
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x435450]
push esi
push edi
mov edi, dword [ebp + 0x90]
test edi, edi
mov dword [ebp + 0x84], eax
je 0x4181da
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4181da
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4181aa
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x4181dc
push edi
call fcn.00420eef
mov esi, eax
push 0x5c
push esi
call fcn.0041f6c0
add esp, 0xc
test eax, eax
je 0x41824a
push esi
mov byte [eax], 0
call fcn.00418163
test al, al
pop ecx
push esi
jne 0x4181f1
call fcn.0041e272
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0041ed5e
add ebp, 0x88
leave
ret
call fcn.0041e272
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0041ee10
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.0041ea20
add esp, 0x10
jmp 0x418227
push eax
call fcn.0041ea20
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.0041ea20
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x418212
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41824a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4181da
mov al, 1
jmp 0x4181dc

Function at 0x418283
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x4182ac
xor al, al
jmp 0x418327
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x41831d
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x41831d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
je 0x41831d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop edi
leave
ret