joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470cc0
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x54], ebx
mov eax, dword [ecx]
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0xc], eax
cmp ecx, 1
jb 0x470e4f
mov eax, 0x38
cmp ecx, eax
cmovbe eax, ecx
push eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.00495210
movups xmm0, xmmword [0x4f41e8]
lea edi, [ebx + 0x10]
push 0x1000
movups xmmword [edi], xmm0
lea eax, [ebx + 0x58]
mov dword [ebp - 0x44], edi
movups xmm0, xmmword [0x4f41f8]
push 0x4f4230
push eax
movups xmmword [edi + 0x10], xmm0
mov dword [ebp - 0x4c], eax
movups xmm0, xmmword [0x4f4208]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x4f4218]
movups xmmword [edi + 0x30], xmm0
movq xmm0, qword [0x4f4228]
movq qword [edi + 0x40], xmm0
call fcn.00495210
add esp, 0x18
mov dword [ebp - 0x40], 0x12
lea ebx, [ebp - 0x3c]
xor esi, esi
nop word [eax + eax]
xor edx, edx
lea edi, [edx + 4]
movzx eax, byte [ebx]
lea ecx, [esi + 1]
shl edx, 8
inc ebx
or edx, eax
cmp ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x3c]
cmovne eax, ebx
xor esi, esi
cmp ecx, dword [ebp - 0x50]
mov ebx, eax
cmovne esi, ecx
sub edi, 1
jne 0x470d85
mov edi, dword [ebp - 0x44]
xor dword [edi], edx
add edi, 4
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x44], edi
jne 0x470d80
mov ebx, dword [ebp - 0x54]
xor edi, edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea esi, [ebx + 0x14]
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00475be0
mov eax, dword [ebp - 0x48]
lea esi, [esi + 8]
mov dword [esi - 0xc], eax
add edi, 2
mov eax, dword [ebp - 0x44]
mov dword [esi - 8], eax
cmp edi, 0x12
jb 0x470dd0
mov dword [ebp - 0x40], 4
lea eax, [ebx + 0x58]
nop dword [eax]
xor edi, edi
mov esi, eax
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.00475be0
mov eax, dword [ebp - 0x48]
lea esi, [esi + 8]
mov dword [esi - 8], eax
add edi, 2
mov eax, dword [ebp - 0x44]
mov dword [esi - 4], eax
cmp edi, 0x100
jl 0x470e04
mov eax, dword [ebp - 0x4c]
add eax, 0x400
sub dword [ebp - 0x40], 1
mov dword [ebp - 0x4c], eax
jne 0x470e00
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450df0
mov esp, ebp
pop ebp
ret 0xc
push 0x4f0904
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], str.Incorrect_key_length
push eax
call fcn.00494de5
int3
Function at 0x475fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x476178
test bl, 7
jne 0x476178
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp eax, 1
jne 0x47606b
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0xc]
mov dword [ebp + 0x10], eax
cmp ebx, 8
jb 0x476062
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr ebx, 3
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [esi + 7]
push eax
call fcn.00473a70
mov eax, dword [ebp + 0xc]
mov ecx, edi
xor dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call fcn.00475be0
mov edx, dword [ebp - 4]
lea esi, [esi + 8]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi], al
mov eax, ecx
shr eax, 0x18
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov byte [esi + 6], dl
mov byte [esi + 2], cl
mov byte [esi - 1], al
sub ebx, 1
jne 0x475ff3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 2
jne 0x476104
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xc], eax
cmp ebx, 8
jb 0x476062
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr ebx, 3
nop
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00475be0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [esi + 7]
push eax
call fcn.00473a70
mov ecx, dword [ebp - 0xc]
lea esi, [esi + 8]
xor ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov eax, ecx
xor edx, dword [ebp - 8]
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 4], al
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov byte [esi + 6], cl
shr ecx, 0x18
mov byte [esi + 2], dl
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 3], cl
mov byte [esi], al
mov byte [esi - 1], dl
sub ebx, 1
jne 0x476090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jb 0x476062
mov esi, dword [ebp + 8]
add esi, 0xfffffff9
shr ebx, 3
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [esi + 7]
push eax
call fcn.00473a70
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00475be0
mov ecx, dword [ebp - 4]
lea esi, [esi + 8]
mov eax, ecx
mov byte [esi + 6], cl
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + 4], al
mov byte [esi + 3], cl
mov ecx, dword [ebp - 8]
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
mov byte [esi + 2], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esi], al
mov byte [esi - 1], cl
sub ebx, 1
jne 0x476116
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x4f0904
lea eax, [ebp + 8]
mov dword [ebp + 8], str.Incorrect_buffer_length
push eax
call fcn.00494de5
int3
Function at 0x47b9e0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x47ba8a
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x47b9fd
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov dx, word [0x4f41e4]
cmp word [ecx + eax*2 - 2], dx
je 0x47ba19
movzx eax, dx
mov ecx, esi
push eax
call fcn.00404fe0
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ba20
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.004052f0
mov ecx, dword [esi + 0x14]
mov edi, esi
cmp ecx, 8
jb 0x47ba44
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
mov dx, word [0x4f41e4]
cmp word [edi + eax*2 - 2], dx
je 0x47ba63
movzx eax, dx
mov ecx, esi
push eax
call fcn.00404fe0
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x47ba6c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [esi + 0x14], 8
jb 0x47ba7d
mov esi, dword [esi]
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
pop ebp
ret 8

Function at 0x47be50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4075
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x4f9024]
mov edx, dword [eax + edx*4]
mov eax, dword [0x4f9b30]
cmp eax, dword [edx + 8]
jg 0x47bf48
mov ecx, dword [0x4f9b2c]
test ecx, ecx
jl 0x47bf2d
mov esi, dword [0x4f9b28]
jg 0x47beb7
cmp esi, 2
jb 0x47bf2d
mov eax, dword [edi + 0x28]
cdq
sub eax, esi
sbb edx, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x2c], edx
js 0x47bf2d
jg 0x47bed0
test eax, eax
jb 0x47bf2d
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [edi + 0x30]
call fcn.00477680
mov esi, eax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x30]
call fcn.004778e0
push esi
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00470720
lea ecx, [ebp - 0x48]
call fcn.00403690
lea ecx, [ebp - 0x60]
call fcn.00403690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00403690
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.00450df0
mov esp, ebp
pop ebp
ret
push 0x4f9b30
call fcn.00450d1a
add esp, 4
cmp dword [0x4f9b30], 0xffffffff
jne 0x47be9c
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
push 0x4f9b30
mov dword [0x4f9b28], eax
mov dword [0x4f9b2c], ecx
call fcn.00450cd0
add esp, 4
jmp 0x47be9c
Function at 0x47c2f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x10], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x47c453
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.0047ba90
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x47c426
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
mov dword [ebp - 4], ebx
lea eax, [eax + edi*8]
mov dword [ebp - 8], eax
cmp ebx, esi
jne 0x47c3a6
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x47c419
mov eax, dword [eax + 4]
mov ebx, dword [ecx + 8]
cmp ebx, dword [eax + 8]
jne 0x47c3e0
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x47c3d8
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
jmp 0x47c419
mov edi, eax
cmp dword [ebp - 4], eax
je 0x47c3f6
mov eax, dword [eax + 4]
mov edi, eax
cmp ebx, dword [eax + 8]
je 0x47c42f
cmp dword [ebp - 4], eax
jne 0x47c3e7
mov eax, dword [ecx + 4]
mov dword [ebp - 4], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 4]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x10]
mov ecx, edx
cmp edx, esi
jne 0x47c352
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x47c419
push str.invalid_hash_bucket_count
call fcn.00451caa
int3
Function at 0x47d640
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.00451020
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea esi, [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x4d3890
push eax
call fcn.0046fc20
mov al, byte [ebp - 0x34]
add esp, 0x10
test al, al
je 0x47d69a
lea ecx, [ebp - 0x34]
mov edx, esi
sub ecx, edx
nop
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x47d690
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47d6ba
mov al, byte [ecx]
test al, al
je 0x47d6ba
sub ecx, esi
nop dword [eax]
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x47d6b0
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x36]
test eax, eax
mov ecx, 0x4d38a4
push ebx
cmovne ecx, eax
lea eax, [ebp + 0x14]
push eax
push 0
push ecx
push 0xffffffffffffffff
sub edi, esi
mov dword [ebp + 0x10], ecx
push edi
push esi
call fcn.00401df0
push dword [eax + 4]
push dword [eax]
call fcn.0049cc6a
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, edi
cmovbe edi, eax
cmp dword [ebp + 8], 8
mov word [esi + edi], 0xa
mov esi, dword [0x4f9870]
mov eax, dword [esi]
mov ebx, dword [eax]
jne 0x47d719
cmp dword [esi + 8], 2
je 0x47d719
or ebx, 2
lea eax, [ebp - 0x2034]
push esi
push eax
call fcn.0047d9a0
add esp, 8
mov edi, eax
test bl, 1
je 0x47d73d
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
pop ebx
je 0x47d752
push edi
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.00478a00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00450df0
mov esp, ebp
pop ebp
ret
Function at 0x47d770
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.00451020
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x2038], eax
lea esi, [ebp - 0x2034]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push edi
push eax
lea eax, [ebp - 0x34]
push 0x4d3890
push eax
call fcn.0046fc20
mov al, byte [ebp - 0x34]
add esp, 0x10
test al, al
je 0x47d7d1
lea ecx, [ebp - 0x34]
mov edx, esi
sub ecx, edx
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x47d7c7
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x47d7ea
mov al, byte [ecx]
test al, al
je 0x47d7ea
sub ecx, esi
mov byte [esi], al
inc esi
mov al, byte [ecx + esi]
test al, al
jne 0x47d7e0
mov eax, dword [ebp + 0x14]
lea edi, [ebp - 0x36]
test eax, eax
mov ecx, 0x4d38a4
push ebx
cmovne ecx, eax
lea eax, [ebp + 0x18]
push eax
push 0
push ecx
push 0xffffffffffffffff
sub edi, esi
mov dword [ebp + 0x14], ecx
push edi
push esi
call fcn.00401df0
push dword [eax + 4]
push dword [eax]
call fcn.0049cc6a
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
cmp eax, edi
cmovbe edi, eax
cmp dword [ebp + 0xc], 8
mov word [esi + edi], 0xa
mov esi, dword [ebp - 0x2038]
mov eax, dword [esi]
mov ebx, dword [eax]
jne 0x47d849
cmp dword [esi + 8], 2
je 0x47d849
or ebx, 2
lea eax, [ebp - 0x2034]
push esi
push eax
call fcn.0047d9a0
add esp, 8
mov edi, eax
test bl, 1
je 0x47d86d
lea eax, [ebp - 0x2034]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
pop ebx
je 0x47d882
push edi
lea eax, [ebp - 0x2034]
mov ecx, esi
push eax
call fcn.00478a00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00450df0
mov esp, ebp
pop ebp
ret

Function at 0x47d9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 4]
test esi, esi
je 0x47d9f6
cmp dword [esi], 0
je 0x47d9f6
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4f9024]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4f9b18]
cmp eax, dword [ecx + 8]
jg 0x47d9fb
mov edx, dword [ebp + 8]
mov ecx, edx
mov al, byte [edx]
test al, al
je 0x47d9ef
nop word [eax + eax]
xor al, byte [0x4f9b14]
mov byte [ecx], al
inc ecx
mov al, byte [ecx]
test al, al
jne 0x47d9e0
sub ecx, edx
mov eax, ecx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
push 0x4f9b18
call fcn.00450d1a
add esp, 4
cmp dword [0x4f9b18], 0xffffffff
jne 0x47d9cf
mov al, byte [esi + 1]
sub al, byte [esi + 3]
sub al, byte [esi + 2]
add al, byte [esi]
push 0x4f9b18
mov byte [0x4f9b14], al
call fcn.00450cd0
add esp, 4
jmp 0x47d9cf
Function at 0x47f080
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov esi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x47f09c
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x47f0b8
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x47f0a7
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edx
push eax
mov ecx, ebx
call fcn.004385e0
mov esi, dword [eax + 4]
test esi, esi
je 0x47f135
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x47f0f7
cmp eax, esi
jne 0x47f0ef
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x47f0ff
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x47f0ff
cmp eax, esi
jne 0x47f0ff
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
lea edx, [ebx + 4]
dec dword [edx + 4]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
lea eax, [esi + 8]
push eax
push edx
call fcn.004389b0
push 0x20
push esi
call fcn.00450975
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4808c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c472d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x480991
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451161
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x480982
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480940
sub ecx, edx
mov dword [edi], 0
sar ecx, 1
xor eax, eax
push ecx
mov dword [edi + 0x10], 0
mov ecx, edi
mov dword [edi + 0x14], 7
push esi
mov word [edi], ax
call fcn.004038a0
test esi, esi
je 0x4809b5
push 2
push esi
call fcn.00450975
add esp, 8
jmp 0x4809b5
test esi, esi
je 0x480991
push 2
push esi
call fcn.00450975
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
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.00450df0
mov esp, ebp
pop ebp
ret
Function at 0x480bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c477d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push 0
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x480d47
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451161
add esp, 4
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x480d3a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480c51
sub ecx, edx
mov dword [ebp - 0x48], 0
sar ecx, 1
xor eax, eax
push ecx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.004038a0
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x4d3f9c
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004038a0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
call fcn.0040f570
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x480d07
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480cfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x480d88
push edx
push ecx
call fcn.00450975
mov eax, dword [ebp - 0x18]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], cx
mov ecx, edi
push eax
mov dword [ebp - 0x1c], 7
call fcn.00405c80
lea ecx, [ebp - 0x48]
call fcn.00403690
test esi, esi
je 0x480d6b
push esi
call fcn.00450e58
add esp, 4
jmp 0x480d6b
test esi, esi
je 0x480d47
push esi
call fcn.00450e58
add esp, 4
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, edi
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.00450df0
mov esp, ebp
pop ebp
ret
call fcn.004984ff
int3
Function at 0x490fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x49109b
cmp edi, dword [0x4f52e4]
jb 0x49101b
cmp edi, dword [0x4f52e8]
ja 0x49101b
sub edi, 0x8000000
jmp 0x491093
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x49109b
cmp dword [ebp - 0x10], 0x10000
jne 0x49107e
cmp dword [ebp - 0x14], 0x10000
jb 0x49107e
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x49114d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x49109b
sub edi, 0x10000
jmp 0x491093
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x491003
movzx eax, si
test eax, eax
je 0x4910aa
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x49114b
cmp esi, dword [0x4f52e4]
jb 0x4910cd
cmp esi, dword [0x4f52e8]
ja 0x4910cd
add esi, 0x8000000
jmp 0x491143
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x49114b
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x49112e
cmp ecx, 0x10000
jb 0x49112e
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x49114d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x49114b
add esi, 0x10000
jmp 0x491143
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x491143
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x4910b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450df0
mov esp, ebp
pop ebp
ret
Function at 0x491470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f0d08
push 0x495a50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4f4164]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push eax
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x491515
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x491515
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x491515
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x491515
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x49151e
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret