joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x6f5008], 0x8088405
inc edx
mov dword [ebx + 0x6f5008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6de6d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6de6da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x6df0cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0x6f7258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0x6f7258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0x6f60e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6df0d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40807c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x4080a3
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, esi
push 5
pop ebx
div ebx
mov al, byte [edx + ecx]
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x40808c
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40bc8f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
or ebx, 0xffffffff
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
cmp dword [ebp + 8], ebx
jne 0x40bcb0
xor eax, eax
jmp 0x40be31
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40bcde
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40bcde
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40be31
cmp dword [esi + 0x4c], 0
je 0x40be2f
mov ecx, esi
call fcn.0040c3eb
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x38], ecx
jne 0x40bd12
push dword [esi + 0x4c]
movsx eax, al
push eax
call fcn.0047598a
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x40be2f
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
push 8
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.0040c33d
lea eax, [esi + 0x40]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x38]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x2c]
mov edi, dword [esi]
cmovae ecx, dword [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x30]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x30]
call dword [edi + 0x1c]
test eax, eax
js 0x40be22
cmp eax, 1
jg 0x40be03
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp edi, 0x10
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x20], edx
je 0x40bdd0
push dword [esi + 0x4c]
cmp edi, 0x10
lea eax, [esp + 0x2c]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.0047650f
mov edx, dword [esp + 0x30]
add esp, 0x10
cmp edx, eax
jne 0x40be22
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x24], eax
jne 0x40bdfe
test edx, edx
jne 0x40bd3d
cmp dword [esp + 0x38], 0x20
jae 0x40be22
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.0040c38b
jmp 0x40bd39
mov ebx, dword [ebp + 8]
jmp 0x40be22
cmp eax, 3
jne 0x40be22
mov eax, dword [esp + 0x14]
push dword [eax + 0x4c]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0047598a
cmp eax, ebx
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.0040726c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c473
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40c581
cmp byte [ebx + 0x3d], 0
je 0x40c581
push 0xffffffffffffffff
call fcn.0040bc8f
cmp eax, 0xffffffff
jne 0x40c4a8
xor al, al
jmp 0x40c583
xor eax, eax
mov dword [esp + 0x24], 0xf
push eax
push 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
mov byte [esp + 0x18], al
call fcn.0040c33d
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
lea eax, [esp + 0xc]
mov ecx, dword [ebx + 0x38]
lea edi, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x14]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40c50c
sub eax, 1
je 0x40c510
dec eax
sub eax, 1
je 0x40c56e
xor bl, bl
jmp 0x40c570
mov byte [ebx + 0x3d], 0
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp ecx, 0x10
mov esi, dword [esp + 0xc]
cmovae eax, edx
sub esi, eax
je 0x40c54f
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0047650f
add esp, 0x10
cmp esi, eax
jne 0x40c508
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
cmp byte [ebx + 0x3d], 0
je 0x40c56e
test esi, esi
jne 0x40c4ce
push esi
push 8
lea ecx, [esp + 0x18]
call fcn.0040c38b
jmp 0x40c4c6
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040726c
mov al, bl
jmp 0x40c583
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4128d7
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x48]
mov edx, 0x4a1c90
push eax
push dword [edi + 0x48]
call fcn.0046f431
call eax
test eax, eax
jne 0x412902
inc eax
jmp 0x412abb
mov ebx, dword [ebp - 0x48]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, eax
or edx, 0x20
and bl, 0x20
cmove edx, eax
test ecx, ecx
je 0x412946
or edx, 0x40000000
jmp 0x41294c
or edx, 0x80000000
or edx, 0x1000000
mov ebx, edx
or ebx, 0x800000
test esi, esi
push 0
push dword [edi + 0x48]
cmovne ebx, edx
mov edx, 0x4a1dd0
call fcn.0046f431
call eax
mov dword [edi + 0x3c], eax
mov esi, ebx
cmp eax, 0x28
jbe 0x412a66
cmp dword [edi + 0x10], 0
jne 0x412a66
xor esi, esi
mov edx, 0x4a1dc0
push esi
push esi
push esi
push dword [edi + 0x48]
call fcn.0046f431
call eax
push esi
lea eax, [ebp - 8]
mov edx, 0x4a1db4
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [edi + 0x48]
call fcn.0046f431
call eax
push esi
push esi
push 0x24
push dword [edi + 0x48]
mov edx, 0x4a1dc0
call fcn.0046f431
call eax
push esi
lea eax, [ebp - 8]
mov edx, 0x4a1db4
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [edi + 0x48]
call fcn.0046f431
call eax
mov eax, 0x54ad
mov esi, ebx
cmp word [ebp - 4], ax
jne 0x412a52
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + 0x34]
cmp dword [edi + 0x3c], eax
jbe 0x412a52
xor esi, esi
mov edx, 0x4a1dc0
push esi
push esi
push ecx
push dword [edi + 0x48]
call fcn.0046f431
call eax
push esi
lea eax, [ebp - 8]
mov edx, 0x4a1db4
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x48]
call fcn.0046f431
call eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x5a4d
je 0x412a4a
cmp eax, 0x454e
je 0x412a4a
cmp eax, 0x454c
je 0x412a4a
mov esi, ebx
cmp eax, 0x4550
jne 0x412a52
mov esi, ebx
or esi, 0x400000
xor eax, eax
mov edx, 0x4a1dc0
push eax
push eax
push eax
push dword [edi + 0x48]
call fcn.0046f431
call eax
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
mov dword [ebx + 0x10], esi
call fcn.0041285d
push dword [ebp - 0x30]
mov dword [ebx], eax
push dword [ebp - 0x34]
call fcn.0041285d
push dword [ebp - 0x40]
mov dword [ebx + 4], eax
push dword [ebp - 0x44]
call fcn.0041285d
push dword [ebp - 0x30]
lea edx, [ebp - 8]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
lea ecx, [ebp - 4]
call fcn.004127fa
movzx ecx, word [ebp - 4]
add esp, 0x20
movzx eax, word [ebp - 8]
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov dword [ebx + 0xc], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413d36
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
push 0x1fffc
mov edi, edx
mov byte [esi + 0x6af81], 1
lea ecx, [esi + 0x4af54]
mov dword [esi + 0x6af54], 0x10000
mov dword [esi + 0x6af50], ebx
call fcn.0041808a
movzx eax, word [edi*8 + 0x49c442]
mov dword [esi + 0x6af74], eax
movzx eax, word [edi*8 + 0x49c440]
pop ecx
mov dword [esi + 0x6af78], eax
movzx eax, word [edi*8 + 0x49c444]
push 2
mov dword [esi + 0x6af7c], eax
movzx eax, word [edi*8 + str.Moonchild_ProductionsPale_Moon_]
pop ecx
mov dword [esi + 0x6af70], eax
cmp edi, ecx
ja 0x413db2
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x413dbd
cmp edi, 8
jb 0x413dbd
mov eax, dword [ebp + 8]
or word [eax], cx
mov ecx, dword [esi]
lea edi, [esi + 0x1af54]
push 0x10000
mov edx, edi
call fcn.00414a7d
mov dword [esi + 0x6af6c], eax
pop ecx
test eax, eax
je 0x413e1f
mov byte [esi + 0x6af80], bl
mov dword [esi + 0x6af58], ebx
mov dword [esi + 0x6af64], ebx
cmp eax, 0x106
jae 0x413dfc
mov ecx, esi
call fcn.00413f82
mov dword [esi + 0x6af5c], ebx
mov ecx, ebx
movzx eax, byte [edi + ebx]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc ebx
mov dword [esi + 0x6af5c], ecx
cmp ebx, 2
jb 0x413e04
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4146dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4146e7
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4147a3
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 + 0x49bfc0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
sub edi, 1
jne 0x4146fc
pop edi
test esi, esi
je 0x4147bf
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x49bfc0]
inc edx
sub esi, 1
jne 0x4147a7
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

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 + 0x49bfc0]
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 + 0x49bfc0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret
Function at 0x418789
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
push edi
cmp byte [ebx + 0x28], 0
jne 0x4188b2
xor eax, eax
inc eax
cmp byte [ebx + 0x2a], 0
push esi
je 0x4187b4
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 8], edx
jmp 0x4187be
mov ecx, 0x7d0
mov dword [ebp - 8], eax
mov esi, eax
lea eax, [ecx + 0x1269]
mov dword [ebp - 4], ecx
cmp eax, 0x3978
ja 0x4188aa
cmp byte [ebx + 0x29], 0
jne 0x4188aa
cmp esi, 2
jg 0x4187e8
dec ecx
add esi, 0xc
mov dword [ebp - 4], ecx
mov eax, ecx
cdq
push 0x64
pop ecx
idiv ecx
lea ecx, [esi + 1]
mov edi, eax
imul eax, ecx, 0x4ab51
mov ecx, 0x2710
push 0x64
cdq
idiv ecx
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0x126c
imul eax, ecx, 0x8ead
pop ecx
cdq
idiv ecx
add esi, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add esi, eax
mov eax, dword [ebp - 8]
add eax, 2
sub esi, edi
add eax, esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
subsd xmm0, qword [0x4a7938]
mulsd xmm0, qword [0x4a7958]
call 0x48e66f
cmp byte [ebx + 0x2b], 0
mov dword [ebx], eax
mov dword [ebx + 4], edx
mov byte [ebx + 0x28], 1
je 0x4188b1
imul eax, dword [ebx + 0x14], 0x3c
movsd xmm0, qword [ebx + 0x20]
mulsd xmm0, qword [str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_]
add eax, dword [ebx + 0x18]
imul eax, eax, 0xea60
cdq
mov esi, eax
mov edi, edx
call 0x48e66f
sub esi, eax
sbb edi, edx
add dword [ebx], esi
adc dword [ebx + 4], edi
cmp byte [ebx + 0x2c], 0
je 0x4188b1
imul eax, dword [ebx + 0x1c], 0xea60
cdq
sub dword [ebx], eax
sbb dword [ebx + 4], edx
xor eax, eax
mov word [ebx + 0x2a], ax
mov byte [ebx + 0x2c], al
jmp 0x4188b1
mov ecx, ebx
call fcn.00418773
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418c4a
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x90]
push 9
pop ecx
xor eax, eax
mov ebx, edx
rep stosd dword es:[edi], eax
push 0xc
pop ecx
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x6c]
call fcn.00418c19
mov eax, dword [ebp - 0x64]
xor ecx, ecx
add eax, 0xfffff84d
cmp eax, 0x42
ja 0x418ca1
movsd xmm0, qword [ebp - 0x4c]
addsd xmm0, qword [0x4a78e0]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
jmp 0x418cb2
movaps xmm0, xmmword [0x4a79f0]
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x6c]
movsd qword [ebp - 0x4c], xmm0
call fcn.00418789
push 0
push 0x3e8
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.0048dd00
sub eax, 0x18a36940
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
sbb edx, 0x31
mov dword [ebp - 8], edx
lea edx, [ebp - 0x90]
call fcn.00418c33
test eax, eax
je 0x418d16
push 0xffffffffffffffff
push 0x4a2690
push ebx
call fcn.004350ce
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], 1
xor eax, eax
xor edx, edx
jmp 0x418d7c
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x3c]
movd xmm0, dword [ebp - 0x90]
add eax, 0x76c
mov dword [ebp - 0x34], eax
xor ebx, ebx
mov eax, dword [ebp - 0x80]
inc eax
mov dword [ebp - 0x14], 0x1010000
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x84]
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x10], bl
movsd qword [ebp - 0x1c], xmm0
mov byte [ebp - 0xe], bl
call fcn.00418789
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
mov dword [eax], ebx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x6c]
sbb edx, dword [ebp - 0x68]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419c36
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ecx], 2
push esi
push edi
mov esi, edx
jl 0x419c55
mov eax, dword [ecx + 0x48]
test eax, eax
je 0x419c55
push esi
push ecx
call eax
pop ecx
pop ecx
mov edi, eax
jmp 0x419c78
lea eax, [ebp - 8]
push eax
push ecx
call dword [ecx + 0x40]
movsd xmm0, qword [ebp - 8]
mov edi, eax
mulsd xmm0, qword [0x4a7958]
pop ecx
pop ecx
call 0x48e66f
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41d5d3
Capabilities:
Reference http user-agent string

Disassembly:
push ecx
push ecx
push 0x4a2854
push 0x15
call fcn.0041be99
add esp, 0xc
pop ecx
ret

Function at 0x4203a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x4203d6
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + eax]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
inc edx
cmp eax, dword [ecx + 4]
cmovl esi, eax
mov eax, dword [ebp - 4]
cmp edx, edi
jl 0x4203bc
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x423a5a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x423a8e
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x423aef
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.0041a696
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x423ad8
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0x98]
dec ecx
push esi
cdq
push ecx
push edx
push eax
call fcn.0048da00
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [ebp + 8]
push eax
call fcn.00419b6a
pop ecx
pop ecx
push 7
pop eax
jmp 0x423b00
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ecx
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret