joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4261f0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4614d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
push 0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0042e110
mov esi, eax
mov edx, dword [esp + 0x64]
push 0
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x68], 0
call fcn.0042e110
mov edi, 8
add esp, 0x18
cmp dword [esi + 0x18], edi
jb 0x426254
mov esi, dword [esi + 4]
jmp 0x426257
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x426261
mov eax, dword [eax + 4]
jmp 0x426264
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
sete bl
cmp dword [esp + 0x28], edi
jb 0x426284
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043e711
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 0
mov word [esp + 0x14], dx
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], edi
jb 0x4262b7
mov eax, dword [esp + 0x30]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
test bl, bl
je 0x4262f8
cmp byte [esp + 0x60], cl
je 0x4262e3
mov edx, dword [esp + 0x58]
push edx
push 0xda
call fcn.00425ad0
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x428290
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46167b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov esi, ecx
mov dword [esi], vtable.ZipArchiveLib::CDirEnumerator.0
xor eax, eax
mov dword [esi + 0x28], 7
mov dword [esi + 0x24], 0
mov dword [esp + 0xc], esi
mov word [esi + 0x14], ax
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], eax
call fcn.00409520
cmp dword [esp + 0x24], 0
jne 0x428302
mov dword [esi + 4], 0x464f5c
jmp 0x428305
mov dword [esi + 4], edi
cmp dword [esp + 0x28], 8
mov cl, byte [esp + 0x44]
mov byte [esi + 0xc], cl
jb 0x428320
mov edx, dword [esp + 0x14]
push edx
call fcn.0043e711
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0043f03d
add esp, 0x30
ret 8
Function at 0x428c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460528
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
mov dword [esi + 0x1c], edi
call fcn.00428490
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00408e40
cmp dword [esp + 0x24], 8
mov dword [esp + 0x30], 0xffffffff
jb 0x428c9a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0043e711
add esp, 4
xor edx, edx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], dx
cmp dword [esi + 0x14], edx
je 0x428cc9
cmp dword [edi + 0xe8], edx
jne 0x428cc9
lea ecx, [edi + 0x130]
call fcn.0042d5b0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret 4

Function at 0x428ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460528
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x6c]
not al
and al, 1
jne 0x428d80
cmp dword [esi + 0xe8], 0
jne 0x428d80
mov eax, dword [esp + 0x38]
test eax, eax
je 0x428d75
push eax
lea ecx, [esp + 0x10]
call fcn.00409520
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
add esi, 0xf4
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00408e40
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.004084b0
push esi
call fcn.00424d40
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
lea ecx, [esi + 0xf4]
call fcn.00409160
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 4
Function at 0x42c1e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x461caa
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
lea eax, [esp + 0xb]
push eax
lea edx, [esp + 0xf]
lea ecx, [esi + 8]
push edx
mov dword [esi], vtable.CZipArchive.0
call fcn.00427750
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
call fcn.00433b90
lea ecx, [esi + 0xc0]
mov byte [esp + 0x18], 1
call fcn.00430e50
xor eax, eax
mov dword [esi + 0x10c], 7
mov dword [esi + 0x108], 0
mov word [esi + 0xf8], ax
xor ecx, ecx
mov dword [esi + 0x128], 7
mov dword [esi + 0x124], eax
mov word [esi + 0x114], cx
lea ecx, [esi + 0x130]
mov byte [esp + 0x18], 4
call fcn.0042d590
lea ecx, [esi + 0x14c]
mov byte [esp + 0x18], 5
call fcn.0042d590
lea edx, [esp + 0xb]
push edx
lea eax, [esp + 0xf]
lea ecx, [esi + 0x15c]
push eax
mov byte [esp + 0x20], 6
call fcn.00427750
mov ecx, esi
mov byte [esp + 0x18], 7
call fcn.00426560
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x42e8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, ecx
cmp dword [esp + 0x10], edi
jbe 0x42e901
push ebx
mov ebx, dword [esp + 0x10]
push esi
movzx eax, byte [edi + ebx]
mov esi, dword [ebp + 0xc]
and esi, 0xfffd
push eax
mov ecx, ebp
or esi, 2
call fcn.00437a80
mov ecx, esi
xor ecx, 1
imul ecx, esi
sar ecx, 8
xor byte [edi + ebx], cl
inc edi
cmp edi, dword [esp + 0x18]
jb 0x42e8d2
pop esi
pop ebx
pop edi
pop ebp
ret 8

Function at 0x42e940
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
mov ebx, ecx
test ebp, ebp
jbe 0x42e97f
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0xc]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
sar ecx, 8
xor byte [esi + edi], cl
movzx eax, byte [esi + edi]
push eax
mov ecx, ebx
call fcn.00437a80
inc esi
cmp esi, ebp
jb 0x42e954
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x42fc60
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x462068
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
lea ebx, [esi + 0x44]
mov ecx, ebx
call fcn.00437f70
cmp dword [esi + 0x74], 0
movzx eax, word [esi + 0xa]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x70]
je 0x42fcaa
cmp dword [eax + 8], 0
ja 0x42fcb2
push eax
mov ecx, esi
call fcn.0042f390
cmp dword [esi + 0x84], 0
lea eax, [esi + 0x80]
je 0x42fcc7
cmp dword [eax + 8], 0
ja 0x42fccf
push eax
mov ecx, esi
call fcn.0042f050
mov eax, dword [esi + 0x88]
cmp eax, 0xffff
jg 0x42fcf8
cmp dword [esi + 0x78], 0xffff
jg 0x42fcf8
mov ecx, ebx
call fcn.00437f20
cmp eax, 0xffff
setle al
test al, al
jne 0x42fd04
push 0
push 0xd3
call fcn.00425ad0
mov edi, dword [esi + 0x78]
mov ebp, dword [esi + 0x88]
mov ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
call fcn.00437f20
movzx ebx, ax
movzx ecx, bp
movzx eax, bx
movzx ebp, di
mov dword [esp + 0x20], ecx
add ecx, ebp
mov dword [esp + 0x24], eax
lea eax, [ecx + eax + 0x2e]
push 0
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
call fcn.0042d6f0
mov edx, dword [0x476a44]
mov edi, dword [esp + 0x30]
mov dword [edi], edx
movsx ax, byte [esi + 0x90]
movzx cx, byte [esi + 4]
mov dx, word [esp + 0x18]
shl ax, 8
or ax, cx
movzx eax, ax
mov word [edi + 4], ax
movzx eax, word [esi + 6]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
mov word [edi + 0xa], dx
movzx eax, word [esi + 0xc]
mov word [edi + 0xc], ax
movzx eax, word [esi + 0xe]
mov word [edi + 0xe], ax
cmp byte [esi + 0x63], 0
mov dword [esp + 0x40], 0
je 0x42fda8
xor eax, eax
jmp 0x42fdab
mov eax, dword [esi + 0x10]
mov cx, word [esp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov ax, word [esp + 0x1c]
mov word [edi + 0x1c], ax
mov word [edi + 0x1e], bx
mov word [edi + 0x20], cx
movzx eax, word [esi + 0x1c]
mov word [edi + 0x22], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x24], ax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x26], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x2a], eax
mov eax, dword [esi + 0x74]
push ebp
push eax
lea edx, [edi + 0x2e]
push edx
call fcn.0043fe10
add esp, 0xc
test bx, bx
je 0x42fe0f
lea eax, [edi + ebp + 0x2e]
push eax
lea ecx, [esi + 0x44]
call fcn.00437ed0
cmp word [esp + 0x14], 0
je 0x42fe36
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x84]
mov edx, dword [esp + 0x24]
push ecx
push eax
add ebp, edx
lea eax, [edi + ebp + 0x2e]
push eax
call fcn.0043fe10
add esp, 0xc
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
push 1
push ebx
push edi
call fcn.00435880
lea ecx, [esi + 0x44]
call fcn.00437f70
mov ecx, esi
call fcn.0042f280
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xffffffff
call fcn.0042d720
mov eax, ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x430950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46220b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0042fb80
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
xor ebp, ebp
mov dword [esp + 0x14], ebp
test eax, 0xfffffffc
jle 0x430a41
push 0x10
call fcn.0043eddd
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
xor eax, eax
mov dword [esp + 0x28], eax
cmp edi, eax
je 0x4309c5
push ebp
mov ecx, ebx
call fcn.0042f670
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0042ecd0
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x30], eax
test edx, edx
jne 0x4309dc
xor ecx, ecx
jmp 0x4309e4
mov ecx, dword [esi + 0x14]
sub ecx, edx
sar ecx, 2
mov edi, dword [esi + 0x10]
mov ebp, edi
sub ebp, edx
sar ebp, 2
cmp ebp, ecx
jae 0x4309fc
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x430a1a
cmp edx, edi
jbe 0x430a05
call fcn.0043ef9f
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
push edi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004321d0
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xfffffffc
je 0x430a59
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
mov ebp, dword [esp + 0x14]
inc ebp
sar ecx, 2
cmp ebp, ecx
mov dword [esp + 0x14], ebp
jl 0x430999
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push 0
push 0xdf
call fcn.00425ad0
int3

Function at 0x430c80
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x430c91
xor al, al
pop esi
ret 4
push 0x4669a8
push 0
push 0
push 4
push 0
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x430c8b
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret 4
Function at 0x432650
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x462298
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x20]
lea ebx, [eax + 0x16]
push 0
push ebx
lea ecx, [esp + 0x1c]
call fcn.0042d6f0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 0x3c]
mov edi, dword [esp + 0x18]
movzx ebp, word [eax + 0x24]
shr ecx, 4
mov dword [esp + 0x28], 0
test cl, 1
je 0x4326df
mov ecx, eax
mov edx, dword [ecx + 0x3c]
and edx, 0x70
cmp dl, 0x70
jne 0x4326cb
push 1
call fcn.00435830
mov eax, dword [esi + 0x24]
xor ecx, ecx
mov word [eax + 4], cx
jmp 0x4326df
push ebx
call fcn.00435830
mov edx, dword [esi + 0x14]
movzx eax, word [edx + 0x24]
mov ecx, dword [esi + 0x24]
mov word [ecx + 4], ax
mov eax, dword [esi + 0x24]
cmp word [eax + 4], bp
je 0x4326fc
mov edx, dword [esi + 0x14]
mov ecx, dword [edx + 0x3c]
and ecx, 0x70
cmp cl, 0x70
je 0x4326fc
xor edx, edx
mov word [eax + 8], dx
mov eax, dword [esi + 0x24]
mov ecx, dword [0x476a74]
mov eax, dword [eax + 0x20]
mov dword [edi], ecx
mov edx, dword [esi + 0x24]
movzx ecx, word [edx + 4]
mov word [edi + 4], cx
mov ecx, dword [esi + 0x24]
movzx ecx, word [ecx + 6]
mov word [edi + 6], cx
mov edx, dword [esi + 0x24]
movzx ecx, word [edx + 8]
mov word [edi + 8], cx
mov ecx, dword [esi + 0x24]
movzx ecx, word [ecx + 0xa]
mov word [edi + 0xa], cx
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + 0xc]
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 0x24]
mov ecx, dword [ecx + 0x10]
mov dword [edi + 0x10], ecx
mov word [edi + 0x14], ax
mov edx, dword [esi + 0x24]
mov ecx, dword [edx + 0x1c]
movzx eax, ax
push eax
push ecx
add edi, 0x16
push edi
call fcn.0043fe10
add esp, 0xc
cmp ebx, 0xffffffff
jbe 0x432774
push 0
push 0xd7
call fcn.00425ad0
mov ecx, dword [esp + 0x18]
push 1
push ebx
push ecx
mov ecx, dword [esi + 0x14]
call fcn.00435880
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042d720
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x434790
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x462588
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov edi, dword [esp + 0xd8]
mov esi, dword [esp + 0xdc]
xor eax, eax
mov dword [esp + 0x10], eax
xor edx, edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], dx
mov ebx, 1
mov dword [esp + 0xd0], ebx
test byte [esp + 0xe4], bl
je 0x43481c
push 0xffffffffffffffff
add ecx, 4
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00408e40
jmp 0x434850
mov ax, word [esp + 0xe0]
cmp ax, 0x64
jae 0x43483a
movzx eax, ax
push eax
push str.z_.2u
lea ecx, [esp + 0x20]
push ecx
jmp 0x434848
movzx edx, ax
push edx
push 0x466a34
lea eax, [esp + 0x20]
push eax
call fcn.00429070
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x43485b
mov esi, dword [esi + 4]
jmp 0x43485e
add esi, 4
push esi
lea ecx, [esp + 0x38]
call fcn.00424d80
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xd0], 2
jae 0x43487f
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
call fcn.004289a0
push edi
lea ecx, [esp + 0x38]
call fcn.00428a60
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ebx
mov byte [esp + 0xd0], bl
call fcn.0042d790
cmp dword [esp + 0x30], 8
jb 0x4348bb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0043e711
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0043f03d
add esp, 0xc4
ret 0x10
Function at 0x436900
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x436913
pop esi
xor eax, eax
pop ebx
ret 8
push edi
call fcn.004444e6
mov dword [eax], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
push esi
push eax
push ecx
call fcn.004493a0
mov edi, eax
add esp, 0xc
cmp edi, esi
jge 0x436948
call fcn.004444e6
cmp dword [eax], 0
je 0x436948
mov ecx, ebx
call fcn.00436600
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x437a80
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
call fcn.00439160
movsx ecx, byte [esp + 0x10]
xor ecx, edi
and ecx, 0xff
mov eax, dword [eax + ecx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0xc]
movzx ebx, al
add ebx, dword [esi + 8]
mov dword [esi + 4], eax
imul ebx, ebx, 0x8088405
inc ebx
mov dword [esi + 8], ebx
shr ebx, 0x18
call fcn.00439160
movsx edx, bl
xor edx, edi
shr edi, 8
and edx, 0xff
xor edi, dword [eax + edx*4]
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 4

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

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov dword [edi + 4], 0x12345678
mov dword [edi + 8], 0x23456789
mov dword [edi + 0xc], 0x34567890
cmp dword [eax + 8], ebp
jbe 0x437b69
push ebx
push esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov bl, byte [edx + ebp]
mov esi, dword [edi + 4]
call fcn.00439160
movsx ecx, bl
xor ecx, esi
and ecx, 0xff
mov eax, dword [eax + ecx*4]
shr esi, 8
xor eax, esi
mov esi, dword [edi + 0xc]
movzx ebx, al
add ebx, dword [edi + 8]
mov dword [edi + 4], eax
imul ebx, ebx, 0x8088405
inc ebx
mov dword [edi + 8], ebx
shr ebx, 0x18
call fcn.00439160
movsx edx, bl
xor edx, esi
and edx, 0xff
shr esi, 8
xor esi, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
inc ebp
mov dword [edi + 0xc], esi
cmp ebp, dword [eax + 8]
jb 0x437b06
pop esi
pop ebx
pop edi
pop ebp
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x462298
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
push eax
call fcn.00437ae0
xor ebp, ebp
push ebp
push 0xc
lea ecx, [esp + 0x1c]
call fcn.0042d6f0
mov ecx, dword [esp + 0x18]
push ebp
push 0xc
push ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x34], ebp
call fcn.00435d40
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
mov edi, dword [esi + 4]
and eax, 0xfffd
or eax, 2
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, byte [edx + ebp]
call fcn.00439160
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov eax, dword [eax + ecx*4]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 0xc]
mov dword [esi + 4], eax
movzx eax, al
add eax, dword [esi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 8], eax
shr eax, 0x18
mov byte [esp + 0x30], al
call fcn.00439160
movsx edx, byte [esp + 0x30]
xor edx, edi
and edx, 0xff
shr edi, 8
xor edi, dword [eax + edx*4]
inc ebp
cmp ebp, 0xc
mov dword [esi + 0xc], edi
jl 0x437bc6
mov eax, dword [esp + 0x34]
mov cl, byte [eax + 8]
shr cl, 3
test cl, 1
je 0x437c50
cmp byte [eax + 0xd], bl
jmp 0x437c53
cmp byte [eax + 0x13], bl
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.0042d720
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x43ac90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x43ad20
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.0043fe10
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x43acef
sub eax, ebp
jmp 0x43acf1
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x43ace0
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x43ad10
sub eax, ebp
jmp 0x43ad12
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x43ad01
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x43ae3a
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x43ad48
mov ebx, edx
test ebx, ebx
je 0x43ad83
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x43ad71
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0043caa0
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [edi]
push ebx
push edx
push eax
call fcn.0043fe10
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x43adae
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
movzx edx, byte [edx + 1]
shl eax, cl
xor eax, edx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x43adc2
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x43aca0
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x43ae3a
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x43ae09
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x43ade9
mov ebx, 0x102
mov ecx, dword [esi + 0x38]
push ebx
add ecx, edi
push 0
push ecx
call fcn.0043f440
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x43ae3a
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x43ae23
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.0043f440
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret