joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c8c5
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x44c8f0
call fcn.0044255a
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x44c913
push eax
push dword [esi + 4]
call fcn.0044c84b
push esi
push eax
mov ecx, 0x4b9cd0
call fcn.0044c4d2
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44d35c
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x48c0bc
call fcn.00463080
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0044d31c
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004015d0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x44d3c3
push eax
push dword [esi + 8]
call fcn.0044c84b
push dword [esi + 0xc]
mov ecx, 0x4b9cd0
push eax
call fcn.0044c4d2
mov eax, esi
call fcn.00463158
ret 0x1c
Function at 0x45ceb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b5a50]
jne 0x45ceba
repz ret
jmp fcn.004660ee

Function at 0x471c30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00465a52
and dword [ebp - 4], 0
cmp dword [0x4bab2c], 0
mov ebx, eax
jne 0x471ce1
push 0x497d5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x471d92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x497d50
push edi
call esi
test eax, eax
je 0x471d92
push eax
call fcn.004659e0
mov dword [esp], 0x497d40
push edi
mov dword [0x4bab2c], eax
call esi
push eax
call fcn.004659e0
mov dword [esp], 0x497d2c
push edi
mov dword [0x4bab30], eax
call esi
push eax
call fcn.004659e0
mov dword [esp], 0x497d10
push edi
mov dword [0x4bab34], eax
call esi
push eax
call fcn.004659e0
pop ecx
mov dword [0x4bab3c], eax
test eax, eax
je 0x471ce1
push 0x497cf8
push edi
call esi
push eax
call fcn.004659e0
pop ecx
mov dword [0x4bab38], eax
mov eax, dword [0x4bab38]
cmp eax, ebx
je 0x471d39
cmp dword [0x4bab3c], ebx
je 0x471d39
push eax
call fcn.00465a5b
push dword [0x4bab3c]
mov esi, eax
call fcn.00465a5b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x471d39
test edi, edi
je 0x471d39
call esi
test eax, eax
je 0x471d30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x471d30
test byte [ebp - 0xc], 1
jne 0x471d39
or dword [ebp + 0x10], 0x200000
jmp 0x471d72
mov eax, dword [0x4bab30]
cmp eax, ebx
je 0x471d72
push eax
call fcn.00465a5b
pop ecx
test eax, eax
je 0x471d72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x471d72
mov eax, dword [0x4bab34]
cmp eax, ebx
je 0x471d72
push eax
call fcn.00465a5b
pop ecx
test eax, eax
je 0x471d72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bab2c]
call fcn.00465a5b
pop ecx
test eax, eax
je 0x471d92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x471d94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401078
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5c8]
sub esp, 0x648
mov eax, dword [0x417030]
xor eax, ebp
mov dword [ebp + 0x5c4], eax
mov eax, dword [ebp + 0x5d0]
push ebx
push esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x5d8]
push edi
mov dword [ebp - 0x64], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x3bc], ax
xor ebx, ebx
lea eax, [ebp + 0x3be]
push ebx
push eax
call fcn.00407150
add esp, 0xc
lea eax, [ebp + 0x3bc]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40111e
xor eax, eax
push esi
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push ebx
push eax
call fcn.00407150
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.12au_x
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00405c4e
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x3bc]
push edi
push eax
call fcn.00405ce9
add esp, 0x1c
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
mov dword [ebp - 0x58], ebx
call fcn.0040165a
cmp eax, ebx
je 0x401206
lea ecx, [ebp - 0x60]
push ecx
mov esi, eax
mov dword [ebp - 0x60], ebx
call fcn.0040185e
pop ecx
cmp eax, ebx
je 0x40115a
lea ecx, [ebp + 0x3bc]
push ecx
push dword [ebp - 0x60]
mov ecx, eax
call fcn.004033b5
pop ecx
pop ecx
cmp dword [ebp - 0x58], ebx
je 0x401168
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x204
lea eax, [ebp + 0x1b8]
push ebx
push eax
mov dword [ebp + 0x1b4], 0x30
call fcn.00407150
push 0xffffffffffffffff
lea eax, [ebp + 0x3bc]
push eax
lea eax, [ebp + 0x1b4]
push edi
push eax
call fcn.00405b7b
push 0x412cdc
lea eax, [ebp + 0x1b4]
push edi
push eax
call fcn.00405ce9
push 0x412ce0
lea eax, [ebp + 0x1b4]
push edi
push eax
call fcn.00405ce9
add esp, 0x34
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x401206
push str.InstallerModuleEntry
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4011f8
push dword [ebp - 0x64]
lea ecx, [ebp + 0x3bc]
push ecx
push dword [ebp - 0x5c]
call eax
add esp, 0xc
jmp 0x4011fd
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40120b
call fcn.00401000
lea eax, [ebp + 0x3bc]
push eax
lea esi, [ebp - 0x80]
call fcn.00401245
mov eax, esi
call fcn.004019f9
push ebx
push 1
call fcn.004012e9
mov ecx, dword [ebp + 0x5c4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405b6c
add ebp, 0x5c8
leave
ret 0x10
Function at 0x4019f9
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, eax
push esi
call fcn.00401a20
cmp dword [esi + 0x18], 8
pop ecx
jb 0x401a0e
mov esi, dword [esi + 4]
jmp 0x401a11
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop esi
ret

Function at 0x401a20
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x410d95
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x417030]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x417030]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call fcn.00401eaa
and dword [esp + 0x78], 0
lea eax, [esp + 0x1c]
push eax
call fcn.00401eaa
push ebx
lea edi, [esp + 0x38]
mov byte [esp + 0x7c], 1
call fcn.00401ca6
pop ecx
push ebx
lea edi, [esp + 0x20]
call fcn.00401d15
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x44]
pop ecx
cdq
push 0x1c
pop ecx
idiv ecx
xor edi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
cdq
idiv ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], edi
jbe 0x401b0d
push ebx
lea esi, [esp + 0x50]
call fcn.00401d87
push edi
lea esi, [esp + 0x38]
mov byte [esp + 0x7c], 2
call fcn.00401f0f
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401948
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x401aea
lea eax, [esp + 0x50]
push eax
call fcn.004064e1
pop ecx
push 0
push 1
lea esi, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.004012e9
inc edi
cmp edi, dword [esp + 0x14]
jb 0x401ab7
xor edi, edi
cmp dword [esp + 0x18], edi
jbe 0x401b76
push ebx
lea esi, [esp + 0x50]
call fcn.00401d87
push edi
lea esi, [esp + 0x20]
mov byte [esp + 0x7c], 3
call fcn.00401f0f
lea ecx, [esp + 0x4c]
push ecx
call fcn.00401948
pop ecx
lea eax, [esp + 0x4c]
push eax
call fcn.00401a20
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
pop ecx
jae 0x401b53
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 1
lea esi, [esp + 0x54]
mov byte [esp + 0x80], 1
call fcn.004012e9
inc edi
cmp edi, dword [esp + 0x18]
jb 0x401b15
lea esi, [esp + 0x1c]
call fcn.00401ee2
lea esi, [esp + 0x34]
call fcn.00401ee2
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00405b6c
mov esp, ebp
pop ebp
ret
Function at 0x401ba8
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x410cd4
call fcn.004078e6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x268], ecx
jb 0x401bcb
mov eax, dword [eax + 4]
jmp 0x401bce
add eax, 4
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ebx, ebx
mov edi, eax
inc ebx
cmp edi, 0xffffffff
je 0x401c97
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x412d34
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x401c81
push 0x412d38
lea eax, [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x401c81
cmp byte [ebp + 0xc], 0
je 0x401c49
test byte [ebp - 0x264], 0x10
je 0x401c81
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x284]
call fcn.00401245
and dword [ebp - 4], 0
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
call fcn.00401f35
jmp 0x401c75
test byte [ebp - 0x264], 0x10
jne 0x401c81
lea eax, [ebp - 0x238]
push eax
lea esi, [ebp - 0x2a0]
call fcn.00401245
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], ebx
call fcn.00401f35
or dword [ebp - 4], 0xffffffff
push 0
push ebx
call fcn.004012e9
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x401bea
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
call fcn.00407969
ret

Function at 0x4032b7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x417030]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x4033a7
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x4033a7
push edi
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
call fcn.00407150
movzx eax, byte [ebp - 0x25d]
push eax
movzx eax, byte [ebp - 0x25e]
push eax
movzx eax, byte [ebp - 0x25f]
push eax
movzx eax, byte [ebp - 0x260]
push eax
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, word [ebp - 0x266]
push eax
movzx eax, word [ebp - 0x268]
push eax
push dword [ebp - 0x26c]
lea edi, [ebp - 0x54]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
pop ecx
call fcn.00403268
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
call fcn.00407150
add esp, 0x48
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
push eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
pop edi
jmp 0x4033a9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405b6c
leave
ret
Function at 0x4054a3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, eax
test edx, edx
jne 0x4054ae
xor eax, eax
pop edi
ret
or eax, 0xffffffff
push esi
mov ecx, 0xff
cmp edi, 8
jb 0x405561
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x4142e0]
inc edx
sub edi, 8
dec esi
jne 0x4054c6
pop ebx
test edi, edi
je 0x40557a
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x4142e0]
inc edx
dec edi
jne 0x405565
pop esi
not eax
pop edi
ret

Function at 0x405b6c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417030]
jne 0x405b76
repz ret
jmp fcn.00407987
Function at 0x40f785
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408def
and dword [ebp - 4], 0
cmp dword [0x418f00], 0
mov ebx, eax
jne 0x40f836
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f8e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f8e7
push eax
call fcn.00408d7d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418f00], eax
call esi
push eax
call fcn.00408d7d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418f04], eax
call esi
push eax
call fcn.00408d7d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418f08], eax
call esi
push eax
call fcn.00408d7d
pop ecx
mov dword [0x418f10], eax
test eax, eax
je 0x40f836
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408d7d
pop ecx
mov dword [0x418f0c], eax
mov eax, dword [0x418f0c]
cmp eax, ebx
je 0x40f88e
cmp dword [0x418f10], ebx
je 0x40f88e
push eax
call fcn.00408df8
push dword [0x418f10]
mov esi, eax
call fcn.00408df8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f88e
test edi, edi
je 0x40f88e
call esi
test eax, eax
je 0x40f885
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f885
test byte [ebp - 0xc], 1
jne 0x40f88e
or dword [ebp + 0x10], 0x200000
jmp 0x40f8c7
mov eax, dword [0x418f04]
cmp eax, ebx
je 0x40f8c7
push eax
call fcn.00408df8
pop ecx
test eax, eax
je 0x40f8c7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f8c7
mov eax, dword [0x418f08]
cmp eax, ebx
je 0x40f8c7
push eax
call fcn.00408df8
pop ecx
test eax, eax
je 0x40f8c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418f00]
call fcn.00408df8
pop ecx
test eax, eax
je 0x40f8e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f8e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4014e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4179c0], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x401551
push str.ADVAPI32.DLL
mov dword [0x4179d8], 0xc
mov dword [0x4179e0], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401547
push str.ConvertStringSecurityDescriptorToSecurityDescriptorW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x401547
push 0
push 0x4179dc
push 1
push 0x4109d0
call ebx
mov dword [0x4179c0], eax
jmp 0x401551
mov dword [0x4179dc], 0
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
push dword [esi + 4]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 4
push 0x4179d8
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x401633
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401633
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 0
push 6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401633
mov ecx, dword [esi + 0xc]
xor edi, edi
test ecx, ecx
jle 0x4015fd
mov edx, dword [esi + 8]
lea ebx, [edi + 1]
mov eax, dword [esi + 0x1c]
imul edx, ebx
add eax, 0xfffffffc
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ecx - 1]
xor ecx, ecx
cmp edi, eax
cmovne ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
test edi, edi
jne 0x4015ea
mov edi, dword [esi + 0xc]
lea eax, [edi - 1]
mov edi, ebx
imul eax, dword [esi + 8]
mov dword [edx - 4], eax
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jl 0x4015c0
mov eax, dword [esi + 8]
imul eax, ecx
xor ecx, ecx
add eax, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], ecx
jle 0x401620
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, dword [esi + 0x10]
jl 0x401610
mov eax, dword [esi + 0x14]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401640
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
push 1
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, eax
mov dword [esi + 0x18], edx
test edx, edx
je 0x401689
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
mov ecx, dword [esi + 0x10]
lea eax, [eax + ecx*4]
push eax
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401689
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 0x14], ecx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401d70
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x417100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x401f6a
push ebx
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [ebp - 0x20c]
push 0x103
push esi
push eax
call ebx
add esp, 0x18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401f69
push edi
push esi
call fcn.004020e0
add esp, 8
lea eax, [ebp - 0x20c]
push 0x410acc
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x401f62
nop dword [eax]
lea ecx, [ebp - 0x34c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401f56
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
test byte [ebp - 0x34c], 0x10
je 0x401f15
add esp, 0xc
lea eax, [ebp - 0x320]
mov ecx, 0x410ad0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401e74
test dl, dl
je 0x401e70
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401e74
add eax, 2
add ecx, 2
test dl, dl
jne 0x401e54
xor eax, eax
jmp 0x401e79
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x401e10
mov eax, 0x410ad4
lea ecx, [ebp - 0x320]
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401eb0
test dl, dl
je 0x401eac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401eb0
add ecx, 2
add eax, 2
test dl, dl
jne 0x401e90
xor eax, eax
jmp 0x401eb5
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x350]
je 0x401e10
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004020e0
push edi
mov edx, fcn.004020e0
lea ecx, [ebp - 0x108]
call fcn.00401d70
mov eax, dword [ebp - 0x350]
add esp, 0xc
jmp 0x401e10
push 0x103
lea eax, [ebp - 0x108]
push esi
push eax
call ebx
add esp, 0x18
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004020e0
mov eax, dword [ebp - 0x350]
add esp, 8
jmp 0x401e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b85d
mov esp, ebp
pop ebp
ret
Function at 0x4033d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x417100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
push ebx
push esi
push edi
cmp dword [eax], 0
je 0x403496
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0xc
push edi
call esi
push 8
push edi
call esi
push 0xa
push edi
call esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0x9c
lea eax, [ebp - 0xc0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x9c
mov dword [ebp - 0x98], 0x180000
mov word [ebp - 0x9c], ax
add esp, 0xc
mov eax, dword [0x417538]
mov dword [ebp - 0x54], eax
mov eax, dword [0x41753c]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0xc0]
push 4
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
mov eax, dword [sym.imp.Engine.dll_long_int_sam_bFullScreenActive]
cmp dword [eax], 0
je 0x403496
mov esi, dword [0x417538]
xor ecx, ecx
mov ebx, dword [0x41753c]
mov dword [ebp - 0xc4], 0
jmp 0x403564
lea eax, [ebp - 0x14]
push eax
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push dword [eax]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [0x417538]
sub esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 8]
sub esi, dword [ebp - 0x24]
sub ebx, dword [ebp - 0x20]
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
add esi, dword [ebp - 0x14]
add ebx, dword [0x41753c]
add esi, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x18]
cmp dword [eax], 0
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
jle 0x403517
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
call edi
cmp dword [ebp - 0xc4], eax
jle 0x40350a
push 0
call edi
mov dword [ebp - 0xc4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowLeft]
mov dword [eax], 0xffffffff
jmp 0x403526
call edi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0xc4], eax
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
push 1
cmp dword [eax], 0
jle 0x403559
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
call edi
mov ecx, dword [ebp - 0xc8]
cmp ecx, eax
jle 0x40354c
push 1
call edi
mov ecx, eax
mov eax, dword [sym.imp.Engine.dll_long_int_cmd_iWindowTop]
mov dword [eax], 0xffffffff
jmp 0x403564
call edi
sub eax, ebx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push 4
push ebx
push esi
push ecx
push dword [ebp - 0xc4]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [sym.imp.Engine.dll_struct_HWND_____hwndMain]
push 5
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b85d
mov esp, ebp
pop ebp
ret