joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c90
Capabilities:
Check mutex on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x208
test edx, edx
jne 0x412ca9
xor eax, eax
add esp, 0x208
ret 4
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push edx
call fcn.0041a540
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
pop edi
jne 0x412d03
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 5
sete dl
mov eax, edx
add esp, 0x208
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x208
ret 4
Function at 0x4144f0
Capabilities:
Check for peb beingdebugged flag
Impersonate user

Disassembly:
push 0xffffffffffffffff
push 0x508838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 1
call fcn.004ee42d
mov eax, dword [edi + 0x60]
mov edx, dword [edi + 0x5c]
lea esi, [edi + 0x60]
add edi, 0x5c
mov ecx, dword [eax - 8]
mov eax, dword [edx - 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x543c98]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
xor ebx, ebx
push 0x53d42c
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.004e390d
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4145b0
lea edx, [esp + 0x18]
push ebp
push edx
mov ecx, esi
call fcn.004e381f
inc ebp
lea eax, [esp + 0x14]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.004e36ea
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x5424c8
push eax
mov byte [esp + 0x3c], 2
call fcn.004e3c81
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call fcn.004ea741
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.004ea741
jmp 0x4145ba
push esi
lea ecx, [esp + 0x14]
call fcn.004ea888
call fcn.0047a600
test eax, eax
je 0x4145d2
push str.SeTcbPrivilege
call fcn.0041aea0
add esp, 4
jmp 0x414639
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 2
push edx
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.004eab86
push eax
mov eax, dword [esp + 0x30]
push ebx
push eax
lea ecx, [esp + 0x28]
call fcn.004eab86
push eax
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x41462e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004ea741
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
lea ecx, [esp + 0x1c]
push edi
call fcn.00454fb0
mov esi, dword [esi]
mov edi, dword [eax]
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.00454fb0
mov eax, dword [eax]
push ebx
push edi
push eax
mov ecx, 0x5567c0
mov byte [esp + 0x38], 4
call fcn.00408740
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 3
call fcn.00455820
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call fcn.00455820
mov ecx, 0x5567c0
mov dword [0x5567b4], 1
mov dword [0x5567b8], ebx
call fcn.00408700
mov esi, eax
mov dword [0x5567b4], ebx
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
and esi, 0xfffffffe
mov dword [esp + 0x2c], 0xffffffff
add esi, 2
call fcn.004ea741
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x415340
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5089eb
push eax
mov eax, dword [0x556a44]
mov dword fs:[0], esp
sub esp, 0xe14
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x415579
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x61e]
mov word [esp + 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], bx
rep stosd dword es:[edi], eax
push str.OAgent.ini
mov dword [0x556a44], 1
mov dword [esp + 0xc], ebx
stosw word es:[edi], ax
call fcn.0041cb30
push eax
lea eax, [esp + 0x41c]
push 0x540d30
push eax
call fcn.004355aa
add esp, 0x10
lea ecx, [esp + 0x414]
lea edx, [esp + 0x61c]
push ecx
push 0x400
push edx
push 0x556998
push 0x512a58
push str.AgentConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x41543a
cmp word [esp + 0xe1a], bx
jne 0x41543a
lea eax, [esp + 0x14]
push 0x400
lea ecx, [esp + 0x620]
push eax
push ecx
call fcn.0049a610
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x41543e
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x415543
lea ecx, [esp + 0xc]
call fcn.0047ed00
push 0x20019
push str.SOFTWAREClassesCLSIDAFFAEF68_CDC5_4aad_9D3F_997C0D55927BProgID
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov dword [esp + 0xe30], ebx
call fcn.0047ee70
test eax, eax
je 0x4154ba
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x512aec
call fcn.0047f290
cmp eax, ebx
je 0x4154ba
mov ecx, dword [esp + 8]
cmp ecx, 0x400
jae 0x4154ad
mov edx, ecx
push esi
mov esi, eax
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4154b1
mov dword [esp + 8], ebx
push eax
call fcn.004eae33
add esp, 4
lea ecx, [esp + 0xc]
call fcn.0047eec0
lea ecx, [esp + 0xc]
mov dword [esp + 0xe24], 0xffffffff
call fcn.0047edf0
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x415543
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x61c]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x620]
push eax
push 0x556998
push 0x512aec
push str.ED30_8AC4_11D5_8930_A730
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
test eax, eax
jbe 0x41553b
cmp word [esp + 0xe1a], bx
jne 0x41553b
lea ecx, [esp + 0x14]
push 0x400
lea edx, [esp + 0x620]
push ecx
push edx
call fcn.0049a610
add esp, 0xc
jmp 0x41553f
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x415579
cmp eax, 4
jbe 0x415579
lea ecx, [esp + 0x14]
test ecx, ecx
je 0x415579
cmp dword [esp + 0x14], 1
je 0x415579
mov edx, dword [esp + 0x30]
and edx, 0xffff
lea ecx, [edx + edx + 0x22]
cmp ecx, ebx
je 0x415579
add eax, 0xfffffffc
cmp ecx, eax
ja 0x415579
mov eax, dword [esp + 0x1c]
mov dword [0x556a40], eax
mov ecx, dword [esp + 0xe1c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe20
ret
Function at 0x416840
Capabilities:
Get geographical location

Disassembly:
mov edx, dword [esp + 8]
sub esp, 0x20c
push esi
xor esi, esi
cmp edx, 0xffffffff
push edi
jne 0x416861
call fcn.00416900
mov dx, ax
and edx, 0xffff
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push 0x1004
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x542044
push 0x103
push edx
mov dword [esp + 0x18], 0xffffffff
call fcn.004640c0
mov edx, dword [esp + 0x18]
add esp, 0x10
xor ecx, ecx
mov eax, 0x542598
cmp edx, dword [eax]
je 0x4168d4
add eax, 8
inc ecx
cmp eax, 0x5425c8
jb 0x4168ba
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret
mov eax, dword [ecx*8 + 0x54259c]
mov ecx, dword [esp + 0x218]
push eax
mov esi, 1
call fcn.00455b00
mov eax, esi
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x417230
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x41724b
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4172a3
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41727f
push esi
call fcn.0043533b
add esp, 4
lea eax, [eax + eax + 2]
jmp 0x417281
xor eax, eax
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret 0x10

Function at 0x4172b0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x4172cb
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41730d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x10

Function at 0x417320
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp], 0
test ecx, ecx
mov eax, 0x2001f
je 0x41733b
mov eax, 0x2011f
mov edx, dword [esp + 8]
lea ecx, [esp]
push ecx
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41737d
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
lea eax, [esp + 0x10]
push 8
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 0x14
Function at 0x417390
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41742a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x417414
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.004eae0a
mov esi, eax
add esp, 4
test esi, esi
je 0x417414
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x417440
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4174a4
mov dword [esp + 8], eax
lea edx, [esp + 0x10]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8

