joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410ed0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x410efc
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410f28
xor cl, cl
jmp 0x410f3a
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
mov dword [esi + 4], ecx
mov cl, 1
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0xc]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4

Function at 0x410f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442d9b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0043451f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x410fcc
push 0x34
push 0
push esi
call fcn.00434600
add esp, 0xc
mov ecx, esi
call fcn.00410a00
mov esi, eax
jmp 0x410fce
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.00412ca0
test al, al
jne 0x411000
test esi, esi
je 0x410ffc
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x411059
push 1
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push dword [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x411034
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410ff0
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
xorps xmm0, xmm0
push edx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esi + 8]
push ecx
lea ecx, [esi + 8]
call dword [eax + 0x14]
test eax, eax
jne 0x410ff4
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x411300
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x442e79
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.0043451f
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x44979c
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
call fcn.00401628
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00413130
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x4113e3
push dword [esp + 0x18]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x412360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00434600
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4123d7
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.00401628
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004333fa
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 0x210
ret
Function at 0x4123f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4431a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x412427
mov eax, dword [esi]
jmp 0x412429
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x412448
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x412452
mov eax, dword [esi]
jmp 0x412454
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4125b8
cmp dword [esi + 0x14], 8
jb 0x412470
mov eax, dword [esi]
jmp 0x412472
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401628
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
push 0
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4124ef
push dword [esp + 0x14]
call fcn.004342bb
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test al, al
jne 0x4125b8
cmp dword [esi + 0x14], 8
jb 0x412518
mov eax, dword [esi]
jmp 0x41251a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412434
cmp dword [esi + 0x14], 8
jb 0x412531
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00401628
mov dword [esp + 0x38], 1
and edi, 0xffffb1af
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4125a1
push dword [esp + 0x14]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4125d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x620], eax
cmp dword [0x457290], 0
push esi
mov esi, ecx
je 0x41261e
cmp esi, 0x457280
je 0x412606
push 0xffffffffffffffff
push 0
push 0x457280
call fcn.004019ce
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
xor eax, eax
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00434600
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4126fd
xor eax, eax
push 0x410
push eax
mov word [esp + 0x216], ax
mov word [esp + 0x218], ax
lea eax, [esp + 0x21a]
push eax
call fcn.00434600
add esp, 0xc
lea eax, [esp + 0x210]
push 0x208
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4126d9
test eax, eax
je 0x4126d9
add eax, eax
cmp eax, 0x412
jae 0x412715
xor ecx, ecx
mov word [esp + eax + 0x210], cx
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.00401628
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.00401628
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
mov ecx, dword [esp + 0x624]
xor al, al
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
call fcn.004343f8
int3

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

Disassembly:
sub esp, 0x94
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov dword [esp + 0xc], edx
xor esi, esi
cdq
push edi
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x58]
mov ebp, eax
push 0
push 0xa
push edx
push ebp
call fcn.004384d0
lea ecx, [eax + eax*4]
add ecx, ecx
sub ebp, ecx
add ebp, 0x30
mov word [esp + esi*2 + 0x18], bp
inc esi
mov ebp, eax
or eax, edx
jne 0x412b07
jmp 0x412b30
mov ax, word [esp + esi*2 + 0x16]
lea edi, [edi + 2]
dec esi
mov word [edi - 2], ax
test esi, esi
jg 0x412b30
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x412b5a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004019ce
push 0x44a938
call fcn.0043413b
add esp, 4
mov ecx, ebx
push eax
push 0x44a938
call fcn.004021eb
cmp word [esp + 0x58], 0
jne 0x412b80
xor eax, eax
jmp 0x412b8d
lea eax, [esp + 0x58]
push eax
call fcn.0043413b
add esp, 4
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.004021eb
push 0x44a93c
call fcn.0043413b
add esp, 4
mov ecx, ebx
push eax
push 0x44a93c
call fcn.004021eb
push 0xffffffffffffffff
push 0
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00402149
cmp dword [ebx + 0x14], 8
jb 0x412bcb
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
sete al
mov ecx, dword [esp + 0x94]
pop ebp
pop ebx
xor ecx, esp
call fcn.004333fa
add esp, 0x94
ret
Function at 0x412d30
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
push eax
push dword [ecx]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412d7f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4

