joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d926
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x1c
mov eax, 0x428599
call fcn.004261bd
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40d93c
mov ecx, dword [esi]
call fcn.0040fdc1
cmp eax, 0xffffffff
jne 0x40d94a
xor al, al
jmp 0x40d9aa
test al, 1
je 0x40d962
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d95b
mov ecx, dword [esi]
mov edx, eax
call fcn.0040fe02
cmp dword [esi + 0x14], 8
jb 0x40d96a
mov esi, dword [esi]
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0040fe46
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00408fc0
test esi, esi
jne 0x40d9a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40d946
mov al, 1
call fcn.00426178
ret

Function at 0x40d9b0
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push 0x70
mov eax, 0x4285ce
call fcn.004261bd
mov esi, edx
mov edi, ecx
lea ecx, [ebp - 0x74]
call fcn.0040e604
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
push edi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.0040cec7
push ecx
lea edx, [ebp - 0x74]
call fcn.0040ee59
pop ecx
test al, al
jne 0x40da00
push ecx
mov ecx, edi
jmp 0x40daf6
cmp dword [ebp - 0x74], 3
je 0x40da0c
cmp dword [ebp - 0x74], 4
jne 0x40d9f8
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x74]
cmp eax, dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push dword [ebp - 0x70]
jne 0x40dad4
push 1
push eax
mov byte [ebp - 0x48], 1
call fcn.0040e6cd
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409020
lea ecx, [ebp - 0x44]
call fcn.00408fc0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x40daaf
push ebx
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], ebx
push eax
lea ecx, [ebp - 0x74]
call fcn.0040e6cd
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409020
lea ecx, [ebp - 0x44]
call fcn.00408fc0
push 0x2e
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0040dc17
pop ecx
cmp dword [eax + 0x14], 8
jb 0x40da95
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x44]
mov dword [esi], eax
call fcn.00408fc0
cmp dword [esi], 0xffffffff
jne 0x40daba
mov dword [esi], ebx
jmp 0x40db00
cmp eax, 1
jbe 0x40dabe
mov dword [esi], 0x10
mov bl, 1
jmp 0x40db00
cmp dword [ebp - 0x74], 3
push 0x37
pop eax
push 0x15
pop ecx
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40db00
push ebx
push eax
mov byte [ebp - 0x48], bl
call fcn.0040e6cd
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409020
lea ecx, [ebp - 0x44]
call fcn.00408fc0
push ecx
lea ecx, [ebp - 0x2c]
mov edx, esi
call fcn.0040d5d0
pop ecx
mov bl, al
lea ecx, [ebp - 0x2c]
call fcn.00408fc0
lea ecx, [ebp - 0x54]
call fcn.0040cea5
mov al, bl
call fcn.00426178
ret
Function at 0x40ddb9
Capabilities:
Get file version info

Disassembly:
push 0x40
mov eax, 0x42863f
call fcn.004261bd
mov edi, edx
push 7
xor ebx, ebx
xor eax, eax
pop esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.0040d5f4
test al, al
je 0x40de9b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x14], esi
mov word [ebp - 0x28], cx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov ecx, eax
call fcn.0040fe46
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
mov esi, eax
call fcn.00408fc0
mov dword [ebp - 0x44], esi
test esi, esi
je 0x40de9b
push ecx
push esi
mov ecx, edi
call fcn.00408eb0
cmp dword [edi + 0x14], 0x10
jb 0x40de40
mov edi, dword [edi]
mov esi, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040fe46
push edi
push esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00408fc0
test esi, esi
je 0x40de9b
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x430294
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40de9b
cmp dword [ebp - 0x44], 0
je 0x40de9b
mov ebx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x40]
call fcn.00408fc0
mov eax, ebx
call fcn.00426178
ret

Function at 0x40e190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x40e1d3
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40e1be
push str.GetFileSize
mov ecx, esi
call fcn.0040e332
xor al, al
jmp 0x40e1ce
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov al, 1
pop esi
leave
ret 4
call fcn.0041906a
int3

Function at 0x40e1d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x40e246
xor ebx, ebx
test byte [esi + 0x44], 2
je 0x40e209
push 0x42ec98
push 0x3039
push 0x4302fc
push esi
call fcn.0040e355
add esp, 0x10
jmp 0x40e23e
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40e22e
push 0x4302fc
mov ecx, esi
call fcn.0040e332
jmp 0x40e23e
mov eax, dword [ebp - 4]
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], ebx
cmp dword [ebp + 0xc], eax
jne 0x40e23e
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret 8
call fcn.0041906a
int3
Function at 0x40e24c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
je 0x40e2dc
test byte [esi + 0x44], 4
je 0x40e27e
push 0x42ec98
push 0x3039
push 0x430308
push esi
call fcn.0040e355
add esp, 0x10
xor al, al
jmp 0x40e2d7
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e2b5
push dword [ebp + 0xc]
push 0x42f39c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x430308
push esi
call fcn.0040e355
add esp, 0x14
jmp 0x40e27a
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x40e2ce
push dword [ebp + 0xc]
push 0x42f39c
push 0xffffffffffffffff
push str.CheckFileWrite
jmp 0x40e2aa
add dword [esi + 0x38], eax
mov al, 1
adc dword [esi + 0x3c], 0
pop esi
leave
ret 8
call fcn.0041906a
int3

Function at 0x40fdc1
Capabilities:
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x428599
call fcn.004261bd
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea edx, [ebp - 0x28]
call fcn.0040fe46
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00408fc0
mov eax, esi
call fcn.00426178
ret

Function at 0x40fe02
Capabilities:
Set file attributes

Disassembly:
push 0x1c
mov eax, 0x428599
call fcn.004261bd
mov esi, edx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea edx, [ebp - 0x28]
call fcn.0040fe46
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00408fc0
mov eax, esi
call fcn.00426178
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf00
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 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
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 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
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 0x41f05c
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], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x57354a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
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 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
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 0x573551
ret
Function at 0x420294
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 word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5748af
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 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x59154c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x59154c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x590378]
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 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
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 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5748b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x425260
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00408f60
mov eax, dword [0x429008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
cmp ebx, 0x182
jne 0x425299
lea ecx, [ebp - 0x102c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x4252a9
cmp ebx, 0x19f
jne 0x4252a9
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
xor edi, edi
test ebx, ebx
jle 0x42532f
push esi
jmp 0x4252c0
lea esi, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
call fcn.00425250
mov dl, byte [ebp - 0x1008]
mov eax, dword [ebp - 0x100c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x425329
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.yodawelizukipa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc edi
cmp edi, ebx
jl 0x4252c0
pop esi
pop edi
cmp ebx, 0x2d
jne 0x425349
mov dword [0x520f40], 0xa62e7790
mov dword [0x520f44], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x425360
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x520e0c]
push ebx
push esi
mov esi, dword [0x520c54]
mov ebx, eax
cmp eax, 0x5dd
jne 0x425386
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x42a000]
call fcn.00425220
cmp dword [0x520e0c], 0x2f
jne 0x4253a1
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.00425260
add esp, 4
cmp dword [0x520e0c], 0x568
pop esi
pop ebx
jne 0x4253d0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov eax, dword [ebp - 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
mov esp, ebp
pop ebp
ret
Function at 0x406304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406328
xor eax, eax
test eax, eax
je 0x40633a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40633a
xor ecx, ecx
jmp 0x40633d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406429
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x406460
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40643a
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406435
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406491
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406473
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x10052ddf
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5d0c1cb0
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10010b90
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038b18
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10048100]
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 edi, ecx
mov dword [ebp - 0x5c], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x60], edi
mov dword [edi + 0x24], 0
mov dword [edi], vtable.std::_Func_impl_no_alloc_class__lambda_47418a64c090a1a40ff9d5a3284e8599___void__struct_HookParam_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__.0
mov dword [edi + 0x24], edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 4], 0
call fcn.100198e0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push str.EMBED_SHARED_MEM
push eax
call fcn.1000f620
add esp, 0x14
cmp dword [eax + 0x14], 7
jbe 0x10010c0b
mov eax, dword [eax]
push eax
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 0x30], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x10010c57
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010c4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010d59
push ecx
push edx
call fcn.1001cff7
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x10010ca9
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010c9f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010d59
push ecx
push edx
call fcn.1001cff7
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x2c], 7
call fcn.100198e0
add esp, 8
push 0
sub esp, 0x18
mov byte [ebp - 4], 4
mov edx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push edx
call fcn.1000f620
add esp, 0xc
lea ecx, [edi + 0x34]
call fcn.10010d70
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x10010d22
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010d18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10010d5e
push ecx
push edx
call fcn.1001cff7
add esp, 8
push 0xa00
push 0
push 0
push 6
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x28], eax
mov eax, edi
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.1001d31f
mov esp, ebp
pop ebp
ret 8
call fcn.1002201f
call fcn.1002201f
int3