joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
and ecx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, esi
je 0x10003fbe
mov ecx, dword [edi]
mov edx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x10003fc0
nop word [eax + eax]
cmp eax, edx
je 0x10003fbe
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x10003fa0
mov ecx, dword [ebp + 8]
test eax, eax
pop edi
cmove eax, esi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp + 8]
test eax, eax
pop edi
cmove eax, esi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebp
ret 8
Function at 0x10010f70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10010fa1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10010f90
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10012100
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d490
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10073498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.10012090
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10012193
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0xfffffff
je 0x100122f0
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.1002664b
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004f8b0]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1004f8b0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x1001228f
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.10031c20
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10026850
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x1001226e
cmp ebx, 0x200
jae 0x1001226c
shl ebx, 3
cmp ebx, ecx
jae 0x1001226e
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.10012720
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10012090
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x10012292
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x100122c0
mov dword [ecx + eax*8], esi
jmp 0x100122cf
cmp edi, edx
jne 0x100122c9
mov dword [ecx + eax*8], esi
jmp 0x100122d3
cmp dword [ecx + eax*8 + 4], ebx
jne 0x100122d3
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x1004f92c
call fcn.10027d57
int3
Function at 0x10012cb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d4ef
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10073498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x10012cf8
mov eax, 0x8876086c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
lea edx, [ebp + 0x14]
mov dword [esi], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [edi + 0xc]
push dword [ebp + 0xc]
mov dword [ebp + 0x14], 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
js 0x10012dcf
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 8], ebx
mov edi, dword [eax + 4]
test ebx, ebx
je 0x10012dc9
movzx eax, bl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, ebx
sar eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
sar eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
sar eax, 0x18
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10012090
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10012d90
mov ecx, dword [edi + 8]
cmp ecx, dword [edi + 8]
je 0x10012da3
mov ecx, dword [ecx + 0xc]
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
jmp 0x10012dcb
push 0x10
call fcn.1002664b
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10012dc9
push ebx
push dword [edi]
mov ecx, eax
call fcn.10012980
mov ecx, eax
jmp 0x10012dcb
xor ecx, ecx
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10013330
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d4ef
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10073498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x10013378
mov eax, 0x8876086c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea edx, [ebp + 0x10]
mov dword [esi], 0
push edx
push dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov dword [ebp + 0x10], 0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x48]
test eax, eax
js 0x10013455
mov eax, dword [edi + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
mov edi, dword [eax + 4]
test ebx, ebx
je 0x1001344f
movzx eax, bl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, ebx
sar eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
sar eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
sar eax, 0x18
movzx eax, al
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x84]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10012090
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x10013413
mov ecx, dword [edi + 0x88]
cmp ecx, dword [edi + 0x88]
je 0x10013429
mov ecx, dword [ecx + 0xc]
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
jmp 0x10013451
push 0x10
call fcn.1002664b
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1001344f
push ebx
push dword [edi]
mov ecx, eax
call fcn.10013a70
mov ecx, eax
jmp 0x10013451
xor ecx, ecx
mov dword [esi], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10016030
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov eax, dword [edi]
mov ebx, dword [eax]
test ebx, ebx
je 0x1001607d
mov eax, dword [edi + 8]
mov edx, dword [eax]
mov eax, dword [edi + 4]
add edx, 0x10
mov eax, dword [eax]
mov edi, eax
nop dword [eax + eax]
mov eax, dword [edx]
add eax, edi
cmp eax, esi
jbe 0x10016072
test ecx, ecx
je 0x10016070
cmp eax, ecx
ja 0x10016072
mov ecx, eax
add edx, 0x14
sub ebx, 1
jne 0x10016060
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
lea ebx, [esi + 0x100]
test ecx, ecx
cmovne ebx, ecx
cmp ebx, eax
jbe 0x10016096
mov esi, dword [edi + 4]
mov ebx, eax
mov esi, dword [esi]
cmp esi, ebx
jae 0x10016255
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
test eax, eax
je 0x1001624a
cmp eax, dword [0x10075274]
jne 0x100160d2
mov dword [0x10075270], esi
mov dword [esi], 0x100169d0
jmp 0x10016235
cmp eax, dword [0x1007527c]
jne 0x100160eb
mov dword [0x10075278], esi
mov dword [esi], 0x100169f0
jmp 0x10016235
cmp eax, dword [0x10075284]
jne 0x10016104
mov dword [0x10075280], esi
mov dword [esi], 0x10016950
jmp 0x10016235
cmp eax, dword [0x1007528c]
jne 0x1001611d
mov dword [0x10075288], esi
mov dword [esi], 0x10016970
jmp 0x10016235
cmp eax, dword [0x10075294]
jne 0x10016136
mov dword [0x10075290], esi
mov dword [esi], 0x10016990
jmp 0x10016235
cmp eax, dword [0x1007529c]
jne 0x1001614f
mov dword [0x10075298], esi
mov dword [esi], 0x100169b0
jmp 0x10016235
cmp eax, dword [0x100752a4]
jne 0x10016168
mov dword [0x100752a0], esi
mov dword [esi], 0x100168e0
jmp 0x10016235
cmp eax, dword [0x100752ac]
jne 0x10016181
mov dword [0x100752a8], esi
mov dword [esi], 0x10016900
jmp 0x10016235
cmp eax, dword [0x100752b4]
jne 0x1001619a
mov dword [0x100752b0], esi
mov dword [esi], 0x10016a50
jmp 0x10016235
cmp eax, dword [0x100752bc]
jne 0x100161b3
mov dword [0x100752b8], esi
mov dword [esi], 0x10016a60
jmp 0x10016235
cmp eax, dword [0x100752c4]
jne 0x100161c9
mov dword [0x100752c0], esi
mov dword [esi], 0x10016920
jmp 0x10016235
cmp eax, dword [0x100752cc]
jne 0x100161df
mov dword [0x100752c8], esi
mov dword [esi], 0x100168a0
jmp 0x10016235
cmp eax, dword [0x100752d4]
jne 0x100161f5
mov dword [0x100752d0], esi
mov dword [esi], 0x100168c0
jmp 0x10016235
cmp eax, dword [0x100752dc]
jne 0x1001620b
mov dword [0x100752d8], esi
mov dword [esi], 0x10016a10
jmp 0x10016235
cmp eax, dword [0x100752e4]
jne 0x10016221
mov dword [0x100752e0], esi
mov dword [esi], 0x10016a30
jmp 0x10016235
cmp eax, dword [0x100752ec]
jne 0x1001623a
mov dword [0x100752e8], esi
mov dword [esi], 0x10016a70
mov eax, dword [edi + 0xc]
inc dword [eax]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 4
cmp esi, ebx
jb 0x100160a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10017270
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x100172ac
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10017292
mov eax, dword [esi]
push eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esi, 0x18
mov ecx, eax
cmp esi, edi
jne 0x10017288
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret
Function at 0x1001ade0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004fd9c
push esi
mov dword [ebx], esi
call edi
push 0x1004fdac
push esi
mov dword [0x10074470], eax
call edi
push 0x1004fdc0
push esi
mov dword [0x10074474], eax
call edi
push 0x1004fdd4
push esi
mov dword [0x10074478], eax
call edi
push 0x1004fde8
push esi
mov dword [0x1007447c], eax
call edi
push 0x10052464
mov dword [0x10074480], eax
push dword [ebx]
call edi
push 0x10052478
push dword [ebx]
mov dword [ebx + 4], eax
call edi
push 0x10052494
push dword [ebx]
mov dword [ebx + 8], eax
call edi
push 0x100524ac
push dword [ebx]
mov dword [ebx + 0xc], eax
call edi
push 0x100524c4
push dword [ebx]
mov dword [ebx + 0x10], eax
call edi
push 0x100524d4
push dword [ebx]
mov dword [ebx + 0x14], eax
call edi
push 0x100524e8
push dword [ebx]
mov dword [ebx + 0x18], eax
call edi
push 0x100524f4
push dword [ebx]
mov dword [ebx + 0x1c], eax
call edi
push 0x10052508
push dword [ebx]
mov dword [ebx + 0x20], eax
call edi
push 0x10052520
push dword [ebx]
mov dword [ebx + 0x24], eax
call edi
push 0x10052534
push dword [ebx]
mov dword [ebx + 0x28], eax
call edi
push 0x1005254c
push dword [ebx]
mov dword [ebx + 0x2c], eax
call edi
push 0x10052564
push dword [ebx]
mov dword [ebx + 0x30], eax
call edi
push 0x1005257c
push dword [ebx]
mov dword [ebx + 0x34], eax
call edi
push 0x10052594
push dword [ebx]
mov dword [ebx + 0x38], eax
call edi
push 0x100525a8
push dword [ebx]
mov dword [ebx + 0x3c], eax
call edi
push 0x100525b8
push dword [ebx]
mov dword [ebx + 0x40], eax
call edi
push 0x100525cc
push dword [ebx]
mov dword [ebx + 0x44], eax
call edi
push 0x100525e0
push dword [ebx]
mov dword [ebx + 0x48], eax
call edi
push 0x100525f4
push dword [ebx]
mov dword [ebx + 0x4c], eax
call edi
pop edi
pop esi
mov dword [ebx + 0x50], eax
pop ebx
pop ebp
ret 4
Function at 0x1001d4e0
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea eax, [ebp - 0x18]
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], str..bind
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 5
call fcn.100156b0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx + 0x3c]
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
movzx edi, word [eax + 0x14]
lea esi, [ecx + 1]
add edi, 0x18
add edi, eax
cmp dx, word [eax + 6]
jae 0x1001d617
mov al, byte [ebp - 1]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x1001d58b
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001d556
sub eax, edx
push eax
push edi
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.10015400
add esp, 0x10
test eax, eax
jns 0x1001d57b
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0xc]
jmp 0x1001d582
mov eax, esi
mov esi, dword [esi]
mov dword [ebp - 0xc], eax
cmp byte [esi + 0xd], 0
je 0x1001d551
mov ecx, dword [ebp - 8]
cmp byte [eax + 0xd], 0
jne 0x1001d5fc
mov edx, dword [eax + 0x10]
mov ecx, edi
mov esi, dword [eax + 0x14]
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d5a0
sub ecx, dword [ebp - 0x14]
push esi
push edx
push ecx
push edi
call fcn.10015400
add esp, 0x10
test eax, eax
js 0x1001d5f9
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xc], eax
je 0x1001d5f9
mov ecx, dword [edi + 0xc]
mov esi, 1
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
cmp edx, ecx
jb 0x1001d5f4
mov eax, dword [edi + 8]
add eax, 0xfff
and eax, 0xfffff000
add eax, ecx
mov ecx, dword [ebp - 0x10]
cmp edx, eax
movzx ecx, cl
cmovbe ecx, esi
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 8]
jmp 0x1001d601
mov ecx, dword [ebp - 8]
mov esi, 1
mov eax, dword [ebp - 0x1c]
inc ecx
add edi, 0x28
mov dword [ebp - 8], ecx
movzx eax, word [eax + 6]
cmp ecx, eax
jl 0x1001d542
lea ecx, [ebp - 0x28]
call fcn.10015d20
cmp byte [ebp - 1], 0
jne 0x1001d685
mov ecx, 0x10075310
xor eax, eax
lock cmpxchg dword [ecx], esi
test eax, eax
jne 0x1001d685
call fcn.10017820
xor esi, esi
nop dword [eax + eax]
mov edi, dword [esi + 0x10075270]
test edi, edi
je 0x1001d67a
cmp dword [esi + 0x10075274], 0
je 0x1001d67a
lea eax, [ebp - 0x28]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10075274]
mov dword [edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esi, 8
cmp esi, 0x80
jb 0x1001d640
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001d690
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004d9f9
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10073498]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x14], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1001d718
mov edx, dword [ebp - 0x10]
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001d700
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10021140
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10022820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10073498]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10073458], 0
je 0x1002294c
push 0x10075338
mov byte [0x10073458], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x104]
push eax
push 0
call fcn.10022960
lea eax, [ebp - 0x104]
add esp, 8
dec eax
nop word [eax + eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x10022870
mov ecx, dword [str.Achievements]
mov dword [eax], ecx
mov ecx, dword [0x10054e00]
mov dword [eax + 4], ecx
mov ecx, dword [0x10054e04]
mov dword [eax + 8], ecx
mov cx, word [0x10054e08]
push esi
mov word [eax + 0xc], cx
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x104]
push eax
push str._sAchievements.txt
push eax
call fcn.100265e0
lea eax, [ebp - 0x104]
push 0x1004ebc4
push eax
call fcn.100321e8
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x100228ef
call fcn.10022df0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026812
mov esp, ebp
pop ebp
ret
push esi
call fcn.100322fa
add esp, 4
test eax, eax
jne 0x10022942
nop dword [eax]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0xffffffff
push eax
push 0x10054e20
push esi
call fcn.100265b0
mov eax, dword [ebp - 0x108]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10022942
push esi
mov dword [eax*4 + 0x10075570], 1
call fcn.100322fa
add esp, 4
test eax, eax
je 0x10022900
push esi
call fcn.10032276
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10026812
mov esp, ebp
pop ebp
ret
Function at 0x10022960
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, str.Profiles
push esi
mov edx, ebx
push edi
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x10022972
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x10022982
mov ax, word [0x10054df8]
push 0
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 8]
shl edx, 4
add edx, str.Player1
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100229b0
sub edx, esi
lea edi, [ebx - 1]
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100229c0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100229f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10073498]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x200
push str.Profiles
push eax
call fcn.100391e3
lea eax, [ebp - 0x404]
mov edx, ebx
mov ecx, eax
add esp, 0xc
sub edx, ecx
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x10022a31
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10022a44
mov eax, dword [0x10054df4]
push 0
push ebx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
shl esi, 4
lea eax, [ebp - 0x404]
push 0x100
add esi, str.Player1
push esi
push eax
call fcn.100391e3
lea edx, [ebp - 0x404]
add esp, 0xc
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10022a86
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10022a96
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10026812
mov esp, ebp
pop ebp
ret

Function at 0x10022d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call fcn.100322fa
add esp, 4
test eax, eax
jne 0x10022de0
push ebx
mov ebx, dword [ebp + 0xc]
nop dword [eax]
push edi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.1003250c
mov ax, word [ebp - 4]
add esp, 0x10
mov byte [esi + ebx], al
cmp al, 0xd
jne 0x10022dc2
mov byte [esi + ebx], 0
jmp 0x10022dc6
cmp al, 0xa
je 0x10022ddb
push edi
inc esi
call fcn.100322fa
add esp, 4
test eax, eax
je 0x10022da0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + ebx], 0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10022df0
Capabilities:
Create directory

Disassembly:
push 0x100b5970
push 0
call fcn.10022960
mov ecx, 0x100b5970
add esp, 8
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10022e05
mov eax, dword [str.Achievements]
mov dword [ecx], eax
mov eax, dword [0x10054e00]
mov dword [ecx + 4], eax
mov eax, dword [0x10054e04]
push edi
mov dword [ecx + 8], eax
mov ax, word [0x10054e08]
push 0
push 0x100b5970
mov word [ecx + 0xc], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x100b5970
push str._sAchievements.txt
push 0x100b5970
call fcn.100265e0
push 0x1004f884
push 0x100b5970
call fcn.100321e8
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10022e9c
push esi
xor esi, esi
nop dword [eax]
cmp dword [esi*4 + 0x10075570], 0
je 0x10022e89
push esi
push 0x10054e20
push edi
call fcn.10026580
add esp, 0xc
inc esi
cmp esi, 0x10000
jl 0x10022e70
push edi
call fcn.10032276
add esp, 4
pop esi
pop edi
ret