joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41317c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0xc0]
sub esp, 0x140
mov eax, dword [0x44c750]
push edi
mov dword [ebp + 0xbc], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc8]
mov dword [ebp - 0x5c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4132d3
mov eax, dword [ebp - 0x58]
push ebx
inc eax
push esi
push eax
mov dword [ebp - 0x4c], eax
call fcn.004279e9
mov ebx, eax
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00429830
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.Publisher
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x4132ca
cmp dword [ebp - 0x54], 1
jne 0x4132ca
push str.Zylom_Games
push ebx
call fcn.0042aa8d
test eax, eax
pop ecx
pop ecx
jne 0x4132ca
mov eax, dword [ebp - 0x58]
inc eax
push eax
push edi
push ebx
mov dword [ebp - 0x4c], eax
call fcn.00429830
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push ebx
lea eax, [ebp - 0x54]
push eax
push edi
push str.GameID
push dword [ebp + 0xc8]
call esi
test eax, eax
jne 0x4132ca
cmp dword [ebp - 0x54], 4
jne 0x4132ca
push 4
lea eax, [ebp - 0x50]
push ebx
push eax
mov dword [ebp - 0x50], edi
call fcn.0042a690
add esp, 0xc
cmp dword [ebp - 0x50], edi
jbe 0x4132ca
mov esi, dword [ebp + 0xd0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
cmp eax, dword [ebp - 0x50]
jne 0x4132ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
push 4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push eax
push 4
push edi
push str.BuildType
push dword [ebp + 0xc8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call fcn.00429d7b
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0xbc]
pop edi
call fcn.0042a0fe
add ebp, 0xc0
leave
ret
Function at 0x4138f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x44c750]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp + 0xc8], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
mov ebx, 0x20019
push ebx
push esi
push dword [ebp + 0xd8]
mov dword [ebp - 0x5c], 0x104
push dword [ebp + 0xd4]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x48], esi
call edi
test eax, eax
jne 0x413a73
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x413a6a
mov eax, dword [ebp - 0x44]
inc eax
push eax
mov dword [ebp - 0x50], eax
call fcn.004279e9
push dword [ebp + 0xd8]
mov dword [ebp - 0x54], eax
call fcn.00429dc0
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.004279e9
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x60], esi
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x60]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x413a44
push dword [ebp - 0x54]
push dword [ebp + 0xd8]
push str._s_s
push dword [ebp - 0x4c]
call fcn.0042b5ed
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
push ebx
push esi
push dword [ebp - 0x4c]
push dword [ebp + 0xd4]
call edi
test eax, eax
jne 0x413a4c
push dword [ebp - 0x4c]
push dword [ebp + 0xe0]
push dword [ebp - 0x48]
call fcn.004132e7
add esp, 0xc
cmp eax, esi
je 0x413a39
mov edx, dword [ebp + 0xdc]
mov ecx, dword [edx]
cmp ecx, esi
jne 0x413a31
mov dword [edx], eax
jmp 0x413a39
mov ecx, dword [ecx + 0x34]
cmp dword [ecx + 0x34], esi
jne 0x413a2e
mov dword [ecx + 0x34], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413a4c
cmp eax, 0x103
je 0x413a4c
nop
inc dword [ebp - 0x60]
cmp dword [ebp - 0x78], esi
je 0x4139b0
push dword [ebp - 0x4c]
call fcn.00429d7b
push dword [ebp - 0x54]
call fcn.00429d7b
pop ecx
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc8]
pop edi
pop esi
pop ebx
call fcn.0042a0fe
add ebp, 0xcc
leave
ret
Function at 0x41430a
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x43da04
lea eax, [ebp + 1]
xor ebx, ebx
xor edi, edi
push eax
jmp 0x414340
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 0x43da04
inc esi
push esi
call fcn.0042bb50
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x414321
cmp byte [esp + 0x18], bl
jne 0x414366
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebp
call fcn.0042af7d
mov ebx, eax
jmp 0x414381
cmp edi, ebx
je 0x414389
mov al, byte [edi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [edi], bl
call fcn.0042af7d
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 0x414390
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44c750]
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.0042a1b0
mov esi, 0x43da04
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0041c8ba
add esp, 0x10
test al, al
jne 0x4143e9
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0042a1c0
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.0042af7d
test eax, eax
pop ecx
pop ecx
jne 0x414471
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 0x414471
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 0x41445b
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 0x414466
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.0042a0fe
add ebp, 0x190
leave
ret
Function at 0x414592
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0xdc]
sub esp, 0x15c
mov eax, dword [0x44c750]
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.00429830
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.00429830
push dword [ebp + 0xe4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a1b0
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0042aa60
add esp, 0x28
cmp eax, ebx
je 0x4145fa
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 0x414636
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.0042a0fe
add ebp, 0xdc
leave
ret
Function at 0x414e6f
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 0x414ea2
push esi
call fcn.00429dc0
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x414e91
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x414e88
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 0x414ea7
Capabilities:
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x510
cmp byte [ebp + 8], 0
mov eax, dword [0x44c750]
mov dword [ebp - 4], eax
je 0x4150c3
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x4150c2
push dword [ebp + 0xc]
call fcn.00429dc0
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x4150c2
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.0042aa60
cmp eax, edi
pop ecx
pop ecx
je 0x414f2a
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.0042a1c0
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 0x414f88
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 0x4150c0
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x414fc5
cmp eax, 0x19000
jbe 0x414fc5
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 0x414fcb
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x4150c0
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 0x415004
push dword [ebp + 0x10]
call fcn.00429dc0
cmp eax, esi
pop ecx
jle 0x415004
push dword [ebp + 0x10]
call fcn.00429dc0
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.004279e4
mov ebx, 0x43f548
mov esi, eax
push ebx
push esi
call fcn.0042a1b0
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x41502b
push edi
call fcn.00414e6f
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0042afc3
lea eax, [ebp + 8]
push eax
call fcn.0042c42b
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0042c410
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.0042a1b0
push edi
call fcn.00414e6f
push dword [ebp + 0xc]
push esi
call fcn.0042a1b0
push edi
call fcn.00414e6f
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x4150a2
push dword [ebp + 0x10]
call fcn.00429dc0
test eax, eax
pop ecx
jbe 0x4150a2
push dword [ebp + 0x10]
push esi
call fcn.0042a1b0
push edi
call fcn.00414e6f
add esp, 0xc
push ebx
push esi
call fcn.0042a1b0
push edi
call fcn.00414e6f
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00429d7b
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.0042a0fe
leave
ret
Function at 0x4171eb
Capabilities:
Delete file

Disassembly:
mov eax, 0x43bd5c
call fcn.00429d5c
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xa054]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [esi], 0x43f738
mov dword [ebp - 4], ebx
je 0x41721a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esi + 0x1c], ebx
je 0x41725f
mov ecx, esi
call fcn.00415dbd
mov edi, eax
cmp edi, ebx
je 0x417243
mov eax, dword [esi + 0x1c]
push dword [eax + 4]
push 0x443ee8
push edi
call fcn.00407e80
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x417253
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 0x417283
push dword [esi + 0x2c]
push 0x443f58
push dword [esi + 0x28]
call fcn.00407e80
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 0x417290
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x41729d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x4172a9
call fcn.00414de6
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x4172b7
push eax
call fcn.0042aaf6
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x4172c5
push eax
call fcn.0042aaf6
pop ecx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x4172d3
push eax
call fcn.0042aaf6
pop ecx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x4172e1
push eax
call fcn.0042aaf6
pop ecx
lea eax, [esi + 0x48]
cmp byte [eax], bl
je 0x4172ef
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 0x4186d8
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 0x41878b
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 0x41878a
cmp dword [ebp - 8], 1
jne 0x41874b
cmp byte [ebp - 2], bl
je 0x41874b
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 0x418724
cmp al, bl
je 0x41878a
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x41878a
mov edi, dword [ebp - 0xc]
inc edi
push edi
call fcn.004279e4
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 0x418787
cmp dword [ebp - 8], edi
mov byte [ebp - 1], 1
je 0x41878a
mov byte [ebp - 1], bl
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x4187e4
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 0x418834
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 0x418834
cmp dword [ebp - 8], 2
jne 0x418834
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 0x41b7f1
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 + 0x154]
mov byte [ebp - 1], 0
call fcn.0042aaf6
xor edi, edi
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi + 0x154], edi
mov dword [esi + 0x150], edi
mov dword [esi + 0x14c], edi
je 0x41b95d
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 0x41b95c
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 0x41b955
mov edx, dword [esi + 0x68]
sub edx, 0x40
lea ecx, [esi + 0x6c]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax + 4]
test al, al
je 0x41b955
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x41b955
push dword [esi + 0x11c]
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
test al, al
je 0x41b955
lea eax, [esi + 0x120]
push eax
push dword [esi + 0x94]
lea edi, [esi + 0x134]
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0xc]
test al, al
je 0x41b955
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
test al, al
je 0x41b955
mov edi, dword [esi + 0x130]
jmp 0x41b8f4
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x41b966
mov edi, dword [edi + 4]
test edi, edi
jne 0x41b8e4
push 1
push edi
push edi
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41b955
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], ecx
je 0x41b951
push ecx
call fcn.004279e4
and dword [ebp + 8], edi
pop ecx
push edi
lea ecx, [ebp + 8]
push ecx
push dword [esi + 0x150]
mov dword [esi + 0x154], eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b966
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x150]
jne 0x41b966
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 0x41b955
Function at 0x41b96c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 8], eax
push edi
mov edi, ecx
mov byte [ebp - 1], al
je 0x41ba79
push eax
push 0x80
push 2
push eax
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x41ba79
push ebx
push esi
lea esi, [edi + 0x120]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov dword [eax + 0xc], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x1c]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov dword [eax + 0x10], ebx
mov ebx, dword [ebp + 8]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x41ba70
lea ecx, [edi + 0x6c]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x41ba70
lea ecx, [edi + 0x80]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x41ba70
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x4c]
test al, al
je 0x41ba70
lea esi, [edi + 0x134]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x41ba70
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x18]
test al, al
je 0x41ba70
mov eax, dword [edi + 0x150]
test eax, eax
jbe 0x41ba6c
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [edi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41ba66
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x150]
je 0x41ba6c
mov byte [ebp - 1], 0
jmp 0x41ba70
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret 4

Function at 0x41bd1d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x41bd44
push 0x44b250
lea ecx, [ebp - 0xc]
call fcn.0042c601
push 0x447e24
lea eax, [ebp - 0xc]
push eax
call fcn.0042a16e
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x41bd66
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 0x41bd56
pop edi
pop esi
leave
ret 8
Function at 0x41cb12
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x44c750]
push esi
push edi
mov edi, dword [ebp + 0x90]
test edi, edi
mov dword [ebp + 0x84], eax
je 0x41cb89
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41cb89
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41cb59
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x41cb8b
push edi
call fcn.0042c8f7
mov esi, eax
push 0x5c
push esi
call fcn.0042aa60
add esp, 0xc
test eax, eax
je 0x41cbf9
push esi
mov byte [eax], 0
call fcn.0041cb12
test al, al
pop ecx
push esi
jne 0x41cba0
call fcn.00429610
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0042a0fe
add ebp, 0x88
leave
ret
call fcn.00429610
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0042a1b0
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.00429dc0
add esp, 0x10
jmp 0x41cbd6
push eax
call fcn.00429dc0
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.00429dc0
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x41cbc1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41cbf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41cb89
mov al, 1
jmp 0x41cb8b

Function at 0x41cc32
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 0x41cc5b
xor al, al
jmp 0x41ccd6
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 0x41cccc
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 0x41cccc
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 0x41cccc
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