joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d07d
Capabilities:
Persist via run registry key

Disassembly:
push 0xc
mov eax, 0x50487d
call fcn.004e3d00
mov esi, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [ebp - 0x10]
call fcn.0040253b
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00482292
lea edi, [esi + 0x2030]
test al, al
je 0x42d146
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Common_Programs
call fcn.0040253b
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00402305
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], bl
call fcn.00410a54
cmp eax, ebx
je 0x42d10a
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42d10a
lea ecx, [eax - 1]
mov eax, edi
call fcn.00402bd5
cmp ax, 0x5c
je 0x42d10a
push 0x5b2450
mov ecx, edi
call fcn.0041417d
add esi, 0x2034
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Programs
call fcn.0040253b
push ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00402305
push SysReAllocStringLen
mov byte [ebp - 4], bl
call fcn.00410937
jmp 0x42d1d9
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Common_Programs
call fcn.0040253b
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00402305
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.004107f9
cmp eax, ebx
je 0x42d1a1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42d1a1
lea ecx, [eax - 1]
mov eax, edi
call fcn.00402bd5
cmp ax, 0x5c
je 0x42d1a1
push 0x5b2450
mov ecx, edi
call fcn.0041417d
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Programs
add esi, 0x2034
call fcn.0040253b
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00402305
push SysReAllocStringLen
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004107f9
cmp eax, ebx
je 0x42d202
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, ebx
je 0x42d202
lea ecx, [eax - 1]
mov eax, esi
call fcn.00402bd5
cmp ax, 0x5c
je 0x42d202
push 0x5b2450
mov ecx, esi
call fcn.0041417d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
call fcn.004e3dd8
ret
Function at 0x4325bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0
push dword [0x60a1bc]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432618
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push dword [0x60a1c4]
mov dword [ebp - 0x5c], 0x50
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x432618
cmp dword [ebp - 0x54], eax
sete al
jmp 0x43261a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de422
leave
ret
Function at 0x432aa0
Capabilities:
Check if file exists

Disassembly:
push 0x30
mov eax, 0x509216
call fcn.004e3d00
mov edi, 0x60cdfc
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.004c92aa
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.004c92aa
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004c92aa
push 0xffffffffffffffff
push ebx
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.004c932b
push dword [0x60a1ec]
mov ecx, edi
call fcn.004845b6
pop ecx
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x10]
call fcn.004027f9
push 0x12
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00406d50
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x432b31
push eax
call ebx
test eax, eax
je 0x432b31
mov eax, esi
push eax
push dword [0x60ce04]
mov ecx, edi
call fcn.004c96e8
push 0x13
lea esi, [ebp - 0x10]
call fcn.00406d50
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x432b5b
push eax
call ebx
test eax, eax
je 0x432b5b
mov eax, esi
push eax
push dword [0x60ce04]
mov ecx, edi
call fcn.004c96e8
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040285b
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004c9586
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.004c9586
mov eax, edi
call fcn.004e3dd8
ret
Function at 0x436d9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
push esi
xor esi, esi
cmp dword [0x60c334], esi
jne 0x436e6b
push ebx
lea eax, [ebp - 0x78]
push eax
push 0x20019
push esi
xor ebx, ebx
push str.SoftwareMicrosoftPlus_ThemesCurrent
inc ebx
push SysReAllocStringLen
mov dword [0x60c334], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x436e6a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x436e61
push edi
push 0xb
pop ecx
mov esi, str.Windows_Classic.theme
lea edi, [ebp + 0x1a8]
lea eax, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov edi, eax
lea eax, [ebp + 0x1a8]
push eax
call esi
cmp edi, eax
jl 0x436e60
lea eax, [ebp + 0x1a8]
push eax
push eax
call esi
sub edi, eax
lea eax, [ebp + edi*2 - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x436e60
mov dword [0x60c330], ebx
pop edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp + 0x1d4]
mov eax, dword [0x60c330]
xor ecx, ebp
pop esi
call fcn.004de422
add ebp, 0x1d8
leave
ret
Function at 0x4395a2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x4395ad
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x43965f
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5bc130]
inc ecx
sub edi, 8
dec esi
jne 0x4395c4
pop ebx
test edi, edi
je 0x439678
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5bc130]
inc ecx
dec edi
jne 0x439663
pop esi
not eax
pop edi
ret

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

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

Function at 0x439d7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x439dac
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x439da7
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x439dd4
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x439dbd
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004e8cd0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x43a9ed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x43aa80
cmp dword [ebx + 4], 0xffffffff
jne 0x43aa80
lea esi, [ebx + 0x240]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43aa19
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x23e]
cmp ax, 0x5c
je 0x43aa50
cmp ax, 0x2f
je 0x43aa50
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x43aa3d
mov edi, esi
mov esi, 0x5b2450
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00439c72
pop ecx
pop ecx
test eax, eax
jne 0x43aa67
mov eax, dword [ebp + 8]
jmp 0x43aa85
push eax
call fcn.00439fec
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x43aa85
mov eax, 0x1000000
pop edi
pop esi
pop ecx
pop ebp
ret 4

Function at 0x43af5a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5ff740]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
push ebx
mov ebx, dword [ebp + 8]
test ax, ax
je 0x43b034
push esi
push edi
mov edi, ecx
mov edx, ecx
movzx eax, ax
cmp ax, 0x2f
je 0x43af95
cmp ax, 0x5c
jne 0x43af97
mov edi, edx
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x43af89
mov eax, edi
cmp edi, ecx
je 0x43afda
mov esi, edi
sub esi, ecx
sar esi, 1
add esi, esi
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.004e8cd0
xor eax, eax
mov word [ebp + esi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043af5a
add esp, 0x14
lea eax, [edi + 2]
lea esi, [ebp - 0x414]
mov ecx, ebx
sub esi, ebx
movzx edx, word [ecx]
mov word [esi + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x43afe4
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43aff4
sub eax, edx
lea edi, [ebp - 0x414]
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x43b008
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [ebp - 0x414]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004de422
leave
ret
Function at 0x43c74e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push esi
lea eax, [ebx - 1]
push edi
mov esi, ecx
cmp eax, 7
jbe 0x43c767
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
lea ecx, [esi + 0x6af70]
lea eax, [esi + 0x6af78]
mov dword [eax], edi
cmp dword [ecx], edi
jne 0x43c787
mov dword [eax], 1
mov dword [ecx], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.004e38a0
mov eax, ebx
shl eax, 3
movzx ecx, word [eax + 0x5ba902]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax + 0x5ba900]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax + 0x5ba904]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax + 0x5ba906]
add esp, 0xc
cmp ebx, 2
mov dword [esi + 0x6af94], eax
jg 0x43c7ea
mov eax, dword [esp + 0x10]
or word [eax], 4
jmp 0x43c7f7
cmp ebx, 8
jl 0x43c7f7
mov eax, dword [esp + 0x10]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x43c85f
cmp eax, 0xffffffff
je 0x43c85f
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x43c837
call fcn.0043c9f7
mov dword [esi + 0x6af7c], edi
movzx eax, byte [ebx + edi]
mov ecx, dword [esi + 0x6af7c]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
inc edi
mov dword [esi + 0x6af7c], eax
cmp edi, 2
jb 0x43c83d
jmp 0x43c86f
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
ret
Function at 0x43cb13
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x43cd10
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x43cb8d
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x43cbd0
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x43cbd0
mov ecx, dword [esi + 0x6af90]
lea eax, [esi + 0x6afa0]
cmp dword [eax], ecx
jbe 0x43cbb5
mov dword [eax], ecx
push dword [ebp - 4]
mov ecx, esi
call fcn.0043c873
mov ebx, eax
mov eax, dword [esi + 0x6af90]
add esp, 4
cmp ebx, eax
jbe 0x43cbd0
mov ebx, eax
cmp ebx, 3
jb 0x43cc90
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0043c1b1
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x43cc5e
cmp eax, 3
jb 0x43cc5e
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x43cc0c
jmp 0x43ccb0
add dword [esi + 0x6af84], ebx
mov eax, dword [esi + 0x6af84]
lea edx, [eax + esi]
movzx ecx, byte [edx + 0x1af70]
lea eax, [esi + 0x6af7c]
mov dword [eax], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [eax], edx
jmp 0x43ccb6
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0043c1b1
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x43ccf1
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x43cccf
lea edx, [ecx + esi + 0x1af70]
jmp 0x43ccd1
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0043bfc0
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x43cd02
call fcn.0043c9f7
cmp dword [esi + 0x6af90], 0
jne 0x43cb3d
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
jl 0x43cd23
lea edx, [ecx + esi + 0x1af70]
jmp 0x43cd25
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0043bfc0
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x43d8cd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x43d8d8
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x43d98a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x5ba950]
inc ecx
sub edi, 8
dec esi
jne 0x43d8ef
pop ebx
test edi, edi
je 0x43d9a3
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x5ba950]
inc ecx
dec edi
jne 0x43d98e
pop esi
not eax
pop edi
ret

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

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x5ba950]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x5ba950]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x43db56
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x43db7b
mov eax, 0x200
jmp 0x43dcfe
mov ecx, dword [ebp - 0x4c]
xor eax, eax
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
mov dword [ebp - 8], ebx
je 0x43db8f
mov dword [ebp - 8], eax
test cl, 2
je 0x43db98
or dword [ebp - 8], 2
test cl, 4
je 0x43dba1
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x43dbac
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x43dbb5
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x43dbc2
or dword [ebp - 8], 0x40000000
jmp 0x43dbc9
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x43dbdb
or dword [ebp - 8], 0x800000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp eax, 0x28
jbe 0x43dc7c
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x43dc7c
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x10], ecx
jbe 0x43dc7c
push ebx
push ebx
push eax
push dword [ebp + 8]
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 0x18]
cmp eax, 0x5a4d
je 0x43dc75
cmp eax, 0x454e
je 0x43dc75
cmp eax, 0x454c
je 0x43dc75
cmp eax, 0x4550
jne 0x43dc7c
or dword [ebp - 8], 0x400000
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x43dc88
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x43dc94
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov esi, dword [ebp + 0x14]
cmp esi, ebx
je 0x43dcd0
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0043dadb
push dword [ebp - 0x34]
mov dword [esi], eax
push dword [ebp - 0x38]
mov dword [esi + 4], edx
call fcn.0043dadb
push dword [ebp - 0x44]
mov dword [esi + 8], eax
push dword [ebp - 0x48]
mov dword [esi + 0xc], edx
call fcn.0043dadb
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [ebp + 0x18]
cmp esi, ebx
je 0x43dcfc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.0043dafd
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43dd27
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x43dd9a
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp eax, ebx
je 0x43dd53
cmp dword [esi + 0x40], edi
jae 0x43dd53
push eax
call fcn.004bd341
pop ecx
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x3c], ebx
jne 0x43dd68
lea eax, [edi + edi]
push eax
call fcn.004bd34c
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push dword [ebp + 8]
push dword [esi + 0x3c]
call fcn.004e8cd0
add esp, 0xc
test edi, edi
jbe 0x43dd97
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
lea ecx, [esi + 0x30]
call fcn.0043d9ee
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x43dd7b
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x43ddc9
mov eax, dword [esi + 0x24]
lea ebx, [eax + edi]
cmp ebx, dword [esi + 0x28]
jb 0x43ddb5
mov dword [esi + 0x14], 0x30000
jmp 0x43ddeb
push edi
push edx
add eax, ecx
push eax
call fcn.004e8cd0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
jmp 0x43dded
mov eax, dword [esi + 4]
test eax, eax
je 0x43dde4
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x43dded
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43e028
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x43e079
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x43e0a1
sub edi, eax
cmp edi, dword [ebp + 8]
jbe 0x43e050
mov edi, dword [ebp + 8]
push edi
add eax, ecx
push eax
push ebx
call fcn.004e8cd0
add esp, 0xc
add dword [esi + 0x8c], edi
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.0043d8cd
mov dword [esi + 0x78], eax
mov eax, edi
jmp 0x43e0a3
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x43e09a
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e0a1
mov edi, dword [ebp + 8]
jmp 0x43e063
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ebp
ret 4