Function at 0x4174b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
lea eax, [esp]
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41751c
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x2c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
fld qword [esp + 8]
add esp, 0x10
ret 8
Function at 0x4176ad
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x508d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, ecx
push 1
call fcn.00417a70
mov ebx, eax
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebx
je 0x4177f2
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x26a]
mov word [esp + 0x268], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x680]
stosw word es:[edi], ax
lea eax, [esp + 0x268]
push eax
push ecx
mov ecx, esi
call fcn.00417cd0
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x268]
stosw word es:[edi], ax
push edx
push ebx
lea eax, [esp + 0x470]
push 0x542624
push eax
call fcn.004355aa
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x468]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4177e8
mov esi, dword [esp + 0x684]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x44]
push 0x54261c
push eax
call ebx
test eax, eax
je 0x4177cd
lea ecx, [esp + 0x44]
push 0x540cf4
push ecx
call ebx
test eax, eax
je 0x4177cd
test byte [esp + 0x18], 0x10
jne 0x4177cd
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.004ea7b5
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x680], ebp
call fcn.004e7da2
lea ecx, [esp + 0x10]
mov dword [esp + 0x678], 0xffffffff
call fcn.004ea741
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41776d
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004eae33
add esp, 4
pop edi
mov ecx, dword [esp + 0x66c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x66c
ret 8
Function at 0x418b00
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
mov eax, 0x2808
call fcn.00435360
mov eax, dword [esp + 0x280c]
test eax, eax
jne 0x418b1c
add esp, 0x2808
ret
push ebp
mov ebp, dword [esp + 0x2818]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
push eax
mov dword [esp + 0x24], 0
mov dword [ebp], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418c2b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
test edx, edx
jne 0x418b6d
mov dword [ebp], 2
jmp 0x418bd5
push edi
mov ecx, 0x9ff
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x2800
pop edi
cmp edx, eax
jae 0x418b8f
mov eax, edx
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418bce
lea eax, [esp + 0x10]
push 0x2800
push eax
call fcn.00418990
add esp, 8
test eax, eax
jne 0x418bd5
mov dword [ebp], 3
jmp 0x418bd5
mov dword [ebp], 5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp], 0
jne 0x418c3d
mov eax, dword [esp + 0x2818]
test eax, eax
je 0x418c16
mov ecx, dword [esp + 0x2814]
push eax
push ecx
call fcn.004189e0
add esp, 8
test eax, eax
jne 0x418c16
mov eax, dword [esp + 8]
mov dword [ebp], 4
pop esi
pop ebp
add esp, 0x2808
ret
mov dword [esp + 8], 1
pop esi
mov eax, dword [esp + 4]
pop ebp
add esp, 0x2808
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418c3d
mov dword [ebp], 1
mov eax, dword [esp + 8]
pop esi
pop ebp
add esp, 0x2808
ret

Function at 0x4198e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 4
not eax
jb 0x41995a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x512ba8]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x512ba8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x512ba8]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x512ba8]
xor eax, ecx
dec edi
jne 0x4198fb
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x419980
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x512ba8]
xor eax, ecx
inc edx
dec esi
jne 0x419962
pop esi
pop ebx
not eax
ret
Function at 0x4199c0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x557780]
test eax, eax
jne 0x419a3e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x557520
mov dword [0x557780], 1
mov dword [0x557520], 0x114
call esi
mov edx, dword [0x557530]
xor eax, eax
cmp edx, 2
push 0x557660
sete al
mov dword [0x5428ac], eax
mov dword [0x557660], 0x11c
call esi
push 0x53ed9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
mov dword [0x55777c], eax
test eax, eax
push 0x557638
je 0x419a38
call eax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
ret

Function at 0x41ac60
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
xor esi, esi
push edi
cmp ebp, esi
je 0x41adcb
mov ebx, dword [esp + 0x434]
cmp ebx, esi
je 0x41adcb
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x208
push eax
push 0x542c40
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, esi
jne 0x41acf8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push esi
push 0x542c20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x10]
mov edi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x41ad53
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x1c]
push str.c:program_filescommom_files_system
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
call fcn.00435316
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], si
rep stosd dword es:[edi], eax
add esp, 8
lea ecx, [esp + 0x224]
stosw word es:[edi], ax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dx, word [esp + 0x224]
mov word [esp + 0x1c], dx
jmp 0x41ad87
lea eax, [esp + 0x1c]
push eax
call fcn.0043533b
add esp, 4
dec eax
cmp word [esp + eax*2 + 0x1c], 0x5c
je 0x41ad75
lea ecx, [esp + 0x1c]
push 0x542bc4
push ecx
jmp 0x41ad7f
lea edx, [esp + 0x1c]
push str.system
push edx
call fcn.004352ec
add esp, 8
lea eax, [esp + 0x1c]
push eax
call fcn.0043533b
add esp, 4
cmp eax, ebx
jae 0x41adcb
lea ecx, [ebx + ebx]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00435316
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x41c
ret
Function at 0x41c6d0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x41c855
push esi
call fcn.0043533b
add esp, 4
test eax, eax
je 0x41c855
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c855
test bl, 1
je 0x41c71d
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x41c844
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.00435316
lea ecx, [esp + 0x470]
push 0x542d54
push ecx
call fcn.004352ec
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c832
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x54261c
push ecx
call ebp
test eax, eax
je 0x41c817
lea edx, [esp + 0x3c]
push 0x540cf4
push edx
call ebp
test eax, eax
je 0x41c817
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.00435316
lea ecx, [esp + 0x268]
push 0x53d42c
push ecx
call fcn.004352ec
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.004352ec
lea ecx, [esp + 0x278]
push ecx
call fcn.0041c6d0
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c799
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret

Function at 0x41ca80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
je 0x41caa7
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41caa7
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x41caa7
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 1
mov byte [eax], dl
inc eax
dec esi
jne 0x41ca9b
pop esi
ret