joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405fc0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push str.___RSA_Init___Before_CryptAcquireContextA___n
call fcn.00405140
mov edi, dword [ebp + 0xc]
add esp, 4
push 0
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406020
call esi
cmp eax, 0x80090016
jne 0x40600c
push 8
push 1
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x406020
call esi
push eax
push str.____CryptAcquireContextA_error__code:__d_n
call fcn.00405140
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
push str.___RSA_Init___Before_CryptImportKey___n
call fcn.00405140
add esp, 4
lea eax, [edi + 4]
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push dword [eax + 0xad4]
add eax, 0x2d4
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x406066
call esi
push eax
push str.____CryptImportKey_Public__error__code:__d_n
call fcn.00405140
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x40f216
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040eed6
Function at 0x100ef630
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
push 0x400
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.100bc783
add esp, 0xc
mov dword [ebp - 0x14], 0
jmp 0x100ef675
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xff
jg 0x100ef719
push 8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.100bfa41
shl eax, 0x18
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov dword [ebp - 0x20], 0
jmp 0x100ef6ae
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
jge 0x100ef6f7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
and edx, 0x80000000
je 0x100ef6d1
mov dword [ebp - 0xe8], 0x4c11db7
jmp 0x100ef6db
mov dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
shl edx, 1
xor edx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax*4], edx
jmp 0x100ef6a5
push 0x20
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4]
push edx
mov ecx, dword [ebp - 8]
call fcn.100bfa41
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
jmp 0x100ef66c
pop edi
pop esi
pop ebx
add esp, 0xe8
cmp ebp, esp
call fcn.100bdf3e
mov esp, ebp
pop ebp
ret
Function at 0x101798e0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x101798fe
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp + 8]
push edx
call fcn.10179a60
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x101fb6c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100bafff
mov eax, dword [0x10285c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10289798]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x101fb898
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x101fb7e7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x101fb7e7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x101fb7c5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x101fb749
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101fb851
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x101fb8b8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x101fb893
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x101fb8b8
jmp 0x101fb722
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc689
mov esp, ebp
pop ebp
ret
Function at 0x101fb950
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.100bafff
mov eax, dword [0x10285c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x10289798]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x101fbb3b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x101fba86
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x101fba86
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x101fba62
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x101fb9d9
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101fbaf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x101fbb5b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x101fbb36
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x101fbb5b
jmp 0x101fb9b2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc689
mov esp, ebp
pop ebp
ret
Function at 0x10223d20
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10285c00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x1a
jbe 0x10223db6
call fcn.100ba9f6
mov dword [eax], 0xf
xor eax, eax
je 0x10223d50
mov dword [ebp - 0x14], 1
jmp 0x10223d57
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x10223d86
push str.__Invalid_Drive_Index___0_
push 0x1024a86c
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push 2
call fcn.100bb626
add esp, 0x18
cmp eax, 1
jne 0x10223d86
int3
cmp dword [ebp - 0x18], 0
jne 0x10223db6
call fcn.100bd1f6
mov dword [eax], 0xd
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push str.is_valid_drive
push str.__Invalid_Drive_Index___0_
call fcn.100bff87
add esp, 0x14
xor eax, eax
jmp 0x10223e0f
cmp dword [ebp + 8], 0
jne 0x10223dc3
mov eax, 1
jmp 0x10223e0f
mov eax, dword [ebp + 8]
add eax, 0x40
mov word [ebp - 0x10], ax
mov cx, word [ebp - 0x10]
mov word [ebp - 0xc], cx
mov edx, 0x3a
mov word [ebp - 0xa], dx
mov eax, 0x5c
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10223e06
cmp dword [ebp - 0x1c], 1
jne 0x10223e0a
xor eax, eax
jmp 0x10223e0f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bc689
mov esp, ebp
pop ebp
ret
Function at 0x4037d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov dword [ebp - 4], edx
mov al, byte [ebx]
test al, al
je 0x40384a
push esi
push edi
mov edi, dword [edx + 4]
mov esi, 0x34567890
nop
mov ecx, dword [edx]
lea ebx, [ebx + 1]
movsx eax, al
xor eax, dword [edx]
mov edx, dword [ebp + 8]
movzx eax, al
shr ecx, 8
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
xor eax, ecx
mov ecx, dword [ebp + 8]
mov dword [edx], eax
movzx eax, al
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [edx + 4], edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ecx + eax*4]
mov dword [edx + 8], esi
mov al, byte [ebx]
test al, al
jne 0x403800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x405f1b
cmp dword [esi + 0x7c], ebx
jbe 0x405f1b
mov eax, 0xffffff5c
lea ebx, [esi + 0xa4]
sub eax, esi
mov dword [ebp - 4], eax
movzx eax, byte [ebx]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
mov edi, dword [esi + 0x100d8]
movzx eax, al
and edi, 0xfffd
shr ecx, 8
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0x100d8]
mov dword [esi + 0x100d0], eax
movzx eax, al
add eax, dword [esi + 0x100d4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x100d8], ecx
imul eax, edi
shr eax, 8
xor byte [ebx], al
inc ebx
mov eax, dword [ebp - 4]
add eax, ebx
cmp eax, dword [esi + 0x7c]
jb 0x405ea0
xor ebx, ebx
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407690
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x40769b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004076b0
Function at 0x409270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
nop
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x4092ff
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0056a550
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4092cf
sub eax, esi
jmp 0x4092d1
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4092c0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x4092f0
sub eax, esi
jmp 0x4092f2
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x4092e1
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x409433
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x40932c
xor eax, eax
jmp 0x40937f
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x409349
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040be90
jmp 0x409361
cmp eax, 2
jne 0x409367
mov edx, dword [ebx]
test edx, edx
jne 0x409358
xor eax, eax
jmp 0x409364
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.004076b0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.0056a550
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4093a7
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4093bb
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x409280
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x409433
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x409403
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp - 8], ecx
push 0
push eax
call fcn.0056b050
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x409433
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.0056b050
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c260
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx]
mov ebx, edx
mov edx, dword [ecx + 8]
mov eax, esi
xor eax, dword [ebp + 8]
movzx eax, al
shr esi, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebx + eax*4]
xor eax, esi
mov dword [ecx], eax
movzx eax, al
add eax, dword [ecx + 4]
imul eax, eax, 0x8088405
pop esi
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx ecx, al
mov eax, dword [ebp - 4]
xor edx, dword [ebx + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c2b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov dword [ebp - 4], edx
mov al, byte [ebx]
test al, al
je 0x40c32a
push esi
push edi
mov edi, dword [edx + 4]
mov esi, 0x34567890
nop
mov ecx, dword [edx]
lea ebx, [ebx + 1]
movsx eax, al
xor eax, dword [edx]
mov edx, dword [ebp + 8]
movzx eax, al
shr ecx, 8
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
xor eax, ecx
mov ecx, dword [ebp + 8]
mov dword [edx], eax
movzx eax, al
add eax, edi
imul edi, eax, 0x8088405
inc edi
mov eax, edi
mov dword [edx + 4], edi
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ecx + eax*4]
mov dword [edx + 8], esi
mov al, byte [ebx]
test al, al
jne 0x40c2e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411e70
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 4]
mov dword [esi], vtable.CMD5Checksum.0
push eax
call fcn.0056b050
and dword [esi + 0x48], 0
add esp, 0xc
and dword [esi + 0x44], 0
mov eax, esi
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
pop esi
ret

