joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401380
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
test esi, esi
je 0x4013e4
cmp dword [esp + 0x60], 0
je 0x4013e4
mov eax, dword [esi + 0x3c]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, esi
add eax, esi
mov dword [esp + 0x5c], eax
cmp dword [edi + 0x18], ebx
jbe 0x4013e4
mov eax, dword [ebp]
add eax, esi
push eax
call fcn.00401b91
pop ecx
cmp eax, dword [esp + 0x60]
je 0x4013ee
mov eax, dword [esp + 0x10]
add ebp, 4
add dword [esp + 0x5c], 2
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x18]
jb 0x4013bc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
add ecx, esi
cmp ecx, edi
jbe 0x401482
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi + 0x7c]
add eax, edi
cmp ecx, eax
jae 0x401482
mov dl, byte [ecx]
mov eax, ebx
cmp dl, 0x2e
je 0x40142f
lea edi, [esp + 0x18]
mov esi, ecx
sub edi, ecx
mov byte [edi + esi], dl
inc eax
inc esi
mov dl, byte [esi]
cmp dl, 0x2e
jne 0x401423
lea esi, [ecx + 1]
mov dword [esp + eax + 0x18], 0x6c6c642e
add esi, eax
mov byte [esp + eax + 0x1c], bl
mov dword [esp + 0x5c], ebx
cmp byte [esi], 0x23
jne 0x40146a
inc esi
mov al, byte [esi]
test al, al
je 0x401466
imul ecx, ebx, 0xa
movsx ebx, al
add ebx, 0xffffffd0
add ebx, ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x401450
mov dword [esp + 0x5c], ebx
lea esi, [esp + 0x5c]
lea eax, [esp + 0x18]
push eax
call dword [0x432de0]
push esi
push eax
call dword [0x432de4]
jmp 0x4013e6
mov eax, ecx
jmp 0x4013e6

Function at 0x401556
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov esi, eax
push 0xc03e4272
push esi
call fcn.00401380
push 0x3683e000
push esi
mov dword [0x432de0], eax
call fcn.00401380
add esp, 0x10
mov dword [0x432de4], eax
pop esi
ret
Function at 0x40194e
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor edx, edx
push edi
push 0x3d
push 3
mov eax, dword [esi]
add eax, 2
mov ebp, dword [esp + 0x2c]
pop ebx
div ebx
mov ecx, ebp
shl eax, 2
push eax
call fcn.0040177f
cmp dword [ebp + 0x14], 0x10
mov dword [esp + 0x2c], ebp
jb 0x401987
mov eax, dword [ebp]
mov dword [esp + 0x2c], eax
mov esi, dword [esi]
xor edx, edx
mov eax, esi
xor edi, edi
div ebx
mov eax, 0x433620
mov ebx, edx
sub esi, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
je 0x401a7f
push 3
lea eax, [esi - 1]
mov ecx, dword [esp + 0x2c]
xor edx, edx
add ecx, 2
pop ebx
div ebx
mov ebx, dword [esp + 0x2c]
mov ebp, 0x433620
inc eax
mov dword [esp + 0x10], ecx
mov esi, eax
movzx edx, byte [ecx - 2]
movzx ecx, byte [ecx - 1]
mov eax, dword [esp + 0x10]
shl edx, 8
or edx, ecx
mov ecx, ebp
shl edx, 8
movzx eax, byte [eax]
or edx, eax
cmp dword [0x433634], 0x10
mov eax, edx
cmovae ecx, dword [0x433620]
shr eax, 0x12
push 3
mov al, byte [eax + ecx]
mov ecx, ebp
mov byte [ebx + edi], al
mov eax, edx
cmp dword [0x433634], 0x10
cmovae ecx, dword [0x433620]
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + ecx]
mov ecx, ebp
mov byte [ebx + edi + 1], al
mov eax, edx
cmp dword [0x433634], 0x10
cmovae ecx, dword [0x433620]
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ecx]
mov ecx, dword [esp + 0x14]
mov byte [ebx + edi + 2], al
mov eax, ebp
cmp dword [0x433634], 0x10
cmovae eax, dword [0x433620]
and edx, 0x3f
mov al, byte [edx + eax]
mov byte [ebx + edi + 3], al
add edi, 4
pop eax
add ecx, eax
mov dword [esp + 0x10], ecx
sub esi, 1
jne 0x4019c9
mov ebx, dword [esp + 0x18]
mov eax, 0x433620
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
test ebx, ebx
je 0x401b22
mov edx, dword [esp + 0x28]
movzx ecx, byte [esi + edx]
sub ebx, 1
je 0x401aa0
movzx esi, byte [esi + edx + 1]
shl ecx, 8
or esi, ecx
jmp 0x401aa2
mov esi, ecx
cmp dword [0x433634], 0x10
mov edx, eax
mov eax, esi
mov ecx, esi
cmovae edx, dword [0x433620]
shr eax, 0xa
shr ecx, 2
test ebx, ebx
cmovne ecx, eax
mov al, byte [ecx + edx]
mov edx, 0x433620
mov ecx, dword [esp + 0x2c]
mov byte [ecx + edi], al
mov ecx, esi
cmp dword [0x433634], 0x10
mov eax, esi
cmovae edx, dword [0x433620]
and eax, 3
shr ecx, 4
and ecx, 0x3f
shl eax, 4
test ebx, ebx
cmovne eax, ecx
mov ecx, dword [esp + 0x2c]
mov al, byte [eax + edx]
mov byte [ecx + edi + 1], al
je 0x401b1b
cmp dword [0x433634], 0x10
mov eax, 0x433620
cmovae eax, dword [0x433620]
and esi, 0xf
mov al, byte [eax + esi*4]
jmp 0x401b1e
push 0x3d
pop eax
mov byte [ecx + edi + 2], al
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x402672
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 0xf]
push eax
call fcn.0040194e
xor ebx, ebx
mov dword [ebp - 6], 0x5b575848
mov al, 0x48
mov word [ebp - 2], 0x5c
mov ecx, ebx
movsx eax, al
and eax, 0x8000000f
jns 0x4026b4
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 5], al
inc ecx
cmp ecx, 4
jae 0x4026c3
mov al, byte [ebp - 6]
jmp 0x4026a5
movaps xmm0, xmmword [0x427800]
mov ecx, ebx
movups xmmword [ebp - 0x3a], xmm0
push 0x26
movaps xmm0, xmmword [0x427770]
mov byte [ebp - 1], bl
movups xmmword [ebp - 0x2a], xmm0
mov dword [ebp - 0x1a], 0x7a684d4a
mov dword [ebp - 0x16], 0x1d0856
pop edx
mov al, byte [ebp - 0x3a]
xor byte [ebp + ecx - 0x39], al
inc ecx
cmp ecx, edx
jb 0x4026ef
mov byte [ebp - 0x13], bl
mov eax, ebx
mov byte [ebp - 0x12], dl
mov dword [ebp - 0x11], 0x4f41494a
mov dword [ebp - 0xd], 0x55470848
mov word [ebp - 9], 0x5e56
mov byte [ebp - 7], bl
xor byte [ebp + eax - 0x11], dl
inc eax
cmp eax, 0xa
jae 0x402729
mov dl, byte [ebp - 0x12]
jmp 0x40271a
sub esp, 0x18
mov byte [ebp - 7], bl
lea eax, [ebp - 5]
mov ecx, esp
push eax
call fcn.004017a7
sub esp, 0x18
lea eax, [ebp - 0x54]
mov esi, esp
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x39]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00401bf8
add esp, 0xc
push eax
push esi
call fcn.00401bb6
sub esp, 0xc
lea eax, [ebp - 0x11]
mov ecx, esp
push eax
call fcn.004017a7
sub esp, 0x18
lea eax, [ebp + 0x28]
mov ecx, esp
push eax
call fcn.00401e86
lea eax, [ebp - 0x84]
mov ecx, edi
push eax
call fcn.00402127
lea ecx, [ebp - 0x6c]
call fcn.0040191d
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], ebx
lea ecx, [ebp - 0x84]
cmovae eax, dword [ebp - 0x54]
mov byte [eax], bl
call fcn.0040191d
lea ecx, [ebp - 0x54]
call fcn.0040191d
lea ecx, [ebp + 0x10]
call fcn.0040191d
lea ecx, [ebp + 0x28]
call fcn.0040191d
pop edi
pop esi
pop ebx
leave
ret 0x38
Function at 0x4035f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movaps xmm0, xmmword [str._hT_OLZIgvRXITHT_OgMUOzUZWBOR]
push ebx
movups xmmword [ebp - 0x43], xmm0
xor ebx, ebx
mov word [ebp - 0x23], 0x4858
movaps xmm0, xmmword [0x427920]
mov ecx, ebx
push esi
push edi
movups xmmword [ebp - 0x33], xmm0
mov byte [ebp - 0x21], bl
mov al, byte [ebp - 0x43]
xor byte [ebp + ecx - 0x42], al
inc ecx
cmp ecx, 0x21
jb 0x40361f
lea eax, [ebp - 0x42]
mov byte [ebp - 0x21], bl
push eax
lea ecx, [ebp - 0x20]
call fcn.004017a7
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp - 4]
push eax
lea edi, [ebp + 8]
cmovae edi, dword [ebp + 8]
lea esi, [ebp - 0x20]
cmp dword [ebp - 0xc], 0x10
push 0xf003f
cmovae esi, dword [ebp - 0x20]
push ebx
push esi
push 0x80000002
push 0x3ec5852c
push 4
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
je 0x4036a0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push esi
push 0x80000002
push 0xab2a9c67
push 4
call fcn.00401489
pop ecx
pop ecx
call eax
test eax, eax
jne 0x4036c5
mov esi, 0x427908
push esi
call fcn.00413450
pop ecx
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 4]
push 0xb0f25466
push 4
call fcn.00401489
pop ecx
pop ecx
call eax
lea ecx, [ebp - 0x20]
call fcn.0040191d
lea ecx, [ebp + 8]
call fcn.0040191d
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x404186
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x4c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x4041a8
mov eax, 0x200
jmp 0x404376
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, ebx
and esi, 1
mov ecx, esi
or ecx, 2
test bl, 2
push edi
cmove ecx, esi
mov edi, 0x41000000
mov edx, ecx
or edx, 4
test bl, 4
cmove edx, ecx
mov ecx, ebx
and ecx, 0x10
mov eax, edx
or eax, 0x10
mov dword [esp + 0x14], ecx
test ecx, ecx
cmove eax, edx
mov edx, 0x81000000
mov ecx, eax
or ecx, 0x20
test bl, 0x20
cmove ecx, eax
mov eax, dword [esp + 0x14]
test eax, eax
cmove edi, edx
or edi, ecx
test esi, esi
jne 0x404212
test eax, eax
mov edi, 0x41800000
mov edx, 0x81800000
cmove edi, edx
or edi, ecx
xor ebx, ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x28
jbe 0x4042c0
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push ebp
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [esp + 0x10], ax
jne 0x4042c0
mov ecx, dword [esp + 0x14]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x4042c0
push 0
push 0
push ecx
push ebp
call ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x4042ba
cmp eax, 0x454e
je 0x4042ba
cmp eax, 0x454c
je 0x4042ba
cmp eax, 0x4550
jne 0x4042c0
or edi, 0x400000
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4042ca
mov dword [eax], edi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4042d4
mov dword [eax], esi
mov esi, dword [esp + 0x64]
test esi, esi
je 0x40433e
mov ecx, dword [esp + 0x2c]
mov ebp, 0xd53e8000
mov eax, dword [esp + 0x30]
sub ecx, ebp
push 0
mov ebx, 0x19db1de
mov edi, 0x989680
push edi
sbb eax, ebx
push eax
push ecx
call fcn.0040e9f0
mov ecx, dword [esp + 0x34]
mov dword [esi], eax
sub ecx, ebp
mov eax, dword [esp + 0x38]
push 0
push edi
sbb eax, ebx
mov dword [esi + 4], edx
push eax
push ecx
call fcn.0040e9f0
mov ecx, dword [esp + 0x24]
mov dword [esi + 8], eax
sub ecx, ebp
mov eax, dword [esp + 0x28]
push 0
push edi
sbb eax, ebx
mov dword [esi + 0xc], edx
push eax
push ecx
call fcn.0040e9f0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x68]
test esi, esi
je 0x404371
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.00405536
movzx ecx, word [esp + 0x20]
add esp, 0x10
movzx eax, word [esp + 0x14]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
add esp, 0x44
ret
Function at 0x404b2a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x404b35
xor eax, eax
ret
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x404bf6
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 + 0x427ad8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
sub edi, 1
jne 0x404b4f
pop edi
test esi, esi
je 0x404c12
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427ad8]
inc edx
sub esi, 1
jne 0x404bfa
not ecx
mov eax, ecx
pop esi
ret
Function at 0x40532a
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
mov ecx, ebp
mov ebx, ebp
push edi
mov dword [esp + 0x10], ecx
mov dword [esi + 0x6af80], 2
lea edi, [esi + 0x6af84]
jmp 0x4054ff
cmp eax, 3
jb 0x4053a3
mov edx, dword [edi]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4053dc
mov eax, dword [edi]
sub eax, ecx
cmp eax, 0x7efa
ja 0x4053dc
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4053c6
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.00405e4c
pop ecx
pop ecx
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
mov ecx, dword [edi]
cmp ebx, 3
jb 0x405495
sub ecx, dword [esi + 0x6af88]
lea eax, [ebx - 3]
push eax
push ecx
push esi
call fcn.00404e72
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
sub ecx, ebx
mov dword [esp + 0x18], eax
mov dword [esi + 0x6af90], ecx
cmp ebx, dword [esi + 0x6af98]
ja 0x40546c
cmp ecx, 3
jb 0x40546c
dec ebx
inc dword [edi]
mov edx, dword [edi]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [esp + 0x10], eax
mov eax, dword [edi]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x40541b
jmp 0x4054b2
add dword [edi], ebx
mov ebx, ebp
mov edx, dword [edi]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
jmp 0x4054b6
movzx eax, byte [ecx + esi + 0x1af70]
push eax
push ebp
push esi
call fcn.00404e72
add esp, 0xc
mov dword [esp + 0x18], eax
dec dword [esi + 0x6af90]
inc dword [edi]
mov edx, dword [edi]
cmp dword [esp + 0x18], ebp
je 0x4054e8
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x4054d0
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x4054d2
mov ecx, ebp
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.004056c3
mov eax, dword [edi]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4054fb
push esi
call fcn.0040558f
pop ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x405352
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40551f
lea ebp, [esi + 0x1af70]
add ebp, ecx
mov eax, dword [edi]
push 1
sub eax, ecx
push eax
push ebp
push esi
call fcn.004056c3
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405d23
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
lea eax, [ebx - 1]
push edi
cmp eax, 7
jbe 0x405d41
mov dword [esi + 0x6afa4], str.bad_pack_level
xor ebp, ebp
xor edi, edi
inc ebp
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x405d64
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.0040f560
movzx eax, word [ebx*8 + 0x427a72]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x427a70]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x427a74]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x427a76]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x405dc8
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x405dd4
cmp ebx, 8
jl 0x405dd4
mov eax, dword [esp + 0x1c]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x405e3b
cmp eax, 0xffffffff
je 0x405e3b
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x405e16
push esi
call fcn.0040558f
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x405e1e
jmp 0x405e47
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406cda
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x84]
test eax, eax
je 0x406d30
mov ecx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp ecx, esi
jae 0x406d6d
sub esi, ecx
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.0040f770
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00404b2a
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x406d6f
cmp dword [edi + 0x7c], 0
je 0x406d66
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406d6d
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00404b2a
add esp, 0xc
jmp 0x406d29
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8

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

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

Function at 0x407226
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x40729c
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x407254
cmp dword [esi + 0x40], edi
jae 0x407254
push ecx
call fcn.0040ec74
and dword [esi + 0x3c], 0
pop ecx
jmp 0x407258
test eax, eax
jne 0x407268
lea eax, [edi + edi]
push eax
call fcn.0040e98e
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call fcn.0040f770
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x407299
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [eax + ebx]
push eax
push ebp
call fcn.004072f7
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x40727d
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4072cb
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4072b7
mov dword [esi + 0x14], 0x30000
jmp 0x4072ef
push edi
add ecx, edx
push ebx
push ecx
call fcn.0040f770
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x4072f1
mov eax, dword [esi + 4]
test eax, eax
je 0x4072e8
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x4072f1
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x40c902
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x64]
push 0x427905
call fcn.004017a7
xor ebx, ebx
mov dword [ebp + 0x51], 0x65474b17
mov dl, 0x17
mov dword [ebp + 0x55], 0x7b7e7178
mov word [ebp + 0x59], 0x6472
mov eax, ebx
mov byte [ebp + 0x5b], bl
xor byte [ebp + eax + 0x52], dl
inc eax
cmp eax, 9
jae 0x40c94a
mov dl, byte [ebp + 0x51]
jmp 0x40c93b
lea eax, [ebp + 0x52]
mov byte [ebp + 0x5b], bl
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407860
sub esp, 0xc
mov dword [ebp + 0x34], ebx
lea eax, [ebp - 0x14]
mov dword [ebp + 0x38], ebx
mov ecx, esp
mov dword [ebp + 0x3c], ebx
push eax
call fcn.00401e86
lea eax, [ebp + 0x34]
mov ecx, esi
push eax
call fcn.0040c7ed
mov esi, dword [ebp + 0x34]
jmp 0x40cadd
push esi
push 0x42790c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.00407860
add esp, 0xc
push eax
lea eax, [ebp + 4]
push eax
call fcn.00401bb6
add esp, 0xc
lea ecx, [ebp + 0x1c]
call fcn.0040191d
mov al, 0x72
mov dword [ebp + 0x43], 0x716e5e72
mov dword [ebp + 0x47], 0x75706b69
mov ecx, ebx
mov dword [ebp + 0x4b], 0x71756c30
mov word [ebp + 0x4f], 0x70
movsx eax, al
and eax, 0x8000000f
jns 0x40c9e1
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx + 0x44], al
inc ecx
cmp ecx, 0xc
jae 0x40c9f0
mov al, byte [ebp + 0x43]
jmp 0x40c9d2
lea eax, [ebp + 0x44]
mov byte [ebp + 0x50], bl
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00407860
add esp, 0xc
mov dword [ebp + 0x52], 0x686e5f53
mov al, 0x53
mov dword [ebp + 0x56], 0x6731377c
mov word [ebp + 0x5a], 0x65
mov ecx, ebx
movsx eax, al
and eax, 0x8000000f
jns 0x40ca2e
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx + 0x53], al
inc ecx
cmp ecx, 8
jae 0x40ca3d
mov al, byte [ebp + 0x52]
jmp 0x40ca1f
lea eax, [ebp + 0x53]
mov byte [ebp + 0x5b], bl
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00407860
movaps xmm0, xmmword [0x4281b0]
add esp, 0xc
movups xmmword [ebp + 0x24], xmm0
mov ecx, ebx
mov al, byte [ebp + 0x24]
xor byte [ebp + ecx + 0x25], al
inc ecx
cmp ecx, 0xe
jb 0x40ca61
lea eax, [ebp + 0x25]
mov byte [ebp + 0x33], bl
push eax
lea eax, [ebp + 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407860
lea eax, [ebp - 0x5c]
push eax
call fcn.004030e2
add esp, 0x10
test al, al
jne 0x40caae
lea eax, [ebp - 0x44]
push eax
call fcn.004030e2
pop ecx
test al, al
jne 0x40caae
lea eax, [ebp - 0x2c]
push eax
call fcn.004030e2
pop ecx
test al, al
je 0x40caba
mov ecx, dword [ebp + 0x64]
lea eax, [ebp + 4]
push eax
call fcn.00408236
lea ecx, [ebp - 0x2c]
call fcn.0040191d
lea ecx, [ebp - 0x44]
call fcn.0040191d
lea ecx, [ebp - 0x5c]
call fcn.0040191d
lea ecx, [ebp + 4]
call fcn.0040191d
add esi, 0x18
cmp esi, dword [ebp + 0x38]
jne 0x40c988
lea ecx, [ebp + 0x34]
call fcn.00403042
lea ecx, [ebp - 0x14]
call fcn.0040191d
lea ecx, [ebp + 0x68]
call fcn.0040191d
mov eax, dword [ebp + 0x64]
pop esi
pop ebx
add ebp, 0x5c
leave
ret 0x1c