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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x52a928]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x415805
cmp word [ebx], dx
jne 0x415805
or byte [eax + edi + 0x28], 4
jmp 0x41580a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41596d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41594d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41584b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x415881
cmp eax, edx
jae 0x41588f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x415826
jmp 0x41596d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415948
cmp dword [ebp - 0x18], 0
je 0x415948
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x52a928]
test byte [eax + edi + 0x28], 0x48
je 0x41591e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4158e2
mov word [esi], cx
jmp 0x415919
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x52a928]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x52a928]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x52a928]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41596d
pop eax
cmp word [ebp - 4], ax
jne 0x41592e
cmp esi, ebx
jne 0x41592e
mov word [esi], ax
jmp 0x41596a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004161f8
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41596d
push 0xd
pop eax
jmp 0x415929
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x52a928]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x415967
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41596d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x418c31
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x418c7c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00418dcc
test al, al
jne 0x418c76
sub edx, 2
cmp edx, edi
jne 0x418c5c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x418c9e
lea eax, [edi + 2]
cmp edx, eax
je 0x418c9e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00418b7d
add esp, 0x10
jmp 0x418d98
push esi
lea ecx, [ebp - 0x255]
call fcn.00418dcc
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x418ce1
push dword [ebp - 0x25c]
jmp 0x418c8e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x418d1e
cmp word [ebp - 0x226], 0
je 0x418d3f
cmp word [ebp - 0x226], ax
jne 0x418d1e
cmp word [ebp - 0x224], 0
je 0x418d3f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00418b7d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x418d8b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x418cf8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x418d73
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x418d98
push 0x4189ad
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041df50
add esp, 0x10
jmp 0x418d68
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408516
leave
ret
Function at 0x4196ae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41974b
push ebx
push esi
call fcn.00419677
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00418608
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4196f8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41974a
push edi
push eax
call fcn.00416256
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x419718
call fcn.004140a1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x419749
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00418608
add esp, 0x20
test eax, eax
jne 0x419737
push edi
call fcn.004140a1
jmp 0x41973f
push ebx
call fcn.004140a1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41bf6b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412f9f
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41bfda
cmp esi, dword [ebp - 4]
je 0x41bfd5
cmp dword [ebp + 0xc], 0
je 0x41bfd5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41bfb2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041babd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41bfdc
xor eax, eax
inc eax
jmp 0x41bfdc
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41c041
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00412f9f
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00412f9f
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41c0b8
cmp word [ecx], dx
je 0x41c0b8
mov eax, dword [0x424a64]
push edi
dec eax
push eax
push 0x424950
call fcn.0041bfe0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41c12b
cmp word [eax], dx
je 0x41c12b
mov eax, dword [edi]
test eax, eax
je 0x41c0dc
cmp word [eax], dx
je 0x41c0dc
lea eax, [ebp - 0x10]
push eax
call fcn.0041b9c3
jmp 0x41c0e5
lea eax, [ebp - 0x10]
push eax
call fcn.0041ba5e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41c155
mov eax, dword [0x42494c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x424640
call fcn.0041bfe0
add esp, 0xc
test al, al
je 0x41c155
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41c120
cmp word [eax], di
je 0x41c120
lea eax, [ebp - 0x10]
push eax
call fcn.0041b9c3
pop ecx
jmp 0x41c157
lea eax, [ebp - 0x10]
push eax
call fcn.0041ba5e
jmp 0x41c11d
mov eax, dword [edi]
test eax, eax
je 0x41c142
cmp word [eax], dx
je 0x41c142
lea eax, [ebp - 0x10]
push eax
call fcn.0041b978
pop ecx
jmp 0x41c155
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41c220
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041be65
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41c220
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41c220
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41c220
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41c1ad
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00414cb3
test ebx, ebx
je 0x41c21b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00414cb3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c220
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c220
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041e652
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41c222
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408516
leave
ret
Function at 0x41eaaf
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041ea2b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41ec1e
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41ec1e
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41ebd3
jg 0x41eb0b
test eax, eax
je 0x41ebc9
push 1
push 0x1000
call fcn.0041461f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41eb2e
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41ebc0
push 0x8000
push ebx
call fcn.004104a3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41eb57
jg 0x41eb52
cmp ecx, 0x1000
jb 0x41eb57
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00413e85
add esp, 0x10
cmp eax, 0xffffffff
je 0x41eb9c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41eb52
jl 0x41eb83
test ecx, ecx
jne 0x41eb44
push dword [ebp - 0xc]
push ebx
call fcn.004104a3
push esi
call fcn.004140a1
add esp, 0xc
xor ebx, ebx
jmp 0x41ec2c
cmp byte [edi + 0x24], 0
je 0x41ebb3
cmp dword [edi + 0x20], 5
jne 0x41ebb3
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41ebbe
mov ebx, dword [edi + 0x18]
jmp 0x41ebc0
xor ebx, ebx
push esi
call fcn.004140a1
pop ecx
jmp 0x41ec2c
test ecx, ecx
jg 0x41eb95
jl 0x41ebd3
test eax, eax
jae 0x41eb95
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004161f8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41ebf3
cmp byte [edi + 0x1c], 0
je 0x41eb95
jmp 0x41ec24
push ebx
call fcn.00419f3c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41eb95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41ec2c
cmp byte [edi + 0x1c], 0
je 0x41ec29
mov ebx, dword [edi + 0x18]
jmp 0x41ec2c
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004161f8
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ff30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ff5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ff5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4897f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x59c070
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5eda30], 1
jge 0x59c0df
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x59c0b5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x59c0b5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x59c092
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x59c0cb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x59c0d2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x59c1cf
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x59c1a0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x59c195
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x59c189
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x59c190
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x59c1cf
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x59c1ca
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x59c1b3
mov eax, dword [ebx + 8]
jmp 0x59c1cf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x59c1c1
xor eax, eax
jmp 0x59c1cf
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x59c0ff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x48be0d
Capabilities:
Query environment variable

