joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df30
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x44e4e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
lea ecx, [esp + 4]
call fcn.00409b70
mov eax, dword [esp + 0x124]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x120], 0
call fcn.0040ab20
push 0x5c
push 0x2f
lea ecx, [esp + 0xc]
call fcn.0040b020
lea ecx, [esp + 4]
call fcn.00409cb0
test eax, eax
jle 0x40dfdf
lea ecx, [esp + 0x8c]
call fcn.00409b70
lea ecx, [esp + 0x8c]
lea edx, [esp + 4]
push ecx
push edx
mov byte [esp + 0x124], 1
call fcn.0040bdf0
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x8c]
mov esi, eax
mov byte [esp + 0x11c], 0
call fcn.00409c40
jmp 0x40dff1
lea ecx, [esp + 4]
call fcn.0040a030
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
pop esi
jne 0x40e031
mov ecx, dword [esp + 0x124]
test ecx, ecx
je 0x40e006
call fcn.0041e150
lea ecx, [esp]
mov dword [esp + 0x118], 0xffffffff
call fcn.00409c40
xor al, al
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
lea ecx, [esp]
mov dword [esp + 0x118], 0xffffffff
call fcn.00409c40
mov ecx, dword [esp + 0x110]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40eca0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x40ecc0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret
Function at 0x41d7f0
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
test ebp, ebp
push edi
je 0x41d9b3
mov ebx, dword [esp + 0x120]
test ebx, ebx
je 0x41d9b3
push ebp
push ebp
call fcn.0041d790
mov edi, dword [esp + 0x134]
add esp, 8
mov ecx, edi
push 0x3f0
push eax
call fcn.004062a0
mov eax, 0x55555556
xor esi, esi
imul ebp
mov ebp, dword [esp + 0x128]
mov eax, edx
shr eax, 0x1f
add edx, eax
xor ecx, ecx
test edx, edx
jle 0x41d912
mov dword [esp + 0x10], edx
jmp 0x41d864
mov ebx, dword [esp + 0x120]
xor eax, eax
xor edx, edx
mov al, byte [esi + ebx]
mov dl, byte [esi + ebx + 1]
inc esi
mov edi, edx
inc esi
xor edx, edx
mov dl, byte [esi + ebx]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
and eax, 3
shl eax, 4
mov bl, byte [ebx + ebp]
inc esi
mov byte [esp + ecx + 0x14], bl
mov ebx, edi
sar ebx, 4
and ebx, 0xf
inc ecx
or ebx, eax
and edi, 0xf
shl edi, 2
mov al, byte [ebx + ebp]
mov byte [esp + ecx + 0x14], al
mov eax, edx
sar eax, 6
and eax, 3
inc ecx
or eax, edi
and edx, 0x3f
inc ecx
mov al, byte [eax + ebp]
mov byte [esp + ecx + 0x13], al
mov dl, byte [edx + ebp]
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0x100
jl 0x41d8e4
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.00406720
xor ecx, ecx
jmp 0x41d8eb
mov edi, dword [esp + 0x12c]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x41d85d
test ecx, ecx
je 0x41d90b
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00406720
mov ebx, dword [esp + 0x120]
mov eax, dword [esp + 0x124]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x41d976
dec edx
jne 0x41d9b3
xor eax, eax
xor edx, edx
mov al, byte [esi + ebx]
mov dl, byte [esi + ebx + 1]
mov dword [esp + 0x10], eax
mov ecx, edi
sar eax, 2
and eax, 0x3f
mov esi, edx
mov al, byte [eax + ebp]
push eax
call fcn.00405bf0
mov eax, dword [esp + 0x10]
mov ecx, esi
sar ecx, 4
and eax, 3
and ecx, 0xf
shl eax, 4
or ecx, eax
mov dl, byte [ecx + ebp]
mov ecx, edi
push edx
call fcn.00405bf0
and esi, 0xf
mov al, byte [ebp + esi*4]
push eax
jmp 0x41d9a3
xor ecx, ecx
mov cl, byte [esi + ebx]
mov esi, ecx
mov ecx, edi
mov edx, esi
sar edx, 2
and edx, 0x3f
mov al, byte [edx + ebp]
push eax
call fcn.00405bf0
and esi, 3
shl esi, 4
mov cl, byte [esi + ebp]
push ecx
mov ecx, edi
call fcn.00405bf0
push 0x3d
mov ecx, edi
call fcn.00405bf0
push 0x3d
mov ecx, edi
call fcn.00405bf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x41f280
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 0x41f36a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x41f36a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x41f30d
push 0
push edi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f2fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x41f2e0
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 0x41f37c
push eax
call fcn.0041e1e0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
cmp dword [edi], 0
jne 0x41f304
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 0x41f34f
push eax
push esi
push 1
push ecx
call fcn.0042a3d5
add esp, 0x10
cmp eax, esi
mov dword [edi], eax
jne 0x41f330
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov eax, dword [ebx + 8]
test byte [eax + 0xc], 0x20
je 0x41f2d3
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f37c
call fcn.0041e150
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41f37c
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 0x41f37c
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 0x41f390
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call fcn.0041ed30
test al, al
jne 0x41f3c2
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x41f3b6
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 0x41f3db
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 0x41f490
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x41f40a
jg 0x41f403
cmp ebp, 0x989680
jbe 0x41f40a
mov esi, 0x989680
jmp 0x41f40c
mov esi, ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x41f43e
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 0x41f49c
mov edx, dword [esp + 0x10]
cmp edx, esi
jne 0x41f49c
jmp 0x41f45d
mov eax, dword [ecx + 8]
test eax, eax
je 0x41f45d
push eax
push 1
push esi
push ebx
call fcn.0042a4bd
add esp, 0x10
cmp eax, 1
jne 0x41f4cc
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 0x41f482
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 0x41f3f1
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 0x41f4c0
mov edx, dword [esi]
push 1
push str.WriteFileError
mov ecx, esi
call dword [edx + 0x24]
mov ecx, esi
call fcn.0041e150
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 0x41f4de
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 0x41f4f0
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 0x41f585
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f570
mov esi, dword [esp + 0x40]
test esi, esi
je 0x41f570
push ebx
lea ecx, [esp + 0xc]
call fcn.00406c70
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0
call fcn.00407c10
mov ebx, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00427660
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.00406f70
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 0x41f5ac
push ecx
call fcn.0044d330
push eax
call fcn.0042a5c7
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 0x41f5c0
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 0x41f682
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 0x41f662
push esi
mov esi, dword [esp + 0x44]
cmp esi, edi
je 0x41f649
lea ecx, [esp + 0xc]
call fcn.00406c70
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], edi
call fcn.00407c10
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.00427660
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.00406f70
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.0041f6d0
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 0x41f6aa
push ecx
call fcn.0044d330
push eax
call fcn.0042a63f
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 0x41f840
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 0x4204b0
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.00406c70
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.004057e0
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 0x420530
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.00406c70
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.0040f250
push eax
mov ecx, ebx
call fcn.00427660
push eax
mov ecx, edi
call fcn.00406720
push 0
mov ecx, edi
call fcn.004057e0
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 0x420b60
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.0040f250
cmp eax, 0x10
jae 0x420b8a
mov edi, 0x10
push 0
mov ecx, esi
call fcn.00410130
dec edi
jne 0x420b7e
mov al, byte [esp + 0x34]
test al, al
jne 0x420b9a
push esi
mov ecx, ebx
call fcn.00420970
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x420bb0
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 0x420bc6
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 0x420ce7
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x420ce7
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x30]
sar ebp, 7
sub eax, 0
je 0x420cb2
dec eax
je 0x420c05
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.00421950
lea eax, [ebp - 1]
add esi, 0x10
test eax, eax
jle 0x420cd8
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.00421950
mov eax, dword [esp + 0x34]
add esi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x420c57
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
test ebp, ebp
jle 0x420cd8
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
push edi
push esi
mov ecx, ebx
call fcn.00421950
mov eax, dword [esp + 0x34]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x420cbe
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 0x421440
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 0x421478
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 0x4214a1
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x4214a1
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 0x4215fd
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x4215fd
shr eax, 7
mov ecx, eax
mov eax, edx
sub eax, 0
mov dword [esp + 0x38], ecx
je 0x4215d4
dec eax
je 0x4214fc
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.0041e0a0
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 0x42151e
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 0x421535
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 0x4215bf
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.00421e00
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 0x421545
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 0x4215f4
test ecx, ecx
jbe 0x4215f4
mov ebx, dword [esp + 0x40]
mov ebp, ecx
push ebx
push esi
mov ecx, edi
call fcn.00421e00
add esi, 0x10
add ebx, 0x10
dec ebp
jne 0x4215de
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 0x421840
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x48], edx
jle 0x42194b
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 0x421856
pop edi
pop ebx
pop esi
ret
Function at 0x424c90
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
mov al, byte [0x4731f4]
test al, al
jne 0x424d23
push esi
push edi
push 0x400
call fcn.0042914b
add esp, 4
mov dword [0x4731f8], eax
xor esi, esi
push 8
push esi
call fcn.00424d50
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 0x424ccf
mov ecx, dword [0x4731f8]
push 0x20
mov edx, dword [ecx + esi*4]
push edx
call fcn.00424d50
mov ecx, dword [0x4731f8]
add esp, 8
mov dword [ecx + esi*4], eax
inc esi
cmp esi, 0xff
jbe 0x424cb3
pop edi
mov byte [0x4731f4], 1
pop esi
ret
Function at 0x425010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x42502c
xor eax, eax
pop esi
add esp, 0x400
ret
push ebx
push ebp
push edi
call fcn.00424c90
mov ebp, dword [esp + 0x41c]
or edx, 0xffffffff
test ebp, ebp
jne 0x425078
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 0x42504f
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 0x425092
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 0x4250c2
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x4250da
cmp ebx, 0x100
jge 0x4250ff
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 0x4250f5
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 0x427670
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
jge 0x427683
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x427692
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
xor bl, bl
call fcn.0041e5d0
mov esi, eax
test esi, esi
jne 0x4276a6
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 0x4276b5
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 0x42cb0c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4542a8
push 0x42d798
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 0x42cb54
mov dword [ebp - 4], 1
call eax
jmp 0x42cb50
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x42cb5d
jmp 0x4310f2
push 0xa
call fcn.0042d8a9
push 0x16
call fcn.00433061
pop ecx
pop ecx
push 3
call fcn.0042922c

Function at 0x42cb62
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4542c0
push 0x42d798
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.0042cb0c]
test eax, eax
je 0x42cbaa
mov dword [ebp - 4], 1
call eax
jmp 0x42cba6
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x42cbb3
jmp fcn.0042cb0c
Function at 0x431109
Capabilities:
Check if file exists
Get file attributes

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

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

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
push dword [esi + 0x10]
call fcn.00438f5c
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.00438f5c
add esp, 0x10
mov dword [esi + 0x18], eax
pop esi
ret 4