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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4a2300]
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.00451650
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x4a6890
push 0x64
push eax
push 0
push str.isReleaseEnableSpecifyingReleaseDir
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40382d
lea eax, [ebp - 0x68]
push 0x48099c
push eax
call fcn.00456643
add esp, 8
test eax, eax
jne 0x40382d
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x403840
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4a2300]
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.00451650
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x4a6890
push 0x64
push eax
push 0
push str.isEnableSearchKeyword
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4038ad
lea eax, [ebp - 0x68]
push 0x48099c
push eax
call fcn.00456643
add esp, 8
test eax, eax
jne 0x4038ad
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x4038c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4a2300]
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.00451650
add esp, 0xc
lea eax, [ebp - 0x68]
push 0x4a6890
push 0x64
push eax
push 0
push str.IsReleaseCurrentDir
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403930
lea eax, [ebp - 0x68]
push 0x48099c
push eax
call fcn.00456643
add esp, 8
test eax, eax
jne 0x403930
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0x63
lea eax, [ebp - 0xcb]
mov byte [ebp - 0xcc], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0xcc]
push 0x4a6890
push 0x64
push eax
push 0
push str.isReleaseEnableSpecifyingReleaseDir
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x403986
lea eax, [ebp - 0xcc]
push 0x48099c
push eax
call fcn.00456643
add esp, 8
test eax, eax
je 0x40398f
call fcn.00403840
test eax, eax
je 0x40391d
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x403a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x6ae3b0]
mov dword [ebp - 0xd4], ecx
push edi
test esi, esi
je 0x403a8e
push 2
push 0x8b
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x403a8e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x403a8e
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x403aa1
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.0045094b
mov esp, ebp
pop ebp
ret
cmp eax, esi
jb 0x403a87
push esi
call fcn.00451e73
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403a87
xor ecx, ecx
test esi, esi
je 0x403acd
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 0x403ac0
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push eax
call fcn.00451650
lea eax, [ebp - 0xd0]
mov edx, esi
push eax
mov ecx, ebx
call fcn.0040ecd0
mov esi, dword [ebp - 0xd4]
push 0x64
push 0
push esi
call fcn.00451650
lea eax, [ebp - 0xd0]
push eax
push 0x48072c
push esi
call fcn.0045671f
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call fcn.0045302d
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x403ee0
Capabilities:
Copy file
Get common file path
Persist via lnk shortcut

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58c
mov eax, dword [0x4a2300]
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.00451650
add esp, 0xc
mov byte [ebp - 0x588], 0
lea eax, [ebp - 0x587]
push 0x257
push 0
push eax
call fcn.00451650
add esp, 0xc
mov byte [ebp - 0x70], 0
lea eax, [ebp - 0x6f]
push 0x63
push 0
push eax
call fcn.00451650
add esp, 0xc
mov byte [ebp - 0xd8], 0
lea eax, [ebp - 0xd7]
push 0x63
push 0
push eax
call fcn.00451650
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 0x403f80
mov ax, word [0x480958]
mov edx, 0x6ae4cc
mov word [edi], ax
mov esi, edx
lea ebx, [ebx]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403fa0
lea edi, [ebp - 0x588]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403fb0
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 0x403fd0
mov ecx, dword [str..lnk]
mov esi, ebx
mov dword [edx], ecx
mov cl, byte [0x4809e0]
mov byte [edx + 4], cl
lea ecx, [ecx]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x403ff0
lea edi, [ebp - 0x330]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404000
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 0x404020
mov edx, 0x6ae4cc
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x404034
lea edi, [ebp - 0x330]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404044
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 0x404061
mov eax, dword [str..lnk]
lea edx, [ebp - 0x70]
mov dword [ecx], eax
mov al, byte [0x4809e0]
mov byte [ecx + 4], al
lea ecx, [ebp - 0x588]
call fcn.00402460
cmp eax, 1
jne 0x4040ba
lea edx, [ebp - 0xd8]
lea ecx, [ebp - 0x330]
call fcn.00402460
cmp eax, 1
jne 0x4040ba
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00456643
add esp, 8
test eax, eax
je 0x4040d0
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.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x4044c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 8
mov ebx, edx
mov edi, ecx
call fcn.00451e73
mov esi, eax
add esp, 4
test esi, esi
je 0x40452c
lea eax, [ebp - 8]
mov dword [esi], edi
push eax
push 0
push esi
push 0x404230
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 0x404516
push eax
call ebx
cmp dword [ebp - 8], 0
jne 0x40452c
test edi, edi
je 0x404523
push edi
call ebx
push esi
call fcn.0045302d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x405120
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3aa4
call fcn.00456340
mov eax, dword [0x4a2300]
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.00451650
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 [0x4a6ae8]
test eax, eax
je 0x405195
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, 0x4a95c0
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x3a9c], 0
je 0x4052d9
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
mov dword [ebp - 0x3aa0], 0
lea ebx, [ebp - 0x3a9c]
cmp byte [ebx], 0
je 0x4052a3
push 0x258
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00451650
mov eax, dword [ebp - 0x3aa4]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405208
lea edi, [ebp - 0x25c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405218
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 0x405235
mov ax, word [0x480958]
mov edx, ebx
mov word [edi], ax
mov esi, edx
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x405250
lea edi, [ebp - 0x25c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405260
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 0x4052d9
mov eax, dword [ebp - 0x3aa0]
add ebx, 0x258
inc eax
mov dword [ebp - 0x3aa0], eax
cmp eax, 0x14
jb 0x4051e1
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 0x4052b0
mov ax, word [0x480958]
push 0x4a6890
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.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x4052f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x4a2300]
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.00451650
push 0x257
lea eax, [ebp - 0x25f]
mov byte [ebp - 0x260], 0
push 0
push eax
call fcn.00451650
add esp, 0x18
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x405350
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405360
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 0x405380
mov eax, dword [0x480a2c]
mov dword [ecx], eax
mov al, byte [0x480a30]
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 0x40551d
mov esi, dword [ebp - 0x3a4]
mov ecx, esi
call fcn.00405120
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40551d
jmp 0x4053e0
mov ecx, 0x4809d8
lea eax, [ebp - 0x374]
jmp 0x4053f0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405410
test dl, dl
je 0x40540c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405410
add eax, 2
add ecx, 2
test dl, dl
jne 0x4053f0
xor eax, eax
jmp 0x405415
sbb eax, eax
or eax, 1
test eax, eax
je 0x405507
mov eax, 0x480a34
lea ecx, [ebp - 0x374]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405448
test dl, dl
je 0x405444
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405448
add ecx, 2
add eax, 2
test dl, dl
jne 0x405428
xor eax, eax
jmp 0x40544d
sbb eax, eax
or eax, 1
test eax, eax
je 0x405507
test byte [ebp - 0x3a0], 0x10
je 0x405507
push 0x258
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.00451650
add esp, 0xc
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x405480
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405490
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 0x4054b0
mov ax, word [0x480958]
lea edx, [ebp - 0x374]
mov word [edi], ax
mov esi, edx
jmp 0x4054d0
mov al, byte [edx]
inc edx
test al, al
jne 0x4054d0
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4054e0
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.00405120
mov esi, dword [ebp - 0x3a4]
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x405530
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a4
mov eax, dword [0x4a2300]
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.00451650
add esp, 0xc
mov byte [esp + 0x150], 0
lea eax, [esp + 0x151]
push 0x257
push 0
push eax
call fcn.00451650
add esp, 0xc
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x405590
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4055a1
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 0x4055c0
mov eax, dword [0x480a2c]
mov dword [ecx], eax
mov al, byte [0x480a30]
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 0x40574b
mov esi, dword [esp + 0xc]
mov ecx, esi
call fcn.00405120
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40574b
jmp 0x405620
mov ecx, 0x4809d8
lea eax, [esp + 0x3c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405650
test dl, dl
je 0x40564c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405650
add eax, 2
add ecx, 2
test dl, dl
jne 0x405630
xor eax, eax
jmp 0x405655
sbb eax, eax
or eax, 1
test eax, eax
je 0x405737
mov eax, 0x480a34
lea ecx, [esp + 0x3c]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405686
test dl, dl
je 0x405682
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405686
add ecx, 2
add eax, 2
test dl, dl
jne 0x405666
xor eax, eax
jmp 0x40568b
sbb eax, eax
or eax, 1
test eax, eax
je 0x405737
test byte [esp + 0x10], 0x10
je 0x405737
push 0x258
lea eax, [esp + 0x154]
push 0
push eax
call fcn.00451650
add esp, 0xc
mov edx, esi
mov al, byte [edx]
inc edx
test al, al
jne 0x4056b7
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4056c8
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 0x4056e6
mov ax, word [0x480958]
lea edx, [esp + 0x3c]
mov word [edi], ax
mov esi, edx
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x405700
lea edi, [esp + 0x150]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405711
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.004052f0
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405620
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x405b30
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x484170
push 0x458ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x4a2300]
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.004038c0
mov byte [ebp - 0x278], 0
push 0x257
push 0
cmp eax, 1
lea eax, [ebp - 0x277]
push eax
jne 0x405be1
call fcn.00451650
add esp, 0xc
push 0x4a6890
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 0x405bcc
push 0x480a70
call fcn.00402630
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 0x405bd5
jmp 0x405dbb
call fcn.00451650
add esp, 0xc
push 0x4a6890
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 0x405c24
test al, 0x10
jne 0x405c6d
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 4], 0
call fcn.00405760
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x405c65
test eax, eax
je 0x405bb7
push 0x4a6890
push 0x258
lea eax, [ebp - 0x278]
push eax
push 0
push str.Game
push str.PATH
call esi
test eax, eax
jne 0x405dab
push 4
push 0x480730
push 0x480aac
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x405d84
mov byte [ebp - 0x4d0], 0
push 0x257
push 0
lea eax, [ebp - 0x4cf]
push eax
call fcn.00451650
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], 0x480a38
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 0x405d84
lea ecx, [ebp - 0x4d0]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
cmp eax, 1
jne 0x405d84
push 0x4a6890
lea eax, [ebp - 0x4d0]
push eax
push str.Game
push str.PATH
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x4a6890
push 0x258
lea eax, [ebp - 0x278]
push eax
push 0
push str.Game
push str.PATH
call esi
test eax, eax
je 0x405bb7
lea ecx, [ebp - 0x278]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405db4
sub ecx, edx
je 0x405dca
lea ecx, [ebp - 0x278]
call fcn.00403ee0
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.0045094b
mov esp, ebp
pop ebp
ret
Function at 0x406f50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4a2300]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040ee00
mov ebx, eax
mov esi, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
call fcn.0040ee00
sub eax, ebx
sbb edx, esi
test edx, edx
jg 0x406fe5
jl 0x406f96
cmp eax, 0x7530
ja 0x406fe5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x480fcc
call esi
push 0x480fcc
call fcn.0045738c
add esp, 4
mov ecx, edi
call fcn.0040af50
cmp eax, 1
je 0x406ffc
push 0x3e8
call ebx
call fcn.0040ee00
sub eax, dword [esp + 0x14]
sbb edx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
js 0x406fa2
jg 0x406fe5
cmp eax, 0x7530
jbe 0x406fa2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
push 0x63
lea eax, [esp + 0x25]
mov byte [esp + 0x24], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
call fcn.0040ee00
sub eax, dword [esp + 0x14]
sbb edx, dword [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x28]
push 0x480fec
push eax
call fcn.0045671f
add esp, 0x10
lea eax, [esp + 0x20]
push eax
call esi
lea eax, [esp + 0x20]
push eax
call fcn.0045738c
mov ecx, dword [esp + 0x90]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045094b
mov esp, ebp
pop ebp
ret

Function at 0x4074a0
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 0x4074ca
mov dl, byte [esi + edi]
test dl, dl
je 0x4074ca
mov ecx, eax
inc esi
shl eax, 5
add eax, ecx
movzx ecx, dl
add eax, ecx
cmp esi, ebx
jb 0x4074b2
pop edi
pop esi
pop ebx
ret

Function at 0x407a10
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 0x407a88
test edi, edi
je 0x407a88
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, 0x1505
test ebx, ebx
je 0x407a51
mov cl, byte [edx + edi]
test cl, cl
je 0x407a4e
mov eax, esi
inc edx
shl esi, 5
add esi, eax
movzx eax, cl
add esi, eax
cmp edx, ebx
jb 0x407a36
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.00407860
add esp, 0xc
mov ecx, eax
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x407a88
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