joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413b7c
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 0x413cff
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 0x413cf6
mov eax, dword [ebp - 0x44]
inc eax
push eax
mov dword [ebp - 0x50], eax
call fcn.00427e69
push dword [ebp + 0xd8]
mov dword [ebp - 0x54], eax
call fcn.0042a240
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.00427e69
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 0x413cd0
push dword [ebp - 0x54]
push dword [ebp + 0xd8]
push str._s_s
push dword [ebp - 0x4c]
call fcn.0042b039
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 0x413cd8
push dword [ebp - 0x4c]
push dword [ebp + 0xe0]
push dword [ebp - 0x48]
call fcn.00413573
add esp, 0xc
cmp eax, esi
je 0x413cc5
mov edx, dword [ebp + 0xdc]
mov ecx, dword [edx]
cmp ecx, esi
jne 0x413cbd
mov dword [edx], eax
jmp 0x413cc5
mov ecx, dword [ecx + 0x34]
cmp dword [ecx + 0x34], esi
jne 0x413cba
mov dword [ecx + 0x34], eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x413cd8
cmp eax, 0x103
je 0x413cd8
nop
inc dword [ebp - 0x60]
cmp dword [ebp - 0x78], esi
je 0x413c3c
push dword [ebp - 0x4c]
call fcn.0042a1fb
push dword [ebp - 0x54]
call fcn.0042a1fb
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.0042a57e
add ebp, 0xcc
leave
ret
Function at 0x414596
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x43dab4
lea eax, [ebp + 1]
xor ebx, ebx
xor edi, edi
push eax
jmp 0x4145cc
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 0x43dab4
inc esi
push esi
call fcn.0042bfe0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
jne 0x4145ad
cmp byte [esp + 0x18], bl
jne 0x4145f2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push ebp
call fcn.0042b45d
mov ebx, eax
jmp 0x41460d
cmp edi, ebx
je 0x414615
mov al, byte [edi]
push ebx
push ebp
mov byte [esp + 0x1c], al
mov byte [edi], bl
call fcn.0042b45d
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 0x41461c
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.0042a630
mov esi, 0x43dab4
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0041cd38
add esp, 0x10
test al, al
jne 0x414675
lea eax, [ebp + 0x88]
push esi
push eax
call fcn.0042a640
pop ecx
pop ecx
xor edi, edi
lea eax, [ebp + 0x88]
push edi
push eax
call fcn.0042b45d
test eax, eax
pop ecx
pop ecx
jne 0x4146fd
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 0x4146fd
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 0x4146e7
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 0x4146f2
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.0042a57e
add ebp, 0x190
leave
ret
Function at 0x41481e
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.00429cb0
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.00429cb0
push dword [ebp + 0xe4]
lea eax, [ebp - 0x2c]
push eax
call fcn.0042a630
lea eax, [ebp - 0x2c]
push 0x5c
push eax
call fcn.0042aee0
add esp, 0x28
cmp eax, ebx
je 0x414886
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 0x4148c2
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.0042a57e
add ebp, 0xdc
leave
ret
Function at 0x4150fb
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 0x41512e
push esi
call fcn.0042a240
pop ecx
xor ecx, ecx
test eax, eax
jbe 0x41511d
xor byte [ecx + esi], 0x2f
inc ecx
cmp ecx, eax
jb 0x415114
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 0x415133
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 0x41534f
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x41534e
push dword [ebp + 0xc]
call fcn.0042a240
cmp eax, edi
pop ecx
mov dword [ebp - 0x510], eax
jle 0x41534e
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.0042aee0
cmp eax, edi
pop ecx
pop ecx
je 0x4151b6
mov byte [eax + 1], 0
lea eax, [ebp - 0x108]
push str.wrapperdl.tdat
push eax
call fcn.0042a640
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 0x415214
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 0x41534c
push 0
push dword [ebp - 0x50c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x415251
cmp eax, 0x19000
jbe 0x415251
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 0x415257
mov edi, dword [ebp - 0x50c]
cmp edi, 0xffffffff
je 0x41534c
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 0x415290
push dword [ebp + 0x10]
call fcn.0042a240
cmp eax, esi
pop ecx
jle 0x415290
push dword [ebp + 0x10]
call fcn.0042a240
pop ecx
mov esi, eax
add esi, 0x64
push esi
call fcn.00427e64
mov ebx, 0x43f608
mov esi, eax
push ebx
push esi
call fcn.0042a630
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x4152b7
push edi
call fcn.004150fb
pop ecx
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
call fcn.0042b4a3
lea eax, [ebp + 8]
push eax
call fcn.0042c8bb
push eax
push str._d__m__Y__H:_M:_S
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.0042c8a0
lea eax, [ebp - 0x508]
push eax
push esi
call fcn.0042a630
push edi
call fcn.004150fb
push dword [ebp + 0xc]
push esi
call fcn.0042a630
push edi
call fcn.004150fb
add esp, 0x30
cmp dword [ebp + 0x10], 0
je 0x41532e
push dword [ebp + 0x10]
call fcn.0042a240
test eax, eax
pop ecx
jbe 0x41532e
push dword [ebp + 0x10]
push esi
call fcn.0042a630
push edi
call fcn.004150fb
add esp, 0xc
push ebx
push esi
call fcn.0042a630
push edi
call fcn.004150fb
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042a1fb
pop ecx
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
call fcn.0042a57e
leave
ret
Function at 0x417482
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c211
call fcn.0042a1dc
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], 0x43f7f0
mov dword [ebp - 4], ebx
je 0x4174b1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [esi + 0x1c], ebx
je 0x4174f6
mov ecx, esi
call fcn.00416052
mov edi, eax
cmp edi, ebx
je 0x4174da
mov eax, dword [esi + 0x1c]
push dword [eax + 4]
push 0x443fe0
push edi
call fcn.00407fae
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov edi, dword [esi + 0x1c]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x4174ea
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 0x41751a
push dword [esi + 0x2c]
push 0x444050
push dword [esi + 0x28]
call fcn.00407fae
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 0x417527
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x417534
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x417540
call fcn.00415072
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x41754e
push eax
call fcn.0042af76
pop ecx
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x41755c
push eax
call fcn.0042af76
pop ecx
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x41756a
push eax
call fcn.0042af76
pop ecx
mov eax, dword [esi + 0x40]
cmp eax, ebx
je 0x417578
push eax
call fcn.0042af76
pop ecx
lea eax, [esi + 0x48]
cmp byte [eax], bl
je 0x417586
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 0x417ea0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44c750]
push ebx
push esi
xor ebx, ebx
push ebx
mov esi, 0x43daa1
push esi
push esi
push 1
push str.MyZylomActiveXPlugin
mov dword [ebp - 4], eax
mov byte [ebp - 0x11], bl
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x41806c
push edi
mov edi, dword [ebp + 0x10]
cmp di, 0x50
jne 0x417ee4
push 0x50
pop edi
jmp 0x417ef0
cmp di, 0x1bb
jne 0x417ef0
mov edi, 0x1bb
push ebx
push 0x4000000
push 3
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x418062
push ebx
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
jne 0x418059
cmp dword [ebp + 0x14], ebx
lea eax, [ebp - 0x10]
jne 0x417f2e
push 0x43f8f0
jmp 0x417f33
push str.POST
push eax
call fcn.0042a630
cmp di, 0x1bb
pop ecx
pop ecx
mov eax, 0xa0000000
jne 0x417f4c
mov eax, 0xa0800000
push ebx
push eax
push ebx
push esi
push str.HTTP_1.0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x418059
mov eax, dword [0x548394]
xor esi, esi
cmp eax, ebx
je 0x417f99
push eax
call fcn.0042a240
inc eax
push eax
call fcn.00427e69
push dword [0x548394]
mov esi, eax
push esi
call fcn.0042a630
add esp, 0x10
cmp dword [ebp + 0x18], ebx
jbe 0x418019
cmp dword [ebp + 0x14], ebx
je 0x418019
mov edi, dword [ebp + 0x1c]
cmp edi, ebx
je 0x418019
cmp esi, ebx
jne 0x417fd6
push edi
call fcn.0042a240
add eax, 0x14
push eax
call fcn.00427e69
mov esi, eax
push str.Content_Type:
push esi
call fcn.0042a630
push edi
push esi
call fcn.0042a640
add esp, 0x18
jmp 0x418019
push esi
mov dword [ebp - 0x1c], esi
call fcn.0042a240
push edi
mov esi, eax
call fcn.0042a240
lea eax, [esi + eax + 0x15]
push eax
call fcn.00427e69
push dword [ebp - 0x1c]
mov esi, eax
push esi
call fcn.0042a630
push str.Content_Type:
push esi
call fcn.0042a640
push edi
push esi
call fcn.0042a640
push dword [ebp - 0x1c]
call fcn.0042a1fb
add esp, 0x28
cmp esi, ebx
jne 0x418021
xor eax, eax
jmp 0x418028
push esi
call fcn.0042a240
pop ecx
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x418049
mov byte [ebp - 0x11], 1
push esi
call fcn.0042a1fb
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
pop esi
pop ebx
call fcn.0042a57e
leave
ret
Function at 0x418b56
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 0x418c09
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 0x418c08
cmp dword [ebp - 8], 1
jne 0x418bc9
cmp byte [ebp - 2], bl
je 0x418bc9
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 0x418ba2
cmp al, bl
je 0x418c08
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
je 0x418c08
mov edi, dword [ebp - 0xc]
inc edi
push edi
call fcn.00427e64
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 0x418c05
cmp dword [ebp - 8], edi
mov byte [ebp - 1], 1
je 0x418c08
mov byte [ebp - 1], bl
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x418c62
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 0x418cb2
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 0x418cb2
cmp dword [ebp - 8], 2
jne 0x418cb2
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 0x41bc6f
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.0042af76
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 0x41bddb
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 0x41bdda
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 0x41bdd3
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 0x41bdd3
lea ecx, [esi + 0x80]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x41bdd3
push dword [esi + 0x11c]
lea ecx, [esi + 0x120]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x48]
test al, al
je 0x41bdd3
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 0x41bdd3
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x14]
test al, al
je 0x41bdd3
mov edi, dword [esi + 0x130]
jmp 0x41bd72
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax + 4]
test al, al
je 0x41bde4
mov edi, dword [edi + 4]
test edi, edi
jne 0x41bd62
push 1
push edi
push edi
push ebx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41bdd3
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x14c], eax
mov dword [esi + 0x150], ecx
je 0x41bdcf
push ecx
call fcn.00427e64
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 0x41bde4
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x150]
jne 0x41bde4
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 0x41bdd3
Function at 0x41bdea
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 0x41bef7
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 0x41bef7
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 0x41beee
lea ecx, [edi + 0x6c]
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
test al, al
je 0x41beee
lea ecx, [edi + 0x80]
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
test al, al
je 0x41beee
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x4c]
test al, al
je 0x41beee
lea esi, [edi + 0x134]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x41beee
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x18]
test al, al
je 0x41beee
mov eax, dword [edi + 0x150]
test eax, eax
jbe 0x41beea
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 0x41bee4
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x150]
je 0x41beea
mov byte [ebp - 1], 0
jmp 0x41beee
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 0x41c19b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
jne 0x41c1c2
push 0x44b250
lea ecx, [ebp - 0xc]
call fcn.0042ca91
push 0x447f50
lea eax, [ebp - 0xc]
push eax
call fcn.0042a5ee
push esi
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x41c1e4
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 0x41c1d4
pop edi
pop esi
leave
ret 8
Function at 0x41cf90
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 0x41d007
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41d007
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41cfd7
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
jmp 0x41d009
push edi
call fcn.0042cd87
mov esi, eax
push 0x5c
push esi
call fcn.0042aee0
add esp, 0xc
test eax, eax
je 0x41d077
push esi
mov byte [eax], 0
call fcn.0041cf90
test al, al
pop ecx
push esi
jne 0x41d01e
call fcn.00429a90
pop ecx
xor al, al
mov ecx, dword [ebp + 0x84]
pop edi
pop esi
call fcn.0042a57e
add ebp, 0x88
leave
ret
call fcn.00429a90
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0042a630
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x80]
push eax
dec esi
call fcn.0042a240
add esp, 0x10
jmp 0x41d054
push eax
call fcn.0042a240
mov byte [eax + esi], 0
lea eax, [ebp - 0x80]
push eax
call fcn.0042a240
pop ecx
pop ecx
cmp byte [eax + esi], 0x5c
lea eax, [ebp - 0x80]
je 0x41d03f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41d077
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d007
mov al, 1
jmp 0x41d009

Function at 0x41d0b0
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 0x41d0d9
xor al, al
jmp 0x41d154
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 0x41d14a
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 0x41d14a
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 0x41d14a
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