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

Disassembly:
mov eax, dword fs:[0x2c]
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, dword [eax]
mov ebx, ecx
mov eax, dword [0x509ff0]
push edi
mov edi, edx
cmp eax, dword [esi + 4]
jle 0x40cc4f
push 0x509ff0
call fcn.0040fcde
add esp, 4
cmp dword [0x509ff0], 0xffffffff
jne 0x40cc4f
mov edx, 0x811c9dc5
xor eax, eax
nop word [eax + eax]
movzx ecx, byte [eax + str.NtQueryInformationProcess]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [eax + 0x412ae1]
xor edx, ecx
movzx ecx, byte [eax + 0x412ae2]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0x412ae3]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0x412ae4]
imul edx, edx, 0x1000193
add eax, 5
xor edx, ecx
imul edx, edx, 0x1000193
cmp eax, 0x19
jb 0x40cba0
lea eax, [esp + 0x18]
mov ecx, edx
push eax
call fcn.0040c5f0
push 0x509ff0
movups xmm0, xmmword [eax]
movups xmmword [0x50a058], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a068], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a078], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a088], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a098], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a0a8], xmm0
call fcn.0040fc94
add esp, 4
mov eax, ebx
cdq
mov dword [esp + 0x14], eax
mov ebp, edx
mov eax, edi
cdq
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0x74]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x7c]
cdq
push edx
push eax
push 0
push dword [esp + 0x84]
push ecx
push esi
push edi
push ebx
push ebp
push dword [esp + 0x38]
push dword [0x50a0a8]
call fcn.0040d7f0
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0xc
Function at 0x40e6f0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x509bc0], 0
jne 0x40e784
push esi
push edi
push str.USERPROFILE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
add esp, 4
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40e711
mov edi, 0x509bc0
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e720
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x509bc0
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40e740
mov ax, word [0x412b34]
mov ecx, 0x509bc0
mov word [edi], ax
dec ecx
pop edi
pop esi
nop dword [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40e760
mov edx, dword [str..godword]
mov dword [ecx], edx
mov edx, dword [0x412b3c]
mov dword [ecx + 4], edx
mov dl, byte [0x412b40]
mov byte [ecx + 8], dl
mov eax, 0x509bc0
ret
Function at 0x40f540
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x24
push ebx
push esi
push edi
call fcn.00401380
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x18]
push eax
xorps xmm0, xmm0
push 0x28
movaps xmmword [esp + 0x28], xmm0
call edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40f5ba
lea eax, [esp + 0x24]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40f5b0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x44], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x10
push 0
push 0x401f80
call edi
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c6b0
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetThreadId]
call esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0040c850
sub esp, 0x10
push 0
push 0x401da0
call edi
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c6b0
push dword [esp + 0x18]
call esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0040c850
call fcn.00401380
call fcn.004052e0
push 0x3e8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [0x415120]
mov esi, dword [0x41511c]
cmp esi, ebx
je 0x40f64d
nop dword [eax + eax]
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax]
add esi, 4
cmp esi, ebx
jne 0x40f640
mov dword [0x415724], edi
xor bl, bl
mov cl, bl
call fcn.00401640
inc bl
cmp bl, 0xb
jb 0x40f655
mov byte [0x4156c2], 1
mov dword [0x41570c], 0x4129fc
mov dword [0x415710], 0x409c50
mov dword [0x415714], 0x412a04
mov dword [0x415718], 0x40a470
mov dword [0x41571c], 0x412a0c
mov dword [0x415720], 0x40b110
call fcn.0040a470
mov cl, 1
call fcn.00409a10
push ecx
mov ecx, dword [edi]
lea edx, [esp + 0x1c]
push 4
push 0
push dword [0x4156dc]
mov dword [esp + 0x28], 0
call fcn.0040ca50
push 0
push dword [esp + 0x1c]
push str.LOCALPLAYER:__08X__FLAGS:__08X__menu
call fcn.00401800
add esp, 0xc
mov ecx, edi
call fcn.0040ea20
test al, al
jne 0x40f6e3
mov eax, dword [edi]
sub esp, 8
mov ecx, esp
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0040c850
push 0
push 0x2faf080
call fcn.0040f720
jmp 0x40f614
Function at 0x40f720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub esp, 0x68
cmp byte [0x509cd0], 0
push esi
mov esi, dword fs:[0x2c]
jne 0x40f841
mov ecx, dword [esi]
mov eax, dword [0x50a340]
cmp eax, dword [ecx + 4]
jle 0x40f81d
push 0x50a340
call fcn.0040fcde
add esp, 4
cmp dword [0x50a340], 0xffffffff
jne 0x40f81d
mov ecx, 0x811c9dc5
xor edx, edx
nop dword [eax]
movzx eax, byte [edx + str.NtSetTimerResolution]
xor eax, ecx
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 0x412b11]
xor ecx, eax
movzx eax, byte [edx + 0x412b12]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412b13]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412b14]
imul ecx, ecx, 0x1000193
add edx, 5
xor ecx, eax
imul ecx, ecx, 0x1000193
cmp edx, 0x14
jb 0x40f770
lea eax, [esp + 0x10]
push eax
call fcn.0040c5f0
push 0x50a340
movups xmm0, xmmword [eax]
movups xmmword [0x50a170], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a180], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a190], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a1a0], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a1b0], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a1c0], xmm0
call fcn.0040fc94
add esp, 4
lea eax, [esp + 4]
cdq
push edx
push eax
push 0
push 1
push 0
push 1
push dword [0x50a1c0]
call fcn.0040e320
add esp, 0x1c
mov byte [0x509cd0], 1
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
neg ecx
mov dword [esp + 8], ecx
mov ecx, dword [esi]
adc eax, 0
neg eax
mov dword [esp + 0xc], eax
mov eax, dword [0x50a220]
cmp eax, dword [ecx + 4]
jle 0x40f92e
push 0x50a220
call fcn.0040fcde
add esp, 4
cmp dword [0x50a220], 0xffffffff
jne 0x40f92e
mov ecx, 0x811c9dc5
xor edx, edx
nop dword [eax]
movzx eax, byte [edx + str.NtDelayExecution]
xor eax, ecx
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 0x412afd]
xor ecx, eax
movzx eax, byte [edx + 0x412afe]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412aff]
imul ecx, ecx, 0x1000193
add edx, 4
xor ecx, eax
imul ecx, ecx, 0x1000193
cmp edx, 0x10
jb 0x40f890
lea eax, [esp + 0x10]
push eax
call fcn.0040c5f0
push 0x50a220
movups xmm0, xmmword [eax]
movups xmmword [0x50a0b8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a0c8], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a0d8], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a0e8], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a0f8], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a108], xmm0
call fcn.0040fc94
add esp, 4
lea eax, [esp + 8]
xorps xmm0, xmm0
cdq
push edx
push eax
movlpd qword [esp + 0x78], xmm0
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push dword [0x50a108]
call fcn.0040dfa0
add esp, 0x14
pop esi
add esp, 0x68
ret 8
Function at 0x405375
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40735c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40734c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x4053c6
xor eax, eax
jmp 0x4053ed
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4053ed
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4053c2
call esi
pop esi
leave
ret 4

Function at 0x405427
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c0a8], 0x44
push eax
xor eax, eax
push 0x42c0a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405462
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4054ec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040579b
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405520
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42eca8], eax
jmp 0x4056b4
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40553e
test eax, eax
je 0x40565f
test byte [ebp + 0xc], 2
je 0x40565f
mov esi, 0x42b0a8
push edi
push esi
call fcn.00405bc7
test ebx, ebx
je 0x40555b
push str..
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x405561
push edi
call fcn.00405701
cmp byte [edi], 0
jne 0x40556f
cmp byte [0x42b0a8], 0x5c
jne 0x40557a
push 0x409010
push edi
call sub.KERNEL32.DLL_lstrcatA
push edi
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405655
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056e5
cmp byte [eax], 0
je 0x4055c0
cmp byte [ebp - 0x18], 0
je 0x4055c0
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4055d6
mov al, byte [esi + 1]
test al, al
je 0x405634
cmp al, 0x2e
jne 0x4055d6
cmp byte [esi + 2], 0
je 0x405634
push esi
push ebx
call fcn.00405bc7
test byte [ebp - 0x148], 0x10
je 0x4055fb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405634
push dword [ebp + 0xc]
push edi
call fcn.004054ec
jmp 0x405634
push edi
call fcn.0040587f
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40562c
test byte [ebp + 0xc], 4
je 0x405624
push edi
push 0xfffffffffffffff1
call fcn.00404eb3
push 0
push edi
call fcn.00405915
jmp 0x405634
inc dword [0x42eca8]
jmp 0x405634
push edi
push 0xfffffffffffffff2
call fcn.00404eb3
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40559e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 4], 0
je 0x40565f
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4056b4
cmp dword [ebp - 8], esi
jne 0x405674
inc dword [0x42eca8]
jmp 0x4056b4
push edi
call fcn.00405ec2
test eax, eax
je 0x4056b4
push edi
call fcn.004056ba
push edi
call fcn.0040587f
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x4056ac
test byte [ebp + 0xc], 4
je 0x40566c
push edi
push 0xfffffffffffffff1
call fcn.00404eb3
push esi
push edi
call fcn.00405915
jmp 0x4056b4
push edi
push 0xffffffffffffffe5
call fcn.00404eb3
pop edi
pop esi
leave
ret 8
Function at 0x40579b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b4a8
push esi
call fcn.00405bc7
push esi
call fcn.0040574e
mov edi, eax
test edi, edi
jne 0x4057bc
xor eax, eax
jmp 0x40580e
push edi
call fcn.00405e29
test byte [0x42ec38], 0x80
je 0x4057d5
mov al, byte [edi]
test al, al
je 0x4057b8
cmp al, 0x5c
je 0x4057b8
sub edi, esi
jmp 0x4057ed
call fcn.00405ec2
test eax, eax
je 0x4057e7
test byte [eax], 0x10
je 0x4057b8
push esi
call fcn.00405701
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp eax, edi
push esi
jg 0x4057d9
call fcn.004056ba
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40587f
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 0x40589b
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
ret 4

Function at 0x40589e
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x4058cd
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
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x405911
test edi, edi
jne 0x4058d8
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40590b
Function at 0x405915
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405f57
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405939
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a72
mov ebx, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
mov dword [0x42c230], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c230
je 0x40597d
push 1
push 0
push esi
call fcn.0040589e
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a78
cmp eax, edi
jg 0x405a78
mov esi, 0x42bca8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a78
cmp eax, edi
jg 0x405a78
push esi
push ebp
push str._s_s_r_n
push 0x42b8a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42ec30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405be9
push 4
push 0xc0000000
push esi
call fcn.0040589e
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a72
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 0x405a6b
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405a6b
cmp edi, dword [esp + 0x18]
jne 0x405a6b
push str._Rename__r_n
push esi
call fcn.00405813
test eax, eax
jne 0x405a7f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405bc7
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b8a8
push eax
call fcn.0040585f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
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 [0x42ecb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093e4
push eax
call fcn.00405813
test eax, eax
je 0x405a36
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405aa6
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a9b
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405a38
Function at 0x405ee9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405f0d
xor eax, eax
test eax, eax
je 0x405f1f
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405f1f
xor ecx, ecx
jmp 0x405f22
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x42c634], 0
push esi
jne 0x405ffd
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405fd7
mov dword [ecx*4 + 0x42c630], eax
inc ecx
cmp ecx, 0x100
jl 0x405fd2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40602e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c630]
xor eax, esi
inc ecx
dec edx
jne 0x406010
pop edi
not eax
pop esi
ret 0xc
Function at 0x4025c0
Capabilities:
Enumerate gui resources

Disassembly:
test byte [0x4a6470], 1
jne 0x4025f1
or dword [0x4a6470], 1
push 0x47c650
mov dword [0x4a6468], 0x483c74
mov dword [0x4a646c], 0
call fcn.00455f1a
add esp, 4
push str.RandomLogicInstaller
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4a646c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40261e
push esi
push 0x402630
call dword [sym.imp.USER32.dll_EnumWindows]
xor al, al
ret
mov al, 1
ret

Function at 0x402b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b89
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402bc4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402bc0
lea ebx, [ebx]
cmp esi, eax
jae 0x402bc4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402bb0
cmp esi, eax
jb 0x402bca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403010
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403046
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004550a7
add esp, 0x40c
ret
test edi, edi
je 0x40302f
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00455fc6
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4030af
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40302f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4030b4
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
add eax, eax
push eax
push edi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40302f
mov eax, dword [esp]
test eax, eax
je 0x4030ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004550a7
add esp, 0x40c
ret
Function at 0x403110
Capabilities:
Set registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
jne 0x403146
xor al, al
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004550a7
add esp, 0x40c
ret
push eax
lea eax, [esp + 0xc]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00455fc6
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20006
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4031ab
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40312f
mov ecx, dword [esp]
push 4
lea eax, [esp + 0x418]
push eax
push 4
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40312f
mov eax, dword [esp]
test eax, eax
je 0x4031da
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x408]
xor ecx, esp
mov al, 1
call fcn.004550a7
add esp, 0x40c
ret

Function at 0x403200
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [esp + 0x410]
test eax, eax
push ebp
mov ebp, dword [esp + 0x418]
push esi
push edi
mov edi, ecx
mov esi, edx
je 0x4032c8
push eax
lea eax, [esp + 0x18]
push 0x200
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call fcn.00455fc6
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x20]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4032c8
mov ecx, dword [esi]
test ecx, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x4032e2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00438511
mov ecx, dword [esp + 0x10]
lea edx, [ecx + ecx]
push edx
push 0
push eax
mov dword [esi], eax
call fcn.004596b0
mov ecx, dword [esi]
add esp, 0x10
test ecx, ecx
jne 0x4032fa
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004550a7
add esp, 0x40c
ret
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4032e7
sub eax, esi
sar eax, 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push ebp
push ecx
call edi
test eax, eax
jne 0x4032c8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40331f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.004550a7
add esp, 0x40c
ret
Function at 0x403340
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4a0800]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [esp + 0x414]
test eax, eax
jne 0x403376
xor al, al
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004550a7
add esp, 0x410
ret
push eax
mov ecx, 4
lea eax, [esp + 0x10]
push 0x200
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
call fcn.00455fc6
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40335f
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40335f
mov eax, dword [esp]
test eax, eax
je 0x4033e3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
mov al, 1
call fcn.004550a7
add esp, 0x410
ret