Disassembly:
jmp 0x584f90
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x584fa4
xor edi, edi
jmp 0x584fe8
push ebx
push esi
call fcn.00584e86
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.0048c70e
mov edi, eax
add esp, 0x14
test edi, edi
je 0x584fd5
push ebx
push esi
push edi
call fcn.0048bfa2
add esp, 0xc
push 2
push 0
call fcn.0048cfb0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x405e13
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 0x4308e8
push 0x40a574
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.kernel32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405e61
push 1
push 0
push esi
call fcn.00405cb9
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405f80
cmp eax, edi
jg 0x405f80
push esi
push ebx
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406106
push 4
push 0xc0000000
push esi
call fcn.00405cb9
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405f80
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f79
push edi
push esi
push ebp
call fcn.00406106
test eax, eax
je 0x405f79
push str._Rename__r_n
push esi
call fcn.00406106
test eax, eax
jne 0x405f17
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405f4c
add eax, 0xa
push 0x40a558
push eax
call fcn.00406106
mov ebp, eax
test ebp, ebp
je 0x405f48
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405f39
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405f33
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405f4e
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405c74
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406106
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405f85
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x405fa8
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e13
pop ecx
pop ecx
inc dword [0x434f70]
ret 8

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

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4065a6
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 0x406580
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40657b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065d7
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4065b9
pop edi
not eax
pop esi
ret 0xc
Function at 0x410240
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
bswap eax
rcr edi, 0x3c
mov esi, 0xba
or edx, 0xcd
not edx
sbb ebx, 0xd8
not eax
not esi
ror edi, 0xd0
inc edx
add ebx, 0xa6
inc edi
ror eax, 0xdb
sub esi, 3
rcl eax, 0x6e
dec esi
neg esi
dec ebx
add ebx, 0xce
imul edx
sbb eax, 0x24
bswap esi
or eax, 0x9e
neg edx
rol ebx, 0xd8
not esi
bswap esi
bswap edx
and edx, 0x46
add edi, 0xba
inc esi
ror esi, 0x34
or eax, 0x8c
sub edx, 0xa8
imul edx
rcl edi, 0xfa
not eax
bswap edi
ror eax, 0xee
neg esi
neg esi
rcr ebx, 0xf8
neg esi
sub eax, 0x20
not edx
or esi, 0x19
and edi, 0x39
bswap esi
mov edx, 0xae
neg eax
xor ecx, ecx
xor edi, edi
and eax, 0x91
dec ebx
rol edi, 0x4a
inc edi
imul eax
inc ebx
or edx, 0xc
sbb eax, 0x4f
imul eax
imul ebx
inc edi
neg eax
imul edx
bswap ebx
and edx, 0x8d
ror edx, 0x89
rcl eax, 0xd5
imul ebx
neg eax
neg edi
sub edx, 0x41
rcl esi, 0xe0
rol edi, 0x37
not ebx
rcr eax, 0xbd
rcl esi, 0xf0
neg edx
inc esi
rcr edx, 0xee
rcr esi, 4
dec eax
sub esi, 0x83
not edx
or edx, 0xed
sub esi, 0x5f
imul edx
imul esi
inc ebx
sbb esi, 0xcf
or esi, 0xee
inc esi
not ebx
imul eax
rcl eax, 0xa4
inc ebx
not eax
imul eax
and esi, 0x88
sub eax, 0x94
or edx, 0xeb
mov ecx, dword [ebp + 0xc]
not ebx
not esi
not edx
rcr edi, 0x6e
dec edi
rol eax, 0xe5
mov eax, 0xf0
ror ebx, 0x56
ror edx, 0x3b
and edx, 0x33
sub ebx, 0xfc
rol eax, 0xac
bswap esi
sbb edx, 0x32
inc eax
rol eax, 0x19
sub edx, 0x97
ror ebx, 0x97
not ebx
mov edx, 0xa
mov edx, 0xf6
imul ebx
neg edi
imul esi
sbb ebx, 0xfa
not eax
or ebx, 0x8c
dec eax
sbb esi, 0x5b
rcl eax, 0x9c
mov ebx, 0x55
rcl edx, 0x9f
neg eax
rcr ebx, 0xca
dec edi
sub ebx, 0xe7
dec esi
add eax, 0xa1
inc ebx
dec esi
imul edx
neg edx
or esi, 0x4d
add edx, 0x64
rcr ebx, 0x3f
imul eax
imul esi
rol ebx, 0xcd
dec edx
mov ebx, 0x2b
mov edi, dword [ebp + 8]
mov esi, eax
mov ebx, ebx
xor esi, esi
not byte [edi]
xor esi, esi
xor eax, ebx
mov eax, ebx
mov ebx, esi
xor ebx, eax
xor eax, esi
mov ebx, eax
xor eax, ebx
xor eax, ebx
add byte [edi], 0x48
xor esi, esi
mov eax, esi
xor ebx, esi
mov eax, esi
xor ebx, esi
xor ebx, ebx
mov esi, esi
mov ebx, ebx
mov ebx, eax
sub byte [edi], 0x97
xor esi, eax
mov ebx, esi
mov esi, ebx
xor eax, ebx
mov eax, eax
mov ebx, ebx
mov esi, esi
xor eax, eax
xor ebx, esi
imul byte [edi]
inc edi
loop 0x410406
pop edi
pop esi
pop ebx
pop ebp
ret