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

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4bab58
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x4bab62
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4babca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x4baba3
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x4bab5f
cmp eax, 5
jne 0x4babbd
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004ba870
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4bae90
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4baea8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4baef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4baee7
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004ba870
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4bb1e0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x4bb21e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4bb247
push 8
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
je 0x4bb247
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
je 0x4bb247
xor eax, eax
pop esi
pop ecx
ret
mov eax, 0xffffffe7
pop esi
pop ecx
ret
Function at 0x4e37e0
Capabilities:
Encode data using xor

Disassembly:
push edi
call fcn.004e3820
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
not eax
test edi, edi
je 0x4e3819
push esi
mov esi, dword [esp + 0xc]
lea esp, [esp]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x6afe28]
dec edi
jne 0x4e3800
pop esi
not eax
pop edi
ret
Function at 0x4e4f40
Capabilities:
Encode data using xor

Disassembly:
cmp byte [0x6af0a0], 0
push ebx
push esi
push edi
jne 0x4e505e
mov byte [0x6af0a0], 1
xor esi, esi
lea esp, [esp]
mov ecx, esi
xor eax, eax
and ecx, 1
mov edx, esi
or ecx, eax
je 0x4e4f80
shrd edx, eax, 1
shr eax, 1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
jmp 0x4e4f86
shrd edx, eax, 1
shr eax, 1
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4fa1
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4fbc
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4fd7
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e4ff2
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e500d
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e5028
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov ecx, edx
shrd edx, eax, 1
and ecx, 1
shr eax, 1
or ecx, 0
je 0x4e5043
xor edx, 0xd7870f42
xor eax, 0xc96c5795
mov dword [esi*8 + 0x6af0a8], edx
mov dword [esi*8 + 0x6af0ac], eax
inc esi
cmp esi, 0x100
jb 0x4e4f60
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
not ebx
mov edi, dword [esp + 0x14]
not edx
test edi, edi
je 0x4e5099
mov esi, dword [esp + 0x10]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
shrd ebx, edx, 8
xor ecx, eax
shr edx, 8
xor ebx, dword [ecx*8 + 0x6af0a8]
xor edx, dword [ecx*8 + 0x6af0ac]
dec edi
jne 0x4e5076
pop edi
not ebx
not edx
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4f99a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4f99c0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4f99c0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4f99c0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x50a800
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x50a82f
push esi
call fcn.0050a9e0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x50a828
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x50a8b2
mov eax, dword [esi + 0x1a8]
cmp byte [eax + 0x10], 0
je 0x50a89d
mov eax, dword [esi + 8]
test eax, eax
je 0x50a855
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x1a8]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x50a898
cmp eax, 2
je 0x50a89d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x50a846
cmp eax, 3
je 0x50a87d
cmp eax, 1
jne 0x50a846
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x50a846
mov eax, dword [esi + 0x128]
add eax, edi
mov dword [edx + 8], eax
jmp 0x50a846
pop edi
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0050a8e0
add esp, 4
pop edi
pop esi
ret
cmp eax, 0xcc
je 0x50a8d4
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0050a8e0
add esp, 4
pop edi
pop esi
ret

Function at 0x50a8e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x50a90c
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
je 0x50a992
lea ebx, [esi + 0x78]
jmp 0x50a920
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x50a966
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x50a945
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x19c]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x50a9a8
cmp eax, dword [esi + 0x60]
jb 0x50a927
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x198]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x198]
cmp byte [eax + 8], 0
jne 0x50a920
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x50bb20
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.00517d40
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.00517d10
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x50bb67
push edi
call fcn.00517d50
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0050b7b0
mov dword [esi + 4], fcn.0050b640
mov dword [esi + 8], fcn.0050b710
mov dword [esi + 0xc], fcn.0050b590
mov dword [esi + 0x10], 0x50be80
mov dword [esi + 0x14], 0x50be10
mov dword [esi + 0x18], 0x50bc70
mov dword [esi + 0x1c], 0x50b440
mov dword [esi + 0x20], 0x50b2f0
mov dword [esi + 0x24], 0x50ba20
mov dword [esi + 0x28], 0x50bef0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x50bc4a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x50bc4a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x50bc39
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x50bc41
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x50f410
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
cmp dword [ebp + 0x4c], 1
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x1c], ebx
jne 0x50f435
mov esi, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x50f43b
xor esi, esi
mov byte [ebx + 0x1c], 0
push dword [ebp + 0x64]
mov ecx, dword [ebp + 4]
lea eax, [esi + 0x100]
push eax
push 1
push ebp
mov eax, dword [ecx + 8]
mov dword [esp + 0x20], esi
call eax
xor ecx, ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
add esp, 0x10
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x64], ecx
jle 0x50f550
push edi
lea ecx, [ecx]
mov edi, dword [ebx + ecx*4 + 0x20]
cdq
idiv edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
test esi, esi
je 0x50f48d
mov eax, dword [ebx + 0x18]
add dword [eax + ecx*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi*2 - 2]
cdq
idiv ecx
xor esi, esi
mov edx, eax
lea esp, [esp]
cmp esi, edx
jle 0x50f4e6
mov ecx, dword [esp + 0x10]
lea edi, [edi*2 - 2]
imul eax, ebx, 0x1fe
add ecx, 0xfe
add ecx, eax
lea ecx, [ecx]
add ecx, 0x1fe
inc ebx
mov eax, ecx
cdq
idiv edi
mov edx, eax
cmp esi, edx
jg 0x50f4d0
mov edi, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x50f4b0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x50f531
mov ecx, 1
lea edx, [ebp - 1]
jmp 0x50f510
movzx eax, byte [ebp]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebp + 0xff]
mov byte [ecx + ebp + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x50f510
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x64]
mov eax, dword [esp + 0x1c]
jl 0x50f470
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x524396
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6af8a8], 0
push ebx
push esi
mov esi, 0x6af8b0
jne 0x5243c2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x6af8c8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x6af8a8], 1
push dword [0x6af8c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x52445f
push 0x14
push 8
push dword [0x63527c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x524489
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6af8ac]
test eax, eax
je 0x524404
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x6af8ac], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x52448e
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x6af8c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x63527c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x524489
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x40ab20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x409015
lea edi, [esi - 0x8015]
push edi
jmp 0x40ab3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40ab41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40ab30
mov eax, 1
add ebx, ebx
jne 0x40ab53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40ab48
jne 0x40ab64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ab48
xor ecx, ecx
sub eax, 3
jb 0x40ab78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40abea
mov ebp, eax
add ebx, ebx
jne 0x40ab83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40ab90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40abb4
inc ecx
add ebx, ebx
jne 0x40aba0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40ab95
jne 0x40abb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40ab95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40abd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40abc5
jmp 0x40ab36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40abd4
add edi, ecx
jmp 0x40ab36
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40abf2
cmp byte [edi], 0
jne 0x40abf2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40abf7
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40ac66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb4ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb534]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40ac24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb53c]
or eax, eax
je 0x40ac60
mov dword [ebx], eax
add ebx, 4
jmp 0x40ac41
call dword [esi + 0xb538]
mov ebp, dword [esi + 0xb540]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40ac9a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4ec57359
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
xor edi, edi
cmp dword [0x4edd7138], edi
mov dword [0x4edd713c], edi
je 0x4ec6abc5
call ebx
sub eax, dword [0x4edd7144]
cmp eax, 0x7530
sbb eax, eax
inc eax
jne 0x4ec57a48
pop edi
pop ebx
leave
ret
cmp dword [0x4edd7130], edi
je 0x4eccfebf
cmp dword [0x4edd713c], edi
jne 0x4ec6abaa
call ebx
mov dword [0x4edd7144], eax
jmp 0x4ec57391
mov dword [0x4edd7140], edx
mov dword [0x4edd713c], edi
jmp 0x4ec57a60
mov eax, dword [0x4edd7138]
xor edx, edx
cmp eax, edi
je 0x4ec6ab99
mov ecx, dword [eax + 0x40]
cmp ecx, edx
ja 0x4ec6abc1
mov eax, dword [eax + 0x4c]
jmp 0x4ec6abb1
mov edx, ecx
jmp 0x4ec6abbc
call fcn.4ec6abd4
jmp 0x4ec57a48
push esi
push 0x20000
push 0x4eddf858
mov esi, 0x4ece0220
push esi
push 0x80000002
call fcn.4ed8151b
push 0x40000
push 0x4eddf854
push esi
push 0x80000001
call fcn.4ed8151b
pop esi
jmp 0x4ec57a54
Function at 0x4ec58dec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
ja 0x4ecd8708
cmp dword [ebp - 4], 0
je 0x4ecd8710
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x4ec58d91
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.4ec58069
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x4ec58dd2
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [ecx + eax]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x4ec58e39
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4ec58e39
mov edi, dword [ebp - 0xc]
jmp 0x4ec58dfc
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
je 0x4ecd8683
cmp eax, 0xffffffff
je 0x4ecd869b
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jae 0x4ecd86a7
mov edi, dword [esi]
cmp dword [edi + 4], 0
jne 0x4ec58d4e
pop edi
pop ebx
leave
ret
test ecx, ecx
jne 0x4ec58e1b
test edx, edx
jne 0x4ec58e1b
mov dword [ebp - 8], edi
jmp 0x4ec58e2d
mov dword [ebp - 8], 0xfffffffe
jmp 0x4ec58e2d
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x4ecd86ca
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x4ecd86e9
add dword [ebp - 8], edi
jmp 0x4ec58e2d
mov dword [ebp - 4], ecx
jmp 0x4ec58d68
xor eax, eax
jmp 0x4ec58da7
Function at 0x4ec59330
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4ecd87ec
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x4ec593f9
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
sub eax, 8
dec edi
jne 0x4ec5935e
pop edi
test eax, eax
je 0x4ec59412
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4ec59420]
inc edx
dec eax
jne 0x4ec593fd
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
jmp 0x4ec59418
Function at 0x4ec67b36
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
je 0x4ecc1952
push esi
mov esi, 0x4edd72a4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [0x4edd711c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4edd7048
push edi
push edi
push 0x4ec68361
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x4edd70fc], eax
pop esi
je 0x4ecc1952
xor eax, eax
inc eax
mov dword [0x4edd7114], eax
pop edi
pop ebx
ret
call fcn.4ecbe8d6
xor eax, eax
jmp 0x4ec67b95