Function at 0x412e30
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 4], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x100000
mov dword [ebx], 0
jmp 0x412e60
cmp esi, 0x100000
mov dword [esp + 0x10], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
add dword [ebx], ecx
test al, al
je 0x412eba
test ecx, ecx
je 0x412ea3
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x412e60
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x14]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 0xc
Function at 0x412f00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
push ebp
push esi
push edi
lea esp, [esp]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x45e180], ecx
inc eax
cmp eax, 0x100
jb 0x412f10
cmp eax, 0x800
jae 0x412fe3
lea esp, [esp]
mov edx, dword [eax*4 + 0x45dd80]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e180]
mov dword [eax*4 + 0x45e180], edx
inc eax
cmp eax, 0x800
jb 0x412fc0
lea ecx, [esp + 0x10]
mov dword [0x45ae50], 0x4422c0
call fcn.00413200
test eax, eax
je 0x41309b
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov ebp, dword [esp + 0x18]
mov esi, edi
shr esi, 8
mov eax, 0x4571f8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x14]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x1c]
jne 0x413039
cmp dword [eax - 4], ebp
jne 0x413039
cmp dword [eax], ebx
je 0x413048
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x413023
or ecx, 0xffffffff
sub ecx, 0
je 0x413082
dec ecx
je 0x413071
dec ecx
jne 0x41309b
cmp esi, 6
jb 0x41309b
jne 0x413091
cmp edi, 0xf
jb 0x41309b
mov dword [0x45ae50], 0x4421e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp esi, 5
jb 0x41309b
jne 0x413091
cmp edi, 6
jb 0x41309b
cmp edi, 0xa
jmp 0x41308f
cmp esi, 6
jb 0x41309b
jne 0x413091
cmp edi, 0x100c
je 0x41309b
mov dword [0x45ae50], 0x4421e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x41f93f
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov edi, esi
push 8
shl edi, 0x18
pop ebx
lea ecx, [edi + edi]
mov edx, edi
mov eax, ecx
mov edi, ecx
xor eax, 0x4c11db7
and edx, 0x80000000
cmovne edi, eax
dec ebx
test ebx, ebx
jg 0x41f94c
mov dword [esi*4 + 0x45a8d0], edi
inc esi
cmp esi, 0x100
jb 0x41f944
pop edi
pop esi
pop ebx
ret
Function at 0x42be80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, ecx
xorps xmm0, xmm0
push edi
lea edi, [eax + 8]
mov dword [esp + 0x10], eax
push 1
lea eax, [esp + 0x28]
movlpd qword [esp + 0x24], xmm0
push eax
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x20], esi
cmp esi, 0xffffffff
jne 0x42beee
call ebx
test eax, eax
je 0x42beea
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x42bf12
call ebx
test eax, eax
jne 0x42bed1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
add ecx, dword [esp + 0xc]
push 0
adc eax, 0
add ecx, dword [ebp + 8]
adc eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0040ff60
test eax, eax
sete bl
test bl, bl
je 0x42bf41
mov eax, dword [esp + 0x10]
mov byte [eax + 0x34], 1
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push dword [esp + 0x28]
mov ecx, edi
movlpd qword [esp + 0x18], xmm0
push esi
call fcn.00412db0
test al, al
je 0x42bf67
test bl, bl
je 0x42bf67
mov cl, 1
jmp 0x42bf69
xor cl, cl
xor edx, edx
mov eax, 0x80004005
test cl, cl
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
cmovne eax, edx
pop ebx
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret 8

