joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9e28
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.00494cc0
test al, al
jne 0x498e40
mov eax, 1
jmp 0x498fbd
push 0x10000
call fcn.004bec5c
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.004c0fa0
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x498f96
test ebx, ebx
je 0x498f96
cmp dword [eax], 0xffffffff
je 0x498f96
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x498f96
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x498f8c
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.004bc970
test al, al
je 0x498f7f
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x498f32
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x498f21
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x498f8c
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x498f3c
add ebx, eax
cmp ebx, 0x8000
je 0x498f4c
cmp dword [ebp - 0x28], 0xf
ja 0x498f75
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x498ed0
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x498f6e
add ecx, 4
add esi, 4
sub edx, 4
jae 0x498f56
mov esi, 4
jmp 0x498fa7
mov esi, 5
jmp 0x498fa7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x498fa7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x498fa1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x498fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x498fbb
push ebx
call fcn.004bec57
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 0xc
Function at 0x498fe0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9e68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.00403080
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x5165f2
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.00405f10
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.004bb730
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00405ec0
test bl, bl
jne 0x4990a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x49915e
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.0042e870
test al, al
jne 0x4990d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x49915e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x49914b
cmp eax, 0xce
je 0x49914b
cmp eax, 0x12e
jne 0x49917f
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x499113
push 0x800
call fcn.004bec5c
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.004c0fa0
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.0042e8e0
test al, al
je 0x49917f
push esi
call fcn.00403540
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00403270
mov ebx, dword [ebp - 0x38]
jmp 0x49916f
cmp dword [ebp + 0x14], 0
ja 0x499157
cmp dword [ebp + 0x10], 0
jbe 0x499183
cmp eax, 0xce
je 0x499183
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x49917f
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x499043
xor bl, bl
jmp 0x49918f
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x4991a0
push esi
call fcn.004bec57
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402fc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 0x10
Function at 0x499c90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec768
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x499cc7
xor al, al
jmp 0x499d2a
and esi, 0xffffb1af
push esi
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x499ce2
mov al, 1
jmp 0x499d2a
lea ecx, [ebp - 0x28]
call fcn.00403060
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0049a4b0
test al, al
je 0x499d17
push esi
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x499d17
mov bl, 1
jmp 0x499d19
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret

Function at 0x499d50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec768
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499dce
lea ecx, [ebp - 0x28]
call fcn.00403060
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0049a4b0
test al, al
je 0x499dbd
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret
Function at 0x499f00
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa088
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.00402f50
push eax
mov ecx, edi
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x499f52
mov al, 1
jmp 0x49a040
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00403060
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0049a4b0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00403060
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0049a4b0
test al, al
jne 0x499f98
test bl, bl
je 0x499fb6
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
lea ecx, [ebp - 0x58]
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x49a00a
mov ecx, esi
call fcn.00499d50
cmp eax, 0xffffffff
je 0x49a021
push esi
lea ecx, [ebp - 0x28]
call fcn.00403080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0049a270
test al, al
je 0x49a015
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00499df0
test al, al
je 0x49a015
mov edx, esi
mov ecx, edi
call fcn.00499df0
lea ecx, [ebp - 0x28]
test al, al
je 0x49a00e
call fcn.0049a060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402fc0
mov bl, 1
jmp 0x49a023
mov edx, esi
call fcn.00499df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402fc0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402fc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret
Function at 0x49a060
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00402f50
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x49a0a6
mov al, 1
jmp 0x49a19b
mov ecx, esi
call fcn.00402f50
push eax
lea ecx, [ebp - 0x28]
call fcn.00403010
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00499d50
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
cmp ebx, 0xffffffff
jne 0x49a0e5
xor al, al
jmp 0x49a19b
mov ecx, esi
call fcn.00402f50
push eax
lea ecx, [ebp - 0x28]
call fcn.00403010
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.00499c90
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
test bl, bl
je 0x49a0de
mov ecx, esi
call fcn.00402f50
push eax
call edi
test eax, eax
jne 0x49a09f
lea ecx, [ebp - 0x28]
call fcn.00403060
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0049a4b0
test al, al
je 0x49a15d
lea ecx, [ebp - 0x28]
call fcn.00402f50
push eax
call edi
test eax, eax
je 0x49a15d
mov bl, 1
jmp 0x49a18a
mov ecx, esi
call fcn.00402f50
push eax
lea ecx, [ebp - 0x44]
call fcn.00403010
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.00499c90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402fc0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret

Function at 0x49a1c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004c0fa0
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00402f50
push eax
mov ecx, edi
call fcn.00402f50
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x49a255
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00403540
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00403270
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004be500
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004be500
add esp, 0x210
ret
Function at 0x49dd80
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call fcn.004c0fa0
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x49de17
cmp dword [esp + 8], 6
jb 0x49de17
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.004be500
add esp, 0x118
ret

Function at 0x49de30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa640
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
call fcn.00403010
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.00488e00
mov ecx, eax
call fcn.00488ec0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402fc0
push str.crypt32.dll
lea ecx, [ebp - 0x40]
call fcn.00403010
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00488e00
mov ecx, eax
call fcn.00488ec0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402fc0
test ebx, ebx
je 0x49df45
test esi, esi
je 0x49df45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2ba0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7f6f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x538074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00402080
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.00403080
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.00403080
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00403080
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00403080
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00403080
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00403080
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a4740
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x538074]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4a47a5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a4780
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a47a5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004be500
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004be500
add esp, 8
ret 4
Function at 0x4a4940
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb488
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4a4989
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x4a4adb
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x4a4aa6
test eax, eax
je 0x4a4aa6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x4a4aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x4a4a2b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a4a1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a4a2b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x4a4a39
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00403080
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x4a4aa6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x4a49e4
jmp 0x4a4aa9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x4a4ad2
test edx, edx
je 0x4a4ace
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x4a49a0
mov al, 1
jmp 0x4a4add
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a4adb
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a5fb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x538074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.00402f40
test al, al
jne 0x4a600a
cmp byte [ebp + 8], al
jne 0x4a6011
mov eax, dword [ebx]
test eax, eax
je 0x4a6171
cmp byte [eax + 0xa5], 0
je 0x4a6171
xor al, al
jmp 0x4a6187
mov ecx, esi
call fcn.00402f40
test al, al
jne 0x4a6171
push esi
call fcn.0047bcb0
add esp, 4
test al, al
je 0x4a6039
push esi
push edi
call fcn.004a5be0
jmp 0x4a616d
push 0xb
mov ecx, esi
call fcn.00402f50
push eax
mov ecx, edi
call fcn.00402f50
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x4a605e
mov al, 1
jmp 0x4a616d
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.00403060
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.0049a4b0
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.00403060
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.0049a4b0
test al, al
jne 0x4a60ab
cmp byte [ebp - 0x60], al
je 0x4a60e7
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00402f50
push eax
lea ecx, [ebp - 0x58]
call fcn.00402f50
push eax
call ebx
test eax, eax
je 0x4a60e7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402fc0
mov al, 1
jmp 0x4a616d
mov ecx, esi
call fcn.00499d50
cmp eax, 0xffffffff
je 0x4a6150
push esi
lea ecx, [ebp - 0x28]
call fcn.00403080
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0049a270
test al, al
je 0x4a6144
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00499df0
test al, al
je 0x4a6144
mov edx, esi
mov ecx, edi
call fcn.00499df0
lea ecx, [ebp - 0x28]
test al, al
je 0x4a613d
call fcn.0049a060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402fc0
jmp 0x4a60c5
mov edx, esi
call fcn.00499df0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402fc0
xor al, al
test al, al
jne 0x4a6185
push edi
call fcn.0047bcb0
add esp, 4
test al, al
je 0x4a6185
mov ecx, edi
call fcn.0049a060
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004be500
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b9a20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4b9a2b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004b9a40
Function at 0x4d87d4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d8653

Function at 0x4dd22e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dceee