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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x1000aad3
mov eax, 0xff1c
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x1000aab4
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xe3
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 0x42]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x208]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00e3
lea ecx, [esi + edi + 0x208]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x1000aa05
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x1000a9e6
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1000abe3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push esi
mov esi, dword [eax]
mov ebx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x6c]
imul edi, dword [esi + 0x60]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], edi
jae 0x1000ad0a
mov eax, 0xff00
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x68]
lea esi, [ebx + esi*2]
add edx, ebx
cmp ebx, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], esi
jae 0x1000aceb
movzx esi, word [edx + 2]
movzx ecx, word [edx]
movzx edx, word [ebx]
movzx edi, word [ebx + 2]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov ebx, esi
mov ecx, 0xff
and dx, cx
and bx, cx
add ebx, edx
mov edx, dword [ebp - 4]
and dx, cx
add ebx, edx
mov edx, edi
and dx, cx
mov ecx, esi
and cx, ax
and esi, eax
lea edx, [ebx + edx + 2]
mov ebx, dword [ebp - 0xc]
and bx, ax
shr edx, 2
add ecx, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add ecx, ebx
mov ebx, edi
and bx, ax
and edi, eax
lea ecx, [ecx + ebx + 0x200]
mov ebx, dword [ebp - 0x10]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0xc]
and ecx, eax
add esi, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add esi, ecx
and edx, 0xffff00ff
lea ecx, [esi + edi + 0x200]
shr ecx, 2
xor edx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], dx
mov edx, dword [ebp - 0x14]
add ebx, 4
add edx, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], edx
jb 0x1000ac3c
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, dword [edx + 4]
add ecx, dword [esi + 0x60]
mov esi, dword [edx]
mov edx, dword [esi + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
jb 0x1000ac1d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1000ad11
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
push edi
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x6c]
imul edi, dword [eax + 0x60]
mov ebx, dword [eax + 0x20]
add edi, ebx
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], edi
jae 0x1000ae29
push esi
mov esi, 0xf0
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x68]
add eax, ebx
add edx, ebx
cmp ebx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
jae 0x1000ae09
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
movzx edi, byte [ebx + 1]
mov dword [ebp - 4], ecx
movzx ecx, byte [ebx]
mov ebx, ecx
and ebx, 0xf
mov edx, eax
and edx, 0xf
add edx, ebx
mov ebx, dword [ebp - 4]
and ebx, 0xf
add edx, ebx
mov dword [ebp - 0x1c], ecx
and cx, si
mov ebx, edi
and ebx, 0xf
lea edx, [edx + ebx + 2]
mov ebx, eax
and bx, si
shr edx, 2
and ax, si
add ebx, ecx
mov ecx, dword [ebp - 4]
and cx, si
add ebx, ecx
mov ecx, edi
and cx, si
and di, si
lea ecx, [ebx + ecx + 0x20]
shr ecx, 2
xor dl, cl
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
and cx, si
and dl, 0xf
add eax, ecx
mov ecx, dword [ebp - 4]
and cx, si
add eax, ecx
lea eax, [eax + edi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [eax], dl
mov edx, dword [ebp - 0x10]
inc ebx
inc ebx
inc edx
inc edx
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edx
jb 0x1000ad69
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
add ecx, dword [edx + 0x60]
mov eax, dword [eax]
mov edx, dword [eax + 0x60]
lea ebx, [ebx + edx*2]
cmp ebx, edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x1000ad4b
pop esi
pop edi
xor eax, eax
pop ebx
leave
ret
Function at 0x1001d688
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1001d6e1
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1001d6e1
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x1001d6e1
xor eax, eax
inc eax
jmp 0x1001d6e3
xor eax, eax
leave
ret 0x10

Function at 0x1001d70f
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1001d77f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001d776
cmp dword [ebp - 0xc], 4
jne 0x1001d776
cmp dword [ebp - 0x10], edi
je 0x1001d776
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1004eb90], edi
xor eax, eax
jmp 0x1001d7be
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1004eb90], edi
jge 0x1001d7b9
lea eax, [ebp - 0x34]
push eax
mov dword [0x1004eb90], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x1001d7b9
cmp word [ebp - 0x14], 5
jb 0x1001d7b9
call fcn.1001d6e7
test eax, eax
je 0x1001d7b9
emms
mov dword [0x1004eb90], 1
mov eax, dword [0x1004eb90]
pop edi
leave
ret
Function at 0x100241b8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x100241c7
xor eax, eax
jmp 0x100242aa
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x1002428a
push edi
mov edi, eax
shr edi, 3
xor ebx, ebx
mov bl, byte [edx]
sub eax, 8
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
inc edx
dec edi
jne 0x100241e7
pop edi
test eax, eax
je 0x100242a4
xor ebx, ebx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x10042e08]
inc edx
dec eax
jne 0x1002428e
mov eax, esi
pop esi
not eax
pop ebx
ret 0xc
Function at 0x10025c62
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x10025c8e
test ecx, ecx
jne 0x10025c98
test esi, esi
jne 0x10025c98
mov eax, edx
jmp 0x10025d09
cmp eax, 0xffffffff
jne 0x10025c98
push 0xfffffffffffffffe
pop eax
jmp 0x10025d09
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x10025d09
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x10025cce
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x10025ced
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x10025db6
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x10025d2e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10025d38
xor ecx, ecx
jmp 0x10025d77
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x10025d5a
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.10037957
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x10025da2
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x10025db6
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x10025c70
pop edi
pop esi
leave
ret
Function at 0x10035d10
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov edx, dword [eax + 0x1c]
mov edi, dword [ebx + 0x1c]
mov eax, dword [eax + 0xf4]
push edx
mov esi, ecx
shl edi, 3
push eax
lea ecx, [edi + edi]
push esi
mov dword [ebp - 8], edi
call fcn.10035aa0
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x10035d91
mov ebx, dword [ebp + 8]
mov edx, esi
sub ebx, esi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], eax
mov ecx, dword [ebx + edx]
mov eax, dword [edx]
xor esi, esi
test edi, edi
jbe 0x10035d82
mov edi, edi
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
add edx, esi
add ebx, edx
sar ebx, 1
mov byte [ecx], bl
inc ecx
xor esi, 1
add eax, 2
dec edi
jne 0x10035d60
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add edx, 4
dec eax
mov dword [ebp - 4], edx
mov dword [ebp + 8], eax
jne 0x10035d53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10035e50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, edx
mov edx, dword [eax + 0x1c]
mov edi, dword [esi + 0x1c]
mov eax, dword [eax + 0xf4]
push edx
mov ebx, ecx
shl edi, 3
push eax
lea ecx, [edi + edi]
push ebx
mov dword [ebp - 0x14], edi
call fcn.10035aa0
mov esi, dword [esi + 0xc]
xor ecx, ecx
test esi, esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
jle 0x10035f00
mov edx, ebx
mov dword [ebp - 0xc], edx
test edi, edi
mov eax, dword [ebp + 8]
mov esi, dword [eax + ecx*4]
mov eax, dword [edx]
mov dword [ebp - 4], 1
jbe 0x10035eef
mov ecx, dword [edx + 4]
sub ecx, eax
mov dword [ebp - 8], edi
jmp 0x10035eb0
movzx edi, byte [ecx + eax]
movzx edx, byte [ecx + eax + 1]
mov ebx, dword [ebp - 4]
add edx, edi
movzx edi, byte [eax + 1]
add edi, ebx
movzx ebx, byte [eax]
add edi, edx
mov edx, dword [ebp - 8]
add ebx, edi
sar ebx, 2
mov byte [esi], bl
mov ebx, dword [ebp - 4]
xor ebx, 3
inc esi
add eax, 2
dec edx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
jne 0x10035eb0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
add edx, 8
inc ecx
cmp ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jl 0x10035e90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1003b6fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10057cb0]
jne 0x1003b705
repz ret
jmp fcn.1003bbba
Function at 0x10026530
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002656e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10026566
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10026570
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10026556
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10026640
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10026656
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10026671
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x401032
Capabilities:
Create directory

Disassembly:
jmp 0x407d8f
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

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

Disassembly:
jmp 0x409519
cmp dword [0x478ea4], 0
push esi
jne 0x409553
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x40952a
mov dword [ecx*4 + 0x478ea0], edx
inc ecx
cmp ecx, 0x100
jl 0x409525
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x40957d
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x478ea0]
inc esi
sub edx, 1
jne 0x409565
not ecx
mov eax, ecx
pop esi
ret 0xc

Function at 0x401041
Capabilities:
Get file size

Disassembly:
jmp 0x4083ad
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebx, 0x400
mov dword [0x476630], 0x55004e
mov ebp, 0x476630
mov dword [0x476634], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x408404
push 1
push 0
push esi
call fcn.004010c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4084e8
cmp eax, ebx
jg 0x4084e8
push ebx
mov esi, 0x475e30
push esi
push dword [esp + 0x20]
call edi
test eax, eax
je 0x4084e8
cmp eax, ebx
jg 0x4084e8
push esi
push ebp
push str._ls_ls_r_n
push 0x475a30
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x48e448]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040111d
push 4
push 0xc0000000
push esi
call fcn.004010c3
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x4084e8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4084e1
push esi
push edi
push ebx
call fcn.00401028
test eax, eax
je 0x4084e1
push str._Rename__r_n
push edi
call fcn.0040105a
test eax, eax
jne 0x4084ee
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x475a30
lea eax, [ecx + edi]
push eax
call fcn.004010e6
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00401109
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x40daa8
add eax, 0xa
push eax
call fcn.0040105a
mov ecx, eax
test ecx, ecx
je 0x4084b2
lea edx, [edi + esi]
lea eax, [edx + ebp]
cmp edx, ecx
jbe 0x408522
sub eax, edx
mov dword [esp + 0x1c], eax
mov ebx, eax
mov al, byte [edx]
mov byte [ebx + edx], al
dec edx
cmp edx, ecx
ja 0x408514
mov ebx, dword [esp + 0x10]
sub ecx, edi
inc ecx
jmp 0x4084b4
Function at 0x4010a5
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x404330
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x43b310
push ebx
push esi
push edi
mov edi, dword [esp + 0xb4]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xb8]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x18], eax
test ecx, ecx
js 0x404377
mov eax, dword [0x48e498]
add eax, ecx
push eax
call fcn.0040103c
push 4
lea eax, [esp + 0x10]
push eax
push dword [0x417014]
call fcn.00401028
test eax, eax
jne 0x404395
push 0xfffffffffffffffd
pop eax
jmp 0x4044d2
mov eax, dword [esp + 0xc]
push ebp
test eax, eax
jns 0x4044f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x42f288
mov dword [esp + 0x14], eax
call fcn.00401019
mov ecx, dword [esp + 0x10]
and ecx, 0x7fffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ecx
jle 0x4044cf
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x437310
call fcn.00401195
test eax, eax
je 0x40454a
sub dword [esp + 0x10], ebp
mov dword [0x42f2a4], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x42f2a0], 0x437310
mov ecx, 0x42f288
mov dword [0x42f2a8], ebp
mov dword [0x42f2ac], ebx
call fcn.0040119a
mov dword [esp + 0x28], eax
test eax, eax
js 0x4044ec
mov eax, dword [0x42f2a8]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x48e554], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x404492
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x404456
test ecx, ecx
jne 0x404492
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.0040112c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4044de
test edi, edi
jne 0x4044b6
push eax
push ebp
push dword [esp + 0xbc]
call fcn.00401109
test eax, eax
je 0x4044e8
mov eax, dword [esp + 0x18]
jmp 0x4044c2
mov ebp, dword [0x42f2a8]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x404403
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c
ret 0x10
test ecx, ecx
jg 0x4043ce
jmp 0x4044cf
push 0xfffffffffffffffe
jmp 0x40454c
push 0xfffffffffffffffc
jmp 0x40454c
test edi, edi
jne 0x404533
test eax, eax
jle 0x4044cf
mov ebp, 0x437310
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00401195
test eax, eax
je 0x40454a
push edi
push ebp
push dword [esp + 0xbc]
call fcn.00401109
test eax, eax
je 0x4044e8
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x4044fd
jmp 0x4044cf
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00401195
test eax, eax
jne 0x4044cf
push 0xfffffffffffffffd
pop eax
jmp 0x4044d1

Function at 0x4010af
Capabilities:
Create process on windows

Disassembly:
jmp 0x40903f
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4
Function at 0x4010b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x4089bd
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x471a30
push ebx
call fcn.00401078
push ebx
call fcn.00401104
mov esi, eax
test esi, esi
jne 0x4089de
xor eax, eax
jmp 0x408a36
push esi
call fcn.00401096
test byte [0x48e444], 0x80
je 0x4089fa
movzx eax, word [esi]
test ax, ax
je 0x4089da
cmp eax, 0x5c
je 0x4089da
sub esi, ebx
sar esi, 1
jmp 0x408a14
call fcn.0040101e
test eax, eax
je 0x408a0e
test byte [eax], 0x10
je 0x4089da
push ebx
call fcn.00401131
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x408a00
call fcn.00401190
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
pop ebx
ret 4

Function at 0x4010c3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x408f2d
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc