joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ff0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419980
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [section..data]
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 ebx, ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00407a20
cmp dword [ebp - 0x30], 0xa
jb 0x4081dd
push 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
push str.C78F614D72CF
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004051c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0x104
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4081b8
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x5c], edi
test edi, edi
je 0x4081b8
push 0x104
push 0
push edi
call fcn.00411610
add esp, 0xc
xor esi, esi
lea ecx, [ecx]
mov ecx, ebx
call fcn.00407f50
mov ebx, eax
test ebx, ebx
je 0x4081af
push ebx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x408124
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push ecx
push edi
call section..text
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x5c]
cmp byte [edi], 0
jne 0x408133
inc esi
cmp esi, 0xa
jae 0x4081af
mov ebx, dword [ebp - 0x60]
jmp 0x4080d0
push 0x42006c
lea ecx, [ebp - 0x58]
call fcn.00404760
mov edx, ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7c]
call fcn.004065c0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x40815a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x58]
call fcn.004047f0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x68], 0x10
jb 0x408178
push dword [ebp - 0x7c]
call fcn.004098d1
add esp, 4
push 0x420070
lea ecx, [ebp - 0x58]
call fcn.004047f0
push edi
lea ecx, [ebp - 0x58]
call fcn.004047f0
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
call fcn.00406640
cmp dword [ebp - 0x44], 0x10
jb 0x4081af
push dword [ebp - 0x58]
call fcn.004098d1
add esp, 4
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
jb 0x4081c9
push dword [ebp - 0x28]
call fcn.004098d1
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 0x10
jb 0x4081ee
push dword [ebp - 0x40]
call fcn.004098d1
add esp, 4
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.00408e8c
mov esp, ebp
pop ebp
ret
Function at 0x40b1fe
Capabilities:
Encode data using xor

Disassembly:
bswap ebx
add cl, bl
add edi, 0x890
cmp dh, bh
sub edi, 0x88f
xor al, ch
jno 0x40b1d5
or bh, 0xdf
cmp edi, 0x126
jb 0x40b1bc
pop edi
bswap edx
inc bl
bswap eax
mov ebp, ecx
bswap ebx
mov edx, 0xbd86
mov ebx, ebx
xor edx, 0x35e5
not bh
sub edx, 0x8dcc
je 0x40b202
invalid
sbb bh, dl
inc ebx
push edx
mov ah, 0x17
pop eax
mov dl, bl
add eax, 0xe24
imul ebp, edi, 0x6f06b314
push eax
inc ebp
pop ecx
imul ebx, eax, 0xe70aa2ef
mov eax, 0xc96e8108
sub esi, ecx
jmp 0x40b234
sub esi, 0xedb2
movd mm1, edi
imul ebx, ebp
cmp al, dh
cmp edi, 0x7203
ja 0x40b256
adc al, 0xb5
xor eax, eax
test edx, 0x244e6618
inc edi
mov ah, bl
lea edx, [edi]
lea ebx, [0x1192dd21]
xor esi, ebp
sub ecx, edx
mov bh, cl
movd esi, mm1
neg ebx
lea edi, [0xaa329227]
dec edx
cmp edx, 0x1f03
jbe 0x40b27d
dec ebx
mov ecx, 0x8ba25
jne 0x40b28d
or edx, eax
test ah, 0x4b
mov al, dh
mov ebx, esi
xor ecx, 0x2335
jno 0x40b29d
dec dl
test edx, 0xa6958ad6
mov dh, al
xadd esi, ecx
test ecx, 0x90827be6
add esi, 0x230
imul eax, ecx
bswap edi
cmp eax, 0xaa316303
mov ebp, esi
xor edi, eax
test edx, ebx
bswap eax
imul ebp, ebx
xor dh, al
mov eax, 0x3e55
inc edi
xor eax, 0x3089
sbb ebx, ebp
sub eax, 0x72e
dec eax
xor edi, ecx
neg bh
cmp eax, 0x13e
jae 0x40b2d7
test eax, 0x42755fd5
test ch, 0x7c
push esi
mov ecx, 0xd3ba1367
sbb ebx, edx
adc ebx, 0xcd8dcb87
add eax, edx
mov edi, 0x6c926031
ret
Function at 0x415004
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b1fe
mov dword [ebp - 0x14], eax
cmp dword [0x48bb88], esi
jne 0x4150f7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x415084
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4151d7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4151d7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4151d7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x48bb88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x48bb8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48bb90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48bb98], eax
test eax, eax
je 0x4150f4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x48bb94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41511c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41510f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x415131
push 4
pop eax
jmp 0x4151d9
cmp dword [ebp - 0x14], esi
je 0x415131
push dword [0x48bb88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x415116
mov eax, dword [0x48bb94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41518f
cmp dword [0x48bb98], edi
je 0x41518f
push eax
call ebx
push dword [0x48bb98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41518f
test eax, eax
je 0x41518f
call ecx
test eax, eax
je 0x415184
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x415184
test byte [ebp - 8], 1
jne 0x41518f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4151bf
mov eax, dword [0x48bb8c]
cmp eax, edi
je 0x4151bc
push eax
call ebx
test eax, eax
je 0x4151bc
call eax
mov esi, eax
test esi, esi
je 0x4151bc
mov eax, dword [0x48bb90]
cmp eax, edi
je 0x4151bc
push eax
call ebx
test eax, eax
je 0x4151bc
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x48bb88]
call ebx
test eax, eax
je 0x4151d7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4151d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e8c
mov esp, ebp
pop ebp
ret
Function at 0x485af0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5c000]
push edi
or ebp, 0xffffffff
jmp 0x485b12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x485b19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b08
mov eax, 1
add ebx, ebx
jne 0x485b2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x485b3c
jne 0x485b5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b5b
dec eax
add ebx, ebx
jne 0x485b48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x485b20
add ebx, ebx
jne 0x485b57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x485bad
xor ecx, ecx
sub eax, 3
jb 0x485b73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x485be2
sar eax, 1
mov ebp, eax
jmp 0x485b7e
add ebx, ebx
jne 0x485b7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b4c
inc ecx
add ebx, ebx
jne 0x485b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x485b4c
add ebx, ebx
jne 0x485b99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x485b8e
jne 0x485baa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x485b8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x485bcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x485bbe
jmp 0x485b0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x485bcc
add edi, ecx
jmp 0x485b0e
pop esi
mov edi, esi
mov ecx, 0x946
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x485bea
cmp byte [edi], 0x11
jne 0x485bea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x485bef
lea edi, [esi + 0x82000]
mov eax, dword [edi]
or eax, eax
je 0x485c67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9e218]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9e2d4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x485c1c
mov ecx, edi
jns 0x485c4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9e2dc]
or eax, eax
je 0x485c61
mov dword [ebx], eax
add ebx, 4
jmp 0x485c39
call dword [esi + 0x9e2d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x485c98
cmp al, 0xef
ja 0x485c8b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x485c6d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x485c7a
mov ebp, dword [esi + 0x9e2e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x485ccc
sub esp, 0xffffff80
jmp 0x404ff7
Function at 0x4031b0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4031dc
call fcn.00403410
pop edi
xor al, al
pop esi
ret
cmp dword [esp + 0x14], esi
je 0x4031e7
pop edi
xor al, al
pop esi
ret
push esi
push edi
call fcn.004033e0
add esp, 8
mov al, 1
pop edi
pop esi
ret

Function at 0x403200
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40322c
call fcn.00403410
pop edi
xor al, al
pop esi
ret
mov ecx, dword [esp + 0x14]
test ecx, ecx
ja 0x403239
pop edi
xor al, al
pop esi
ret
xor eax, eax
test ecx, ecx
jbe 0x40324a
cmp byte [eax + esi], 0xa
je 0x403253
inc eax
cmp eax, ecx
jb 0x40323f
mov byte [ecx + esi], 0
pop edi
mov al, 1
pop esi
ret
sub ecx, eax
mov edx, 1
push 1
sub edx, ecx
push 0
push edx
push edi
mov byte [eax + esi], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40324e
push str.Rewinding_problem
push str.ComFileReadLine
call fcn.00401170
add esp, 8
xor al, al
pop edi
pop esi
ret

Function at 0x4032d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
call fcn.004033e0
mov ecx, dword [esp + 0x14]
add esp, 8
lea eax, [esp + 0x14]
push 0
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
push edi
jne 0x403310
call fcn.004033e0
add esp, 8
call fcn.00403410
pop edi
xor al, al
pop esi
ret
call fcn.004033e0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, esi
pop edi
pop esi
sete al
ret

Function at 0x403390
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4033b6
push str.Could_not_get_size
push str.ComFileGetSize
call fcn.00401170
add esp, 8
xor eax, eax
ret
Function at 0x413af0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
mov al, byte [0x709e40]
sub esp, 0x100
test al, al
push ebx
push esi
je case.0x413b38.18
mov esi, dword [esp + 0x10c]
push esi
call fcn.0041c080
add esp, 4
test al, al
je 0x413b24
pop esi
mov al, 1
pop ebx
add esp, 0x100
ret
lea eax, [esi - 9]
cmp eax, 0x60
ja case.0x413b38.18
xor ecx, ecx
mov cl, byte [eax + 0x413cec]
jmp dword [ecx*4 + 0x413cc4]
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp byte [esp + 0x18], 1
jbe 0x413b66
push 0xffffffffffffffff
call fcn.00413eb0
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 1
call fcn.00413eb0
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 0
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 1
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 2
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 3
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 5
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 6
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
push 4
call fcn.00413d70
add esp, 4
mov al, 1
pop esi
pop ebx
add esp, 0x100
ret
mov eax, dword [0x4b17a8]
test eax, eax
jl 0x413c4e
mov ecx, dword [0x709e44]
cmp eax, ecx
jge 0x413c54
lea edx, [eax + eax*4]
lea edx, [eax + edx*2]
shl edx, 6
sub edx, eax
cmp dword [edx*8 + 0x1d726c8], 5
jne 0x413c54
push eax
call fcn.004167d0
add esp, 4
test al, al
je 0x413c4e
pop esi
mov al, 1
pop ebx
add esp, 0x100
ret
mov ecx, dword [0x709e44]
xor eax, eax
test ecx, ecx
jle case.0x413b38.18
mov esi, 0x1d726f2
mov dl, 2
mov bl, byte [esi - 0x31]
test bl, bl
je 0x413c79
mov bl, byte [esi - 0x32]
test bl, bl
je 0x413c79
cmp byte [esi], 0
je 0x413c79
cmp byte [esi + 1], dl
je 0x413c8f
inc eax
add esi, 0x15f8
cmp eax, ecx
jl 0x413c61
pop esi
xor al, al
pop ebx
add esp, 0x100
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x709e54]
jb 0x413cb8
mov esi, dword [esi + 0x1596]
test esi, esi
je 0x413cae
push 0
call esi
add esp, 4
push 0
call fcn.00413f90
add esp, 4
pop esi
mov al, 1
pop ebx
add esp, 0x100
ret
Function at 0x429870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push str.DATAFILE
push 0x435
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4298a8
push str.FindResource_Failed
push str.PeopleInit
call fcn.00401170
push str.Internal_Error_loading_computer_players
push 0x4edd18
call fcn.004012b0
add esp, 0x10
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4298d7
push str.LoadResource_Failed
push str.PeopleInit
call fcn.00401170
push str.Internal_Error_on_loading_computer_players
push 0x4edd18
call fcn.004012b0
add esp, 0x10
ret
push esi
push edi
mov ecx, 0xac2
mov esi, eax
mov edi, 0x1cefac0
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x2b08
push 0x1cefac0
call fcn.004033e0
add esp, 8
pop edi
pop esi
ret
Function at 0x459060
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x52c
lea eax, [esp + 4]
mov dword [0xfde074], 0
push ebx
push eax
push str.Replays.rep
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x459160
mov edx, dword [0xfde074]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push edi
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x459138
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x154]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x10], esi
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x154]
dec ecx
sub eax, 4
lea edi, [esp + 0x154]
mov byte [ecx + eax], 0
lea eax, [edx + edx*4]
lea ecx, [eax + eax*4]
xor eax, eax
lea esi, [ecx*8 + 0xfc0bb0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov dword [0xfde074], edx
lea ecx, [esp + 0x14]
push ecx
push ebx
call ebp
test eax, eax
je 0x459156
mov edx, dword [0xfde074]
cmp edx, 0x258
jl 0x45909b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x52c
ret

Function at 0x45de90
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
lea eax, [esp]
push esi
push edi
push eax
push str.Users.usr
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45debc
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0xc]
inc edi
push ecx
push esi
call ebx
test eax, eax
jne 0x45dec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop ebx
pop edi
pop esi
add esp, 0x140
ret

Function at 0x45e4e0
Capabilities:
Delete file

Disassembly:
mov edx, dword [esp + 4]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
cmp ecx, 1
jae 0x45e50c
push str.Empty_User_Name
push str.UserFileRemove
call fcn.00401170
add esp, 8
xor al, al
ret
push edx
call fcn.0045de70
add esp, 4
push 0xfde090
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret
Function at 0x45e8e0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x158
lea eax, [esp + 0x18]
mov dword [0xfde0a4], 0
push ebx
push eax
push str.Users.usr
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45e9e6
mov edx, dword [0xfde0a4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
push edi
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jbe 0x45e9aa
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x14]
dec ecx
sub eax, 4
lea edi, [esp + 0x14]
mov byte [ecx + eax], 0
lea eax, [edx + edx*2]
or ecx, 0xffffffff
lea esi, [eax + eax*4 + 0xfde6c0]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
mov dword [0xfde0a4], edx
jmp 0x45e9c1
lea ecx, [esp + 0x14]
push ecx
push str.Invalid_file_present:___s_
push str.UserLoadInitNameList
call fcn.00401170
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push ebx
call ebp
test eax, eax
je 0x45e9dc
mov edx, dword [0xfde0a4]
cmp edx, 0x64
jl 0x45e91b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret
Function at 0x465534
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
cmp edi, ebp
mov ebx, ecx
jne 0x46554e
mov eax, 0x80070057
jmp 0x4656cb
cmp dword [ebx + 0x104], 0xffffffff
je 0x46555e
mov ecx, ebx
call fcn.004656d2
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x10000080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 4
push ebp
mov ecx, eax
push ebp
push 0xc0000000
and ecx, 3
push dword [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x114], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x104], eax
je 0x465613
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [ebx + 0x110], eax
sbb esi, esi
neg esi
mov dword [esp + 0x14], esi
je 0x4655c7
mov eax, 0x1000
jmp 0x4655d0
add eax, 0xfff
and ax, 0xf000
push ebp
push eax
push ebp
push 4
push ebp
mov dword [ebx + 0x110], eax
push dword [ebx + 0x104]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [ebx + 0x108], eax
je 0x465613
push dword [ebx + 0x110]
push ebp
push ebp
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
cmp edx, ebp
mov dword [ebx + 0x10c], edx
jne 0x465643
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x465625
call esi
mov esi, eax
jmp 0x465635
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, ebx
call fcn.004656d2
mov eax, esi
jmp 0x4656cb
cmp esi, ebp
jne 0x46569a
push 8
mov edi, str.D3DX_r_n
pop ecx
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x465672
cmp dword [edx + 8], ebp
jne 0x465672
cmp dword [edx + 0x14], 0x10
jne 0x465672
mov eax, dword [edx + 0x18]
cmp eax, 0x28
jb 0x465672
cmp eax, dword [ebx + 0x110]
jbe 0x465692
mov ecx, dword [ebx + 0x110]
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x14], 1
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4656c9
mov eax, dword [str.D3DX_r_n]
mov dword [edx], eax
mov eax, dword [0x4a3584]
mov dword [edx + 4], eax
mov dword [edx + 8], ebp
mov dword [edx + 0xc], ebp
mov dword [edx + 0x10], ebp
mov dword [edx + 0x14], 0x10
mov dword [edx + 0x18], 0x28
mov dword [edx + 0x1c], ebp
mov dword [edx + 0x20], ebp
mov dword [edx + 0x24], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4