joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103c846
Capabilities:
Get token membership

Disassembly:
push 0x50
mov eax, 0x1044b49
call fcn.010015e0
mov dword [ebp - 0x2c], ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ole32.dll_CoImpersonateClient]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 8
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, eax
cmp edi, ebx
jne 0x103c89a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x103c8ed
xor edi, edi
mov dword [ebp - 0x14], ebx
inc edi
lea ecx, [ebp - 0x20]
call fcn.0100cdee
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.01010b60
mov esi, dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x14], ebx
je 0x103c8da
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.0100eae5
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0100eae5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x30], ebx
jl 0x103c8fc
call dword [sym.imp.ole32.dll_CoRevertToSelf]
cmp edi, ebx
je 0x103ca33
cmp dword [ebp - 0x24], ebx
jne 0x103c912
cmp dword [ebp - 0x28], ebx
je 0x103ca33
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea ecx, [ebp - 0x5c]
call fcn.01007919
push 1
push 0x104a2ac
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 2
call fcn.0103babf
cmp eax, ebx
jl 0x103ca2b
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.01007a64
mov edi, eax
jmp 0x103c9de
push edi
lea ecx, [ebp - 0x5c]
mov esi, edi
call fcn.01007ab2
mov edi, eax
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call fcn.01003f3f
mov byte [ebp - 4], 3
cmp dword [esi + 0x38], ebx
jne 0x103c9a6
mov eax, dword [0x104a2c8]
push dword [eax - 0xc]
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
call fcn.010079d6
push dword [0x104a2c8]
or dword [ebp - 0x18], 1
mov ecx, eax
call fcn.0100370f
mov byte [ebp - 0xd], bl
test eax, eax
je 0x103c9aa
mov byte [ebp - 0xd], 1
test byte [ebp - 0x18], 1
je 0x103c9bf
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x18], 0xfffffffe
add ecx, 0xfffffff0
call fcn.01002990
cmp byte [ebp - 0xd], bl
je 0x103c9cf
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
call fcn.0103b1fd
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.01002990
cmp edi, ebx
jne 0x103c955
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x5c]
push eax
call fcn.0103c5ed
push 0x2001f
push 0x100a758
push 0x80000002
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.0100484b
test eax, eax
jne 0x103ca23
push 0x103ca3c
lea ecx, [ebp - 0x3c]
call fcn.0102e088
lea ecx, [ebp - 0x3c]
call fcn.01004887
lea ecx, [ebp - 0x5c]
call fcn.010044f7
call fcn.010015c0
ret
Function at 0x103cf6e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x103cf89
cmp dword [esi], 2
jae 0x103cf89
push 0x7a
pop eax
jmp 0x103cfe7
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103cfe7
cmp dword [ebp + 0x10], 7
je 0x103cfb7
push 0xd
jmp 0x103cf86
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x103cfe1
test cl, 1
jne 0x103cfb3
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x103cfb3
cmp word [edi + eax*2 - 2], 0
jne 0x103cfb3
cmp eax, 1
jbe 0x103cfe1
cmp word [edi + eax*2 - 4], 0
jne 0x103cfb3
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x103d681
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x104bd1c], edi
jne 0x103d79d
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x103d6e8
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x104bd1c], edi
pop esi
je 0x103d770
dec eax
jne 0x103d79d
cmp dword [ebp - 0x11c], 5
jne 0x103d75d
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x103d751
dec eax
je 0x103d73e
dec eax
je 0x103d724
mov dword [0x104bd1c], 0x14
jmp 0x103d79d
cmp word [ebp - 0xc], 1
jb 0x103d735
mov dword [0x104bd1c], 0x10
or dword [0x104bd1c], 4
jmp 0x103d79d
cmp word [ebp - 0xc], 2
jb 0x103d735
mov dword [0x104bd1c], 8
jmp 0x103d735
mov dword [0x104bd1c], 4
jmp 0x103d79d
cmp dword [ebp - 0x11c], 4
ja 0x103d7af
mov dword [0x104bd1c], 2
cmp dword [ebp - 0x11c], 4
jne 0x103d79d
cmp dword [ebp - 0x118], edi
je 0x103d793
cmp dword [ebp - 0x118], 0xa
je 0x103d793
cmp dword [ebp - 0x118], 0x5a
jne 0x103d79d
mov dword [0x104bd1c], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x104bd1c]
xor ecx, ebp
pop edi
call fcn.01002a8b
leave
ret
mov dword [0x104bd1c], 0x20
jmp 0x103d79d

Function at 0x103d7c0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x103d814
push 3
lea eax, [ebp - 0x44]
push 0x103d824
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01002a8b
leave
ret
Function at 0x103d82f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x104bd20]
jne 0x103d8ca
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x103d9c0
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103d8c9
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x103da78
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x103d8c9
push 3
push dword [esi*8 + 0x103d8e0]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x103d8bb
inc esi
cmp esi, 0x1c
jae 0x103d8c9
jmp 0x103d89a
mov ax, word [esi*8 + 0x103d8e4]
mov word [0x104bd20], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x104bd20]
xor ecx, ebp
call fcn.01002a8b
leave
ret
Function at 0x103e827
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x104a098]
push ebx
lea ecx, [ecx + eax*4 - 4]
push esi
mov esi, dword [0x104a0a0]
mov dword [ebp + 8], ecx
push edi
mov ecx, 0xff
test eax, eax
je 0x103e899
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x104a09c]
shr eax, 0x10
shr edi, 8
and eax, ecx
mov eax, dword [ebx + eax*4]
mov ebx, dword [0x104a090]
and edi, ecx
xor eax, dword [esi + edi*4]
mov edi, dword [ebp + 0x10]
shr edi, 0x18
xor eax, dword [ebx + edi*4]
mov edi, dword [ebp + 0x10]
and edi, ecx
xor eax, dword [edx + edi*4]
mov edi, dword [ebp + 8]
xor eax, dword [edi]
dec dword [ebp + 0xc]
sub dword [ebp + 8], 4
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], eax
jne 0x103e851
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [0x104a09c]
shr eax, 0x10
and eax, ecx
mov eax, dword [ebx + eax*4]
shr edi, 8
and edi, ecx
xor eax, dword [esi + edi*4]
mov esi, dword [ebp + 0x10]
mov edi, dword [0x104a090]
shr esi, 0x18
xor eax, dword [edi + esi*4]
mov esi, dword [ebp + 0x10]
and esi, ecx
xor eax, dword [edx + esi*4]
pop edi
xor eax, dword [ebp + 0x10]
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x103e8db
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x104a098]
push edi
mov edi, dword [ebp + 8]
mov eax, edi
neg eax
xor ecx, ecx
and eax, 3
jmp 0x103e911
test eax, eax
je 0x103e915
mov edx, ecx
shr edx, 0x18
shl ecx, 8
xor ecx, dword [esi + edx*4]
movzx edx, byte [edi]
xor ecx, edx
dec ebx
inc edi
dec eax
test ebx, ebx
jne 0x103e8fa
mov dword [ebp + 8], ebx
shr dword [ebp + 8], 2
push ecx
push dword [ebp + 8]
push edi
call fcn.0103e827
mov ecx, eax
mov eax, dword [ebp + 8]
shl eax, 2
add edi, eax
sub ebx, eax
je 0x103e94a
mov eax, ecx
shr eax, 0x18
shl ecx, 8
xor ecx, dword [esi + eax*4]
movzx eax, byte [edi]
xor ecx, eax
dec ebx
inc edi
test ebx, ebx
jne 0x103e934
mov ebx, dword [0x104a09c]
mov eax, ecx
shr eax, 0x10
mov edx, 0xff
and eax, edx
mov eax, dword [ebx + eax*4]
mov ebx, dword [0x104a0a0]
mov edi, ecx
shr edi, 8
and edi, edx
xor eax, dword [ebx + edi*4]
mov ebx, dword [0x104a090]
mov edi, ecx
shr edi, 0x18
xor eax, dword [ebx + edi*4]
mov edi, ecx
and edi, edx
xor eax, dword [esi + edi*4]
pop edi
pop esi
xor eax, ecx
pop ebx
pop ebp
ret 8
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058b1
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423cb0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x402db6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad7c]
sub esi, dword [0x41ed88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402f14
push dword [0x41ed84]
call fcn.00402d9f
push ebx
push ebx
push dword [0x41ed88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad78], esi
mov dword [0x40acec], ebx
mov ebp, 0x412d78
mov eax, dword [0x41ed80]
sub eax, dword [0x41ed84]
mov edi, 0x4000
cmp eax, edi
jg 0x402e2b
mov edi, eax
push edi
mov esi, 0x41ad80
push esi
call fcn.00402d6d
test eax, eax
je 0x402f26
add dword [0x41ed84], edi
mov dword [0x412d08], esi
mov dword [0x412d0c], edi
cmp dword [0x423bcc], ebx
je 0x402e82
cmp dword [0x423ca0], ebx
jne 0x402e82
mov eax, dword [0x41ad78]
sub eax, dword [0x41ad7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed88]
mov dword [0x40acec], eax
call fcn.00402cce
pop ecx
mov ecx, 0x412cf0
mov dword [0x412d10], ebp
mov dword [0x412d14], 0x8000
call fcn.00406097
test eax, eax
jl 0x402f2b
mov esi, dword [0x412d10]
sub esi, ebp
je 0x402ee0
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402f30
cmp esi, dword [esp + 0x10]
jne 0x402f30
add dword [0x41ed88], esi
cmp dword [0x412d0c], ebx
jne 0x402e51
jmp 0x402eec
cmp dword [0x412d0c], ebx
jne 0x402f2b
cmp edi, ebx
je 0x402f2b
mov eax, dword [0x41ad7c]
mov ecx, eax
sub ecx, dword [0x41ed88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402e15
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402cce
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402f1e
push 0xfffffffffffffffd
pop eax
jmp 0x402f1e
push 0xfffffffffffffffe
jmp 0x402f2d
Function at 0x402f34
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f60
mov ecx, dword [0x423c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41ad7c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402db6
cmp eax, edi
jl 0x403059
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403055
cmp dword [ebp - 4], esi
jne 0x403055
push dword [ebp + 8]
add dword [0x41ad7c], esi
call fcn.00402db6
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403058
cmp dword [ebp + 0x10], edi
jne 0x403024
cmp dword [ebp + 8], edi
jle 0x403050
mov esi, 0x41ad80
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fd4
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403055
cmp edi, dword [ebp - 4]
jne 0x403055
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403020
cmp dword [ebp + 0x14], edi
jne 0x403020
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad7c], eax
cmp dword [ebp + 8], 0
jg 0x402fc7
jmp 0x403050
push 0xfffffffffffffffe
jmp 0x403057
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40302f
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403055
mov eax, dword [ebp - 4]
add dword [0x41ad7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403058
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40549c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x4211d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x4211d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054d7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40561e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40563b
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40563e
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40566d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056b1
test edi, edi
jne 0x405678
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056ab

Function at 0x4056b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405726
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405715
cmp dword [ebp + 0x14], 1
je 0x405717
cmp dword [ebp + 0x14], 2
je 0x405717
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40596f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.004057ce
push esi
call fcn.004055a7
mov edi, eax
test edi, edi
jne 0x405990
xor eax, eax
jmp 0x4059e8
push edi
call fcn.004057f0
test byte [0x423c28], 0x80
je 0x4059a9
mov al, byte [edi]
test al, al
je 0x40598c
cmp al, 0x5c
je 0x40598c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059c9
push esi
call fcn.0040588a
test eax, eax
je 0x4059c3
test byte [eax], 0x10
je 0x4059ed
push esi
call fcn.00405948
push esi
call ebx
cmp eax, edi
jg 0x4059b4
push esi
call fcn.0040591b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059e7
Function at 0x405ca1
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.004058b1
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cc5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dfe
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
test esi, esi
je 0x405d09
push 1
push 0
push esi
call fcn.0040563e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e04
cmp eax, edi
jg 0x405e04
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e04
cmp eax, edi
jg 0x405e04
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405a47
push 4
push 0xc0000000
push esi
call fcn.0040563e
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405dfe
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405df7
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405df7
cmp edi, dword [esp + 0x18]
jne 0x405df7
push str._Rename__r_n
push esi
call fcn.004059f1
test eax, eax
jne 0x405e0b
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057ce
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.004055fa
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x40762c
add eax, 0xa
push eax
call fcn.004059f1
test eax, eax
je 0x405dc2
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e32
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e27
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dc4
Function at 0x405e3a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040596f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e6f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x406001
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e8a
test eax, eax
je 0x405fac
test cl, 2
je 0x405fac
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.004057ce
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ead
push str..
push esi
call edi
jmp 0x405eb3
push ebx
call fcn.00405948
cmp byte [ebx], 0
jne 0x405ec1
cmp byte [0x422358], 0x5c
jne 0x405ec9
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405fa1
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405563
cmp byte [eax], 0
je 0x405f0c
cmp byte [ebp - 0x18], 0
je 0x405f0c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f22
mov al, byte [esi + 1]
test al, al
je 0x405f80
cmp al, 0x2e
jne 0x405f22
cmp byte [esi + 2], 0
je 0x405f80
push esi
push edi
call fcn.004057ce
test byte [ebp - 0x148], 0x10
je 0x405f47
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f80
push dword [ebp + 0xc]
push ebx
call fcn.00405e3a
jmp 0x405f80
push ebx
call fcn.0040561e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f78
test byte [ebp + 0xc], 4
je 0x405f70
push ebx
push 0xfffffffffffffff1
call fcn.0040487d
push 0
push ebx
call fcn.00405ca1
jmp 0x405f80
inc dword [0x423c88]
jmp 0x405f80
push ebx
push 0xfffffffffffffff2
call fcn.0040487d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405eee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fab
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406000
cmp dword [ebp - 8], esi
je 0x405ff0
push ebx
call fcn.0040588a
test eax, eax
je 0x406000
push ebx
call fcn.0040591b
push ebx
call fcn.0040561e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405ff8
test byte [ebp + 0xc], 4
je 0x405ff0
push ebx
push 0xfffffffffffffff1
call fcn.0040487d
push esi
push ebx
call fcn.00405ca1
jmp 0x406000
inc dword [0x423c88]
jmp 0x406000
push ebx
push 0xffffffffffffffe5
call fcn.0040487d
pop esi
pop ebx
leave
ret 8
Function at 0x406006
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x406044
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40601a
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x406015
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406071
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406052
not eax
pop ebp
ret 0xc