joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e952
Capabilities:
Encode data using xor

Disassembly:
cld
stosb byte es:[edi], al
mov ebp, 0xc11022d8
adc cl, al
push edi
xor eax, 0xea2a7bcc
lcall 0x67f4, 0x34fa2916
push eax
jle 0x43e9e0
sub byte [ecx - 0x4d], bh
popal
sbb byte [esi + 0x13e5b455], al
not ebp
lahf
jp 0x43e957
and al, 0xe0
test dword [ecx - 0x9c9bdf6], esp
salc
or dword [esi], 0x14054604
jnp 0x43e9d5
adc al, 0x50
bnd jo 0x43e9dd
mov dl, 0x12
sbb dh, byte [ebx - 0x7b440a67]
daa
and byte [ebp + eax*4 - 0x1fe5fefa], ah
mov word cs:[ebp - 0x47af74fa], ds
fadd st(6)
mov dword [edx + 0x270f31ff], esi
or ecx, dword [ecx - 0x2b77a74f]
sub byte [esi + 0x33], 0x32
xchg edx, eax
or eax, 0x2f432c01
in eax, dx
fstp dword [edi - 0x2925d1f]
out dx, al
imul ebp, dword [0x578d9bd4], 0x271d4bb1
wait
lea edx, [edi - 0x4f]
dec ebx
sbb eax, 0xa8164527
xchg ebx, eax

Function at 0x44ba10
Capabilities:
Accept command line arguments
Check os version

Disassembly:
sub esp, 8
mov al, byte [0x662041]
mov cl, byte [0x66204b]
xor cl, al
push ebx
mov byte [0x66204b], cl
mov cl, byte [0x662042]
or cl, 0x10
shr cl, 3
and ecx, 0xff
mov dword [esp + 4], ecx
fild dword [esp + 4]
fdivr qword [0x665958]
fadd qword [0x662058]
fstp qword [0x6659c8]
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dl, byte [0x66204d]
mov ebx, eax
mov al, byte [0x662041]
or al, dl
mov byte [0x662041], al
mov al, byte [0x662045]
or al, 2
shr al, 1
and eax, 0xff
mov dword [esp + 4], eax
fild dword [esp + 4]
fdivr qword [0x662058]
fadd qword [0x65e718]
fstp qword [0x665968]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x44bac9
mov edx, dword [0x665ab4]
push 0x6657cc
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [0x665ab4]
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov ecx, ebx
xor eax, eax
and ecx, 0xff
mov al, bh
cmp ecx, 5
pop ebx
jne 0x44baee
cmp eax, 1
jae 0x44bafe
mov dword [0x664fb8], 0x409
add esp, 8
ret
ja 0x44bafe
mov dword [0x664fb8], 0x409
add esp, 8
ret
mov dword [0x664fb8], 0x7f
add esp, 8
ret

Function at 0x4d40b2
Capabilities:
Encode data using xor

Disassembly:
mov cl, 0xde
mov esp, 0xc60bb8ce
aad 0x8c
mov ch, 0xe5
test byte [eax + 0x26], 0xd7
in al, dx
mov eax, dword [0xc7c5b814]
dec ebp
mov ah, 0x83
out dx, eax
adc byte [ecx - 0x1a0248c9], dh
pushal
xchg esp, eax
invalid
Function at 0x408130
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa1960b21
mov ecx, 0x18b71962
rorx edx, eax, 0xb
sarx ecx, ecx, ecx
mulx eax, edx, ecx
xor eax, edx
mov ecx, 0xf5f7ffbe
pext eax, eax, ecx
cmp eax, 0x22f270c
sete al
ret

Function at 0x408890
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x47aa1e
call fcn.00454305
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], esi
push str.C:Program_FilesCCleaner
mov dword [ebp - 0x38], ebx
call fcn.0040925a
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
push 0x20119
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4088fb
lea eax, [ebp - 0x2c]
push eax
push 0x20219
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsccleaner.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x2c], 0
je 0x408973
push ecx
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x34], ebx
call fcn.004091c3
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Path
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
je 0x408968
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.0040925a
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.00409223
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040ab09
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x44]
call fcn.00409516
mov eax, esi
call fcn.004542b4
ret
Function at 0x409bc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad42
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409c38
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409c38
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x409c28
cmp esi, ecx
jae 0x409c38
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x409c16
cmp esi, ecx
jae 0x409c38
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x409c3a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c916
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b7bf
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x4a4100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x98]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.0040c873
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x90]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0xb
call fcn.0040c7e9
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x8c]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ecx]
push 0x10
pop edi
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 9
lea ecx, [esi + 0x88]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 8
lea ecx, [esi + 0x84]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 7
lea ecx, [esi + 0x80]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 6
lea ecx, [esi + 0x58]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 5
lea ecx, [esi + 0x54]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 1
lea ecx, [esi + 0x14]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov byte [ebp - 4], 0
lea ecx, [esi + 0x10]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 8]
mov dword [ebp - 0x48], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
sub ecx, edi
call fcn.0040aa0b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x410902
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
mov dl, byte [esi + 0x34]
test edi, edi
jle 0x410937
mov ecx, dword [esi + 0x260]
push ebx
movzx ebx, dl
mov eax, ecx
shl ecx, 8
shr eax, 0x18
xor eax, ebx
xor ecx, dword [eax*4 + 0x48f818]
sub edi, 1
jne 0x41091a
mov dword [esi + 0x260], ecx
pop ebx
mov eax, dword [esi + 0x34]
mov byte [eax + esi + 0x58], 1
mov ecx, dword [esi + 0x38]
mov eax, ecx
sub eax, 1
je 0x4109d1
sub eax, 1
je 0x4109bf
sub eax, 1
je 0x41099e
mov byte [ecx + esi + 0x54], 1
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x24]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
inc ecx
mov dword [esi + 0x44], ecx
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov edx, dword [esi + 0x44]
mov cl, byte [esi + 0x38]
mov eax, dword [esi + 0x24]
sub cl, 4
mov byte [edx + eax], cl
jmp 0x4109da
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x24]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
inc ecx
mov dword [esi + 0x44], ecx
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x24]
jmp 0x4109d7
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x44]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x44]
inc ecx
mov dword [esi + 0x44], ecx
jmp 0x4109ba
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x44]
mov byte [ecx + eax], dl
inc dword [esi + 0x44]
pop edi
pop esi
ret
Function at 0x412039
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov edi, edx
test esi, esi
je 0x41204b
mov dword [esi], ecx
test edi, edi
je 0x4121ab
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c4], ecx
test eax, eax
je 0x4121ab
mov ebx, dword [ebp + 0xc]
test ebx, ebx
js 0x4121ab
cmp byte [edi + 0x1390], cl
je 0x41208a
test esi, esi
je 0x41207e
or dword [esi], 0xffffffff
or dword [edi + 0x13c4], 0xffffffff
jmp 0x4121be
test ebx, ebx
jne 0x41209d
test esi, esi
je 0x4121be
mov dword [esi], ecx
jmp 0x4121be
push dword [edi]
mov dword [edi + 0x13a8], ebx
mov dword [edi + 0x13a4], eax
call fcn.0046299d
pop ecx
test eax, eax
jne 0x412195
lea eax, [edi + 0x1394]
cmp dword [edi + 0x1398], 0
mov dword [ebp + 8], eax
jne 0x412119
mov ecx, dword [edi]
call fcn.00411bc9
test al, al
jne 0x412116
push dword [edi]
lea eax, [edi + 4]
push 0x1388
push 1
push eax
call fcn.00462862
push dword [edi]
mov dword [ebp + 0xc], eax
call fcn.0046299d
add esp, 0x14
test eax, eax
jne 0x412195
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 4]
mov dword [edi + 0x138c], eax
mov dword [edi + 0x1398], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x412119
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00411a07
test eax, eax
jne 0x412178
mov ecx, dword [edi]
call fcn.00411bc9
test al, al
je 0x41214c
xor eax, eax
cmp dword [edi + 0x1398], eax
jne 0x41214e
cmp dword [edi + 0x13a8], eax
jbe 0x41214e
push 0xfffffffffffffff9
pop eax
test esi, esi
je 0x4121b8
mov dword [esi], eax
jmp 0x4121b8
xor eax, eax
cmp dword [edi + 0x13a8], eax
je 0x41216a
push dword [edi]
call fcn.0046299d
pop ecx
test eax, eax
jne 0x412195
mov eax, dword [ebp + 8]
jmp 0x4120bf
test esi, esi
je 0x412170
mov dword [esi], eax
mov dword [edi + 0x13c4], eax
jmp 0x412191
push 4
pop ecx
cmp eax, ecx
jne 0x412144
test esi, esi
je 0x412185
mov dword [esi], ecx
sub ebx, dword [edi + 0x13a8]
mov dword [edi + 0x13c4], ecx
mov eax, ebx
jmp 0x4121c0
test esi, esi
je 0x41219f
mov dword [esi], 0xfffffffa
mov dword [edi + 0x13c4], 0xfffffffa
jmp 0x4121be
push 0xfffffffffffffffe
pop eax
test esi, esi
je 0x4121b4
mov dword [esi], eax
test edi, edi
je 0x4121be
mov dword [edi + 0x13c4], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41d0c3
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x47cff3
call fcn.004542d2
mov esi, edx
mov dword [ebp - 0x2c], esi
mov ebx, ecx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x1f
push eax
push str.CopyFileOrBufferToResource
lea ecx, [ebp - 0x3c]
call fcn.0041e3a4
xor edx, edx
mov dword [ebp - 4], edx
mov eax, edx
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
test ebx, ebx
je 0x41d291
test esi, esi
je 0x41d291
cmp dword [ebp + 0xc], eax
je 0x41d291
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41d133
mov eax, esi
mov dword [ebp - 0x18], eax
cmp word [esi], dx
je 0x41d291
cmp dword [0x4a7368], edx
jle 0x41d147
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d298
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41d1a6
mov dword [ebp - 0x14], 9
push edx
push 0x80
push 3
push edx
push 5
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], edi
call esi
cmp edi, 0xffffffff
jne 0x41d1ad
cmp eax, 0x20
je 0x41d185
cmp eax, 5
jne 0x41d19c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
push 0
pop edx
jns 0x41d158
call esi
mov dword [ebp - 0x10], eax
jmp 0x41d298
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov dword [ebx], edx
push dword [0x4a7430]
call fcn.00461b84
mov edi, eax
pop ecx
test edi, edi
jne 0x41d1cb
mov dword [ebp - 0x10], 8
jmp 0x41d280
and dword [ebp - 0x10], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x18], 0
je 0x41d1fc
push 0
lea eax, [ebp - 0x14]
push eax
push dword [0x4a7430]
push edi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d270
mov esi, dword [ebp - 0x14]
jmp 0x41d22f
mov esi, dword [0x4a7430]
mov ecx, esi
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
lea eax, [esi + edx]
cmp eax, dword [ebp - 0x1c]
jbe 0x41d21c
mov esi, dword [ebp - 0x1c]
sub esi, edx
mov dword [ebp - 0x14], esi
mov ecx, esi
mov eax, dword [ebp - 0x2c]
push ecx
add eax, edx
push eax
push edi
call fcn.00455260
add esp, 0xc
add dword [ebp - 0x20], esi
test esi, esi
je 0x41d279
lea eax, [ebp - 0x28]
push eax
push esi
push edi
push dword [ebp - 0x30]
call dword [ebp + 0xc]
test eax, eax
je 0x41d270
mov eax, dword [ebp - 0x28]
test ebx, ebx
je 0x41d24c
add dword [ebx], eax
cmp dword [ebp - 0x14], eax
jne 0x41d267
cmp dword [0x4a7368], 0
jle 0x41d1cf
mov dword [ebp - 0x10], 0x2e3
jmp 0x41d279
mov dword [ebp - 0x10], 0x3f5
jmp 0x41d279
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
push edi
call fcn.0045d3d7
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x41d298
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41d298
mov dword [ebp - 0x10], 0x57
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e418
mov eax, esi
call fcn.004542a0
ret
Function at 0x41d963
Capabilities:
Delete file

Disassembly:
push 0xf4
mov eax, 0x47d18a
call fcn.00454305
mov esi, ecx
lea eax, [ebp - 0xdc]
xor ebx, ebx
push eax
push str.PrepareRemoteUpdateDescriptor
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xdc], ebx
call fcn.0041e3a4
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xe0]
call fcn.0040aa2d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.0044ebc0
mov byte [ebp - 4], 2
or ebx, 0xffffffff
test esi, esi
je 0x41db24
xor edi, edi
cmp word [esi], di
je 0x41db24
mov edx, str..xml
lea ecx, [ebp - 0xe4]
call fcn.0041eb87
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe0]
push eax
call fcn.0040943e
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe4]
add ecx, 0xfffffff0
call fcn.0040aa0b
mov eax, dword [ebp - 0xe0]
cmp dword [eax - 0xc], edi
jne 0x41da16
mov dword [ebp - 0xdc], 0x52
jmp 0x41db2e
mov edx, dword [ebp - 0xe0]
push ecx
push edi
push ecx
mov ecx, esi
call fcn.0041cb53
add esp, 0xc
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x41db2e
push dword [ebp - 0xe0]
lea ecx, [ebp - 0xe8]
call fcn.0040bf35
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xdc], eax
test eax, eax
je 0x41da83
mov byte [ebp - 4], 2
cmp dword [ebp - 0xe8], ebx
je 0x41db2e
push dword [ebp - 0xe8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe8], ebx
jmp 0x41db2e
mov ecx, dword [ebp - 0xe0]
push edi
call fcn.00421b1e
mov dword [ebp - 0xdc], eax
pop ecx
test eax, eax
jne 0x41da5c
push edi
push 0x74
push dword [ebp - 0xe0]
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0044fb60
lea ecx, [ebp - 0xf4]
call fcn.0044ece0
test al, al
jne 0x41daf8
push dword [ebp - 0xf0]
lea ecx, [ebp - 0xf4]
push dword [ebp - 0xf4]
call fcn.0044f600
push eax
push str.XML_is_not_valid:___hs__error:_u__file_offset:_u
call fcn.0041defb
add esp, 0x10
mov dword [ebp - 0xdc], 0xd
jmp 0x41da5c
inc dword [0x4a7360]
lea ecx, [ebp - 0xd8]
call fcn.00429655
dec dword [0x4a7360]
xor ecx, ecx
cmp eax, 0x490
cmove eax, ecx
mov dword [ebp - 0xdc], eax
jmp 0x41da5c
mov dword [ebp - 0xdc], 0x57
mov eax, dword [ebp - 0xe0]
cmp dword [eax - 0xc], 0
je 0x41db6f
push 9
pop edi
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x41db6f
cmp eax, 0x20
je 0x41db5f
cmp eax, 5
jne 0x41db6f
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub edi, 1
jns 0x41db3d
mov esi, dword [ebp - 0xdc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.0044eca0
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0xe0]
add ecx, 0xfffffff0
call fcn.0040aa0b
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x100]
call fcn.0041e418
mov eax, esi
call fcn.004542b4
ret

