joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ec50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
push esi
push edi
mov edi, dword [eax + 0x10]
mov esi, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
mov ebx, dword [edi + 0x48]
xor ebx, edx
test edx, edx
je 0x41ec9d
mov edx, dword [ebp - 8]
nop dword [eax + eax]
movzx ecx, byte [edx + esi - 1]
mov eax, ebx
shl eax, 5
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
sub esi, 1
jne 0x41ec80
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x41ed1d
movzx eax, byte [edi + 7]
cmp edx, eax
jne 0x41ed16
mov eax, dword [ebp + 8]
lea edx, [edi + 0x10]
mov ecx, dword [ebp - 8]
mov esi, eax
sub esi, 4
jb 0x41ece1
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41ece6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x41ecd0
cmp esi, 0xfffffffc
je 0x41ed4c
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x41ed13
cmp esi, 0xfffffffd
je 0x41ed4c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x41ed13
cmp esi, 0xfffffffe
je 0x41ed4c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x41ed13
cmp esi, 0xffffffff
je 0x41ed4c
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x41ed4c
mov edx, dword [ebp + 8]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x41ecb3
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov eax, dword [edi + 0x1c]
cmp eax, dword [edi + 0x20]
jl 0x41ed8d
cmp eax, 0x7fffffff
jne 0x41ed6a
mov edx, 1
mov ecx, esi
call fcn.0041d1a0
cmp dword [edi + 0x1c], 0x7fffffff
jne 0x41ed6a
jmp 0x41eddd
mov ecx, dword [ebp - 0xc]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x41ed61
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x20]
cmp edx, 0x1fffffff
jg 0x41ed7e
add edx, edx
mov ecx, esi
call fcn.0041eb70
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebx
lea eax, [eax + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, 4
add eax, 0x11
mov ecx, esi
push eax
call fcn.0041b1c0
mov esi, eax
add esp, 4
mov dword [esi + 8], ebx
lea ecx, [esi + 0x10]
mov ebx, dword [ebp + 8]
push ebx
push dword [ebp - 8]
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call fcn.004b3ff0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov byte [esi + 7], bl
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, esi
call fcn.00419ea0
int3
Function at 0x443360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xff976
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x146120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x148], esi
call fcn.0043aa10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x138]
mov dword [esi + 0x124], 0
call fcn.0043aa10
mov byte [ebp - 0x140], 0
mov dword [ebp - 0x144], 0
lea edx, [ebp - 0x138]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
call fcn.0043c260
test al, al
je 0x443534
cmp byte [ebp - 0x1c], 0
lea eax, [ebp - 0x12c]
mov ecx, 0x121980
cmove eax, dword [ebp - 0x130]
add eax, 4
cmovne ecx, eax
mov dword [ebp - 0x13c], ecx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x443410
sub ecx, edx
sar ecx, 1
mov dword [esi + 4], ecx
lea ebx, [ecx + 1]
push ebx
lea ecx, [esi + 8]
call fcn.0043b2c0
cmp byte [esi + 0x11c], 0
lea ecx, [esi + 0xc]
jne 0x44343d
mov ecx, dword [esi + 8]
lea eax, [ebx + ebx]
add ecx, 4
push eax
push dword [ebp - 0x13c]
push ecx
call fcn.004b3ff0
add esp, 0xc
push 0x1219e4
push 0x12e458
push esi
call fcn.0043afd0
add esp, 0xc
push 0x12fd1c
push 0x12e458
push esi
call fcn.0043afd0
add esp, 0xc
push 0x234
call fcn.004b1764
add esp, 4
mov dword [ebp - 0x13c], eax
push 0x130168
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00443130
cmp byte [0x14bd9c], 0
mov dword [esi + 0x128], eax
jne 0x4434b9
cmp byte [0x14ddaa], 0
je 0x4434b9
mov al, 1
jmp 0x4434bb
xor al, al
test al, al
je 0x443534
cmp dword [0x147540], 0
je 0x44351e
push 0xc
call fcn.004bb230
mov edi, eax
add esp, 4
mov dword [edi], 0x42ae0
mov dword [edi + 4], esi
cmp dword [0x147540], 0
jne 0x4434ea
xor eax, eax
jmp 0x4434f6
push dword [0x147548]
call dword [0x1052dc]
mov dword [edi + 8], eax
test eax, eax
je 0x443511
add eax, 4
push eax
call dword [0x10527c]
push edi
push 0
push 0x54ec0
jmp 0x443526
push edi
call fcn.004bb22b
add esp, 4
xor eax, eax
jmp 0x44352e
push esi
push 0
push 0x42ae0
call fcn.004c7a74
add esp, 0xc
mov dword [esi + 0x124], eax
lea ecx, [ebp - 0x144]
call fcn.0043b370
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x138], 0x12e470
jne 0x443568
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
cmp eax, ecx
je 0x443568
push eax
call fcn.004bb22b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1753
mov esp, ebp
pop ebp
ret
Function at 0x4461c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov ecx, dword [ebp + 8]
mov esi, edi
cmp ecx, 3
jl 0x446257
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov dword [ebp + 8], ecx
nop dword [eax]
movzx eax, byte [ebx]
shr eax, 2
movzx eax, byte [eax + 0x128320]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
or ecx, eax
movzx eax, byte [ecx + 0x128320]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
shl ecx, 2
or ecx, eax
movzx eax, byte [ecx + 0x128320]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
movzx eax, byte [eax + 0x128320]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x4461f0
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4462ab
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + 0x128320]
mov byte [esi], al
mov dl, byte [ebx]
and dl, 3
shl dl, 4
cmp ecx, 1
jle 0x44627e
mov al, byte [ebx + 1]
shr al, 4
or dl, al
movzx eax, dl
mov al, byte [eax + 0x128320]
mov byte [esi + 1], al
cmp ecx, 2
jge 0x446293
mov al, 0x3d
jmp 0x4462a1
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x128320]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4462b1
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x446e00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xffd87
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x146120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
lea edx, [esi + 0x20]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xba230
mov dword [esi + 0x18], 0xba1ed
mov dword [esi + 0x1c], 0xba22b
mov dword [edx + 4], 0xba230
mov dword [edx + 8], 0xba1ed
mov dword [edx + 0xc], 0xba22b
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0x1fff8
mov dword [edx], 0x12fefc
mov dword [esi + 0x3c], 0xba230
mov dword [esi + 0x40], 0xba1ed
mov dword [esi + 0x44], 0xba22b
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x8000
mov dword [esi + 0x38], 0x12fefc
mov dword [esi + 0x50], 0
mov byte [esi + 0x54], 1
mov dword [ebp - 4], 0
lea eax, [esi + 0x58]
mov dword [esi], 0x130600
mov dword [ebp - 0x14], eax
mov byte [eax + 4], 0
mov dword [eax + 8], 0x130008
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0xba230
mov dword [eax + 0x20], 0xba1ed
mov dword [eax + 0x24], 0xba22b
mov dword [eax + 0x28], edx
mov dword [eax], 0x13060c
mov byte [eax + 0x30], 0
mov dword [eax + 0x34], 0x1305a0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x2c], 0x130068
mov byte [eax + 0x44], 0
mov dword [eax + 0x48], 0x1305b0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x40], 0x130068
lea ecx, [esi + 0xac]
mov dword [ebp - 0x14], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0x12e534
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], 0
lea eax, [esi + 0x84]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0xba230
mov dword [ecx + 0x24], 0xba1ed
mov dword [ecx + 0x28], 0xba22b
mov dword [ecx], 0x1301c0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], eax
lea ecx, [esi + 0xe0]
mov dword [ebp - 0x14], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0x130598
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0xba230
mov dword [ecx + 0x24], 0xba1ed
mov dword [ecx + 0x28], 0xba22b
lea eax, [esi + 0x98]
mov dword [ecx], 0x1301c0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00447030
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x448690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00448410
add esp, 4
test eax, eax
js 0x44887c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x448704
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4486c4
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x448877
lea esi, [ebx + 2]
nop dword [eax + eax]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x127f20]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x1269f8]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1265f8]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1261f8]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x127720]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x127f20]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x1269f8]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1265f8]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1261f8]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x127720]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x127f20]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x1269f8]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1265f8]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1261f8]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x127720]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x127f20]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x1269f8]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1265f8]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x1261f8]
movzx eax, dl
movzx eax, byte [eax*4 + 0x127f20]
xor ecx, dword [eax*4 + 0x127720]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x448720
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x44bd10
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ab
mov eax, dword fs:[0]
push eax
mov eax, 0x113c
call fcn.004b2720
mov eax, dword [0x146120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1144], edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp + 0xc]
push 0x1000
mov dword [ebp - 0x1140], eax
lea eax, [ebp - 0x1010]
push 0
push eax
mov dword [esi], 0
call fcn.004b4570
mov ecx, dword [ebp - 0x1138]
lea eax, [ebp - 0x113c]
add esp, 0xc
mov dword [ebp - 0x113c], 0x1000
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
push 0x21
push dword [ecx]
call dword [0x1055e0]
test eax, eax
jne 0x44bdb7
mov dword [esi], 5
jmp 0x44beb5
mov eax, dword [ebp - 0x113c]
and eax, 0xfffffffe
cmp eax, 0x1000
jae 0x44bf21
xor ecx, ecx
mov word [ebp + eax - 0x1010], cx
mov eax, dword [ebp - 0x1138]
push dword [eax]
call dword [0x1055b8]
lea ecx, [ebp - 0x1134]
call fcn.0043aa10
mov dword [ebp - 4], 0
lea eax, [edi + 0xc]
cmp byte [edi + 0x11c], 0
jne 0x44be04
mov eax, dword [edi + 8]
add eax, 4
lea edx, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1134]
call fcn.0044b8f0
add esp, 4
test al, al
jne 0x44be53
mov dword [esi], 7
mov dword [ebp - 0x1134], 0x12e470
cmp byte [ebp - 0x1018], al
jne 0x44beb5
mov eax, dword [ebp - 0x112c]
lea ecx, [ebp - 0x1128]
cmp eax, ecx
je 0x44beb5
push eax
call fcn.004bb22b
add esp, 4
jmp 0x44beb5
lea eax, [ebp - 0x1134]
mov ecx, edi
push eax
call fcn.0043acd0
cmp byte [ebp - 0x1018], 0
lea eax, [ebp - 0x1128]
mov ecx, dword [ebp - 0x1140]
cmove eax, dword [ebp - 0x112c]
or ecx, 0x200000
push 0
push ecx
push 0
push 0
add eax, 4
push eax
push dword [ebp - 0x1144]
call dword [0x1055b4]
mov ecx, dword [ebp - 0x1138]
mov dword [ecx], eax
test eax, eax
jne 0x44bed3
mov dword [esi], 8
lea ecx, [ebp - 0x1134]
call fcn.0043ac50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1753
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x1148]
mov dword [ebp - 0x1148], 4
push ecx
push ebx
push 0x20000013
push eax
call dword [0x1055e0]
test eax, eax
jne 0x44beff
mov dword [esi], 6
jmp 0x44beaa
mov eax, dword [ebx]
cmp eax, 0xc8
je 0x44beaa
add eax, 0xfffffed4
lea ecx, [ebp - 0x1134]
cmp eax, 0x63
ja 0x44beb0
call fcn.0043ac50
mov al, 1
jmp 0x44beb7
call fcn.004b1ee3
int3
Function at 0x45b3c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x55555556
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ecx
lea edx, [ebx*4]
imul edx
mov esi, edx
add edx, 0x10
shr esi, 0x1f
add esi, edx
lea eax, [esi + 1]
push eax
call fcn.004b1fbf
add esp, 4
mov ecx, eax
mov dword [ebp + 8], ecx
test edi, edi
je 0x45b51d
test ecx, ecx
je 0x45b51d
lea edx, [ebx + 2]
test edx, edx
js 0x45b51d
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x45b51d
mov esi, ecx
cmp ebx, 2
jle 0x45b4b1
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
sub ebx, eax
nop word [eax + eax]
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + 0x12acf0]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
movzx eax, byte [eax + ecx*8 + 0x12acf0]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
movzx eax, byte [eax + ecx*4 + 0x12acf0]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x12acf0]
mov byte [esi + 3], al
add esi, 4
sub edx, 1
jne 0x45b450
mov ecx, dword [ebp + 8]
test ebx, ebx
je 0x45b518
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + 0x12acf0]
mov byte [esi], al
cmp ebx, 1
jle 0x45b4fd
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
movzx eax, byte [eax + ecx*8 + 0x12acf0]
mov ecx, dword [ebp + 8]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + 0x12acf0]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
jmp 0x45b515
movzx eax, byte [edi]
and eax, 3
shl eax, 4
mov al, byte [eax + 0x12acf0]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
add esi, 4
mov byte [esi], 0
sub esi, ecx
mov ebx, dword [ebp - 4]
lea edx, [ecx + 1]
mov byte [ecx + esi], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45b538
mov esi, dword [ebp + 8]
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.004036c0
push esi
call fcn.004b2357
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
jne 0x45b89e
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
cmp esi, 8
jb 0x45b95b
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
sub edi, 1
jne 0x45b8b4
pop edi
test esi, esi
je 0x45b97a
nop
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x12af38]
sub esi, 1
jne 0x45b960
not eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46081a
Capabilities:
Write file on windows

Disassembly:
or byte [edx + 2], dh
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x58]
push eax
call fcn.004040c0
mov dword [ebp - 0x78], 0
xor ecx, ecx
mov dword [ebp - 0x74], 0
push 2
movups xmm0, xmmword [eax]
push 0x12e434
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x78], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x88]
call fcn.004040c0
mov dword [ebp - 0x90], 0
xor ecx, ecx
mov dword [ebp - 0x8c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x90], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x88]
call fcn.00403570
lea ecx, [ebp - 0x58]
call fcn.00403570
lea ecx, [ebp - 0x70]
call fcn.00403570
mov eax, dword [0x151e58]
test al, 1
jne 0x4607a5
or eax, 1
mov dword [0x151e74], 0
mov dword [0x151e58], eax
mov ecx, 0x151e80
xor eax, eax
mov dword [0x151e78], 7
mov word [0x151e64], ax
call fcn.0044f3d0
push 0x104430
call fcn.004b19fa
add esp, 4
mov eax, dword [edi + 0x64]
cmp eax, dword [0x151e7c]
jg 0x4608d6
cmp dword [0x151e74], 0
je 0x4608d6
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0044ef30
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 0x10
jb 0x4607de
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4607f5
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004036c0
lea ecx, [ebp - 0x58]
call fcn.00403360
mov ecx, 0x151e80
call fcn.0044f400
push 0
push 0x151e64
call fcn.0044f670
cmp dword [0x151e78], 8
mov ecx, 0x151e64
push 0x105ca4
cmovae ecx, dword [0x151e64]
mov byte [ebp - 0xa1], al
lea eax, [ebp - 0xac]
push ecx
push eax
mov dword [ebp - 0xac], 0
call fcn.004bb410
mov esi, dword [ebp - 0xac]
add esp, 0x14
test esi, esi
jne 0x46086d
mov dword [ebp - 4], esi
jmp 0x4608c1
cmp byte [ebp - 0xa1], 0
jne 0x46089a
push esi
push 3
lea eax, [ebp - 0xa8]
mov word [ebp - 0xa8], 0xbbef
push 1
push eax
mov byte [ebp - 0xa6], 0xbf
call fcn.004c1fd3
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push 1
push eax
call fcn.004c1fd3
push esi
call fcn.004bb4e4
add esp, 0x14
mov dword [ebp - 4], 1
mov ecx, 0x151e80
call fcn.0044f410
lea ecx, [ebp - 0x40]
call fcn.00403360
lea esi, [edi + 0x18]
lea ecx, [ebp - 0xa0]
call fcn.00403570
lea ecx, [ebp - 0x28]
call fcn.00403570
lea ecx, [edi + 0x4c]
call fcn.00403570
lea ecx, [edi + 0x34]
call fcn.00403570
mov ecx, esi
call fcn.00403570
mov ecx, edi
call fcn.00403570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1753
mov esp, ebp
pop ebp
ret
Function at 0x47478d
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x476bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x476bce
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x476c8d
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 + 0x109278]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
sub edi, 1
jne 0x476be6
pop edi
test esi, esi
je 0x476ca9
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x109278]
inc edx
sub esi, 1
jne 0x476c91
not ecx
mov eax, ecx
pop esi
pop ebp
ret