joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4427f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [edx]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ecx
add eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x1c]
adc ecx, 0
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
mov word [esp + 8], ax
lea ecx, [esp + 8]
lea eax, [edx + 0x2c]
mov dword [esp + 0x1c], 7
push eax
mov dword [esp + 0x1c], 0
call fcn.00401628
mov dword [esp + 0x28], 0
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040d320
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x40e6af
push dword [esp + 8]
call fcn.004342db
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x40e8f0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jne 0x40e8fc
xor al, al
ret
and eax, 0xffffb1af
cmp dword [ecx + 0x14], 8
jb 0x40e909
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x442870
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push 0x44a744
call fcn.0043415b
add esp, 4
mov ecx, esi
push eax
sub esp, 8
call fcn.0040f0b0
cmp eax, 0xffffffff
jne 0x40e9ca
cmp dword [esi + 0x14], 8
jb 0x40e9b7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40ea1c
lea ecx, [esp + 0xc]
call fcn.0040d210
mov dword [esp + 0x58], 0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0040e720
mov bl, al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x40ea03
push dword [esp + 0x34]
call fcn.004342db
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0043341a
add esp, 0x50
ret
Function at 0x40f490
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x230]
push edi
cmp byte [ebx], 0
mov edi, dword [esp + 0x238]
je 0x40f4d3
lea ecx, [ebx + 4]
call fcn.00412400
test al, al
sete al
mov byte [ebx], al
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
call fcn.00434620
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40f4f5
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40f4fd
mov esi, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40f546
xor eax, eax
mov ecx, ebp
mov word [esp + 0x222], ax
lea eax, [esp + 0x18]
push eax
call fcn.00401628
lea ecx, [ebx + 4]
mov al, 1
mov byte [esp + 0x17], al
cmp ecx, ebp
je 0x40f541
push 0xffffffffffffffff
push 0
push ebp
call fcn.004019ce
mov al, byte [esp + 0x17]
mov byte [ebx], 1
jmp 0x40f548
xor al, al
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043341a
add esp, 0x220
ret 0xc
Function at 0x410e70
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 0x410e9c
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043341a
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 0x410ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410ec8
xor cl, cl
jmp 0x410eda
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.0043341a
add esp, 8
ret 4

Function at 0x410f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442dbb
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.0043453f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x410f6c
push 0x34
push 0
push esi
call fcn.00434620
add esp, 0xc
mov ecx, esi
call fcn.004109a0
mov esi, eax
jmp 0x410f6e
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.00412cb0
test al, al
jne 0x410fa0
test esi, esi
je 0x410f9c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x410ff9
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 0x410fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410f90
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 0x410f94
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.0043341a
mov esp, ebp
pop ebp
ret
Function at 0x4112a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x442e99
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.0043453f
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.00413150
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x411383
push dword [esp + 0x18]
call fcn.004342db
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 0x412370
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.00434620
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4123e7
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.0043341a
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.0043341a
add esp, 0x210
ret
Function at 0x412400
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 0x443200
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 0x412437
mov eax, dword [esi]
jmp 0x412439
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x412458
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 0x412462
mov eax, dword [esi]
jmp 0x412464
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4125c8
cmp dword [esi + 0x14], 8
jb 0x412480
mov eax, dword [esi]
jmp 0x412482
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 0x4124ff
push dword [esp + 0x14]
call fcn.004342db
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 0x4125c8
cmp dword [esi + 0x14], 8
jb 0x412528
mov eax, dword [esi]
jmp 0x41252a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412444
cmp dword [esi + 0x14], 8
jb 0x412541
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 0x4125b1
push dword [esp + 0x14]
call fcn.004342db
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 0x4125e0
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 0x41262e
cmp esi, 0x457280
je 0x412616
push 0xffffffffffffffff
push 0
push 0x457280
call fcn.004019ce
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.0043341a
add esp, 0x624
ret
xor eax, eax
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00434620
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x41270d
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.00434620
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 0x4126e9
test eax, eax
je 0x4126e9
add eax, eax
cmp eax, 0x412
jae 0x412725
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.0043341a
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.0043341a
add esp, 0x624
ret
mov ecx, dword [esp + 0x624]
xor al, al
pop esi
xor ecx, esp
call fcn.0043341a
add esp, 0x624
ret
call fcn.00434418
int3

Function at 0x412ae0
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.00439f60
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 0x412b17
jmp 0x412b40
mov ax, word [esp + esi*2 + 0x16]
lea edi, [edi + 2]
dec esi
mov word [edi - 2], ax
test esi, esi
jg 0x412b40
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x412b6a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004019ce
push 0x44a934
call fcn.0043415b
add esp, 4
mov ecx, ebx
push eax
push 0x44a934
call fcn.004021eb
cmp word [esp + 0x58], 0
jne 0x412b90
xor eax, eax
jmp 0x412b9d
lea eax, [esp + 0x58]
push eax
call fcn.0043415b
add esp, 4
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.004021eb
push 0x44a938
call fcn.0043415b
add esp, 4
mov ecx, ebx
push eax
push 0x44a938
call fcn.004021eb
push 0xffffffffffffffff
push 0
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00402149
cmp dword [ebx + 0x14], 8
jb 0x412bdb
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.0043341a
add esp, 0x94
ret
Function at 0x412d40
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 0x412d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412d8f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043341a
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.0043341a
add esp, 8
ret 4

Function at 0x412e60
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 + 0x45e160], ecx
inc eax
cmp eax, 0x100
jb 0x412e70
cmp eax, 0x800
jae 0x412f43
lea esp, [esp]
mov edx, dword [eax*4 + 0x45dd60]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e160]
mov dword [eax*4 + 0x45e160], edx
inc eax
cmp eax, 0x800
jb 0x412f20
lea ecx, [esp + 0x10]
mov dword [0x45ae30], 0x4422e0
call fcn.00413220
test eax, eax
je 0x412ffb
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 0x412f99
cmp dword [eax - 4], ebp
jne 0x412f99
cmp dword [eax], ebx
je 0x412fa8
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x412f83
or ecx, 0xffffffff
sub ecx, 0
je 0x412fe2
dec ecx
je 0x412fd1
dec ecx
jne 0x412ffb
cmp esi, 6
jb 0x412ffb
jne 0x412ff1
cmp edi, 0xf
jb 0x412ffb
mov dword [0x45ae30], 0x442200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp esi, 5
jb 0x412ffb
jne 0x412ff1
cmp edi, 6
jb 0x412ffb
cmp edi, 0xa
jmp 0x412fef
cmp esi, 6
jb 0x412ffb
jne 0x412ff1
cmp edi, 0x100c
je 0x412ffb
mov dword [0x45ae30], 0x442200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x413010
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 0x413040
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 0x41309a
test ecx, ecx
je 0x413083
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x413040
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043341a
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.0043341a
add esp, 8
ret 0xc
Function at 0x41f95f
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 0x41f96c
mov dword [esi*4 + 0x45a8b0], edi
inc esi
cmp esi, 0x100
jb 0x41f964
pop edi
pop esi
pop ebx
ret
Function at 0x42bea0
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 0x42bf0e
call ebx
test eax, eax
je 0x42bf0a
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043341a
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 0x42bf32
call ebx
test eax, eax
jne 0x42bef1
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.0040ff00
test eax, eax
sete bl
test bl, bl
je 0x42bf61
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.00412dc0
test al, al
je 0x42bf87
test bl, bl
je 0x42bf87
mov cl, 1
jmp 0x42bf89
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.0043341a
mov esp, ebp
pop ebp
ret 8

Function at 0x42c9be
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 0x42c9ce
mov dword [edi], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], esi
test ecx, ecx
je 0x42ca26
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 0x42ca03
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
test eax, eax
jne 0x42ca26
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42ca18
mov esi, 0x80004005
jmp 0x42ca26
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 0x43015c
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 0x43017d
xor eax, eax
jmp 0x4302bf
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 0x4301b0
mov ecx, dword [ebp - 4]
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x4301a7
inc edx
cmp edx, ecx
jb 0x43019a
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 0x4302a3
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x430236
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x18], ebx
test al, al
je 0x4301db
cmp al, 0xff
jne 0x430263
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 0x430277
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 0x430225
cmp al, 0xff
jne 0x430277
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 0x4301fc
dec ecx
shl esi, cl
and esi, 7
je 0x4301c7
movzx eax, byte [esi + 0x449f84]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x44a420], 0
mov al, byte [ecx + 4]
je 0x430261
test al, al
je 0x430261
cmp al, 0xff
jne 0x4301c7
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 0x43018d
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 0x43026c
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 0x4304b0
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