Function at 0x41defb
Capabilities:
Get file size
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
lea edx, [ebp + 0xc]
pop ebp
jmp fcn.0041df0a
Function at 0x41f8c8
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x47d870
call fcn.004542d2
mov ebx, ecx
xor eax, eax
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040aa2d
and dword [ebp - 4], esi
lea ecx, [ebp - 0x10]
call fcn.0040aa2d
mov byte [ebp - 4], 1
or edi, 0xffffffff
test ebx, ebx
je 0x41faa5
xor eax, eax
cmp word [ebx], ax
je 0x41faa5
push ebx
lea eax, [ebp - 0x14]
push str.__s
push eax
call fcn.0040bd93
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x5c
push 0x2f
call fcn.00409396
push ecx
lea ecx, [ebp - 0x14]
call fcn.00422d05
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040943e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.004094f2
push 0x3a
pop ecx
cmp ax, cx
je 0x41faa8
xor ebx, ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41f9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ebx, esi
cmp esi, 0xb7
je 0x41f9fb
cmp ebx, 3
jne 0x41f9ef
push 0x5c
push dword [ebp - 0x10]
call fcn.00454aca
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41faa8
sub edi, dword [ebp - 0x10]
sar edi, 1
cmp edi, 0xffffffff
je 0x41faa8
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bbee
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.0040943e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.004094f2
push 0x3a
pop ecx
cmp ax, cx
jne 0x41f956
jmp 0x41faa8
test esi, esi
jne 0x41faa8
jmp 0x41f9fb
mov esi, ebx
cmp edi, 0xffffffff
je 0x41faa8
lea eax, [edi + 1]
push eax
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.0041cab5
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41fa46
mov ecx, ebx
lea eax, [ebp - 0x18]
sub ecx, edi
push ecx
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00416c71
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040bd07
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
jmp 0x41fa6c
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00416bff
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040bd07
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
xor esi, esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fa8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41fa8e
mov eax, esi
xor esi, esi
mov edi, ebx
cmp eax, 0xb7
cmovne esi, eax
cmp ebx, 0xffffffff
jne 0x41fa04
jmp 0x41faa8
push 0x57
pop esi
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, esi
call fcn.004542a0
ret
Function at 0x41facf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x47d89a
call fcn.004542d2
mov esi, ecx
push ecx
lea ecx, [ebp - 0x30]
call fcn.00435951
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00435973
mov al, bl
call fcn.004542a0
ret

Function at 0x41fbec
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4a4100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov dword [ebp - 0x14], ebx
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41fc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x41fc5b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x41fc37
cmp dword [ebp - 0x14], ebx
setne al
mov byte [esi], al
cmp dword [ebp - 0x10], 0
je 0x41fc6a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045360d
leave
ret

Function at 0x41fc7b
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a4100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
push 8
mov edi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41fd21
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
inc esi
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41fd20
push 0x4c
pop eax
push esi
push eax
mov dword [ebp - 0x18], eax
call fcn.0046a83a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41fd20
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41fd19
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
push 1
pop eax
cmovne edi, eax
push esi
call fcn.0045d3d7
pop ecx
pop esi
cmp dword [ebp - 0x10], ebx
je 0x41fd32
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x41fd40
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0045360d
leave
ret