joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474f80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
mov ebx, dword [esp + 0x2020]
push esi
mov esi, dword [esp + 0x201c]
push edi
mov edi, dword [esp + 0x2024]
cmp edi, esi
je 0x474fbc
push ebx
push esi
push edi
call fcn.0047ef70
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47508d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474fe2
sub eax, edx
sar eax, 1
mov ecx, 0x7ff
sub ecx, eax
add ecx, ecx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x101c]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.LanguageFolder
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475082
push 0x800
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1020]
push edx
mov word [esp + 0x24], ax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x1c]
push eax
call fcn.0045fed0
push 0x800
push esi
call fcn.00460330
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0047efb0
lea edx, [esp + 0x18]
push edx
call fcn.0043ca60
test al, al
je 0x475082
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0047ef70
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c0c62
add esp, 0x2010
ret 0xc

Function at 0x475170
Capabilities:
Check os version

Disassembly:
mov eax, 0x1118
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x1114], eax
push esi
mov esi, ecx
cmp byte [esi], 0
je 0x4751ab
mov eax, dword [0x51f7e4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x51f7e0]
mov dword [0x51f7e4], ecx
mov byte [esi], 0
mov eax, dword [esp + 0x1124]
lea edx, [esp + 0x118]
test eax, eax
je 0x4751d1
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4751c0
jmp 0x4751df
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x120]
push eax
call fcn.00460500
push 0x800
lea ecx, [esp + 0x11c]
push ecx
mov edx, ecx
push edx
call fcn.00474f80
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 2
jne 0x47524b
mov eax, dword [esp + 8]
cmp eax, 5
ja 0x475237
jne 0x47524b
cmp dword [esp + 0xc], 1
jbe 0x47524b
push 2
push 0
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x475259
lea edx, [esp + 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x51f7e4], eax
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1120]
pop esi
mov dword [0x51f7e0], eax
jne 0x47527b
mov dword [0x51f7e4], eax
mov ecx, dword [esp + 0x1114]
xor ecx, esp
call fcn.004c0c62
add esp, 0x1118
ret 8
Function at 0x4754e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x10], eax
push ebp
push edi
mov ebp, ecx
mov edi, 1
cmp dword [ebp], edi
jle 0x47561a
push ebx
push esi
lea esi, [ebp + 0x24]
lea ecx, [ebp + 0x28]
jmp 0x475510
xor eax, eax
jmp 0x475520
movzx edx, byte [ecx - 1]
movzx edx, byte [eax + edx*4 + 0x563d30]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x564130]
movzx ebx, byte [ecx - 3]
xor dl, byte [eax + ebx*4 + 0x564530]
movzx ebx, byte [ecx - 4]
xor dl, byte [eax + ebx*4 + 0x564930]
movzx ebx, byte [ecx + 2]
mov byte [esp + eax + 0x10], dl
movzx edx, byte [ecx + 3]
movzx edx, byte [eax + edx*4 + 0x563d30]
xor dl, byte [eax + ebx*4 + 0x564130]
movzx ebx, byte [ecx + 1]
xor dl, byte [eax + ebx*4 + 0x564530]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x564930]
movzx ebx, byte [ecx + 6]
mov byte [esp + eax + 0x14], dl
movzx edx, byte [ecx + 7]
movzx edx, byte [eax + edx*4 + 0x563d30]
xor dl, byte [eax + ebx*4 + 0x564130]
movzx ebx, byte [ecx + 5]
xor dl, byte [eax + ebx*4 + 0x564530]
movzx ebx, byte [ecx + 4]
xor dl, byte [eax + ebx*4 + 0x564930]
movzx ebx, byte [ecx + 0xa]
mov byte [esp + eax + 0x18], dl
movzx edx, byte [ecx + 0xb]
movzx edx, byte [eax + edx*4 + 0x563d30]
xor dl, byte [eax + ebx*4 + 0x564130]
movzx ebx, byte [ecx + 9]
xor dl, byte [eax + ebx*4 + 0x564530]
movzx ebx, byte [ecx + 8]
xor dl, byte [eax + ebx*4 + 0x564930]
inc eax
cmp eax, 4
mov byte [esp + eax + 0x1b], dl
jl 0x475520
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
inc edi
add ecx, 0x10
add esi, 0x10
cmp edi, dword [ebp]
jl 0x475510
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop edi
pop ebp
xor ecx, esp
call fcn.004c0c62
add esp, 0x14
ret
Function at 0x476190
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x30]
mov ebx, ecx
test eax, eax
ja 0x4761c9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004c0c62
add esp, 0x18
ret 0xc
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 8]
mov edx, dword [esi + 8]
xor edx, dword [ebx + 0xc]
shr eax, 4
push ebp
mov ebp, eax
mov eax, dword [esi]
xor eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x10]
push edi
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call fcn.00475630
add esi, 0x10
add ebp, 0xffffffff
je 0x47624e
nop
mov edx, dword [edi]
xor edx, dword [esi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov ecx, dword [edi + 8]
xor ecx, dword [esi + 8]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0xc]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
add edi, 0x10
push edi
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], edx
call fcn.00475630
add esi, 0x10
sub ebp, 1
jne 0x476210
mov ecx, dword [edi]
mov dword [ebx + 4], ecx
mov edx, dword [edi + 4]
mov dword [ebx + 8], edx
mov eax, dword [edi + 8]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
shl eax, 4
call fcn.004c0c62
add esp, 0x18
ret 0xc
Function at 0x476290
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov ebx, ecx
test esi, esi
je 0x476385
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x476385
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shr eax, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x10]
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x476355
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebx
call fcn.004759e0
mov edx, dword [esp + 0x20]
xor dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
xor dword [esp + 0x34], edx
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
xor ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
xor eax, ebp
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0xc]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
add esi, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x24], edx
jne 0x4762e7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [ebx + 4], ebp
pop ebp
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x20]
pop edi
mov dword [ebx + 0xc], ecx
pop esi
mov dword [ebx + 0x10], edx
shl eax, 4
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004c0c62
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004c0c62
add esp, 0x2c
ret 0xc
Function at 0x4772d0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
jne 0x4772f1
push edi
push 0
push ebp
call fcn.004c16b0
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edi
push ebp
push eax
push ebx
push ecx
mov ecx, esi
call fcn.00476e70
test al, al
jne 0x4773b0
test ebx, ebx
jne 0x477370
cmp dword [esi + 0x24], edi
je 0x477344
mov edx, dword [esi + 0x20]
push edx
call fcn.004c172a
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0c57
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
xor eax, eax
test edi, edi
jbe 0x477370
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
movzx edx, word [eax + ecx]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x20]
mov edx, dword [ecx + edx*4]
mov dword [ebx + eax*4], edx
add eax, 2
cmp eax, edi
jb 0x477350
mov ebx, dword [esp + 0x18]
nop
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x1c]
imul eax, ebx
add eax, dword [esp + 0x14]
mov edx, dword [ecx + eax*4]
mov eax, dword [esi + 4]
mov ecx, dword [eax + edx*4]
xor eax, eax
test edi, edi
jbe 0x4773b0
lea esp, [esp]
mov edx, dword [esi + 0x20]
mov edx, dword [edx + eax*4]
mov ebx, dword [esi]
add edx, ecx
mov dx, word [ebx + edx*4]
xor word [eax + ebp], dx
add eax, 2
cmp eax, edi
jb 0x477390
lea esp, [esp]
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

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

Disassembly:
mov eax, 0x1004
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
cmp byte [ebx], 0
push ebp
mov ebp, ecx
je 0x477cd2
push esi
push edi
lea esi, [ebp + 0x101e]
push esi
call fcn.00460330
mov edi, eax
cmp edi, esi
jbe 0x477c65
xor eax, eax
push esi
mov word [edi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x5c
mov word [edi - 2], cx
cmp eax, 0xffffffff
je 0x477c65
test eax, 0x400
je 0x477c65
mov byte [ebx], 0
push str.System_Volume_Information_
push esi
call fcn.004c46d6
add esp, 8
test eax, eax
jne 0x477c94
cmp byte [ebx], al
je 0x477cd0
mov ecx, dword [ebp + 0x4024]
test ecx, ecx
je 0x477c99
push 1
push 1
push eax
push esi
call fcn.004211f0
test al, al
je 0x477c99
mov byte [ebx], 0
jmp 0x477cd0
cmp byte [ebx], 0
je 0x477cd0
push 0x800
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00461910
lea eax, [esp + 0x10]
push eax
push 0x4a1
call fcn.004750b0
push eax
call fcn.004ac840
add esp, 8
mov ecx, 0x51f7e8
call fcn.00433750
pop edi
pop esi
mov ecx, dword [esp + 0x1008]
pop ebp
pop ebx
xor ecx, esp
call fcn.004c0c62
add esp, 0x1004
ret 4
Function at 0x4783d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [0x566f58]
push esi
test ecx, ecx
jne 0x478429
cmp byte [0x566f54], cl
jne 0x478429
push str.Crypt32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x566f50], eax
test eax, eax
je 0x47841c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptProtectMemory
push eax
call esi
mov dword [0x566f58], eax
mov eax, dword [0x566f50]
push str.CryptUnprotectMemory
push eax
call esi
mov dword [0x566f5c], eax
mov ecx, dword [0x566f58]
mov byte [0x566f54], 1
mov esi, dword [esp + 0xc]
mov edx, esi
and edx, 0xf
mov eax, esi
sub eax, edx
cmp byte [esp + 0x10], 0
je 0x47847b
test ecx, ecx
je 0x47849a
push 0
push eax
mov eax, dword [esp + 0x10]
push eax
call ecx
test eax, eax
jne 0x4784bd
push str.CryptProtectMemory_failed
push 0x51f7e8
call fcn.00433a90
add esp, 8
mov ecx, 0x51f7e8
call fcn.00433750
push 2
mov ecx, 0x51f7e8
call fcn.00433740
pop esi
ret 0xc
mov ecx, dword [0x566f5c]
test ecx, ecx
je 0x47849a
mov edx, dword [esp + 8]
push 0
push eax
push edx
call ecx
test eax, eax
jne 0x4784bd
push str.CryptUnprotectMemory_failed
jmp 0x478454
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
test esi, esi
jbe 0x4784bd
mov dl, al
mov eax, dword [esp + 8]
add dl, 0x4b
push ebx
mov bl, dl
add bl, cl
xor byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jb 0x4784b0
pop ebx
pop esi
ret 0xc
Function at 0x478cd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push ebx
push esi
push 0x4d94b8
push eax
mov esi, ecx
call fcn.0049ea60
mov ebx, eax
test ebx, ebx
sete al
mov byte [esi + 0x3028], al
test al, al
jne 0x478ebf
push ebx
push 1
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.004c4096
add esp, 0x10
cmp word [esp + 0x10], 0
jne 0x478eb6
cmp word [esp + 0x12], 1
jne 0x478eb6
push ebp
push edi
push 0
push 0
push ebx
call fcn.004c47c1
movzx edx, word [esp + 0x28]
dec edx
shl edx, 4
add edx, 0x16
push edx
call fcn.004c1d07
mov esi, eax
movzx eax, word [esp + 0x2c]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx + 0x14]
push edx
call fcn.004c1d07
mov edi, eax
movzx eax, word [esp + 0x30]
dec eax
push ebx
shl eax, 4
push 1
add eax, 0x16
push eax
push esi
mov dword [esp + 0x38], edi
call fcn.004c4096
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0x24
mov dword [edi + 0x10], edx
mov dword [esp + 0x38], 0
cmp ax, word [esp + 0x1c]
jae 0x478e5b
lea eax, [edi + 0x12]
lea ebp, [esi + 0xe]
mov dword [esp + 0x10], eax
jmp 0x478dc4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [eax - 8], edx
mov ecx, dword [ebp]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x38]
inc ecx
mov word [eax], cx
mov edi, dword [ebp]
push edi
call fcn.004c1d07
mov esi, eax
add esp, 4
test esi, esi
je 0x478ea1
mov edx, dword [ebp + 4]
push 0
push edx
push ebx
call fcn.004c47c1
push ebx
push 1
push edi
push esi
call fcn.004c4096
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 0x1c
push edi
push esi
inc eax
push 0x400
movzx eax, ax
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
mov edi, eax
call fcn.004c1404
add esp, 4
test edi, edi
je 0x478ea1
mov eax, dword [esp + 0x38]
movzx edx, word [esp + 0x1c]
add dword [esp + 0x10], 0xe
inc eax
add ebp, 0x10
cmp eax, edx
mov dword [esp + 0x38], eax
jl 0x478dc0
mov edi, dword [esp + 0x14]
push ebx
call fcn.004c34b2
movzx eax, word [esp + 0x20]
dec eax
add esp, 4
lea ecx, [eax*8]
sub ecx, eax
movzx eax, word [esp + 0x3c]
lea edx, [ecx + ecx + 0x14]
mov ecx, dword [esp + 0x34]
push edx
push edi
push 0x400
push eax
push 0xe
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
pop edi
neg eax
pop ebp
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x20
ret 0xc
push ebx
call fcn.004c34b2
add esp, 4
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
push ebx
call fcn.004c34b2
add esp, 4
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
Function at 0x478ed0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x4d94b8
push eax
mov edi, ecx
call fcn.0049ea60
mov esi, eax
test esi, esi
sete al
mov byte [edi + 0x3028], al
test al, al
jne 0x478fcd
push esi
call fcn.004c4ddd
add esp, 4
cmp eax, 0x42
jne 0x478fc4
push esi
call fcn.004c4ddd
add esp, 4
cmp eax, 0x4d
jne 0x478fc4
push 0
push 2
push esi
call fcn.004c47c1
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.004c4096
mov eax, dword [esp + 0x2c]
sub eax, 0xe
push eax
mov dword [esp + 0x30], eax
call fcn.004c1d07
mov edi, eax
add esp, 0x20
test edi, edi
je 0x478fc4
push 0
push 0xe
push esi
call fcn.004c47c1
mov edx, dword [esp + 0x1c]
push esi
push edx
push 1
push edi
call fcn.004c4096
add esp, 0x1c
cmp eax, dword [esp + 0x10]
je 0x478f86
push edi
call fcn.004c1404
push esi
call fcn.004c34b2
add esp, 8
pop edi
xor al, al
pop esi
ret 0xc
push esi
call fcn.004c34b2
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x10]
add esp, 4
push eax
push edi
push 0x400
push ecx
push 2
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push edi
mov esi, eax
call fcn.004c1404
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret 0xc
push esi
call fcn.004c34b2
add esp, 4
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x479040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push edi
push 0x4d94b8
push eax
mov edi, ecx
call fcn.0049ea60
mov esi, eax
test esi, esi
sete al
mov byte [edi + 0x3028], al
test al, al
je 0x47907f
mov al, 1
jmp 0x4790c9
push esi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004c4096
push esi
mov edi, eax
call fcn.004c34b2
lea ecx, [edi - 4]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x4790c7
mov dl, 0x55
cmp byte [esp + eax + 8], dl
jne 0x4790c2
cmp byte [esp + eax + 9], 0x50
jne 0x4790c2
cmp byte [esp + eax + 0xa], 0x58
jne 0x4790c2
cmp byte [esp + eax + 0xb], 0x30
je 0x47907b
inc eax
cmp eax, ecx
jl 0x4790a7
xor al, al
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004c0c62
add esp, 0x404
ret 4

Function at 0x4790f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebx
push esi
push edi
mov edi, dword [esp + 0x2018]
push 0x4d94b8
push eax
mov ebx, ecx
call fcn.0049ea60
mov esi, eax
test esi, esi
sete al
mov byte [ebx + 0x3028], al
test al, al
je 0x47913b
xor al, al
jmp 0x479186
push esi
push 0x2000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004c4096
add esp, 0x10
test eax, eax
je 0x47917b
push edi
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.004c3690
push esi
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004c4096
add esp, 0x20
test eax, eax
jne 0x479154
push esi
call fcn.004c34b2
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c0c62
add esp, 0x2004
ret 8
Function at 0x4791a0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x201c]
push 0x4d94b8
push eax
mov dword [esp + 0x14], ecx
call fcn.0049ea60
mov ebp, eax
test ebp, ebp
sete al
mov byte [esi + 0x3028], al
test al, al
je 0x4791f1
xor eax, eax
jmp 0x47933a
push ebx
push edi
push ebp
push 0x2000
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x20], 0
call fcn.004c4096
mov ebx, eax
add esp, 0x10
cmp ebx, 0x28
jbe 0x4792fa
jmp 0x479220
lea eax, [ebx - 0x28]
xor edi, edi
test eax, eax
jbe 0x4792c5
lea esi, [esp + 0x1c]
cmp byte [esp + edi + 0x18], 0x2a
jne 0x47925b
cmp byte [esp + edi + 0x19], 0x2a
jne 0x47925b
push 0xc
lea eax, [esp + edi + 0x1e]
push str.messages
push eax
call fcn.004c2d1e
add esp, 0xc
test eax, eax
je 0x479307
mov eax, 0x2a
cmp word [esi - 4], ax
jne 0x479289
cmp word [esi - 2], ax
jne 0x479289
push 0xc
push 0x4db834
push esi
call fcn.004c3b3a
add esp, 0xc
test eax, eax
je 0x479307
mov eax, 0x2a
mov ecx, 0xfeff
cmp word [esi - 4], cx
jne 0x4792b6
cmp word [esi - 2], ax
jne 0x4792b6
cmp word [esi], ax
jne 0x4792b6
push 0xc
lea edx, [esi + 2]
push 0x4db834
push edx
call fcn.004c3b3a
add esp, 0xc
test eax, eax
je 0x479307
inc edi
lea eax, [ebx - 0x28]
add esi, 2
cmp edi, eax
jb 0x479231
mov eax, dword [esp + 0x10]
lea ebx, [eax + ebx - 0x28]
push 0
push ebx
push ebp
mov dword [esp + 0x1c], ebx
call fcn.004c47c1
push ebp
push 0x2000
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.004c4096
mov ebx, eax
add esp, 0x1c
cmp ebx, 0x28
ja 0x479220
push ebp
call fcn.004c34b2
add esp, 4
xor eax, eax
jmp 0x479338
mov edx, dword [esp + 0x10]
push 0
add edi, edx
push edi
push ebp
call fcn.004c47c1
mov eax, dword [esp + 0x2034]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push 1
push ecx
call fcn.004c4096
push ebp
mov esi, eax
call fcn.004c34b2
add esp, 0x20
mov eax, esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2010]
pop esi
pop ebp
xor ecx, esp
call fcn.004c0c62
add esp, 0x200c
ret 0xc
Function at 0x479360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
push edi
push 0x4dba34
push eax
mov esi, ecx
call fcn.0049ea60
mov edi, eax
test edi, edi
sete al
mov byte [esi + 0x3028], al
test al, al
je 0x4793a6
xor al, al
jmp 0x479461
push ebx
push ebp
push edi
push 0x2000
lea eax, [esp + 0x18]
push 1
push eax
xor ebx, ebx
call fcn.004c4096
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
jbe 0x479427
lea eax, [ebp - 0x20]
xor esi, esi
test eax, eax
jle 0x4793fe
nop
cmp byte [esp + esi + 0x10], 0x61
jne 0x4793f6
cmp byte [esp + esi + 0x11], 0x73
jne 0x4793f6
push 0x14
lea ecx, [esp + esi + 0x16]
push str.Invoker_
push ecx
call fcn.004c2d1e
add esp, 0xc
test eax, eax
je 0x479434
inc esi
lea eax, [ebp - 0x20]
cmp esi, eax
jl 0x4793d0
push 0
lea ebx, [ebx + ebp - 0x20]
push ebx
push edi
call fcn.004c47c1
push edi
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004c4096
mov ebp, eax
add esp, 0x1c
cmp ebp, 0x20
ja 0x4793c6
push edi
call fcn.004c34b2
add esp, 4
xor al, al
jmp 0x47945f
push 0
add esi, ebx
push esi
push edi
call fcn.004c47c1
push edi
push 0x15
push 1
push str.requireAdministrator_
call fcn.004c3690
cmp eax, 0x15
push edi
sete bl
call fcn.004c34b2
add esp, 0x20
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 0x2008]
pop edi
pop esi
xor ecx, esp
call fcn.004c0c62
add esp, 0x2004
ret 4

Function at 0x47a8e0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
push 0x4d94b8
push eax
call fcn.0043c890
mov esi, eax
xor ebx, ebx
mov dword [esp + 8], esi
cmp esi, ebx
jne 0x47a91f
xor al, al
jmp 0x47a9b0
push ebp
push edi
mov dword [esp + 0x14], ebx
push esi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004c4096
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jle 0x47a9a3
lea ebp, [edi - 0x20]
xor esi, esi
test ebp, ebp
jle 0x47a97b
lea ebx, [ebx]
cmp byte [esp + esi + 0x18], 0x72
jne 0x47a976
cmp byte [esp + esi + 0x19], 0x65
jne 0x47a976
push 0x14
lea ecx, [esp + esi + 0x1e]
push str.quireAdministrator_
push ecx
call fcn.004c2d1e
add esp, 0xc
test eax, eax
je 0x47a9c9
inc esi
cmp esi, ebp
jl 0x47a950
mov edx, dword [esp + 0x10]
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push edx
call fcn.004c47c1
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x80
jb 0x47a925
push esi
call fcn.004c34b2
add esp, 4
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x2010]
pop esi
pop ebx
xor ecx, esp
call fcn.004c0c62
add esp, 0x200c
ret 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004c34b2
add esp, 4
mov al, 1
jmp 0x47a9ae
Function at 0x47d640
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4