joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
cmp byte [esi + 0xb], 0
push edi
jne 0x445f33
mov eax, dword [esi + 0x74]
xor ebx, ebx
cmp eax, ebx
je 0x445e32
nop
mov edi, dword [eax + 0x18]
push eax
call fcn.0049b3dd
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x445e20
mov eax, dword [esi + 0xc0]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0xbc], ebx
cmp eax, ebx
je 0x445e57
push eax
call fcn.0049b3dd
add esp, 4
mov cl, byte [esi + 0xa]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc0], ebx
cmp cl, 2
jb 0x445f16
cmp byte [esi + 0x11], bl
je 0x445f3a
mov edi, dword [esi + 0x74]
cmp edi, ebx
je 0x445ef9
lea esp, [esp]
cmp byte [edi + 0x26], 0
je 0x445ef2
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add ecx, eax
lea ebx, [ecx + edi + 0x38]
mov ecx, dword [ebx]
test ecx, ecx
je 0x445ea6
push eax
push ecx
lea edx, [edi + 0x38]
push edx
call fcn.004a0db0
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x445eb5
push eax
call fcn.0049b3dd
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x445ec5
push eax
call fcn.0049b3dd
add esp, 4
xor ecx, ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov byte [edi + 0x26], cl
mov word [edi + 0x24], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 0xb0]
cmp eax, ecx
je 0x445ef0
mov ecx, dword [esi + 0x30]
push ecx
lea edx, [edi + 0x38]
push edx
call eax
add esp, 8
xor ebx, ebx
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x445e80
mov eax, dword [esi + 0x18]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov ebx, esi
mov dword [esi + 0x14], eax
call fcn.00446fc0
mov byte [esi + 5], 0
mov byte [esi + 0xa], 1
xor ebx, ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebx
push eax
call edx
add esp, 8
mov byte [esi + 0xa], 0
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x3c], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0xf], bl
je 0x445fa5
cmp byte [esi], bl
je 0x445fa5
mov al, byte [esi + 0xb]
test al, al
je 0x445f5c
cmp al, 0xd
je 0x445f5c
cmp cl, 4
jb 0x445f16
mov eax, esi
call fcn.004466a0
jmp 0x445f16
cmp cl, 2
jne 0x445f75
call fcn.00446520
mov ebx, eax
mov eax, esi
call fcn.00445fc0
test ebx, ebx
jne 0x445f7e
jmp 0x445f7c
mov eax, esi
call fcn.004466a0
mov ebx, eax
mov dword [esi + 0x14], 0xffffffff
cmp ebx, 0xd
je 0x445f9d
cmp ebx, 0xa
je 0x445f9d
cmp ebx, 0xb
je 0x445f9d
cmp ebx, 0xf
jne 0x445f14
mov byte [esi + 0xb], bl
jmp 0x445f14
mov eax, esi
call fcn.00445fc0
mov dword [esi + 0x14], 0xffffffff
jmp 0x445f16
Function at 0x4473f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 2], 0
je 0x44745b
mov ebx, dword [edi + 0x50]
mov ecx, ebx
call fcn.00434400
mov esi, eax
test esi, esi
je 0x447425
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0049b3dd
add esp, 4
jmp 0x447434
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x44745b
mov eax, dword [edi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push eax
call edx
add esp, 4
test eax, eax
jne 0x44745b
call fcn.00446e30
test eax, eax
jne 0x447461
mov eax, dword [edi + 0x50]
call fcn.004345c0
xor eax, eax
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4525a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4525b0
xor eax, eax
pop edi
pop ebp
ret
cmp dword [0x4f019c], 0
push esi
je 0x4525c3
cmp dword [0x4f01a8], 0
jg 0x4525e3
push 0x44
call fcn.0049dacb
mov esi, eax
add esp, 4
test esi, esi
jne 0x4525e9
mov eax, 1
add dword [0x4f01a8], eax
mov dword [0x4f019c], eax
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
call fcn.00452250
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
call fcn.00452370
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
call fcn.00452130
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00452250
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
call fcn.00452130
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
call fcn.00452250
mov dword [esi + 0x1c], eax
movzx ecx, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
call fcn.004525a0
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
push eax
call fcn.00452130
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.00452130
mov dword [esi + 0x2c], eax
add esp, 0x24
or eax, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
movzx ecx, byte [edi + 7]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 7], cl
mov word [esi + 8], 0
mov dword [esi + 0x24], 0
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4704b0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be388
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov esi, 0xf
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00413260
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x470513
push 0x14
push str.dwIr23Cew_T_R471_
lea ecx, [ebp - 0x2c]
call fcn.004159b0
cmp edi, ebx
jne 0x47053a
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x470530
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], esi
xor eax, eax
jmp 0x4705d2
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x98], 0x67452301
mov dword [ebp - 0x94], 0xefcdab89
mov dword [ebp - 0x90], 0x98badcfe
mov dword [ebp - 0x8c], 0x10325476
jae 0x47057d
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x98]
call fcn.004881a0
cmp byte [ebp - 0x30], bl
jne 0x47059c
mov ecx, esi
mov byte [ebp - 0x30], 1
call fcn.00488250
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push ecx
push edx
mov ecx, edi
call fcn.004702c0
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x4705c9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x18], 0xf
mov eax, esi
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], ebx
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.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x470a00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4de648
push 0x4a4b10
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [esi], edx
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 4
jl 0x470b84
mov ecx, eax
and ecx, 0x80000003
jns 0x470a5a
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x470b84
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], edx
cmp edx, eax
jge 0x470a89
mov cl, byte [edx + ebx]
cmp cl, 0x80
jae 0x470b7d
movzx ecx, cl
cmp byte [ecx + 0x4ecd38], 0xff
je 0x470b7d
inc edx
jmp 0x470a63
push eax
call fcn.0049aac8
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
push 0
push eax
call fcn.004a2b10
add esp, 0x10
cmp edi, dword [ebp + 0xc]
jge 0x470b4d
movzx eax, byte [edi + ebx]
mov cl, byte [eax + 0x4ecd38]
inc edi
mov dword [ebp - 0x1c], edi
movzx edx, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
movzx eax, byte [edx + 0x4ecd38]
mov ebx, eax
shr ebx, 4
and ebx, 3
movzx ecx, cl
add ecx, ecx
add ecx, ecx
or ebx, ecx
mov ecx, dword [esi]
mov edx, dword [ebp - 0x24]
mov byte [edx + ecx], bl
inc dword [esi]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
mov cl, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
cmp cl, 0x3d
je 0x470b50
movzx ecx, cl
movzx ecx, byte [ecx + 0x4ecd38]
mov dword [ebp - 0x2c], ecx
shr ecx, 2
and ecx, 0xf
and eax, 0xf
shl eax, 4
or ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax + edx], cl
inc dword [esi]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
mov al, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
cmp al, 0x3d
je 0x470b50
movzx eax, al
mov al, byte [eax + 0x4ecd38]
mov ecx, dword [ebp - 0x2c]
and ecx, 3
shl ecx, 6
movzx eax, al
or ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax + edx], cl
inc dword [esi]
jmp 0x470aa1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xfffffffe
mov eax, edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x477130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5043
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4eb6b8]
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
xor esi, esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
call fcn.00412630
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00481c90
mov ebx, 1
mov dword [ebp - 4], ebx
push 0x11
mov eax, str.liebaoUser_Data
lea ecx, [ebp - 0x2c]
call fcn.004137b0
cmp dword [ebp - 0x1c], esi
je 0x4771d5
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47719c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
sete al
test al, al
je 0x4771d5
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x48], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
call fcn.004138e0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
jmp 0x477203
mov dword [ebp - 0x54], esi
xor edx, edx
push esi
mov eax, 0x4d5f38
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], dx
call fcn.00415f60
mov eax, esi
mov dword [ebp - 4], 3
mov ebx, 2
xor esi, esi
mov dword [ebp - 0x68], ebx
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x6c]
mov dword [edi + 0x14], 7
xor ecx, ecx
mov word [edi], cx
mov edi, eax
call fcn.00413650
or ebx, 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 2
test bl, 2
je 0x47725e
and ebx, 0xfffffffd
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x50], 8
jb 0x477249
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
xor edi, edi
mov esi, 7
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
jmp 0x477263
xor edi, edi
lea esi, [edi + 7]
mov dword [ebp - 4], 1
test bl, 1
je 0x477293
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x34], 8
jb 0x477287
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4772a9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov eax, dword [ebp - 0x6c]
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.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x4772e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5043
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4eb6b8]
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
xor esi, esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
call fcn.00412630
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.00481c90
mov ebx, 1
mov dword [ebp - 4], ebx
push 0x15
mov eax, str.TaoBrowserUser_Data
lea ecx, [ebp - 0x2c]
call fcn.004137b0
cmp dword [ebp - 0x1c], esi
je 0x477385
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47734c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
sete al
test al, al
je 0x477385
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x48], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
call fcn.004138e0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
jmp 0x4773b3
mov dword [ebp - 0x54], esi
xor edx, edx
push esi
mov eax, 0x4d5f38
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], dx
call fcn.00415f60
mov eax, esi
mov dword [ebp - 4], 3
mov ebx, 2
xor esi, esi
mov dword [ebp - 0x68], ebx
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x6c]
mov dword [edi + 0x14], 7
xor ecx, ecx
mov word [edi], cx
mov edi, eax
call fcn.00413650
or ebx, 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 2
test bl, 2
je 0x47740e
and ebx, 0xfffffffd
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x50], 8
jb 0x4773f9
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
add esp, 4
xor edi, edi
mov esi, 7
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
jmp 0x477413
xor edi, edi
lea esi, [edi + 7]
mov dword [ebp - 4], 1
test bl, 1
je 0x477443
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x34], 8
jb 0x477437
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x477459
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov eax, dword [ebp - 0x6c]
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.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x47ae10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x418]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareFXTest
push SysReAllocString
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47aec7
push esi
mov esi, dword [ebp - 0x418]
cmp esi, ebx
je 0x47aec6
push 0x40e
lea edx, [ebp - 0x412]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x414], cx
call fcn.004a2b10
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x420]
push edx
push ebx
push str.LogLevel
push esi
mov dword [ebp - 0x41c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47aeb9
cmp dword [ebp - 0x420], 4
jne 0x47aeb9
mov eax, dword [ebp - 0x414]
mov bl, 1
mov dword [edi], eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x47b2b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c06a2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + 0x60]
mov dword [ebx], 0x4d7ef4
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ecx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00402250
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00417e40
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x47b352
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.004020e0
mov dword [ebp - 4], 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00415d60
mov byte [ebp - 4], 5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4f0b54]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47bf50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4beb20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4eb6b8]
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, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, ecx
cmp dword [esi + 0x10], 0
mov edi, edx
je 0x47bfa8
cmp dword [esi + 0x14], 8
jb 0x47bf95
mov eax, dword [esi]
jmp 0x47bf97
mov eax, esi
push eax
call ebx
cmp eax, 1
sete al
test al, al
jne 0x47c04e
cmp dword [edi + 0x10], 0
je 0x47bfcb
cmp dword [edi + 0x14], 8
jb 0x47bfb8
mov eax, dword [edi]
jmp 0x47bfba
mov eax, edi
push eax
call ebx
cmp eax, 1
sete al
test al, al
jne 0x47c04e
mov edx, edi
lea ecx, [ebp - 0x48]
call fcn.0047c070
mov edi, eax
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.0047c070
mov edx, eax
mov byte [ebp - 4], 1
mov eax, edi
call fcn.0046e340
mov bl, al
mov byte [ebp - 4], 0
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x47c011
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049b30a
add esp, 4
xor edi, edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x34], esi
jb 0x47c039
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0049b30a
add esp, 4
test bl, bl
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
setne al
jmp 0x47c050
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.0049b315
mov esp, ebp
pop ebp
ret
Function at 0x47d770
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ecx
cmp dword [esi + 0x10], 0
push ebx
push edi
je 0x47d810
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x47d78b
mov eax, dword [esi]
jmp 0x47d78d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
test al, al
je 0x47d810
mov ecx, esi
call fcn.0047c950
test al, al
je 0x47d7af
xor al, al
pop edi
pop ebx
pop ecx
ret
cmp dword [esi + 0x14], ebx
jb 0x47d7b8
mov eax, dword [esi]
jmp 0x47d7ba
mov eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x47d810
cmp dword [esi + 0x14], ebx
jb 0x47d7d0
mov eax, dword [esi]
jmp 0x47d7d2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x47d7f3
and eax, 0xfffffffe
cmp dword [esi + 0x14], ebx
jb 0x47d7e9
mov ecx, dword [esi]
jmp 0x47d7eb
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], ebx
jb 0x47d7fc
mov eax, dword [esi]
jmp 0x47d7fe
mov eax, esi
push eax
call edi
test eax, eax
jne 0x47d810
mov ecx, esi
call fcn.0047e4e0
pop edi
pop ebx
pop ecx
ret
pop edi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x480ea0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004878c0
test eax, eax
jne 0x480ec9
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b315
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x480f17
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0049b315
mov esp, ebp
pop ebp
ret