Function at 0x4ec694c8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x4edd7058], ebx
jne 0x4ecc2ea0
cmp dword [0x4edd70f4], ebx
push esi
push edi
je 0x4ecc2ea8
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
lea eax, [esi - 1]
cmp eax, 0x103
ja 0x4ec695f9
lea eax, [esi - 1]
cmp eax, ebx
jl 0x4ec69535
cmp word [ebp + eax*2 - 0x210], 0x5c
je 0x4ec695f2
dec eax
jns 0x4ec69523
cmp esi, ebx
je 0x4ec695f9
push 2
xor ecx, ecx
pop edx
lea eax, [esi + 7]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.4ec515d7
cmp eax, ebx
mov dword [0x4edd7058], eax
je 0x4ec695f9
add esi, esi
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [0x4edd7058]
lea edi, [esi + eax]
add esp, 0xc
mov esi, 0x4ec695e4
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0xffffffffffffffff
movsw word es:[edi], word [esi]
push dword [0x4edd7058]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x4ecc2f0c
push edi
call fcn.4ec515d7
cmp eax, ebx
mov dword [0x4edd7054], eax
je 0x4ecc2f0c
push ebx
push ebx
push edi
push eax
push 0xffffffffffffffff
push dword [0x4edd7058]
push ebx
push ebx
call esi
cmp eax, edi
jne 0x4ecc2f0c
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret
mov esi, eax
jmp 0x4ec69535
xor eax, eax
jmp 0x4ec695d4
xor eax, eax
inc eax
jmp 0x4ec695d6
mov edi, 0x105
push edi
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
lea eax, [esi - 1]
cmp eax, 0x103
mov dword [ebp - 0x31c], eax
ja 0x4ec695f9
push edi
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x318]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4ec695f9
cmp word [ebp + esi*2 - 0x212], 0x5c
jne 0x4ec69535
mov esi, dword [ebp - 0x31c]
jmp 0x4ec69535
push dword [0x4edd7058]
call fcn.4ec51589
push dword [0x4edd7054]
mov dword [0x4edd7058], ebx
call fcn.4ec51589
mov dword [0x4edd7054], ebx
jmp 0x4ec695f9
Function at 0x4ec69e68
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xa0]
mov dword [0x4edd7194], eax
mov eax, dword [ebp - 0xb8]
mov dword [0x4edd7190], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4ec69ee2
xor eax, eax
cmp dword [ebp - 0x88], 2
sete al
mov dword [0x4edd7184], eax
mov eax, dword [ebp - 0x94]
mov dword [0x4edd718c], eax
mov eax, dword [ebp - 0x90]
mov dword [0x4edd7188], eax
call fcn.4ec69efd
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x4edd7180], eax
call fcn.4ec515ae
leave
ret