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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov byte [ebp], 0
test esi, esi
mov ebx, ecx
mov dword [edi], 0
je 0x41f3da
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41f3da
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41f37d
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f36b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x41f350
pop edi
mov byte [ebp], 1
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f3ec
push eax
call fcn.0041e240
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x41f374
mov byte [ebp], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x41f3bf
push eax
push esi
push 1
push ecx
call fcn.0042a3cf
add esp, 0x10
cmp eax, esi
mov dword [edi], eax
jne 0x41f3a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test byte [eax + 0xc], 0x20
je 0x41f343
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f3ec
call fcn.0041e1b0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f3ec
mov edx, dword [ecx]
push str.No_file_is_open.
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f3ec
mov eax, dword [ecx]
push str.NULL_buf_or_bufSize
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x41f400
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.0041eda0
test al, al
jne 0x41f432
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41f426
mov eax, dword [ecx]
push str.Failed_to_write_because_file_is_not_open.
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x14
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
test edi, edi
je 0x41f44b
mov dword [edi], 0
mov dword [edi + 4], 0
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, ebp
or ecx, eax
je 0x41f500
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x41f47a
jg 0x41f473
cmp ebp, 0x989680
jbe 0x41f47a
mov esi, 0x989680
jmp 0x41f47c
mov esi, ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x41f4ae
lea edx, [esp + 0x10]
push 0
push edx
push esi
push ebx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41f50c
mov edx, dword [esp + 0x10]
cmp edx, esi
jne 0x41f50c
jmp 0x41f4cd
mov eax, dword [ecx + 8]
test eax, eax
je 0x41f4cd
push eax
push 1
push esi
push ebx
call fcn.0042a4b7
add esp, 0x10
cmp eax, 1
jne 0x41f53c
mov edx, esi
mov dword [esp + 0x10], edx
add ebx, esi
sub ebp, esi
mov esi, dword [esp + 0x24]
mov eax, 0
sbb esi, eax
cmp edi, eax
mov dword [esp + 0x24], esi
je 0x41f4f2
mov esi, dword [edi]
add esi, edx
mov dword [edi], esi
mov ecx, dword [edi + 4]
adc ecx, eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x24]
mov eax, ebp
or eax, ecx
jne 0x41f461
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 0x14
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x41f530
mov edx, dword [esi]
push 1
push str.WriteFileError
mov ecx, esi
call dword [edx + 0x24]
mov ecx, esi
call fcn.0041e1b0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x14
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41f54e
mov edx, dword [ecx]
push str.fwrite_failed.
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 0x14
Function at 0x41f560
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44ed58
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
sub esp, 0x28
cmp eax, 0xffffffff
je 0x41f5f5
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f5e0
mov esi, dword [esp + 0x40]
test esi, esi
je 0x41f5e0
push ebx
lea ecx, [esp + 0xc]
call fcn.00406c80
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.00407c20
mov ebx, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00427680
push eax
mov ecx, esi
call dword [ebx + 0x14]
mov eax, dword [esi]
push str.Failed_to_get_file_size__32_
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], edi
call fcn.00406f80
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x41f61c
push ecx
call fcn.0044d330
push eax
call fcn.0042a5c1
add esp, 8
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov ecx, dword [esp + 0x28]
or eax, 0xffffffff
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x41f630
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44ed78
push eax
mov dword fs:[0], esp
mov eax, dword [ecx + 4]
sub esp, 0x2c
cmp eax, 0xffffffff
push edi
je 0x41f6f2
lea ecx, [esp + 4]
xor edi, edi
push ecx
push eax
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x41f6d2
push esi
mov esi, dword [esp + 0x44]
cmp esi, edi
je 0x41f6b9
lea ecx, [esp + 0xc]
call fcn.00406c80
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], edi
call fcn.00407c20
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00427680
push eax
mov ecx, esi
call dword [edi + 0x14]
mov edx, dword [esi]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call dword [edx + 0x14]
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00406f80
or eax, 0xffffffff
pop esi
or edx, 0xffffffff
pop edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.0041f740
add esp, 8
pop edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x41f71a
push ecx
call fcn.0044d330
push eax
call fcn.0042a639
add esp, 8
pop edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [esp + 0x30]
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x41f8b0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret
Function at 0x420520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44ed9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 8]
mov ecx, edi
call fcn.00406c80
xor eax, eax
mov ecx, edi
push eax
mov dword [esp + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi], vtable.ParseEngine.0
call fcn.004057f0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4205a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44edbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 8]
mov ecx, edi
call fcn.00406c80
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov ecx, ebx
mov dword [esi + 0x34], 0
mov dword [esi], vtable.ParseEngine.0
call fcn.0040f280
push eax
mov ecx, ebx
call fcn.00427680
push eax
mov ecx, edi
call fcn.00406730
push 0
mov ecx, edi
call fcn.004057f0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x420bf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0040f280
cmp eax, 0x10
jae 0x420c1a
mov edi, 0x10
push 0
mov ecx, esi
call fcn.00410150
dec edi
jne 0x420c0e
mov al, byte [esp + 0x34]
test al, al
jne 0x420c2a
push esi
mov ecx, ebx
call fcn.00420a00
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x420c40
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x420c56
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x10
ret 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x420d77
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x420d77
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x30]
sar ebp, 7
sub eax, 0
je 0x420d42
dec eax
je 0x420c95
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x38]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov edi, dword [ebx + 0x40]
xor eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x3c]
xor ecx, eax
mov eax, dword [esi + 0xc]
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x44]
lea ecx, [esp + 0x10]
push edi
xor eax, edx
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.004219e0
lea eax, [ebp - 1]
add esi, 0x10
test eax, eax
jle 0x420d68
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
xor ecx, edx
mov edx, dword [esi + 0xc]
add edi, 0x10
xor edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x24], edx
call fcn.004219e0
mov eax, dword [esp + 0x34]
add esi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x420ce7
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
test ebp, ebp
jle 0x420d68
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
push edi
push esi
mov ecx, ebx
call fcn.004219e0
mov eax, dword [esp + 0x34]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x420d4e
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14
Function at 0x4214d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [eax], 0
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x421508
mov ecx, dword [esp + 0x50]
push str.AES_not_yet_initialized.
mov edx, dword [ecx]
call dword [edx + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 0x1c
mov edx, dword [edi + 0x30]
cmp edx, 2
je 0x421531
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x421531
mov ecx, dword [esp + 0x50]
push str.AES_direction_should_be_for_encryption.
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 0x1c
mov esi, dword [esp + 0x38]
test esi, esi
je 0x42168d
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x42168d
shr eax, 7
mov ecx, eax
mov eax, edx
sub eax, 0
mov dword [esp + 0x38], ecx
je 0x421664
dec eax
je 0x42158c
mov esi, dword [esp + 0x50]
push str.Invalid_AES_mode
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
mov eax, dword [edi + 0x30]
mov ecx, esi
push eax
push str.mode
call fcn.0041e100
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x24
ret 0x1c
mov al, byte [esp + 0x4c]
test al, al
je 0x4215ae
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
mov ebx, dword [edi + 0x38]
mov ebp, dword [edi + 0x3c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], edx
jmp 0x4215c5
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
test ecx, ecx
jbe 0x42164f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00421e90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor eax, ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ebp
mov ebp, dword [esp + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
xor ebp, ebx
mov ebx, dword [esi]
mov dword [esp + 0x20], ebp
mov dword [edi], eax
mov ebp, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [edi + 8], edx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x4c]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x4c], eax
jne 0x4215d5
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 0xc], edx
jmp 0x421684
test ecx, ecx
jbe 0x421684
mov ebx, dword [esp + 0x40]
mov ebp, ecx
push ebx
push esi
mov ecx, edi
call fcn.00421e90
add esi, 0x10
add ebx, 0x10
dec ebp
jne 0x42166e
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
shl ecx, 4
mov dword [eax], ecx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x24
ret 0x1c
Function at 0x4218d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x48], edx
jle 0x4219db
push ebx
push edi
lea eax, [esi + 0x5e]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x46020c]
mov ecx, dword [ecx*4 + 0x460a0c]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x46060c]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x45fe0c]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x46060c]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x460a0c]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x46020c]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x45fe0c]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x46060c]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x460a0c]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x46020c]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x45fe0c]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x46060c]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x460a0c]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x46020c]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x45fe0c]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x48]
cmp edx, ecx
jl 0x4218e6
pop edi
pop ebx
pop esi
ret
Function at 0x424ce0
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
mov al, byte [0x4731f4]
test al, al
jne 0x424d73
push esi
push edi
push 0x400
call fcn.0042915b
add esp, 4
mov dword [0x4731f8], eax
xor esi, esi
push 8
push esi
call fcn.00424da0
mov ecx, dword [0x4731f8]
add esp, 8
shl eax, 0x18
mov dword [ecx + esi*4], eax
mov edx, 8
mov ecx, dword [0x4731f8]
mov eax, dword [ecx + esi*4]
mov edi, eax
and edi, 0x80000000
neg edi
sbb edi, edi
add eax, eax
and edi, 0x4c11db7
xor edi, eax
dec edx
mov dword [ecx + esi*4], edi
jne 0x424d1f
mov ecx, dword [0x4731f8]
push 0x20
mov edx, dword [ecx + esi*4]
push edx
call fcn.00424da0
mov ecx, dword [0x4731f8]
add esp, 8
mov dword [ecx + esi*4], eax
inc esi
cmp esi, 0xff
jbe 0x424d03
pop edi
mov byte [0x4731f4], 1
pop esi
ret
Function at 0x425060
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x42507c
xor eax, eax
pop esi
add esp, 0x400
ret
push ebx
push ebp
push edi
call fcn.00424ce0
mov ebp, dword [esp + 0x41c]
or edx, 0xffffffff
test ebp, ebp
jne 0x4250c8
mov edi, dword [0x4731f8]
mov eax, dword [esp + 0x414]
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
and ecx, 0xff
xor ecx, ebx
shr edx, 8
mov ecx, dword [edi + ecx*4]
xor edx, ecx
inc eax
dec esi
jne 0x42509f
pop edi
mov eax, edx
pop ebp
pop ebx
not eax
pop esi
add esp, 0x400
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [0x4731f8]
mov ecx, dword [esp + 0x414]
xor eax, eax
mov al, byte [ecx]
mov ebx, dword [esp + eax*4 + 0x10]
inc ebx
mov dword [esp + eax*4 + 0x10], ebx
mov ebx, edx
and ebx, 0xff
xor ebx, eax
shr edx, 8
mov eax, dword [edi + ebx*4]
xor edx, eax
inc ecx
dec esi
jne 0x4250e2
xor edi, edi
xor eax, eax
lea ecx, [esp + 0x10]
mov esi, 7
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x425112
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x42512a
cmp ebx, 0x100
jge 0x42514f
mov esi, 0x100
lea ecx, [esp + ebx*4 + 0x10]
sub esi, ebx
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x425145
shr edi, 2
cmp edi, eax
pop edi
sbb ecx, ecx
mov eax, edx
neg ecx
mov word [ebp], cx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret

Function at 0x427690
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
jge 0x4276a3
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x4276b2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
xor bl, bl
call fcn.0041e640
mov esi, eax
test esi, esi
jne 0x4276c6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push edi
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4276d5
mov bl, 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret

Function at 0x42cb1c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4542a8
push 0x42d7a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x4736c0]
test eax, eax
je 0x42cb64
mov dword [ebp - 4], 1
call eax
jmp 0x42cb60
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x42cb6d
jmp 0x431102
push 0xa
call fcn.0042d8b9
push 0x16
call fcn.00433071
pop ecx
pop ecx
push 3
call fcn.0042923c

Function at 0x42cb72
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4542c0
push 0x42d7a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.0042cb1c]
test eax, eax
je 0x42cbba
mov dword [ebp - 4], 1
call eax
jmp 0x42cbb6
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x42cbc3
jmp fcn.0042cb1c
Function at 0x431119
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x431139
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004308da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43115a
test byte [esp + 8], 2
je 0x43115a
mov dword [0x473608], 0xd
mov dword [0x47360c], 5
jmp 0x431135
xor eax, eax
ret

Function at 0x438f2b
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
push dword [esi + 0x10]
call fcn.00438f6c
mov dword [esi + 0x10], eax
and eax, 0xff
add eax, dword [esi + 0x14]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x14], eax
shr eax, 0x18
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push dword [esi + 0x18]
call fcn.00438f6c
add esp, 0x10
mov dword [esi + 0x18], eax
pop esi
ret 4
Function at 0x447150
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xa8]
cmp eax, 0xffffffff
je 0x4471d0
cmp eax, 0x40
jbe 0x447178
push esi
lea ecx, [esi + 0x40]
call fcn.00447680
mov dword [esi + 0xa8], 0x14
mov edx, dword [esi + 0xa8]
mov ecx, 0x40
push edi
sub ecx, edx
lea edi, [edx + esi]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x36363636
dec ecx
mov dword [eax - 4], edx
jne 0x4471a0
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.00447650
push 0x40
push esi
mov ecx, edi
call fcn.00447cd0
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4471e6
push eax
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esi + 0x40]
call fcn.00447cd0
pop esi
ret

Function at 0x4471f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0xa8], 0xffffffff
je 0x44720f
push edi
push 0
push 0
call fcn.00447150
add esp, 0xc
lea esi, [edi + 0x40]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00447680
mov eax, edi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x6a6a6a6a
dec ecx
mov dword [eax - 4], edx
jne 0x447225
mov ecx, esi
call fcn.00447650
push 0x40
push edi
mov ecx, esi
call fcn.00447cd0
lea ecx, [esp + 8]
push 0x14
push ecx
mov ecx, esi
call fcn.00447cd0
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.00447680
mov ecx, dword [esp + 0x24]
test ecx, ecx
jbe 0x44727f
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x447650
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 8], eax
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
mov dword [ecx + 0x20], 0xc3d2e1f0
mov dword [ecx + 0x24], eax
mov dword [ecx + 0xc], eax
ret