joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f868
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x469838]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44f8ae
cmp word [ebx], dx
jne 0x44f8ae
or byte [eax + edi + 0x28], 4
jmp 0x44f8b3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44fa16
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44f9f6
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44f8f4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44f92a
cmp eax, edx
jae 0x44f938
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x44f8cf
jmp 0x44fa16
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f9f1
cmp dword [ebp - 0x18], 0
je 0x44f9f1
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x469838]
test byte [eax + edi + 0x28], 0x48
je 0x44f9c7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x44f98b
mov word [esi], cx
jmp 0x44f9c2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x469838]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x469838]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x469838]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44fa16
pop eax
cmp word [ebp - 4], ax
jne 0x44f9d7
cmp esi, ebx
jne 0x44f9d7
mov word [esi], ax
jmp 0x44fa13
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044f56d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44fa16
push 0xd
pop eax
jmp 0x44f9d2
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x469838]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44fa10
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44fa16
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x454510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45453d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45453d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd18
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 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
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 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
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 0x41cd40
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 0x41e558
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 0x5c2a17
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 0x41e609
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 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
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 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
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 0x5c2a1e
ret
Function at 0x41ee60
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 0x5c340f
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 0x41ee9b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eeb4
lea eax, [ebp - 0x10]
mov edx, dword [0x5dc268]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eec7
lea eax, [ebp - 0x10]
mov edx, dword [0x5dc268]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eed3
adc edx, 0
mov edx, dword [edx*4 + 0x5db0e8]
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 0x41efe1
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.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41efd4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dd4
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.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41efd4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41efd4
cmp dx, 0x150
ja 0x41efd4
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.00406d74
test eax, eax
je 0x41efd4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41efd4
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 0x41eff9
inc ebx
cmp ebx, 0x19
jne 0x41ee8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c3416
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], eax
push ebx
mov dword [ebp - 8], ecx
mov eax, dword [eax + 0x78]
add eax, ecx
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ebx, ecx
mov dword [ebp - 0x14], ebx
add edx, ecx
mov ebx, dword [eax + 0x24]
add ebx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x4012ef
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edx + ebx*4]
add edx, ecx
xor ecx, ecx
mov al, byte [edx]
test al, al
je 0x401296
imul ecx, ecx, 0x1003f
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx]
test al, al
jne 0x401282
xor ecx, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x4012de
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ecx
je 0x4012ae
inc esi
cmp esi, edi
jb 0x4012a2
jmp 0x4012de
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
add ecx, dword [ebp - 8]
cmp ecx, edx
jb 0x4012d8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x7c]
add eax, edx
cmp ecx, eax
jae 0x4012d8
call fcn.00401140
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 4]
inc ebx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp ebx, dword [eax + 0x18]
jb 0x401275
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov dword [ebp - 4], ecx
mov edi, dword [ebx]
cmp edi, ebx
je 0x40135d
lea esp, [esp]
mov esi, dword [edi + 0x30]
xor edx, edx
movzx eax, word [esi]
test ax, ax
je 0x401352
lea ecx, [ecx]
lea ecx, [eax - 0x41]
movzx eax, ax
cmp cx, 0x19
ja 0x40133f
add eax, 0x20
imul edx, edx, 0x1003f
add esi, 2
add edx, eax
movzx eax, word [esi]
test ax, ax
jne 0x401330
cmp edx, dword [ebp - 4]
je 0x401366
mov edi, dword [edi]
cmp edi, ebx
jne 0x401320
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4015e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov dword [ebp - 4], edx
lea eax, [ebp - 0x44]
mov edx, dword [ebp + 8]
mov bl, 0x41
push edi
mov edi, ecx
mov esi, edx
mov byte [eax], bl
inc bl
inc eax
cmp bl, 0x5a
jle 0x4015f8
mov cl, 0x61
mov byte [eax], cl
inc cl
inc eax
cmp cl, 0x7a
jle 0x401604
mov cl, 0x30
mov byte [eax], cl
lea eax, [eax + 1]
inc cl
cmp cl, 0x39
jle 0x401610
mov ebx, dword [ebp - 4]
mov word [eax], 0x2f2b
cmp ebx, 3
jb 0x401690
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
movzx ecx, byte [edi]
sub ebx, 3
movzx eax, byte [edi + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
add edi, 3
add ecx, eax
mov eax, ecx
shr ecx, 6
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 3], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 2], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 1], al
movzx eax, byte [ebp + ecx - 0x44]
mov byte [esi], al
add esi, 4
dec edx
jne 0x401632
mov edx, dword [ebp + 8]
test ebx, ebx
je 0x4016ee
mov cl, byte [edi]
cmp ebx, 1
jbe 0x4016a1
movzx eax, byte [edi + 1]
jmp 0x4016a3
xor eax, eax
movzx ecx, cl
movzx eax, al
shl ecx, 8
add ecx, eax
shl ecx, 8
shr ecx, 6
mov eax, ecx
shr ecx, 6
and eax, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 2], al
mov eax, ecx
and eax, 0x3f
shr ecx, 6
and ecx, 0x3f
movzx eax, byte [ebp + eax - 0x44]
mov byte [esi + 1], al
movzx eax, byte [ebp + ecx - 0x44]
mov byte [esi], al
mov byte [esi + 3], 0x3d
cmp ebx, 1
jne 0x4016eb
mov byte [esi + 2], 0x3d
add esi, 4
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401760
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x33323130
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], 0x37363534
lea eax, [esi + edx]
mov dword [ebp - 0xc], 0x42413938
xor edx, edx
mov dword [ebp - 8], 0x46454443
mov edi, eax
sub edi, esi
cmp esi, eax
cmova edi, edx
test edi, edi
je 0x4017f7
jmp 0x4017a0
mov al, byte [esi]
cmp al, 0x30
jb 0x4017aa
cmp al, 0x39
jbe 0x4017ee
cmp al, 0x61
jb 0x4017b2
cmp al, 0x7a
jbe 0x4017ee
cmp al, 0x41
jb 0x4017ba
cmp al, 0x5a
jbe 0x4017ee
cmp al, 0x7e
je 0x4017ee
cmp al, 0x2d
je 0x4017ee
cmp al, 0x2e
je 0x4017ee
cmp al, 0x5f
je 0x4017ee
mov byte [ecx], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [ebp + eax - 0x14]
mov byte [ecx + 1], al
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [ebp + eax - 0x14]
mov byte [ecx + 2], al
add ecx, 3
jmp 0x4017f1
mov byte [ecx], al
inc ecx
inc edx
inc esi
cmp edx, edi
jb 0x4017a0
sub ecx, dword [ebp + 8]
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401930
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
cmp edx, 0x40
jb 0x401a38
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401a38
mov ebx, dword [esi + 0x3c]
add ebx, esi
mov dword [ebp - 0x10], ebx
cmp dword [ebx], 0x4550
jne 0x401a38
mov eax, 0x10b
cmp word [ebx + 0x18], ax
jne 0x401a38
push edi
push 0x40
push 0x3000
push dword [ebx + 0x50]
push 0
call dword [0x4107c4]
mov edi, eax
test edi, edi
je 0x401a2f
movzx ecx, word [ebx + 0x14]
lea eax, [ebx + 0x18]
push dword [ebx + 0x54]
add eax, ecx
movzx ecx, word [ebx + 6]
mov dword [ebp - 8], eax
push esi
push edi
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
mov dword [ebp - 4], eax
call dword [0x410a7c]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x401a0a
mov ebx, dword [ebp - 0xc]
lea esi, [eax + 0x10]
sub ecx, eax
mov eax, 0xcccccccd
dec ecx
mul ecx
mov eax, edx
shr eax, 5
inc eax
mov dword [ebp - 4], eax
mov edi, edi
mov ecx, dword [esi]
cmp dword [esi - 8], ecx
mov eax, dword [esi + 4]
cmovb ecx, dword [esi - 8]
add eax, ebx
push ecx
push eax
mov eax, dword [esi - 4]
add eax, edi
push eax
call dword [0x410a7c]
add esp, 0xc
lea esi, [esi + 0x28]
dec dword [ebp - 4]
jne 0x4019e0
mov ebx, dword [ebp - 0x10]
mov edx, ebx
mov ecx, edi
call fcn.00401810
mov edx, ebx
mov ecx, edi
call fcn.00401890
test eax, eax
jne 0x401a2f
push 0x8000
push eax
push edi
call dword [0x4107b4]
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ebx, dword [esi]
xor ebx, 0x1d231121
mov eax, ebx
mov dword [ebp - 0xc], ebx
and eax, 3
jne 0x401ae2
lea edi, [ebx + 4]
jmp 0x401ae9
mov edi, ebx
sub edi, eax
add edi, 4
push edi
push 8
call dword [0x410524]
push eax
call dword [0x410994]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401b64
add esi, 4
shr edi, 2
mov ecx, eax
lea edx, [esi + edi*4]
xor edi, edi
mov dword [ebp - 4], edx
sub dword [ebp - 4], esi
add dword [ebp - 4], 3
shr dword [ebp - 4], 2
cmp esi, edx
mov edx, dword [ebp - 4]
cmova edx, edi
mov dword [ebp - 4], edx
test edx, edx
je 0x401b60
mov ebx, edx
lea esp, [esp]
mov edx, dword [esi]
lea ecx, [ecx + 4]
xor edx, 0x1d231121
lea esi, [esi + 4]
mov byte [ecx - 4], dl
mov eax, edx
shr eax, 8
inc edi
shr edx, 0x10
mov byte [ecx - 3], al
mov byte [ecx - 2], dl
shr edx, 8
mov byte [ecx - 1], dl
cmp edi, ebx
jb 0x401b30
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ecx]
mov eax, edx
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
and eax, 3
jne 0x401b94
lea esi, [edi + 4]
jmp 0x401b9b
mov esi, edi
sub esi, eax
add esi, 4
lea eax, [esi + esi]
push eax
push 8
call dword [0x410524]
push eax
call dword [0x410994]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x401c33
mov eax, dword [ebp - 4]
xor edi, edi
add eax, 4
shr esi, 2
mov edx, ebx
lea ecx, [eax + esi*4]
mov esi, dword [ebp - 4]
add esi, 4
mov eax, ecx
sub eax, esi
add eax, 3
shr eax, 2
cmp esi, ecx
cmova eax, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x401c2d
mov edi, eax
xor ebx, ebx
lea ebx, [ebx]
mov ecx, dword [esi]
lea edx, [edx + 8]
xor ecx, dword [ebp - 0xc]
lea esi, [esi + 4]
movzx eax, cl
inc ebx
mov word [edx - 8], ax
mov eax, ecx
shr eax, 8
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
mov word [edx - 4], ax
shr ecx, 8
movzx eax, cl
mov word [edx - 2], ax
cmp ebx, edi
jb 0x401bf0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov word [ebx + edi*2], ax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402430
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0x5e6ea9af
push esi
push edi
mov edi, edx
movzx esi, cx
mul ebx
shr ecx, 0x10
shr edx, 0xb
imul eax, edx, 0x15b0
mov edx, ebx
mov dword [ebp - 0x10], ecx
sub edx, eax
mov dword [ebp - 4], edx
test edi, edi
jne 0x40246c
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x402578
xor ebx, ebx
cmp edx, 7
jbe 0x4024d6
mov eax, 7
sub eax, edi
mov dword [ebp - 0x10], eax
movzx eax, byte [edi]
add ebx, 8
add esi, eax
movzx eax, byte [edi + 1]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 2]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 3]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 4]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 5]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 6]
add ecx, esi
add esi, eax
movzx eax, byte [edi + 7]
add ecx, esi
add edi, 8
add esi, eax
mov eax, dword [ebp - 0x10]
add eax, edi
add ecx, esi
cmp eax, edx
jb 0x402485
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp ebx, eax
jae 0x40253a
sub eax, ebx
cmp eax, 2
jb 0x402526
mov edx, dword [ebp - 4]
sub edx, ebx
sub edx, 2
shr edx, 1
inc edx
lea ebx, [ebx + edx*2]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 8]
mov ecx, ebx
movzx eax, byte [edi]
add esi, eax
movzx eax, byte [edi + 1]
add ebx, esi
add edi, 2
add esi, eax
add ecx, esi
dec edx
jne 0x402502
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 4]
jae 0x402533
movzx eax, byte [edi]
add esi, eax
add ecx, esi
inc edi
mov eax, dword [ebp - 0xc]
add eax, edx
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul eax, edx, 0xffff000f
add esi, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
mov edx, 0x15b0
add ecx, eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], edx
jne 0x402474
shl ecx, 0x10
pop edi
lea eax, [esi + ecx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
call dword [0x4108dc]
xor edx, edx
mov dword [ebp - 0x4c], 0
mov ecx, 0xea60
mov dword [ebp - 0x48], 0x4126b8
div ecx
push 0x4126b8
lea esi, [edx + 0xcd140]
call dword [0x410810]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x190], 0x11c
call dword [0x410ca4]
lea eax, [ebp - 0x70]
push eax
call dword [0x410680]
movzx eax, byte [ebp - 0x76]
imul eax, eax, 0x64
add eax, dword [ebp - 0x18c]
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x188]
lea eax, [eax + ecx*2]
imul ecx, eax, 0x64
movzx eax, word [ebp - 0x70]
add ecx, eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x34]
mov eax, dword [eax + 0x1d4]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x411d6c]
mov dword [ebp - 0x38], eax
call fcn.004022f0
lea ecx, [ebp - 0x2c]
call fcn.0040da70
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x10]
call fcn.0040b2e0
test eax, eax
je 0x40b0e8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004068b0
add esp, 8
test eax, eax
je 0x40b0a5
mov ecx, dword [ebp - 0x4c]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
jne 0x40b057
call fcn.0040d620
lea edx, [ebp - 0x24]
lea ecx, [ebp - 8]
call fcn.0040b3b0
test eax, eax
je 0x40b091
cmp dword [ebp - 0x24], 0
jne 0x40b091
call fcn.0040d9e0
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x40b080
mov ecx, dword [ebp - 0x20]
call fcn.0040d500
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x40b091
mov ecx, dword [ebp - 0x18]
call fcn.0040dae0
xor esi, esi
push dword [ebp - 8]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
jmp 0x40b0d6
call dword [0x4108dc]
xor edx, edx
mov ecx, 0xbb8
div ecx
mov eax, dword [0x4124a4]
add eax, 8
mov dword [0x4124a4], eax
lea esi, [edx + 0xbb8]
cmp dword [eax], 0
cmove eax, dword [0x4124a0]
mov dword [0x4124a4], eax
push dword [ebp - 0x10]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
push dword [ebp - 0x2c]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
push dword [ebp - 0x34]
push 0
call dword [0x410524]
push eax
call dword [0x410740]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret