joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dce0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x443ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x40de11
cmp edi, dword [ebp + 0x14]
jbe 0x40dd31
call fcn.004349e5
mov ebx, 8
cmp dword [ebp + 0x18], ebx
lea esi, [ebp + 4]
jb 0x40dd42
mov eax, dword [esi]
jmp 0x40dd44
mov eax, esi
cmp word [eax + edi*2], 0x2f
je 0x40dd6b
cmp edi, dword [ebp + 0x14]
jbe 0x40dd55
call fcn.004349e5
cmp dword [ebp + 0x18], ebx
jb 0x40dd5e
mov eax, dword [esi]
jmp 0x40dd60
mov eax, esi
cmp word [eax + edi*2], 0x5c
jne 0x40de04
push edi
push ebp
xor ebx, ebx
lea esi, [esp + 0x20]
call fcn.00407e43
xor esi, esi
mov dword [esp + 0x40], esi
cmp dword [esp + 0x2c], esi
jne 0x40dd93
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], 8
jmp 0x40dde4
lea ecx, [esp + 0x18]
push ecx
call fcn.0040d4f0
add esp, 4
test al, al
mov ebx, 8
jne 0x40ddd8
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x1c]
jae 0x40ddb7
lea eax, [esp + 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ddd8
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x40ddf3
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40ddeb
mov dword [esp + 0x40], 0xffffffff
cmp dword [esp + 0x30], ebx
jb 0x40ddf3
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043438b
add esp, 4
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], esi
mov word [esp + 0x1c], si
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x40dd27
push ebp
call fcn.0040d4f0
add esp, 4
test al, al
jne 0x40de3d
cmp dword [ebp + 0x18], 8
jb 0x40de29
mov eax, dword [ebp + 4]
jmp 0x40de2c
lea eax, [ebp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40de3d
xor al, al
jmp 0x40de46
push ebp
call fcn.0040d6a0
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00434390
add esp, 0x30
ret
Function at 0x40ec80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x445f18
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x458220]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0x4494bc
lea esi, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], bx
call fcn.0040124c
mov dword [esp + 0x30], ebx
cmp byte [edi], bl
je 0x40ecf5
lea esi, [edi + 4]
push esi
call fcn.0040d7d0
add esp, 4
push esi
call fcn.0040d4f0
add esp, 4
test al, al
setne al
cmp al, bl
mov byte [edi], al
jne 0x40ecf5
mov eax, esi
call fcn.00407d94
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040ba80
add esp, 8
cmp dword [esp + 0x24], 8
mov bl, al
mov byte [edi], bl
jb 0x40ed1e
mov edx, dword [esp + 0x10]
push edx
call fcn.0043438b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x40f2c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
mov edi, eax
lea ebp, [edi + 0xc]
test ebp, ebp
je 0x40f2d9
mov eax, dword [ebp]
test eax, eax
je 0x40f2d9
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 8]
test eax, eax
jne 0x40f2f7
test ebp, ebp
je 0x40f2f2
mov ebp, dword [ebp]
test ebp, ebp
je 0x40f2f2
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebp
ret
cmp dword [eax + 4], 0
je 0x40f2e0
push esi
add eax, 0xc
push eax
push 4
push edi
push 0x40ef60
push 0
push 0
call fcn.0043568f
mov ecx, dword [edi + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [edi + 8]
add esp, 0x18
cmp dword [edx + 0x10], 0
jne 0x40f364
mov eax, edx
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi + 8]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x40f341
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
test ebp, ebp
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
je 0x40f35e
mov ebp, dword [ebp]
test ebp, ebp
je 0x40f35e
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
xor al, al
pop ebp
ret
mov ecx, edx
mov byte [ecx + 8], 1
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40f38b
mov esi, dword [edi + 8]
call fcn.0040f160
mov ecx, dword [edi + 8]
mov byte [ecx + 8], 0
test ebp, ebp
je 0x40f39d
mov ebp, dword [ebp]
test ebp, ebp
je 0x40f39d
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop edi
mov al, 1
pop ebp
ret
Function at 0x40fa00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call fcn.00434680
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40fa77
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
call fcn.0040124c
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00434390
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.00434390
add esp, 0x210
ret

Function at 0x40faf0
Capabilities:
Set file attributes

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x40fb07
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x40fb20
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x40fb2f
mov eax, dword [eax + 4]
jmp 0x40fb32
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x40fb48
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
Function at 0x40fb60
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, 8
cmp dword [ebp + 0x18], esi
push edi
lea edi, [ebp + 4]
jb 0x40fb7b
mov eax, dword [edi]
jmp 0x40fb7d
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fb91
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x1c
ret
cmp dword [ebp + 0x18], esi
jb 0x40fb9a
mov eax, dword [edi]
jmp 0x40fb9c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x40fc71
cmp dword [ebp + 0x18], esi
jb 0x40fbb9
mov eax, dword [edi]
jmp 0x40fbbb
mov eax, edi
push ebx
xor ebx, ebx
lea esi, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], bx
call fcn.0040124c
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40fbe7
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
mov esi, 8
sete bl
cmp dword [esp + 0x28], esi
jb 0x40fc0c
mov eax, dword [esp + 0x14]
push eax
call fcn.0043438b
add esp, 4
test bl, bl
pop ebx
jne 0x40fc71
cmp dword [ebp + 0x18], esi
jb 0x40fc1a
mov eax, dword [edi]
jmp 0x40fc1c
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fb88
cmp dword [ebp + 0x18], esi
jb 0x40fc34
mov eax, dword [edi]
jmp 0x40fc36
mov eax, edi
xor ecx, ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ecx
mov word [esp + 0x10], cx
call fcn.0040124c
mov ecx, dword [esp + 0x2c]
mov eax, esi
call fcn.0040faf0
cmp dword [esp + 0x24], 8
jb 0x40fc71
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043438b
add esp, 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x1c
ret
Function at 0x40fc80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x4597fc], edi
mov esi, ecx
je 0x40fccc
push ebx
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov eax, 0x4597e8
call fcn.00401318
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00434390
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call fcn.00434680
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x40fd9a
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call fcn.00434680
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x40fd78
cmp eax, edi
je 0x40fd78
mov word [esp + eax*2 + 0x214], di
lea eax, [esp + 0x214]
call fcn.0040124c
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00434390
add esp, 0x624
ret
lea eax, [esp + 8]
call fcn.0040124c
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.00434390
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.00434390
add esp, 0x624
ret

Function at 0x40fdc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call fcn.00434680
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x40fe0c
mov edi, dword [edi + 4]
jmp 0x40fe0f
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x40fe19
mov ebx, dword [ebx + 4]
jmp 0x40fe1c
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x40fe5c
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
call fcn.0040124c
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00434390
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.00434390
add esp, 0x210
ret
Function at 0x4101b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x50
mov eax, dword [0x458220]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
cdq
push esi
push edx
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0040be70
add esp, 8
push 0xffffffffffffffff
push esi
xor ebx, ebx
mov eax, edi
call fcn.00401318
push 0x4494d4
call fcn.004342fa
add esp, 4
mov ebx, eax
push 0x4494d4
mov eax, esi
call fcn.00404286
lea eax, [esp + 0x10]
push eax
call fcn.004342fa
add esp, 4
lea ecx, [esp + 0x10]
mov ebx, eax
push ecx
mov eax, esi
call fcn.00404286
push 0x4494d8
call fcn.004342fa
add esp, 4
mov ebx, eax
push 0x4494d8
mov eax, esi
call fcn.00404286
push 0xffffffffffffffff
push 0
mov eax, ebp
call fcn.004041e2
cmp dword [esi + 0x18], 8
jb 0x41024d
mov esi, dword [esi + 4]
jmp 0x410250
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x54]
pop esi
xor edx, edx
cmp eax, 0xffffffff
pop ebp
setne dl
pop ebx
xor ecx, esp
mov al, dl
call fcn.00434390
add esp, 0x50
ret

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

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4602c0], ecx
add edx, 1
cmp edx, 0x100
jb 0x4102a3
cmp edx, 0x800
jae 0x41038b
nop
mov eax, dword [edx*4 + 0x45fec0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4602c0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x4602bc], eax
jb 0x410360
mov dword [0x45ca94], 0x4103f0
call fcn.004105c0
test eax, eax
jne 0x4103a8
mov dword [0x45ca94], 0x4104a0
pop ecx
ret
Function at 0x41e7d1
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41e7e8
add eax, eax
xor eax, 0x4c11db7
jmp 0x41e7ea
add eax, eax
dec edx
test edx, edx
jg 0x41e7db
mov dword [ecx*4 + 0x45ca98], eax
inc ecx
cmp ecx, 0x100
jb 0x41e7d3
ret
Function at 0x42c4c6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x458220]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00434680
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x42c519
xor al, al
jmp 0x42c552
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42c53a
cmp dword [ebp - 0x80], edi
je 0x42c515
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x42c515
lea eax, [ebp - 0x7c]
call fcn.0040124c
cmp dword [ebp - 0x80], edi
je 0x42c550
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.00434390
add ebp, 0x398
leave
ret

Function at 0x42c569
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00434680
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x42c5cc
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x42c5d0
Capabilities:
Query environment variable

Disassembly:
push 0x2c
mov eax, 0x444949
call fcn.004363af
push 1
lea eax, [ebp - 0x30]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x30], ebx
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0x25
call fcn.00403eca
cmp eax, 0xffffffff
mov eax, edi
jne 0x42c60f
call fcn.00403d4c
mov eax, esi
jmp 0x42c6aa
lea esi, [ebp - 0x2c]
call fcn.00403d4c
mov dword [ebp - 4], ebx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
jb 0x42c628
mov eax, dword [eax]
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x42c63d
mov eax, edi
jmp 0x42c693
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004342b0
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
pop ecx
jb 0x42c663
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x30]
push eax
call ebx
test eax, eax
jbe 0x42c687
cmp eax, esi
ja 0x42c687
mov ecx, dword [ebp - 0x30]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x2c]
call fcn.0040124c
push dword [ebp - 0x30]
call fcn.0043512c
pop ecx
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
call fcn.00403d4c
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004012ba
mov eax, dword [ebp - 0x34]
call fcn.00436432
ret
Function at 0x42d6c0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov eax, 0x8000
cmp dword [esp + 0x18], eax
push ebp
push edi
jbe 0x42d6d5
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], ebp
je 0x42d7dd
cmp eax, ebp
je 0x42d7dd
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0xc], ecx
jae 0x42d7dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42d74c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d762
mov ecx, dword [esp + 0x10]
push 1
push ebp
push ebp
push ecx
call fcn.0043e4d0
xor ecx, ecx
add eax, edi
adc edx, ecx
jmp 0x42d766
xor eax, eax
xor edx, edx
push ebp
push ebx
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
lea eax, [esi + 4]
push ecx
xor ebx, ebx
mov word [ecx + 4], bp
call fcn.00401318
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp eax, ebp
jne 0x42d7dd
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi]
add eax, ecx
push eax
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [esp + 0xc], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, ebp
jne 0x42d713
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
pop edi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x42da30
Capabilities:
Get file size

Disassembly:
push ecx
mov edx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42da5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42da5e
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.0043e4d0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x42db94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42dba2
and dword [esi], 0
and dword [ebp + 0x10], 0
cmp dword [ebp + 0xc], 0
jbe 0x42dbdf
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42dbb9
mov eax, dword [ebp + 0xc]
push 0
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 esi, esi
je 0x42dbdb
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
je 0x42dbe3
xor eax, eax
jmp 0x42dc00
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42dbf4
mov eax, 0x80004005
jmp 0x42dc00
jle 0x42dc00
and eax, 0xffff
or eax, 0x80070000
pop esi
pop ebp
ret 0xc

Function at 0x42f8c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42fa13
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42f903
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42f908
inc esi
cmp esi, dword [ebp - 8]
jb 0x42f8fa
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42f9f4
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42f987
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42f934
cmp cl, 0xff
jne 0x42f9b6
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42f9c7
movzx edi, byte [edx + 0x44a8d8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42f977
cmp bl, 0xff
jne 0x42f9c4
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42f94f
dec ecx
shl edx, cl
and edx, 7
je 0x42f921
movzx ecx, byte [edx + 0x44a8d8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x44a8d0], 0
mov cl, byte [ebx + 4]
je 0x42f9b3
test cl, cl
je 0x42f9b3
cmp cl, 0xff
jne 0x42f921
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42f8f5
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42f8f5
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret
Function at 0x4318b7
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x431dce
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x431e05
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x431df8
cmp esi, edi
jae 0x431ed5
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x431e75
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x459188]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x431ebd
cmp dword [ebp + 8], 6
jbe 0x431ebd
cmp edx, 4
jne 0x431ebd
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x431e17
pop edi
pop esi
pop ebx
leave
ret 4