joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406370
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x63
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x4a78b0
push 0x64
push eax
push 0
push str.isReleaseEnableSpecifyingReleaseDir
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4063dd
lea eax, [ebp - 0x68]
push 0x481d14
push eax
call fcn.004581f3
add esp, 8
test eax, eax
jne 0x4063dd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x4063f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x63
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x4a78b0
push 0x64
push eax
push 0
push str.isEnableSearchKeyword
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40645d
lea eax, [ebp - 0x68]
push 0x481d14
push eax
call fcn.004581f3
add esp, 8
test eax, eax
jne 0x40645d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x406470
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x63
lea eax, [ebp - 0x67]
mov byte [ebp - 0x68], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x4a78b0
push 0x64
push eax
push 0
push str.IsReleaseCurrentDir
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4064dd
lea eax, [ebp - 0x68]
push 0x481d14
push eax
call fcn.004581f3
add esp, 8
test eax, eax
jne 0x4064dd
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
call fcn.00406370
test eax, eax
jne 0x4064ef
call fcn.004063f0
test eax, eax
je 0x4064ca
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x406590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x7275f0]
mov dword [ebp - 0xd4], ecx
push edi
test esi, esi
je 0x4065ee
push 2
push 0x8b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4065ee
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4065ee
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x406601
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
cmp eax, esi
jb 0x4065e7
push esi
call fcn.00453a23
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4065e7
xor ecx, ecx
test esi, esi
je 0x40662d
lea edx, [esi + 0x27]
add edx, edi
nop
mov al, byte [edx]
lea edx, [edx - 1]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x406620
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00453200
lea eax, [ebp - 0xd0]
mov edx, esi
push eax
mov ecx, ebx
call fcn.004110f0
mov esi, dword [ebp - 0xd4]
push 0x64
push 0
push esi
call fcn.00453200
lea eax, [ebp - 0xd0]
push eax
push 0x481680
push esi
call fcn.004582cf
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call fcn.00454bdd
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x406a40
Capabilities:
Copy file
Get common file path
Persist via lnk shortcut

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x257
lea eax, [ebp - 0x32f]
mov byte [ebp - 0x330], 0
push 0
push eax
mov ebx, ecx
call fcn.00453200
add esp, 0xc
mov byte [ebp - 0x588], 0
lea eax, [ebp - 0x587]
push 0x257
push 0
push eax
call fcn.00453200
add esp, 0xc
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x6f]
push 0x63
push 0
push eax
call fcn.00453200
add esp, 0xc
mov byte [ebp - 0xd8], 0
lea eax, [ebp - 0xd7]
push 0x63
push 0
push eax
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x588]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x588]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x406ae0
mov ax, word [0x481cd0]
mov edx, 0x72770c
mov word [edi], ax
mov esi, edx
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x406b00
lea edi, [ebp - 0x588]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406b10
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x588]
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
lea ecx, [ecx]
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x406b30
mov ecx, dword [str..lnk]
mov esi, ebx
mov dword [edx], ecx
mov cl, byte [0x481d58]
mov byte [edx + 4], cl
lea ecx, [ecx]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x406b50
lea edi, [ebp - 0x330]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406b60
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x330]
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x406b80
mov edx, 0x72770c
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x406b94
lea edi, [ebp - 0x330]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406ba4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x330]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x406bc1
mov eax, dword [str..lnk]
lea edx, [ebp - 0x70]
mov dword [ecx], eax
mov al, byte [0x481d58]
mov byte [ecx + 4], al
lea ecx, [ebp - 0x588]
call fcn.00401470
cmp eax, 1
jne 0x406c1a
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x330]
call fcn.00401470
cmp eax, 1
jne 0x406c1a
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004581f3
add esp, 8
test eax, eax
je 0x406c30
push 0
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x407020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 8
mov ebx, edx
mov edi, ecx
call fcn.00453a23
mov esi, eax
add esp, 4
test esi, esi
je 0x40708c
lea eax, [ebp - 8]
mov dword [esi], edi
push eax
push 0
push esi
push 0x406d90
push 0
push 0
mov dword [esi + 4], ebx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407076
push eax
call ebx
cmp dword [ebp - 8], 0
jne 0x40708c
test edi, edi
je 0x407083
push edi
call ebx
push esi
call fcn.00454bdd
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x407c80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3aa4
call fcn.00457ef0
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push 0x95e
push eax
mov word [ebp - 0xbbc], ax
lea eax, [ebp - 0xbba]
push eax
mov dword [ebp - 0x3aa4], ebx
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0xbbc]
push 0x4b0
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [0x4a7b14]
test eax, eax
je 0x407cf5
lea ecx, [ebp - 0xbbc]
push ecx
push str._STS_DUILIB_SearchUpdateProcessChange
call eax
call eax
add esp, 4
mov ecx, 0xbb8
lea edi, [ebp - 0x3a9c]
mov esi, 0x522800
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x3a9c], 0
je 0x407e39
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
mov dword [ebp - 0x3aa0], 0
lea ebx, [ebp - 0x3a9c]
cmp byte [ebx], 0
je 0x407e03
push 0x258
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00453200
mov eax, dword [ebp - 0x3aa4]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407d68
lea edi, [ebp - 0x25c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x407d78
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x25c]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x407d95
mov ax, word [0x481cd0]
mov edx, ebx
mov word [edi], ax
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x407db0
lea edi, [ebp - 0x25c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407dc0
mov ecx, edx
lea eax, [ebp - 0x25c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x407e39
mov eax, dword [ebp - 0x3aa0]
add ebx, 0x258
inc eax
mov dword [ebp - 0x3aa0], eax
cmp eax, 0x14
jb 0x407d41
mov ecx, dword [ebp - 0x3aa4]
lea edi, [ecx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x407e10
mov ax, word [0x481cd0]
push 0x4a78b0
push ecx
push str.Game
push str.PATH
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x407e50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x13c
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x3a0], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x3a4], esi
call fcn.00453200
push 0x257
lea eax, [ebp - 0x25f]
mov byte [ebp - 0x260], 0
push 0
push eax
call fcn.00453200
add esp, 0x18
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x407eb0
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407ec0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x407ee0
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x481da8]
mov byte [ecx + 4], al
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40807d
mov esi, dword [ebp - 0x3a4]
mov ecx, esi
call fcn.00407c80
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40807d
jmp 0x407f40
mov ecx, 0x481d50
lea eax, [ebp - 0x374]
jmp 0x407f50
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407f70
test dl, dl
je 0x407f6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407f70
add eax, 2
add ecx, 2
test dl, dl
jne 0x407f50
xor eax, eax
jmp 0x407f75
sbb eax, eax
or eax, 1
test eax, eax
je 0x408067
mov eax, 0x481dac
lea ecx, [ebp - 0x374]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x407fa8
test dl, dl
je 0x407fa4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x407fa8
add ecx, 2
add eax, 2
test dl, dl
jne 0x407f88
xor eax, eax
jmp 0x407fad
sbb eax, eax
or eax, 1
test eax, eax
je 0x408067
test byte [ebp - 0x3a0], 0x10
je 0x408067
push 0x258
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00453200
add esp, 0xc
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x407fe0
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407ff0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x260]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408010
mov ax, word [0x481cd0]
lea edx, [ebp - 0x374]
mov word [edi], ax
mov esi, edx
jmp 0x408030
mov al, byte [edx]
inc edx
test al, al
jne 0x408030
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408040
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
call fcn.00407c80
mov esi, dword [ebp - 0x3a4]
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407f40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x408090
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a4
mov eax, dword [0x4a3300]
xor eax, esp
mov dword [esp + 0x3a0], eax
push ebx
push esi
push edi
push 0x13c
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
mov esi, ecx
push 0
push eax
mov dword [esp + 0x18], esi
call fcn.00453200
add esp, 0xc
mov byte [esp + 0x150], 0
lea eax, [esp + 0x151]
push 0x257
push 0
push eax
call fcn.00453200
add esp, 0xc
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x4080f0
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408101
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x408120
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x481da8]
mov byte [ecx + 4], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4082ab
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00407c80
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4082ab
jmp 0x408180
mov ecx, 0x481d50
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4081b0
test dl, dl
je 0x4081ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4081b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x408190
xor eax, eax
jmp 0x4081b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x408297
mov eax, 0x481dac
lea ecx, [esp + 0x3c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4081e6
test dl, dl
je 0x4081e2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4081e6
add ecx, 2
add eax, 2
test dl, dl
jne 0x4081c6
xor eax, eax
jmp 0x4081eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x408297
test byte [esp + 0x10], 0x10
je 0x408297
push 0x258
lea eax, [esp + 0x154]
push 0
push eax
call fcn.00453200
add esp, 0xc
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x408217
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408228
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x150]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408246
mov ax, word [0x481cd0]
lea edx, [esp + 0x3c]
mov word [edi], ax
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x408260
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408271
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x150]
call fcn.00407e50
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408180
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x408690
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4857a0
push 0x45aae0
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x4a3300]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
call fcn.00406470
mov byte [ebp - 0x278], 0
push 0x257
push 0
cmp eax, 1
lea eax, [ebp - 0x277]
push eax
jne 0x408741
call fcn.00453200
add esp, 0xc
push 0x4a78b0
push 0x258
lea eax, [ebp - 0x278]
push eax
push 0
push str.Start
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40872c
push 0x481de8
call fcn.00401630
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x278]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408735
jmp 0x40891b
call fcn.00453200
add esp, 0xc
push 0x4a78b0
push 0x258
lea eax, [ebp - 0x278]
push eax
push 0
push str.Game
push str.PATH
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call esi
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408784
test al, 0x10
jne 0x4087cd
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 4], 0
call fcn.004082c0
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4087c5
test eax, eax
je 0x408717
push 0x4a78b0
push 0x258
lea eax, [ebp - 0x278]
push eax
push 0
push str.Game
push str.PATH
call esi
test eax, eax
jne 0x40890b
push 4
push 0x481684
push 0x481e24
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4088e4
mov byte [ebp - 0x4d0], 0
push 0x257
push 0
lea eax, [ebp - 0x4cf]
push eax
call fcn.00453200
add esp, 0xc
mov dword [ebp - 0x4f0], 0
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x4ec], xmm0
movq qword [ebp - 0x4dc], xmm0
mov dword [ebp - 0x4d4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], 0
lea eax, [ebp - 0x4d0]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 0x4e4], 0x481db0
mov dword [ebp - 0x4e0], 0x43
mov dword [ebp - 0x4dc], 0
mov dword [ebp - 0x4d4], 0
lea eax, [ebp - 0x4f0]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
je 0x4088e4
lea ecx, [ebp - 0x4d0]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
jne 0x4088e4
push 0x4a78b0
lea eax, [ebp - 0x4d0]
push eax
push str.Game
push str.PATH
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x4a78b0
push 0x258
lea eax, [ebp - 0x278]
push eax
push 0
push str.Game
push str.PATH
call esi
test eax, eax
je 0x408717
lea ecx, [ebp - 0x278]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408914
sub ecx, edx
je 0x40892a
lea ecx, [ebp - 0x278]
call fcn.00406a40
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x409a80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4a3300]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.00409e10
mov esi, edx
mov ebx, eax
mov dword [esp + 0xc], esi
call fcn.00409e10
sub eax, ebx
sbb edx, esi
test edx, edx
jg 0x409aef
jl 0x409abc
cmp eax, 0x7530
ja 0x409aef
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x48236c
call esi
mov ecx, edi
call fcn.0040e2b0
cmp eax, 1
je 0x409b03
call fcn.00409e10
sub eax, ebx
sbb edx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
js 0x409ac2
jg 0x409aef
cmp eax, 0x7530
jbe 0x409ac2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push 0x63
lea eax, [esp + 0x1d]
mov byte [esp + 0x1c], 0
push 0
push eax
call fcn.00453200
add esp, 0xc
call fcn.00409e10
sub eax, ebx
sbb edx, dword [esp + 0xc]
push edx
push eax
lea eax, [esp + 0x20]
push 0x48238c
push eax
call fcn.004582cf
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x84]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004524fc
mov esp, ebp
pop ebp
ret

Function at 0x40a100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40a134
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
Function at 0x40a9f0
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov ebx, edx
xor esi, esi
mov eax, 0x1505
push edi
mov edi, ecx
test ebx, ebx
je 0x40aa1a
mov dl, byte [esi + edi]
test dl, dl
je 0x40aa1a
mov ecx, eax
inc esi
shl eax, 5
add eax, ecx
movzx ecx, dl
add eax, ecx
cmp esi, ebx
jb 0x40aa02
pop edi
pop esi
pop ebx
ret

Function at 0x40af60
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], eax
push edi
mov edi, edx
test eax, eax
je 0x40afd8
test edi, edi
je 0x40afd8
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, 0x1505
test ebx, ebx
je 0x40afa1
mov cl, byte [edx + edi]
test cl, cl
je 0x40af9e
mov eax, esi
inc edx
shl esi, 5
add esi, eax
movzx eax, cl
add esi, eax
cmp edx, ebx
jb 0x40af86
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push esi
push ebx
mov edx, edi
mov ecx, eax
call fcn.0040adb0
add esp, 0xc
mov ecx, eax
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x40afd8
mov edx, dword [ebp - 8]
pop edi
mov eax, dword [edx + 4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + ecx*4]
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40cbc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x257
lea eax, [ebp - 0x327]
mov dword [ebp - 0x330], ecx
push 0
push eax
mov byte [ebp - 0x328], 0
call fcn.00453200
add esp, 0xc
lea eax, [ebp - 0x328]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 4
push 0
push 5
push SysReAllocString
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40cd31
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x32c]
mov dword [ebp - 0x334], eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cd2a
test esi, esi
je 0x40cd2a
push 0
push 0
push 0
push 5
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x40ccb0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00453200
mov edx, dword [ebp - 0x334]
lea eax, [ebp - 0xd0]
push eax
mov ecx, ebx
call fcn.004110f0
mov ebx, dword [ebp - 0x330]
push 0x64
push 0
push ebx
call fcn.00453200
lea eax, [ebp - 0xd0]
push eax
push 0x481680
push ebx
call fcn.004582cf
add esp, 0x28
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test edi, edi
je 0x40cd14
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004524fc
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret