joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ada0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x466700]
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov esi, dword [edi + 4]
mov dword [ebp - 8], esi
test esi, esi
je 0x40add9
mov eax, dword [esi + 0xc]
shl eax, 2
cmp eax, ebx
ja 0x40aee7
mov dword [ebp - 8], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x40adc1
xor edx, edx
mov esi, dword [edi + 8]
lea eax, [ebx + 0x10]
xor ecx, ecx
div dword [edi + 8]
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [edi + 0xc]
div esi
cmp ecx, eax
jae 0x40adfc
mov ecx, eax
jmp 0x40adfd
inc ecx
mov ebx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, 0x80000000
imul ebx, esi
lea edi, [ecx - 0x80000000]
sub eax, ebx
cmp edi, eax
jb 0x40ae20
mov edi, 0x80000000
sub edi, ebx
push ecx
mov edx, ebx
mov ecx, edi
call fcn.0040acd0
mov edi, eax
add esp, 4
test edi, edi
je 0x40af4e
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x40ae20
mov edi, dword [ebp - 0xc]
cmp dword [edi + 4], 0
jne 0x40ae60
mov dword [edi + 4], esi
jmp 0x40ae98
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af4e
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0x20
mov dword [eax + 4], esi
push dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af4e
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 8
xor ecx, eax
shr ecx, 8
xor ecx, eax
shl eax, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xff0
lea eax, [ecx + 0x10]
add eax, esi
mov dword [esi + 8], eax
mov eax, ebx
sub eax, ecx
sub eax, 0x10
shr eax, 2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af4e
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af4e
mov edx, dword [esi + 8]
test bl, 3
mov ecx, 0
mov dword [ebp - 0x14], edx
setne cl
mov eax, ebx
shr eax, 2
add ecx, eax
sub dword [esi + 0xc], ecx
lea eax, [edx + ecx*4]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x20
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40af45
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af4e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b0b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x4666f0], 0
jne 0x40b16f
mov eax, dword [0x4666f8]
mov dword [ebp - 4], 0
test eax, eax
jne 0x40b0f0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4666f8], eax
test eax, eax
je 0x40b178
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x463a58], eax
cmp eax, 0xffffffff
je 0x40b178
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x463a5c], eax
cmp eax, 0xffffffff
je 0x40b178
push esi
push 0x468bb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0040ac70
push str.ntdll
mov dword [0x4666f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40b16e
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40b16e
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
js 0x40b16e
mov eax, dword [ebp - 0x18]
mov dword [0x468724], eax
pop esi
mov eax, dword [0x4666f0]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40b1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x468bb8
mov ebx, edx
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b23f
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [esi], ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x468bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b2d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 0x468bb8
xor edi, edi
mov ebx, dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b335
mov ecx, dword [esi + 0x5c]
test ebx, ebx
je 0x40b30e
mov eax, esi
sub eax, dword [esi + 0x60]
mov dword [ecx], eax
jmp 0x40b310
mov dword [ecx], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x4666f4]
mov edi, 1
mov dword [esi + 0x50], eax
mov dword [0x4666f4], esi
push 0x468bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b680
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0
push ebx
push edi
test ecx, ecx
je 0x40b85b
cmp ecx, dword [0x4666fc]
je 0x40b85b
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40b85b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [eax], 0x4550
jne 0x40b85b
mov edi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xc], edi
lea ebx, [eax + edi]
mov dword [ebp - 0x2c], ebx
test edi, edi
je 0x40b85b
test eax, eax
je 0x40b85b
mov eax, dword [edi + ecx + 0x1c]
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [edi + ecx + 0x20]
add eax, ecx
push esi
mov esi, dword [edi + ecx + 0x24]
mov dword [ebp - 0x24], eax
add esi, ecx
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
cmp dword [edi + ecx + 0x18], eax
jbe 0x40b851
lea ebx, [edx + 8]
mov dword [ebp - 0x34], ebx
jmp 0x40b720
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
test edx, edx
je 0x40b832
mov eax, ebx
mov dword [ebp - 8], ebx
mov ecx, dword [eax - 8]
mov ebx, dword [eax + 4]
test ecx, ecx
je 0x40b77b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
add eax, dword [ebp - 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b768
test dl, dl
je 0x40b764
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b768
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b748
xor eax, eax
jmp 0x40b76d
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 8]
jne 0x40b812
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor esi, esi
cmp dword [edi + ecx + 0x14], esi
jbe 0x40b815
mov edi, dword [ebp - 0x28]
lea ecx, [ecx]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp eax, esi
jne 0x40b7dc
mov eax, dword [edi]
test eax, eax
je 0x40b80a
cmp eax, dword [ebp - 0xc]
jb 0x40b7aa
cmp eax, dword [ebp - 0x2c]
jb 0x40b80a
push ebx
push edx
mov edx, ecx
mov ecx, edi
call fcn.0040b350
add esp, 8
test eax, eax
je 0x40b7d9
or dword [eax + 0x68], 1
lea ecx, [ebp - 0x38]
push ecx
push 0x20
push 0x6c
push eax
mov dword [ebp - 0x20], 1
mov dword [eax + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], 0
jne 0x40b7fa
mov ecx, dword [ebp - 0x30]
add ecx, 8
mov edx, dword [ecx]
inc edx
call fcn.0040b1f0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp - 0x10]
add edi, 4
cmp esi, dword [eax + ecx + 0x14]
jb 0x40b790
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
jmp 0x40b815
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x10]
add eax, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x40b732
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
inc eax
add esi, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
cmp eax, dword [edi + ecx + 0x18]
jb 0x40b720
cmp dword [ebp - 0x1c], 0
je 0x40b851
call fcn.0040b630
mov eax, dword [ebp - 0x20]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
mov dword [0x4664d8], 0
call fcn.0040ba00
mov edi, eax
test edi, edi
je 0x40bb94
lea edx, [edi + 0x26]
push ebx
call fcn.0040ada0
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40bb94
lea eax, [edi + 0x26]
mov ecx, esi
push eax
call fcn.0040ac10
mov eax, dword [ebp - 0x10]
lea ebx, [esi + 0x1c]
push edi
mov edx, eax
mov dword [esi], eax
mov ecx, ebx
mov dword [esi + 4], 0x40a670
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
call fcn.0040ac40
add esp, 8
xor ecx, ecx
test edi, edi
je 0x40bacb
lea esp, [esp]
cmp byte [ecx + ebx], 0x90
jne 0x40bacb
inc ecx
cmp ecx, edi
jb 0x40bac0
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40bb07
mov al, byte [ecx + ebx]
cmp al, 0xe8
je 0x40badd
cmp al, 0xe9
jne 0x40bb07
lea esi, [ecx + ebx]
push 4
lea edx, [esi + 1]
lea ecx, [ebp - 0x14]
call fcn.0040ac40
mov eax, dword [ebp - 0x10]
mov edx, ecx
sub eax, ebx
lea ecx, [esi + 1]
add dword [ebp - 0x14], eax
push 4
call fcn.0040ac40
mov esi, dword [ebp - 0xc]
add esp, 8
mov eax, 0x25ff
mov byte [ebp - 0xc], 0xe9
mov word [ebx + edi], ax
lea ecx, [edi + 6]
mov eax, dword [ebp - 0x10]
add ecx, ebx
add eax, edi
mov dword [ebx + edi + 2], ecx
mov ebx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, 0x40a670
sub eax, ebx
sub eax, 5
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x24]
push eax
push 0x20
lea eax, [edi + 0x26]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40bb94
push 5
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.0040ac40
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
pop edi
mov dword [eax], 5
mov eax, 1
mov dword [0x4664d8], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041876b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041876b
mov esp, ebp
pop ebp
ret
Function at 0x40bc00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4664d8]
mov eax, dword [ebx]
cmp byte [eax], 0xe9
jne 0x40bcf4
lea ecx, [ebp - 0xa4]
push ecx
push 0x40
push dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40bcf4
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [ebx + 0xc]
push edi
call fcn.0040ac40
add esp, 4
xor ecx, ecx
test edi, edi
je 0x40bc6f
lea esp, [esp]
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x40bc6f
inc ecx
cmp ecx, edi
jb 0x40bc60
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40bcb6
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x40bc85
cmp al, 0xe9
jne 0x40bcb6
push esi
lea esi, [ebp + ecx - 0x9b]
push 4
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.0040ac40
mov eax, dword [ebx + 8]
mov edx, ecx
sub eax, dword [ebx]
mov ecx, esi
add dword [ebp - 0xa0], eax
push 4
call fcn.0040ac40
add esp, 8
pop esi
mov ecx, dword [ebx]
lea edx, [ebp - 0x9c]
push edi
call fcn.0040ac40
add esp, 4
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
push dword [ebx + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041876b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0041876b
mov esp, ebp
pop ebp
ret
Function at 0x40eda5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40edc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040edf7
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x40f5a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x468be8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x468bec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x468bf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x468bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x468bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x468bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x468c00], eax
mov eax, 0x468be8
pop ebp
ret 4

Function at 0x411a39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x411aa2
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x411a6c
mov eax, esi
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x411a9a
test ecx, ecx
je 0x411aa2
test esi, esi
je 0x411aa2
mov ecx, dword [ebp - 0xc]
jmp 0x411a5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411aa4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041876b
leave
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x411ba3
mov dword [ecx*4 + 0x466710], edx
inc ecx
cmp ecx, 0x100
jb 0x411b9e
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x466310]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x466710]
mov dword [edx + 0x466710], ecx
add edx, 4
cmp edx, 0x2000
jb 0x411bce
mov dword [0x468710], 0x412c80
call fcn.00412ed8
test eax, eax
jne 0x411c0f
mov dword [0x468710], 0x412d20
ret
Function at 0x411d85
Capabilities:
Get common file path
Move file

Disassembly:
push 0x280
mov eax, 0x449bd7
call fcn.0041909c
mov dword [ebp - 0x254], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x25c], eax
or dword [eax], 0xffffffff
mov dword [ebp - 0x258], 0xc0000000
cmp dword [edi + 0x10], esi
jne 0x411dfa
xor eax, eax
mov dword [ebp - 0x264], esi
push 0x45b0a8
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x260], 7
mov word [ebp - 0x274], ax
call fcn.00403185
xor ebx, ebx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x274]
inc ebx
jmp 0x411e13
push 0x45aa1c
mov edx, edi
lea ecx, [ebp - 0x28c]
call fcn.004037ef
pop ecx
push 2
pop ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x254]
mov ecx, eax
mov dword [ebp - 0x250], ebx
call fcn.00404ac5
push eax
lea ecx, [ebp - 0x24c]
call fcn.00402b40
or ebx, 4
mov dword [ebp - 4], 3
test bl, 2
je 0x411e4f
lea ecx, [ebp - 0x28c]
and ebx, 0xfffffffd
call fcn.00404c58
mov byte [ebp - 4], 5
test bl, 1
je 0x411e63
lea ecx, [ebp - 0x274]
call fcn.00404c58
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00411fdc
test al, al
jne 0x411fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x411e8f
mov esi, eax
jmp 0x411fbc
push 0x208
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00430b10
add esp, 0xc
push 8
pop ebx
cmp dword [edi + 0x14], ebx
jb 0x411eae
mov edi, dword [edi]
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x411eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411e88
xor eax, eax
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], ax
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x220], 7
push eax
call fcn.00403185
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jb 0x411f09
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x238], ebx
jb 0x411f1d
mov ecx, dword [ebp - 0x24c]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x411f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x234]
call fcn.00404c58
jmp 0x411fbc
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00411fdc
test al, al
je 0x411f76
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jb 0x411f6a
mov eax, dword [ebp - 0x234]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x411f33
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x24c]
mov edi, eax
cmp dword [ebp - 0x238], ebx
jb 0x411f92
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x220], ebx
jb 0x411fa6
mov ecx, dword [ebp - 0x234]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x234]
call fcn.00404c58
mov esi, edi
lea ecx, [ebp - 0x24c]
call fcn.00404c58
mov eax, esi
jmp 0x411fd4
call fcn.00418fe9
ret
Function at 0x41568d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x4156ff
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41569c
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41569c
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4157ae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4157d0
xor eax, eax
jmp UuidCreateSequential
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x4157f0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4157ed
inc edi
cmp edi, edx
jb 0x4157e0
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4158bc
cmp ecx, 2
jbe 0x41587b
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x4158ab
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41585b
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x415859
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x4158b1
shr esi, cl
test esi, esi
je 0x415809
cmp esi, 4
ja 0x4158a0
cmp esi, 3
je 0x4158a0
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x415809
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x4157d9
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x4157d9
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x41b3b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x406624
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 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
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 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1c804840
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xa3c3f8a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
jmp 0x401219