joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ee8b
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
xor ebx, ebx
inc ebx
push ebx
mov edi, ecx
push edi
push eax
mov dword [ebp - 0x24], eax
call esi
test eax, eax
jne 0x1000ef55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1000eee7
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000eede
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push edi
push dword [ebp - 0x24]
call esi
jmp 0x1000ef57
call fcn.1000a9df
push eax
push edi
push str._s._08x
lea ecx, [ebp - 0x20]
call fcn.1000b2a5
mov eax, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x1000ef0a
lea eax, [ebp - 0x1c]
push ebx
push eax
push edi
call esi
test eax, eax
je 0x1000ef51
push ebx
push edi
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1000ef40
cmp dword [ebp - 8], 8
mov esi, dword [ebp - 0x1c]
jae 0x1000ef2a
lea esi, [ebp - 0x1c]
call fcn.1000a75e
mov edi, ebx
push 0
push ebx
lea esi, [ebp - 0x20]
call fcn.10005985
mov eax, edi
jmp 0x1000ef57
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x1000ef4c
lea eax, [ebp - 0x1c]
push ebx
push edi
push eax
call esi
xor edi, edi
jmp 0x1000ef31
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002874e
leave
ret

Function at 0x1000ef86
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
cmp ebx, esi
je 0x1000f061
push esi
push ebx
call fcn.1000f7d1
pop ecx
pop ecx
test eax, eax
je 0x1000f061
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.1002c7e0
add esp, 0xc
call fcn.1000a9df
push eax
push ebx
push str._s._08x
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push ebx
call fcn.1000ef66
mov dword [ebp - 0x228], esi
xor eax, eax
lea edi, [ebp - 0x224]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
push ebx
lea esi, [ebp - 0x228]
stosd dword es:[edi], eax
call fcn.1000ea25
pop ecx
mov edi, eax
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.1000ecc6
pop ecx
pop ecx
test eax, eax
je 0x1000f054
xor esi, esi
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call fcn.1000ee8b
pop ecx
test eax, eax
jne 0x1000f071
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x1000f033
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002874e
leave
ret
test edi, edi
je 0x1000f082
push ebx
lea esi, [ebp - 0x228]
call fcn.1000eabe
pop ecx
xor eax, eax
inc eax
jmp 0x1000f063
Function at 0x1000f1a2
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x478
mov eax, 0x10041b77
call fcn.100296da
mov esi, ecx
push esi
mov dword [ebp - 0x42c], esi
call fcn.1000f087
pop ecx
test eax, eax
je 0x1000f41d
push esi
call fcn.1000f0cd
pop ecx
test eax, eax
je 0x1000f41d
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
mov dword [ebp - 0x428], edi
call fcn.1002c7e0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.1000a9df
push eax
push str.___08x
lea ecx, [ebp - 0x468]
call fcn.1000b2a5
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x1000f232
mov eax, dword [eax + 4]
jmp 0x1000f235
add eax, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
push edi
push 1
lea esi, [ebp - 0x468]
call fcn.10005985
lea esi, [ebp - 0x21c]
call fcn.1000a455
test eax, eax
je 0x1000f409
mov ecx, dword [ebp - 0x42c]
push edi
mov edx, esi
call fcn.10025a67
pop ecx
test eax, eax
jne 0x1000f409
mov eax, dword [ebp + 8]
mov dword [ebp - 0x434], eax
push edi
lea eax, [ebp - 0x428]
push edi
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
push 0x1000f425
push 1
mov eax, esi
push eax
call fcn.1000a096
cmp dword [ebp - 0x428], edi
je 0x1000f409
xor eax, eax
push 0x206
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push edi
push eax
call fcn.1002c7e0
add esp, 0xc
push dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x42c]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov esi, eax
cmp esi, edi
je 0x1000f30e
push str..rar
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000f30e
mov esi, str..zip
push esi
call fcn.1000a9df
push eax
push str..._08x._s
lea ecx, [ebp - 0x468]
call fcn.1000b2a5
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x1000f333
mov eax, dword [eax + 4]
jmp 0x1000f336
add eax, 4
push eax
lea eax, [ebp - 0x424]
push eax
call ebx
push edi
push 1
lea esi, [ebp - 0x468]
call fcn.10005985
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.1000a2ce
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], edi
call fcn.10011049
add esp, 0xc
mov ecx, eax
lea ebx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.100255ed
mov ebx, eax
neg ebx
sbb bl, bl
lea edi, [ebp - 0x484]
inc bl
mov byte [ebp - 4], 0
call fcn.10005c6f
push dword [ebp - 0x484]
call fcn.10028e08
pop ecx
test bl, bl
je 0x1000f3e7
xor esi, esi
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x424]
push eax
call fcn.1000ee8b
pop ecx
test eax, eax
jne 0x1000f3ee
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x1000f3b3
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1000f3ee
and dword [ebp - 0x428], 0
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.10005dae
push dword [ebp - 0x44c]
call fcn.10028e08
pop ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.1000a78c
mov eax, dword [ebp - 0x428]
jmp 0x1000f41f
xor eax, eax
call fcn.1002975d
ret
Function at 0x1000f446
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x10050060]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], eax
cmp ebx, esi
je 0x1000f584
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000f584
xor eax, eax
push 0x206
mov word [esp + 0x34], ax
lea eax, [esp + 0x36]
push esi
push eax
mov dword [esp + 0x18], esi
call fcn.1002c7e0
add esp, 0xc
call fcn.1000a9df
push eax
push ebx
push str._s._08x
lea eax, [esp + 0x3c]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push ebx
call fcn.1000ef66
mov dword [esp + 0x1c], esi
xor eax, eax
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
push ebx
lea esi, [esp + 0x1c]
stosd dword es:[edi], eax
call fcn.1000ea25
pop ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.1000ed75
xor esi, esi
pop ecx
inc esi
pop ecx
test eax, eax
je 0x1000f541
xor edi, edi
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.1000ee8b
pop ecx
test eax, eax
jne 0x1000f51f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 5
jl 0x1000f4fe
jmp 0x1000f541
cmp dword [ebp + 0xc], 2
mov dword [esp + 0xc], esi
jne 0x1000f541
push 2
mov ecx, ebx
call fcn.1000f1a2
pop ecx
test eax, eax
je 0x1000f541
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000f541
mov dword [eax], esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0xc], esi
jne 0x1000f56c
push esi
mov ecx, ebx
call fcn.1000f1a2
pop ecx
test eax, eax
je 0x1000f56c
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], esi
test eax, eax
je 0x1000f56c
mov dword [eax], esi
cmp dword [esp + 0x14], 0
je 0x1000f57e
push ebx
lea esi, [esp + 0x1c]
call fcn.1000eabe
pop ecx
mov eax, dword [esp + 0xc]
jmp 0x1000f586
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002874e
mov esp, ebp
pop ebp
ret

Function at 0x10011d77
Capabilities:
Get common file path
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
push 0x1c
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
jne 0x10011ded
push 1
push 0x23
push edi
push ebx
call esi
test eax, eax
jne 0x10011ded
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [edi], bx
jne 0x10011ded
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._LocalStorage_failed__last_error:__d
lea ecx, [ebp - 0x1c]
call fcn.1000b2a5
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x10011dd1
mov eax, dword [eax + 4]
jmp 0x10011dd4
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
push 1
lea esi, [ebp - 0x1c]
call fcn.10005985
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.gooxiondas
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop esi
pop ebx
leave
ret
Function at 0x100208a9
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov esi, ecx
call fcn.1002c7e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call fcn.10004b6d
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002874e
add ebp, 0x190
leave
ret

Function at 0x10020922
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.1002c7e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp + 8], 1
jne 0x1002097c
push str.projonepodlp
jmp 0x10020987
cmp dword [ebp + 8], 2
jne 0x100209af
push str.projonepotcm
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test edi, edi
je 0x100209a6
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
jmp 0x100209b4
push 0x100458f0
call fcn.10004b6d
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002874e
leave
ret

Function at 0x100210eb
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.10034220
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
call fcn.100211ce
test al, al
je 0x100211c1
xor eax, eax
mov word [ebp - 0x80c], ax
mov word [ebp - 0x100c], ax
push str.__ls__ls
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x100484a0
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x2028]
push eax
call fcn.10021010
cmp dword [eax + 0x18], 8
pop ecx
jb 0x1002115c
mov eax, dword [eax + 4]
jmp 0x1002115f
add eax, 4
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x100c]
push 0x400
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 1
lea esi, [ebp - 0x2028]
call fcn.10005985
xor eax, eax
mov word [ebp - 0x200c], ax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x800
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.1002874e
leave
ret
Function at 0x100211e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x18], 0
push edi
xor eax, eax
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 0x3a
mov byte [ebp - 0x12], 0x5c
lea edi, [ebp - 0x11]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x10021221
cmp eax, 3
jne 0x10021239
push ebx
call fcn.1000aabc
pop ecx
cmp eax, 0xffffffff
je 0x10021246
cmp eax, 7
jne 0x10021239
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x10021248
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002874e
leave
ret

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

Disassembly:
or eax, 0xffffffff
test edx, edx
je 0x10021279
push esi
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10051830]
dec edx
inc ecx
test edx, edx
jne 0x1002125d
pop esi
not eax
ret

Function at 0x10021359
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x130
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x74]
and dword [ebp - 0xc4], 0
push esi
push edi
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x78]
push 0x3f
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0x3f]
push 0
push eax
mov byte [ebp - 0x40], 0
call fcn.1002c7e0
mov esi, 0x10048408
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov al, byte [ebp + ecx - 0x40]
mov dl, al
xor dl, 0x36
xor al, 0x5c
mov byte [ebp + ecx - 0x9c], dl
mov byte [ebp + ecx], al
inc ecx
cmp ecx, 0x40
jb 0x100213a9
lea eax, [ebp - 0x5c]
call fcn.10026cb5
lea eax, [ebp - 0x9c]
push eax
push 0x40
pop eax
lea esi, [ebp - 0x5c]
call fcn.10026ce0
push dword [ebp - 0xc0]
mov eax, dword [ebp + 0x7c]
call fcn.10026ce0
lea eax, [ebp + 0x54]
push eax
mov ecx, esi
call fcn.10026d78
lea eax, [ebp - 0xb8]
call fcn.10026cb5
lea eax, [ebp]
push eax
push 0x40
pop eax
lea esi, [ebp - 0xb8]
call fcn.10026ce0
lea eax, [ebp + 0x54]
push eax
push 0x14
pop eax
call fcn.10026ce0
lea eax, [ebp + 0x40]
push eax
mov ecx, esi
call fcn.10026d78
mov esi, dword [ebp - 0xbc]
add esp, 0x18
push 0x14
lea eax, [ebp + 0x40]
push eax
call fcn.1000b754
mov ecx, dword [ebp + 0x68]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002874e
add ebp, 0x6c
leave
ret
Function at 0x10021453
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x10050060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x144], 0
push esi
push edi
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0xc]
push 0x3f
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0xa7]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0xa8], 0
call fcn.1002c7e0
add esp, 0xc
cmp dword [ebp + 0x14], 0x40
ja 0x100214b8
push dword [ebp + 0x14]
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.1002cd10
add esp, 0xc
jmp 0x100214f1
lea eax, [ebp - 0x138]
call fcn.10026e39
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 0x138]
call fcn.10026e79
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x138]
call fcn.10026f05
pop ecx
pop ecx
push 0x10
pop ecx
lea esi, [ebp - 0x28]
lea edi, [ebp - 0xa8]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov al, byte [ebp + ecx - 0xa8]
mov dl, al
xor dl, 0x36
xor al, 0x5c
mov byte [ebp + ecx - 0x48], dl
mov byte [ebp + ecx - 0x110], al
inc ecx
cmp ecx, 0x40
jb 0x100214f3
lea eax, [ebp - 0xd0]
call fcn.10026e39
lea eax, [ebp - 0x48]
push eax
push 0x40
pop eax
lea ecx, [ebp - 0xd0]
call fcn.10026e79
push dword [ebp - 0x13c]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xd0]
call fcn.10026e79
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xd0]
call fcn.10026f05
lea eax, [ebp - 0xd0]
call fcn.10026e39
lea eax, [ebp - 0x110]
push eax
push 0x40
pop eax
lea ecx, [ebp - 0xd0]
call fcn.10026e79
lea eax, [ebp - 0x28]
push eax
push 0x20
pop eax
lea ecx, [ebp - 0xd0]
call fcn.10026e79
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xd0]
call fcn.10026f05
mov esi, dword [ebp - 0x140]
add esp, 0x18
push 0x20
lea eax, [ebp - 0x68]
push eax
call fcn.1000b754
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1002874e
leave
ret
Function at 0x100218b3
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x1003dd3d
call fcn.100296da
mov eax, dword [ebp + 8]
or dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 7
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
push ebx
push 0x8000000
push 3
push ebx
push dword [ebp + edi*4 - 0x38]
push 0x80000000
push dword [ebp - 0x28]
call dword [0x10054018]
push eax
lea esi, [ebp - 0x20]
call fcn.10021877
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x1002191c
cmp ecx, 0xffffffff
jne 0x10021922
inc edi
cmp edi, 4
jb 0x100218ec
cmp ecx, ebx
je 0x1002192d
or eax, 0xffffffff
cmp ecx, eax
jne 0x1002193d
lea eax, [ebp - 0x20]
call fcn.100011e4
xor eax, eax
call fcn.1002975d
ret
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x1c], 0x70bfbbef
jne 0x1002196a
cmp dword [ebp - 0x18], 0x706c646f
je 0x10021976
lea eax, [ebp - 0x20]
call fcn.100011e4
mov eax, ebx
jmp 0x10021937
mov eax, dword [ebp - 0x14]
dec eax
dec eax
je 0x10021985
dec eax
jne 0x1002196a
push 3
pop ebx
jmp 0x1002196a
push 2
jmp 0x10021982

Function at 0x100219ce
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x190
mov eax, dword [esp + 8]
imul eax, eax, 0x343fd
add eax, 0x269ec3
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
add eax, ecx
shr edx, 0x10
xor byte [eax], dl
inc ecx
cmp ecx, 0x1000
jl 0x100219d3
ret
Function at 0x10021a7f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], esi
ja 0x10021abc
jb 0x10021bd5
cmp eax, 0x1000
jb 0x10021bd5
push 1
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
mov dword [ebp - 0x20], edi
call esi
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
push eax
push eax
push edi
call esi
push 0
lea eax, [ebp - 4]
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10021b09
cmp dword [ebp - 0x1c], eax
jne 0x10021bd5
push eax
jmp 0x10021bc2
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x10021b1e
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
cmp dword [ebx], 0x70bfbbef
jne 0x10021bbc
cmp dword [ebx + 4], 0x706c646f
jne 0x10021bbc
mov eax, dword [ebx + 8]
cmp eax, 2
je 0x10021b44
cmp eax, 3
jne 0x10021bbc
push dword [ebx + 0x18c]
push ebx
call fcn.100219ce
cmp byte [ebx + 0x4a3], 0
pop ecx
pop ecx
jne 0x10021b9d
cmp dword [ebx + 0x1a0], 0x40
ja 0x10021b9d
mov eax, 0x270f
cmp word [ebx + 0x190], ax
ja 0x10021b9d
movzx eax, word [ebx + 0x192]
cmp ax, 1
jb 0x10021b9d
cmp ax, 0xc
ja 0x10021b9d
movzx eax, word [ebx + 0x196]
cmp ax, 1
jb 0x10021b9d
cmp ax, 0x1f
ja 0x10021b9d
xor ebx, ebx
inc ebx
jmp 0x10021b9f
xor ebx, ebx
cmp dword [ebp - 0x1c], edi
jne 0x10021bb8
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call esi
mov eax, ebx
jmp 0x10021bd7
cmp dword [ebp - 0x1c], edi
jne 0x10021bd5
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100251aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x10025200
cmp eax, 0xffffffff
je 0x10025200
push esi
lea ecx, [ebp - 4]
push ecx
push 4
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10025200
cmp dword [ebp - 4], 4
jne 0x10025200
cmp dword [ebp - 8], 0x21726152
jne 0x10025200
inc esi
lea eax, [ebp - 0xc]
call fcn.100011e4
mov eax, esi
pop esi
leave
ret
Function at 0x100255ed
Capabilities:
Check if file exists

Disassembly:
push 0x6c
mov eax, 0x1003ef62
call fcn.100296da
lea eax, [ebp - 0x5c]
push eax
mov esi, ecx
call fcn.10004e1c
and dword [ebp - 4], 0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jmp 0x10025657
lea esi, [ebp - 0x38]
call fcn.100078e1
cmp dword [eax + 0x18], 8
jb 0x10025630
mov eax, dword [eax + 4]
jmp 0x10025633
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002564f
lea esi, [ebp - 0x38]
call fcn.100078e1
push eax
lea eax, [ebp - 0x5c]
call fcn.10004e6b
lea esi, [ebp - 0x38]
call fcn.10005cb5
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x38]
call fcn.10004e84
test al, al
jne 0x1002561d
cmp dword [ebp - 0x44], 0
jne 0x1002568a
mov esi, 0x44e
lea edi, [ebp - 0x5c]
call fcn.10005c6f
push dword [ebp - 0x5c]
call fcn.10028e08
pop ecx
mov eax, esi
call fcn.1002975d
ret
mov edi, ebx
call fcn.1000a34b
mov esi, ebx
call fcn.1000a75e
push ebx
push 0x10048674
push 0x10048680
lea ecx, [ebp - 0x30]
call fcn.1000b2a5
add esp, 0xc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], eax
jmp 0x10025716
lea esi, [ebp - 0x38]
call fcn.100078e1
cmp dword [eax + 0x18], 8
jb 0x100256db
mov eax, dword [eax + 4]
jmp 0x100256de
add eax, 4
push eax
push str.___s_
lea ecx, [ebp - 0x78]
call fcn.1000b2a5
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.1000c012
push 0
push 1
lea esi, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10005985
lea esi, [ebp - 0x38]
call fcn.10005cb5
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x38]
call fcn.10004e84
test al, al
jne 0x100256c8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push ebx
call esi
test eax, eax
je 0x10025753
push 0x10046d08
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10025753
push str.__md1M
lea eax, [ebp - 0x30]
push eax
call fcn.1000b778
push 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x60], 0xf
call fcn.10006a33
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10025774
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.1002513e
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x78]
mov edi, eax
call fcn.100057e3
test edi, edi
je 0x10025799
mov esi, ebx
call fcn.1000a75e
push 0
push 1
lea esi, [ebp - 0x30]
call fcn.10005985
mov esi, edi
jmp 0x10025671