Function at 0x42c99e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
je 0x42c9ae
mov dword [edi], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
test ecx, ecx
je 0x42ca06
mov eax, 0x8000
cmp ecx, eax
push esi
cmovb eax, ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x42c9e3
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
test eax, eax
jne 0x42ca06
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42c9f8
mov esi, 0x80004005
jmp 0x42ca06
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x43013c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x43015d
xor eax, eax
jmp 0x43029f
add dword [ebp + 8], 5
lea eax, [edx - 4]
push ebx
or ebx, 0xffffffff
add eax, ecx
mov dword [ebp - 4], eax
lea edx, [edi + ecx]
mov dword [ebp - 0xc], edx
cmp edx, eax
jae 0x430190
mov ecx, dword [ebp - 4]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x430187
inc edx
cmp edx, ecx
jb 0x43017a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov edi, edx
sub edi, ecx
cmp edx, eax
jae 0x430283
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x430216
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x18], ebx
test al, al
je 0x4301bb
cmp al, 0xff
jne 0x430243
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 8]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, edx
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x430257
movzx eax, byte [esi + 0x449f84]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x430205
cmp al, 0xff
jne 0x430257
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0x10]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0x14]
jmp 0x4301dc
dec ecx
shl esi, cl
and esi, 7
je 0x4301a7
movzx eax, byte [esi + 0x449f84]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x44a420], 0
mov al, byte [ecx + 4]
je 0x430241
test al, al
je 0x430241
cmp al, 0xff
jne 0x4301a7
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
jmp 0x43016d
mov edx, dword [ebp - 0xc]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x18]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x43024c
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430490
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret
Function at 0x4307c6
Capabilities:
Check os version
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x456178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x11c], ebx
mov ecx, ebx
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x45ae60], cl
inc ecx
cmp ecx, 0x100
jb 0x4307e6
movzx edi, byte [ebx + str.cw]
mov eax, edi
mov ecx, edi
and al, 0x80
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
shl ecx, 8
and esi, 0x1b
xor esi, eax
and esi, 0xff
mov edx, esi
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x45bf60], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
shl esi, 8
or ecx, edx
or esi, edx
shl eax, 8
or eax, edx
shl esi, 8
or esi, edi
shl ecx, 8
mov dword [ebx*4 + 0x45c360], eax
or ecx, edi
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x45c760], ecx
movzx edi, byte [ebx + 0x45ae60]
mov dword [ebx*4 + 0x45cb60], esi
mov eax, edi
and al, 0x80
mov ebx, 0xff
movzx esi, al
neg esi
lea eax, [edi + edi]
sbb esi, esi
and esi, 0x1b
xor esi, eax
and esi, ebx
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, ebx
mov eax, ecx
and al, 0x80
movzx edx, al
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x1b
xor edx, eax
and edx, ebx
mov dword [ebp - 0x120], edx
mov ebx, edx
mov eax, dword [ebp - 0x120]
xor edx, esi
xor eax, ecx
xor ebx, edi
mov ecx, eax
mov dword [ebp - 0x120], eax
xor edx, edi
xor ecx, edi
mov edi, eax
mov eax, edx
shl eax, 8
xor edi, esi
mov esi, dword [ebp - 0x11c]
or eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x45af60], eax
mov eax, ecx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
mov dword [esi*4 + 0x45b360], eax
mov eax, ebx
shl eax, 8
or eax, edi
shl edi, 8
or edi, edx
shl eax, 8
shl edi, 8
or eax, edx
or edi, ecx
shl eax, 8
shl edi, 8
or eax, ecx
or edi, ebx
mov dword [esi*4 + 0x45b760], eax
mov ebx, esi
mov dword [ebx*4 + 0x45bb60], edi
inc ebx
mov dword [ebp - 0x11c], ebx
cmp ebx, 0x100
jb 0x4307fc
lea eax, [ebp - 0x118]
mov dword [0x45e164], 0x431477
push eax
mov dword [0x45e160], 0x4314d1
mov dword [0x45e168], 0x43156d
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4309e6
cmp dword [ebp - 0x114], 5
sbb eax, eax
inc eax
je 0x4309e6
lea ecx, [ebp - 0x140]
call fcn.00413200
test eax, eax
je 0x4309e6
mov eax, dword [ebp - 0x128]
shr eax, 0x19
and eax, 1
je 0x4309e6
mov dword [0x45e164], 0x432218
mov dword [0x45e160], 0x432270
mov dword [0x45e168], 0x4323a1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x4309f4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x430a2a
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x430a1d
cmp esi, ecx
jae 0x430b16
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x430aa8
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
and eax, 0xff
shr ecx, 8
and ecx, 0xff
movzx eax, byte [eax + str.cw]
movzx ecx, byte [ecx + str.cw]
or edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
movzx eax, byte [eax + 0x44a550]
xor ecx, eax
or ecx, edx
jmp 0x430afc
cmp edi, 6
jbe 0x430afc
cmp edx, 4
jne 0x430afc
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x430a3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4