joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001adea
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1001af83
mov edx, 0x10000000
cmp eax, 0x7c
je 0x1001af83
cmp eax, 0x29
jne 0x1001ae23
cmp dword [esi + 0x10], 0
jne 0x1001af83
test dword [esi + 0x50], edx
je 0x1001af89
cmp eax, 0x2e
jne 0x1001ae3e
push 5
lea ecx, [esi + 0x24]
call fcn.1001b063
mov ecx, esi
call fcn.1001adc1
jmp 0x1001af6d
cmp eax, 0x5c
jne 0x1001ae93
mov ecx, esi
call fcn.1001adc1
test byte [esi + 0x50], 0x80
je 0x1001ae87
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x1001ae6f
push 4
lea ecx, [esi + 0x24]
call fcn.1001b063
mov ecx, esi
call fcn.1001adc1
jmp 0x1001af74
cmp eax, 0x42
jne 0x1001ae87
push 4
lea ecx, [esi + 0x24]
call fcn.1001b063
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1001ae63
mov ecx, esi
call fcn.1001b099
jmp 0x1001af6d
cmp eax, 0x5b
jne 0x1001aef6
mov ecx, esi
call fcn.1001adc1
lea ecx, [esi + 0x24]
call fcn.1001b7bd
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x1001aec0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.1001adc1
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x1001aede
cmp eax, 0x5d
jne 0x1001aede
push eax
lea ecx, [esi + 0x24]
call fcn.1001b807
mov ecx, esi
call fcn.1001adc1
mov ecx, esi
call fcn.1001b520
cmp dword [esi + 0x4c], 0x5d
je 0x1001ae32
push 4
jmp 0x1001af8b
cmp eax, 0x28
jne 0x1001af13
mov ecx, esi
call fcn.1001adc1
mov ecx, esi
call fcn.1001b17a
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1001af89
jmp 0x1001af62
cmp eax, 0x5e
jne 0x1001af1f
push 2
jmp 0x1001ae5b
cmp eax, 0x24
jne 0x1001af2b
push 3
jmp 0x1001ae5b
cmp eax, 0x2a
je 0x1001af7f
cmp eax, 0x2b
je 0x1001af7f
cmp eax, 0x3f
je 0x1001af7f
cmp eax, 0x7b
je 0x1001af7f
cmp eax, 0x7d
jne 0x1001af49
test dword [esi + 0x50], edx
je 0x1001af7b
cmp eax, 0x5d
jne 0x1001af53
test dword [esi + 0x50], edx
je 0x1001aeef
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.1001b343
mov bl, 1
mov ecx, esi
call fcn.1001adc1
test bl, bl
je 0x1001af74
mov ecx, esi
call fcn.1001b269
mov cl, 1
jmp 0x1001adf1
push 6
jmp 0x1001af8b
push 0xa
jmp 0x1001af8b
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.1001aad9
int3
Function at 0x10021850
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x101c5dd8
call fcn.10186d31
and dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [ecx + 0x48]
mov edi, dword [ecx + 0x44]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
cmp edi, ebx
je 0x100219cc
mov edx, eax
mov ecx, edi
call fcn.10012921
test al, al
mov ecx, edi
mov eax, dword [ebp - 0x30]
cmove ecx, esi
add edi, 0x1e0
mov esi, ecx
cmp edi, ebx
jne 0x1002187f
test esi, esi
je 0x100219cc
xor ebx, ebx
cmp dword [esi + 0x100], ebx
jne 0x1002199d
lea eax, [esi + 0x24]
mov edx, str.cmd.exe__c
push eax
lea ecx, [ebp - 0x2c]
call fcn.100170b9
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.10188460
xor eax, eax
mov dword [ebp - 0x94], esi
lea edi, [ebp - 0x50]
add esp, 8
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2e]
push ecx
stosd dword es:[edi], eax
lea ecx, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x2e], ax
mov eax, dword [ebp - 0x1c]
inc eax
push eax
call fcn.1001f4f3
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
lea ecx, [ecx + eax*2]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
sub ecx, eax
push ecx
push eax
push dword [ebp - 0x40]
call fcn.10187ee0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x34]
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10021977
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.1001caec
lea ecx, [ebp - 0x2c]
call fcn.10004e60
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovle eax, esi
jmp 0x100219d1
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.1001caec
lea ecx, [ebp - 0x2c]
call fcn.10004e60
xor eax, eax
jmp 0x100219d1
lea ecx, [esi + 0x108]
cmp dword [ecx + 0x14], 8
jb 0x100219ab
mov ecx, dword [ecx]
call fcn.100266d0
jmp 0x100219d1
mov eax, 0x80070057
call fcn.10186c7e
ret 8
Function at 0x100220b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x50
mov eax, 0x101c6010
call fcn.10186cc3
mov esi, ecx
mov dword [ebp - 0x54], esi
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x41], al
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], ebx
call fcn.10130a00
test eax, eax
je 0x100220e8
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x58], 0x10132500
mov dword [esi], 0x10130bf0
mov dword [esi + 4], eax
and dword [ebp - 4], 0
cmp dword [ebx + 0x10], 0
je 0x10022278
test eax, eax
jne 0x1002211a
push str.luaL_newstate_failed.
lea ecx, [ebp - 0x50]
call fcn.10001480
push 0x10229d38
jmp 0x1002228a
mov ecx, eax
call fcn.10132570
movzx eax, byte [ebp - 0x41]
mov edi, dword [0x102348cc]
add eax, 0x65
push 0x101f3c38
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10022148
push str.Cannot_find_script_in_resources_
jmp 0x10022108
push str.Cannot_load_script_from_resources_
lea ecx, [ebp - 0x40]
call fcn.100041c0
push ebx
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10022173
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.10001430
jmp 0x10022110
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10022165
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10022165
push ecx
lea eax, [ebp - 0x41]
mov byte [ebp - 0x41], 0
push eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x50]
call fcn.10022da7
push edi
push dword [ebp - 0x54]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x50]
push edi
call fcn.10187ee0
add esp, 0xc
lea ecx, [ebp - 0x28]
push dword [ebp - 0x58]
call fcn.10003f20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 8
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, ebx
push 0x5c
pop edi
cmp word [ecx + eax*2 - 2], di
mov edi, dword [ebp - 0x50]
je 0x100221f8
push 0x5c
pop eax
push eax
lea ecx, [ebp - 0x28]
call fcn.10004ee0
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x28]
cmp edx, 8
lea eax, [ebp - 0x28]
mov ecx, 0x1022df98
cmovae eax, ebx
push eax
call fcn.10003d30
mov ecx, dword [esi + 4]
mov edx, 0x10022020
push 0
call fcn.1012fda0
pop ecx
mov ecx, dword [esi + 4]
xor edx, edx
inc edx
call fcn.1012f900
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002222c
sub ecx, edx
mov edx, edi
push edi
push ecx
mov ecx, dword [esi + 4]
call fcn.10132420
mov ecx, dword [esi + 4]
xor edx, edx
push 1
push 0xffffffffffffffff
call fcn.101302f0
add esp, 0x10
test eax, eax
jne 0x10022293
lea ecx, [ebp - 0x28]
call fcn.10004e60
lea ecx, [ebp - 0x50]
call fcn.10004e00
lea ecx, [ebp - 0x40]
call fcn.10004080
mov eax, esi
call fcn.10186c6d
ret 8
push str.Installation_path_must_not_be_empty
lea ecx, [ebp - 0x50]
call fcn.1001cc52
push 0x10229dbc
lea eax, [ebp - 0x50]
push eax
call fcn.101878e5
mov ecx, esi
call fcn.10022b90
int3
Function at 0x10028881
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x101c703e
call fcn.10186cc3
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x294], esi
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], eax
mov dword [ebp - 0x298], eax
push str.appmanifest_.acf
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.10003eb0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.10003010
pop ecx
cmp dword [eax + 0x14], 8
jb 0x100288e2
mov eax, dword [eax]
lea ecx, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x294], eax
call fcn.10004e60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.10004e60
cmp dword [ebp - 0x294], 0xffffffff
jne 0x10028973
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10028960
cmp eax, 3
je 0x10028960
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.10029587
push eax
mov edx, str.Failed_to_find_manifest_files:
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.100279bb
push 0
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.10027227
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.10004e60
lea ecx, [ebp - 0x28]
call fcn.10004e60
lea eax, [ebp - 0x2a0]
mov ecx, esi
push eax
call fcn.10012569
jmp 0x10028a09
lea eax, [ebp - 0x294]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x40]
call fcn.10003eb0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.10003010
pop ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.10004e60
lea ecx, [ebp - 0x28]
call fcn.10002b60
test al, al
je 0x100289cc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.1000be50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10004e60
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10028983
lea eax, [ebp - 0x2a0]
mov ecx, esi
push eax
call fcn.10012569
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2a0]
call fcn.10012722
mov eax, esi
call fcn.10186c6d
ret
Function at 0x10029e07
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x101c739e
call fcn.10186cc3
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x294], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x298], ecx
mov dword [ebp - 4], ecx
mov edx, 0x101f51bc
push eax
lea ecx, [ebp - 0x40]
call fcn.100170b9
push eax
mov edx, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10003010
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
jb 0x10029e6a
mov eax, dword [eax]
lea ecx, [ebp - 0x290]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x294], eax
call fcn.10004e60
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.10004e60
cmp dword [ebp - 0x294], 0xffffffff
jne 0x10029efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10029ee8
cmp eax, 3
je 0x10029ee8
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.10029587
push eax
mov edx, str.Failed_to_find_manifest_files:
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.100279bb
push 0
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, ebx
call fcn.10027227
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.10004e60
lea ecx, [ebp - 0x28]
call fcn.10004e60
lea eax, [ebp - 0x2a0]
mov ecx, esi
push eax
call fcn.10012569
jmp 0x10029f8b
lea eax, [ebp - 0x294]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 4], 4
test byte [ebp - 0x290], 0x10
jne 0x10029f5a
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003eb0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.10003010
pop ecx
push eax
lea ecx, [ebp - 0x2a0]
mov byte [ebp - 4], 6
call fcn.1000e6b0
lea ecx, [ebp - 0x40]
call fcn.10004e60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10004e60
lea eax, [ebp - 0x290]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10029f0b
lea eax, [ebp - 0x2a0]
mov ecx, esi
push eax
call fcn.10012569
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2a0]
call fcn.10012722
mov eax, esi
call fcn.10186c6d
ret
Function at 0x1002a0ab
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x2b0
mov eax, 0x101c7476
call fcn.10186cc3
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2ac], esi
xor ebx, ebx
mov dword [ebp - 0x2ac], esi
mov dword [ebp - 0x2b8], ebx
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x2b0], ebx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.10029fa0
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1002707a
test al, al
jne 0x1002a1ad
lea ecx, [ebp - 0x40]
call fcn.10002b80
test al, al
je 0x1002a1ad
push 0x101f51bc
lea ecx, [ebp - 0x28]
call fcn.10003eb0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.10003010
pop ecx
cmp dword [eax + 0x14], 8
jb 0x1002a135
mov eax, dword [eax]
lea ecx, [ebp - 0x2a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2ac], eax
call fcn.10004e60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.10004e60
cmp dword [ebp - 0x2ac], 0xffffffff
jne 0x1002a1d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002a1ad
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.10029587
push eax
mov edx, str.Failed_to_find_manifest_files:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.100279bb
push ebx
mov edx, eax
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.10027227
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
call fcn.10004e60
lea ecx, [ebp - 0x28]
call fcn.10004e60
lea eax, [ebp - 0x2b8]
mov ecx, esi
push eax
call fcn.10012569
lea ecx, [ebp - 0x40]
call fcn.10004e60
lea ecx, [ebp - 0x2b8]
call fcn.10012722
mov eax, esi
call fcn.10186c6d
ret
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2bc], eax
push 4
mov byte [ebp - 4], 5
pop edi
mov ecx, 0x101f5228
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002a218
test dx, dx
je 0x1002a214
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002a218
add eax, edi
add ecx, edi
test dx, dx
jne 0x1002a1f4
mov eax, ebx
jmp 0x1002a21d
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002a2ad
mov ecx, 0x101f522c
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1002a254
test dx, dx
je 0x1002a250
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1002a254
add eax, edi
add ecx, edi
test dx, dx
jne 0x1002a230
mov eax, ebx
jmp 0x1002a259
sbb eax, eax
or eax, 1
test eax, eax
je 0x1002a2ad
test byte [ebp - 0x2a8], 0x10
je 0x1002a2ad
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003eb0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.10003010
pop ecx
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 7
call fcn.1000e6b0
lea ecx, [ebp - 0x58]
call fcn.10004e60
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.10004e60
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1002a1e9
lea eax, [ebp - 0x2b8]
mov ecx, esi
push eax
call fcn.10012569
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002a1bb
Function at 0x1002b8ab
Capabilities:
Query environment variable

Disassembly:
push 0x2cc
mov eax, 0x101c796e
call fcn.10186cc3
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x2d8], edi
cmp dword [esi + 0x10], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2d8], edi
mov dword [ebp - 0x2d4], ebx
jne 0x1002b8e5
mov edx, ebx
call fcn.1002b720
jmp 0x1002bb39
push str.configcfg_root.info
lea ecx, [ebp - 0x234]
call fcn.10003eb0
and dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.10003010
pop ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.10004e60
lea ecx, [ebp - 0x264]
call fcn.10002b60
test al, al
jne 0x1002b93a
mov edx, ebx
mov ecx, edi
call fcn.1002b720
jmp 0x1002bb2e
push ebx
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x234]
call fcn.1002ab67
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x224], 0
jne 0x1002b968
mov edx, ebx
mov ecx, edi
call fcn.1002b720
jmp 0x1002bb23
push str._files_game_library
lea ecx, [ebp - 0x27c]
call fcn.10003eb0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x2d0]
call fcn.1002ac78
pop ecx
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 6
call fcn.10004e60
mov eax, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2d0]
sub eax, ecx
push 0x30
cdq
pop esi
idiv esi
test eax, eax
jne 0x1002b9ca
mov edx, ebx
mov ecx, edi
call fcn.1002b720
jmp 0x1002bb18
lea eax, [ecx + 0x18]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10003f20
mov byte [ebp - 4], 7
cmp dword [ebp - 0x23c], 0
je 0x1002bb04
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x21c]
push 0x104
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1002bac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c4]
call fcn.10029587
mov esi, eax
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 8
push eax
mov edx, str.ExpandEnvironmentStrings_
lea ecx, [ebp - 0x2ac]
call fcn.100170b9
mov byte [ebp - 4], 9
mov ecx, eax
mov dword [esp], 0x101f58d8
call fcn.1000ac00
push eax
lea ecx, [ebp - 0x27c]
call fcn.10003da0
push esi
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x294]
call fcn.10027921
push 0
mov edx, eax
mov byte [ebp - 4], 0xb
mov ecx, ebx
call fcn.10027227
pop ecx
pop ecx
lea ecx, [ebp - 0x294]
call fcn.10004e60
lea ecx, [ebp - 0x27c]
call fcn.10004e60
lea ecx, [ebp - 0x2ac]
call fcn.10004e60
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 7
call fcn.10004e60
jmp 0x1002bb04
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.10003eb0
lea ecx, [ebp - 0x27c]
call fcn.10002b60
lea ecx, [ebp - 0x27c]
mov bl, al
call fcn.10004e60
test bl, bl
je 0x1002bafe
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.10003eb0
jmp 0x1002bb0d
mov ebx, dword [ebp - 0x2d4]
mov edx, ebx
mov ecx, edi
call fcn.1002b720
lea ecx, [ebp - 0x24c]
call fcn.10004e60
lea ecx, [ebp - 0x2d0]
call fcn.10016c1f
lea ecx, [ebp - 0x234]
call fcn.10004e60
lea ecx, [ebp - 0x264]
call fcn.10004e60
mov eax, edi
call fcn.10186c6d
ret
Function at 0x1002e7ab
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x101c2ab9
call fcn.10186c8f
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
push edi
mov dword [ebp - 4], edi
push 0x104
mov dword [ebp - 0x10], edi
call fcn.10003de0
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x10], 1
sete bl
inc ebx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1002e7ec
mov eax, dword [esi]
push dword [ebp + 0xc]
push dword [esi + 0x10]
push eax
push edi
push dword [ebp + 8]
push str.game
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esi + 0x10]
mov ecx, edx
sub ecx, ebx
cmp eax, ecx
mov ecx, esi
push edi
jne 0x1002e81b
lea eax, [edx + edx]
push eax
call fcn.10003c90
jmp 0x1002e7e2
push eax
call fcn.10003c90
mov eax, esi
call fcn.10186c58
ret
Function at 0x10039126
Capabilities:
Get file version info

Disassembly:
push 0x114
mov eax, 0x101ca06d
call fcn.10186cc3
mov dword [ebp - 0x114], edx
mov esi, ecx
xor ebx, ebx
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x104], ebx
jb 0x1003914f
mov eax, dword [esi]
lea ecx, [ebp - 0x104]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x1003916a
xor al, al
jmp 0x10039350
push ecx
push edi
lea ecx, [ebp - 0x120]
call fcn.10003b00
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x10039182
mov esi, dword [esi]
push dword [ebp - 0x120]
push edi
push dword [ebp - 0x104]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10039343
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], ebx
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], ebx
push eax
push 0x101e8618
push dword [ebp - 0x120]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10039343
cmp dword [ebp - 0x108], 0
je 0x10039343
mov esi, dword [ebp - 0x10c]
mov dword [ebp - 0x110], esi
cmp dword [esi], 0xfeef04bd
jne 0x10039343
movzx edx, word [esi + 0xc]
lea ecx, [ebp - 0x100]
call fcn.1003bac2
mov ebx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
movzx edx, word [esi + 0xe]
call fcn.1003bac2
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd0]
movzx edx, word [esi + 8]
call fcn.1003bac2
mov esi, eax
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 3
movzx edx, word [eax + 0xa]
call fcn.1003bac2
push 0x101f5228
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.1000ac00
push eax
lea ecx, [ebp - 0x58]
call fcn.10003da0
push esi
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa0]
call fcn.10027921
pop ecx
mov esi, 0x101f5228
mov byte [ebp - 4], 6
push esi
mov ecx, eax
call fcn.1000ac00
push eax
lea ecx, [ebp - 0x40]
call fcn.10003da0
push edi
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10027921
pop ecx
push esi
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.1000ac00
push eax
lea ecx, [ebp - 0x28]
call fcn.10003da0
push ebx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.10027921
pop ecx
lea ecx, [ebp - 0x28]
call fcn.10004e60
lea ecx, [ebp - 0x88]
call fcn.10004e60
lea ecx, [ebp - 0x40]
call fcn.10004e60
lea ecx, [ebp - 0xa0]
call fcn.10004e60
lea ecx, [ebp - 0x58]
call fcn.10004e60
lea ecx, [ebp - 0xb8]
call fcn.10004e60
lea ecx, [ebp - 0xd0]
call fcn.10004e60
lea ecx, [ebp - 0xe8]
call fcn.10004e60
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x13
call fcn.10004e60
mov edx, dword [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x70]
call fcn.1003a9db
pop ecx
lea ecx, [ebp - 0x70]
mov bl, al
call fcn.10004e60
lea ecx, [ebp - 0x120]
call fcn.10004e00
mov al, bl
call fcn.10186c6d
ret
Function at 0x1003eb35
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101e899c]
mov edx, dword [ecx]
bswap eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x101e89a0]
bswap eax
push ebx
mov ebx, dword [str.3.14159265358979]
mov dword [ebp - 8], eax
mov eax, dword [0x101e89a4]
push esi
mov esi, dword [ecx + 4]
bswap eax
push edi
bswap edx
bswap esi
bswap ebx
mov dword [ebp - 0x10], eax
mov edi, 0xe3779b90
mov dword [ebp - 4], 0x10
mov ecx, edx
shr ecx, 5
add ecx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edi + edx]
xor ecx, eax
sub esi, ecx
mov ecx, esi
mov eax, esi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, ebx
xor ecx, eax
lea eax, [edi + esi]
xor ecx, eax
lea edi, [edi + 0x61c88647]
mov eax, dword [ebp - 0x10]
sub edx, ecx
sub dword [ebp - 4], 1
jne 0x1003eb79
mov eax, dword [ebp + 8]
bswap esi
pop edi
bswap edx
mov dword [eax + 4], esi
pop esi
mov dword [eax], edx
pop ebx
leave
ret