Function at 0x413598
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 8
push 0
lea eax, [esi + 0x10]
push eax
call fcn.0056b050
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret

Function at 0x4140cd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000c
call fcn.00506f00
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x2000c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20000
mov dword [ebp - 0x20008], eax
mov edi, ecx
lea eax, [ebp - 0x20004]
push 0
push eax
call fcn.0056b050
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x41411d
mov edi, dword [edi]
push edi
push 0x20000
lea eax, [ebp - 0x20004]
push eax
mov eax, dword [ebp - 0x20008]
push 0x5e7104
push dword [eax]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, esi
cmp eax, 0x1ffff
jne 0x41414f
push 0x5e7108
jmp 0x414156
lea eax, [ebp - 0x20004]
push eax
call fcn.00413f09
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414170
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000c
call fcn.00506f00
mov eax, dword [0x67e2d4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2000c], 0
lea eax, [ebp - 0x20004]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x20000
push 0
push eax
mov dword [ebp - 0x20008], ecx
call fcn.0056b050
mov eax, dword [ebp - 0x20008]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4141c4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x4141cc
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x4141d4
mov edi, dword [edi]
push eax
push 0x20000
lea eax, [ebp - 0x20004]
push eax
push 0x5e70fc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, esi
cmp eax, 0x1ffff
jne 0x4141fe
push 0x5e7100
jmp 0x414205
lea eax, [ebp - 0x20004]
push eax
call fcn.00413f4d
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00506d7f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x416020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0xc], esi
test edi, edi
jne 0x416048
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.004185f4
xor al, al
jmp 0x4161d8
call fcn.00415688
or dword [esi + 8], 0xffffffff
xor ebx, ebx
or dword [esi + 4], 0xffffffff
push 2
pop eax
push eax
push ebx
push edi
call fcn.00597a35
push edi
call fcn.0059806b
push ebx
push ebx
push dword [ebp + 8]
mov edi, eax
mov dword [ebp - 4], edi
call fcn.00597a35
add esp, 0x1c
test edi, edi
jg 0x416087
push ebx
push ebx
push ebx
push 0xc
mov ecx, esi
jmp 0x41603c
lea eax, [edi + 1]
push eax
call fcn.00506f2d
push dword [ebp + 8]
mov edi, eax
push 1
push dword [ebp - 4]
push edi
mov byte [edi], bl
call fcn.005885cb
add esp, 0x14
cmp eax, 1
je 0x4160ba
push edi
call fcn.00506f36
pop ecx
push ebx
push ebx
push ebx
push 2
pop edx
push edx
jmp 0x416083
cmp dword [ebp + 0xc], 3
je 0x4160d3
cmp byte [edi], 0xff
jne 0x4160cb
cmp byte [edi + 1], 0xfe
je 0x4160d3
mov byte [esi + 0x45], bl
jmp 0x416190
mov eax, dword [ebp - 4]
xor ecx, ecx
cdq
sub eax, edx
mov byte [esi + 0x45], 1
mov esi, eax
mov dword [ebp + 0xc], ebx
sar esi, 1
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00506f2d
lea ecx, [esi*2 + 2]
mov dword [ebp + 8], eax
push ecx
mov esi, eax
push ebx
push esi
call fcn.0056b050
add esp, 0x10
cmp byte [edi], 0xff
jne 0x41612a
cmp byte [edi + 1], 0xfe
jne 0x41612a
mov eax, dword [ebp - 4]
add eax, 0xfffffffe
push eax
lea eax, [edi + 2]
push eax
jmp 0x41612e
push dword [ebp - 4]
push edi
push esi
call fcn.0056a550
add esp, 0xc
push edi
call fcn.00506f36
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
pop ecx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call edi
mov dword [ebp - 4], eax
lea esi, [eax + 1]
push esi
call fcn.00506f2d
push esi
push ebx
push eax
mov dword [ebp - 8], eax
call fcn.0056b050
mov esi, dword [ebp + 8]
add esp, 0x10
push ebx
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call edi
push esi
call fcn.00506f36
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, edi
mov edx, edi
mov byte [edi + ecx], bl
cmp byte [edi], bl
je 0x4161bd
mov cl, byte [eax]
mov dword [ebp + 8], eax
cmp cl, 0xd
jne 0x4161b5
inc eax
mov byte [edx], 0xa
cmp byte [eax], 0xa
cmovne eax, dword [ebp + 8]
jmp 0x4161b7
mov byte [edx], cl
inc eax
inc edx
cmp byte [eax], bl
jne 0x41619e
push dword [ebp + 0xc]
mov byte [edx], bl
mov ecx, esi
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 8]
push edi
call fcn.00506f36
cmp byte [esi + 0x2c], bl
pop ecx
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8