joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433490
Capabilities:
Encrypt data using des via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, edx
mov byte [ebp - 1], 0
push edi
mov eax, dword [esi + 0x10]
push 0
push 0
push 0x8003
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4334ff
cmp dword [esi + 0x14], 0x10
jb 0x4334c5
mov esi, dword [esi]
push 0
push dword [ebp + 0xc]
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4334f7
push dword [ebp + 8]
push 0
push dword [edi]
push 0x6603
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4334f7
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4335f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4335ff
mov eax, 1
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x433646
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433646
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x433646
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
pop edi
pop esi
ret

Function at 0x433660
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x43371e
push ebx
call fcn.004335f0
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x433704
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push esi
push esi
push 0x8003
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x433704
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi]
test eax, eax
jne 0x4336b3
mov eax, dword [edi + 4]
sub eax, ecx
push 0
push eax
mov eax, dword [ebp + 0x14]
add eax, ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4336f7
push ebx
push 0x10
mov ecx, ebx
mov dword [ebp + 8], 0x10
call fcn.00417600
push 0
lea eax, [ebp + 8]
push eax
push dword [ebx]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
jne 0x433713
push ebx
push 1
mov ecx, ebx
call fcn.00417600
mov eax, dword [ebx]
mov byte [eax], 0x17
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x433730
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
push edi
mov dword [esp + 0x1c], 0
cmp dword [esi], 0
jne 0x43379d
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x43379d
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x43379d
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x43379d
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
je 0x4337b8
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
call fcn.00433490
add esp, 8
test al, al
jne 0x4337c3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
sub esi, dword [edi]
mov ecx, esi
and ecx, 7
je 0x4337ee
mov eax, 8
mov byte [esp + 0x13], 0
sub eax, ecx
mov ecx, edi
add esi, eax
lea eax, [esp + 0x13]
push eax
push edi
push esi
call fcn.00422110
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
push 0
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
test ebx, ebx
je 0x433845
mov eax, dword [esp + 0x18]
cmp eax, esi
jbe 0x43382b
lea ecx, [esp + 0x13]
mov byte [esp + 0x13], 0
push ecx
push edi
push eax
mov ecx, edi
call fcn.00422110
push esi
lea eax, [esp + 0x1c]
push eax
push dword [edi]
push 0
push 0
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebx, eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x433870
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 8], 0
cmp dword [esi], 0
jne 0x4338d7
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000008
push 1
push 0
push 0
push esi
call edi
test eax, eax
jne 0x4338d7
push eax
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x4338d7
push 8
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
jne 0x4338d7
push 0x20
push 1
push eax
push str.Spreadsheet_Tools
push esi
call edi
test eax, eax
je 0x4338f0
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 8]
call fcn.00433490
add esp, 8
test al, al
jne 0x4338fa
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor esi, esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
cmp ecx, eax
je 0x433920
sub eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x436170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
push edi
mov byte [ebp - 1], 0
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x436311
mov eax, dword [edx + 4]
cmp eax, dword [esi + 4]
jne 0x436311
mov eax, dword [edx + 8]
cmp eax, dword [esi + 8]
jne 0x436311
mov eax, dword [edx + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x436311
mov al, byte [edx + 0x12]
cmp al, byte [esi + 0x12]
jne 0x436311
mov al, byte [edx + 0x10]
cmp al, byte [esi + 0x10]
jne 0x436311
mov al, byte [edx + 0x11]
cmp al, byte [esi + 0x11]
jne 0x436311
mov eax, dword [edx + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x436311
mov eax, dword [edx + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x436311
cmp dword [esi + 0x38], 8
lea eax, [esi + 0x24]
mov ecx, eax
jb 0x4361f7
mov ecx, dword [eax]
cmp dword [edx + 0x38], 8
lea ebx, [edx + 0x24]
jb 0x436203
mov ebx, dword [edx + 0x24]
mov edi, dword [edx + 0x34]
cmp edi, dword [eax + 0x10]
jne 0x436311
test edi, edi
je 0x436235
sub ebx, ecx
nop word [eax + eax]
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x436311
add ecx, 2
sub edi, 1
jne 0x436220
cmp dword [esi + 0x50], 8
lea eax, [esi + 0x3c]
mov ecx, eax
jb 0x436242
mov ecx, dword [eax]
cmp dword [edx + 0x50], 8
lea ebx, [edx + 0x3c]
jb 0x43624e
mov ebx, dword [edx + 0x3c]
mov edi, dword [edx + 0x4c]
cmp edi, dword [eax + 0x10]
jne 0x436311
test edi, edi
je 0x436275
sub ebx, ecx
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x436311
add ecx, 2
sub edi, 1
jne 0x436260
mov eax, dword [edx + 0x1c]
cmp eax, dword [esi + 0x1c]
jne 0x436311
mov al, byte [edx + 0x20]
cmp al, byte [esi + 0x20]
jne 0x436311
cmp dword [esi + 0x74], 8
lea eax, [esi + 0x60]
mov ecx, eax
jb 0x43629a
mov ecx, dword [eax]
cmp dword [edx + 0x74], 8
lea ebx, [edx + 0x60]
jb 0x4362a6
mov ebx, dword [edx + 0x60]
mov edi, dword [edx + 0x70]
cmp edi, dword [eax + 0x10]
jne 0x436311
test edi, edi
je 0x4362c5
sub ebx, ecx
mov ax, word [ebx + ecx]
cmp ax, word [ecx]
jne 0x436311
add ecx, 2
sub edi, 1
jne 0x4362b4
cmp dword [esi + 0x8c], 8
lea eax, [esi + 0x78]
mov ecx, eax
jb 0x4362d5
mov ecx, dword [eax]
cmp dword [edx + 0x8c], 8
lea esi, [edx + 0x78]
jb 0x4362e4
mov esi, dword [edx + 0x78]
mov edx, dword [edx + 0x88]
cmp edx, dword [eax + 0x10]
jne 0x436311
test edx, edx
je 0x436306
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x436311
add ecx, 2
sub edx, 1
jne 0x4362f5
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43d770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x43d991
cmp eax, 3
jb 0x43d7e6
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x43d823
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x43d823
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x43d80d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.0043d450
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x43d913
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.0043cbc0
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x43d8d8
cmp ecx, 3
jb 0x43d8d8
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x43d870
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [ebp - 4]
jmp 0x43d93a
mov edx, dword [esi + 0x6af84]
add edx, edi
xor edi, edi
mov dword [esi + 0x6af84], edx
movzx ecx, byte [esi + edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x43d93a
movzx eax, byte [esi + ecx + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.0043cbc0
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
lea ecx, [esi + 0x1af70]
test eax, eax
je 0x43d96f
mov eax, dword [esi + 0x6af74]
sub edx, eax
push 0
push edx
lea edx, [eax + ecx]
xor ecx, ecx
test eax, eax
cmovs edx, ecx
mov ecx, esi
call fcn.0043c710
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x43d989
mov ecx, esi
call fcn.0043d610
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x43d795
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x43d9a5
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x43d9a7
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.0043c710
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x43e71b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x43e7d7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
sub edi, 1
jne 0x43e730
pop edi
test esi, esi
je 0x43e7fa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
sub esi, 1
jne 0x43e7e0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x43e810
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4f8110]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f8110]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x43ef90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x43f067
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x43efc8
cmp dword [esi + 0x40], ebx
jae 0x43efc8
push ecx
call fcn.0047cdcd
add esp, 4
mov dword [esi + 0x3c], 0
xor eax, eax
test eax, eax
jne 0x43efde
lea eax, [ebx + ebx]
push eax
call fcn.0047d6e4
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.0047e6d0
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x43f064
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4f8110]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x4f8110]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x43eff2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x43f0a5
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x43f08c
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.0047e6d0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x43f0c7
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43f690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x43f6f3
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x43f73b
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.0047e6d0
mov ecx, dword [edi + 0x78]
mov edx, esi
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
call fcn.0043e710
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x43f734
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f73b
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.0043e710
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4432c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4432cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x443387
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
sub edi, 1
jne 0x4432e0
pop edi
test esi, esi
je 0x4433aa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
sub esi, 1
jne 0x443390
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4433c0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4f87d0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4f87d0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x443eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x443ef8
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x443eea
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.0047e6d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443f30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x443f6b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x443f66
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x443f98
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x443f7c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0047e6d0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x443fac
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x443fa3
cmp byte [esi + 8], 0
je 0x443fa3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4456b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x44585a
cmp dword [ebx + 4], 0xffffffff
jne 0x44585a
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4456e7
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x445723
cmp eax, 0x2f
je 0x445723
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x445710
mov eax, dword [0x4f48e8]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x44574e
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x445769
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x445766
cmp edi, 3
je 0x445766
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x4457af
cmp edi, 2
jne 0x4457cb
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4457a9
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x4457b5
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call fcn.0047cd8f
add esp, 4
mov esi, eax
cmp edi, 1
je 0x445806
cmp edi, 2
je 0x445806
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x445837
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x445837
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
mov ecx, esi
call fcn.00444330
mov ecx, dword [ebp - 8]
mov edx, 0x200
pop esi
pop edi
pop ebx
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc