joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026b90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000ae30
push esi
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.10026a00
add esp, 0x18
test eax, eax
jne 0x10026bef
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push edi
lea ecx, [ebp - 0x20c]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret

Function at 0x10026cf0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000ae30
push 0
push 1
push 0x103
lea edx, [ebp - 0x20c]
push edx
add esi, 4
push esi
call fcn.1003b160
mov esi, eax
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10026d6e
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10026d6e
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret

Function at 0x10027eb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1000ae30
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10027fb9
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x10027f1e
cmp dword [ebp - 0x114], 4
jne 0x10027fb9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10027fb9
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x10027f7f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x10027f4f
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10027f67
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10027fb9
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x10027fb9
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x10027fa1
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x10027fb9
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x10028260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x10028295
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x10055ec0
call fcn.1001b4a0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push 3
push eax
mov ecx, 0x10055eb0
call fcn.1001b4a0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test esi, esi
je 0x100282d9
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi], edx
mov edx, dword [ebp - 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 4

Function at 0x100282f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov ecx, 0x10055ed0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 2
call fcn.1001b4a0
mov ecx, 0x10055eb0
mov esi, eax
call fcn.1001b4a0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ax, word [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10028340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x10055ed0
call fcn.1001b4a0
mov ecx, 0x10055eb0
mov esi, eax
call fcn.1001b4a0
push 2
lea ecx, [ebp + 8]
push ecx
push 3
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebp
ret 4
Function at 0x10028380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10042238]
mov edx, dword [0x10042240]
push ebx
mov ebx, ecx
mov ecx, dword [0x1004223c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10042244]
mov dword [ebp - 0x10], ecx
push edi
mov ecx, 0x10055ec0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x10
call fcn.1001b4a0
mov ecx, 0x10055eb0
mov edi, eax
call fcn.1001b4a0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10028427
test esi, esi
je 0x1002840f
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [esi], edx
mov edx, dword [ebp - 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x10028448
push esi
mov ecx, ebx
call fcn.10028260
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 8

Function at 0x100288c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000ae30
add esp, 0xc
push 0x104
push 0x100481e4
push 0
call fcn.10036281
add esp, 8
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call fcn.100288a0
add esp, 4
test eax, eax
jne 0x10028943
push str.TBHFnRst_CreateFromIni___FAILED_
call fcn.1001aca0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
push esi
push ecx
call fcn.10033f70
add esp, 4
lea edx, [ebp - 0x20c]
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x100298c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x100298f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
cmp dword [0x10056a2c], ebx
jne 0x10029944
push 5
push 0x10049ebc
push 6
push 0x1005687c
push 0x2b
call fcn.1002cd10
push 3
push 0x10049ec4
push 4
push 0x1005698c
push 0x14
call fcn.1002cd10
push 0x22
push 0x10049ec8
push 0x23
push 0x10056998
push 0x10
call fcn.1002cd10
add esp, 0x3c
mov dword [0x10056a2c], 1
push edi
push 0x103
lea eax, [ebp - 0x30f]
push ebx
push eax
xor edi, edi
mov byte [ebp - 0x310], bl
call fcn.1000ae30
push 0x103
lea ecx, [ebp - 0x20b]
push ebx
push ecx
mov byte [ebp - 0x20c], bl
call fcn.1000ae30
push 0x103
lea edx, [ebp - 0x107]
push ebx
push edx
mov dword [ebp - 0x314], 0x104
mov dword [ebp - 0x318], ebx
mov byte [ebp - 0x108], bl
call fcn.1000ae30
mov eax, esi
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100299a7
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10034790
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
mov eax, 0x10056998
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100299d6
sub eax, edx
push eax
lea edx, [ebp - 0x20c]
push 0x10056998
push edx
call fcn.10034790
lea eax, [ebp - 0x108]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10029a00
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.100364a0
add esp, 0xc
lea edx, [ebp - 0x314]
push edx
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x318]
push ecx
push 0x1005687c
lea edx, [ebp - 0x20c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x10029a63
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
mov ecx, 0x1005698c
lea eax, [ebp - 0x310]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10029a90
cmp dl, bl
je 0x10029a8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10029a90
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10029a70
xor eax, eax
jmp 0x10029a95
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10029a9e
mov edi, 0x10001
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x10029dd0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x66c], eax
test eax, eax
je 0x10029f96
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10029f96
push esi
push ecx
push 0
push eax
call fcn.1000ae30
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
xor esi, esi
mov word [ebp - 0x20c], ax
call fcn.1000ae30
add esp, 0x18
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivers_
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x10029e60
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
push edi
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov word [ebp - 0x414], cx
call fcn.1000ae30
lea eax, [ebp - 0x20c]
push eax
push str._s.sys
lea ecx, [ebp - 0x414]
push 0x103
push ecx
call fcn.1000c37d
add esp, 0x1c
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x668], edi
cmp edi, 0xffffffff
jne 0x10029ecf
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x100446d8
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.1000c37d
push 1
push 1
push 1
lea ecx, [ebp - 0x414]
push 1
push ecx
call fcn.10029d80
add esp, 0x28
test eax, eax
je 0x10029f59
lea edx, [ebp - 0x638]
push edx
call fcn.1002caa0
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebx + esi + 2]
cmp eax, dword [ebp + 0xc]
jge 0x10029f71
mov edx, dword [ebp - 0x66c]
lea ecx, [ebx + 1]
push ecx
push edi
add edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
lea esi, [ebx + esi + 1]
call fcn.1000ad98
mov edi, dword [ebp - 0x668]
add esp, 4
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10029ed0
jmp 0x10029f77
mov edi, dword [ebp - 0x668]
pop ebx
test esi, esi
je 0x10029f7d
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
Function at 0x10029fb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
je 0x1002a0e4
push esi
push 0x44
push eax
lea ecx, [ebp - 0x6e]
push ecx
mov dword [ebp - 0x28], 0xf1c1cfe3
mov dword [ebp - 0x24], 0xe6cedbf5
mov dword [ebp - 0x20], 0xc0e0e4c5
mov dword [ebp - 0x1c], 0xcad1e2de
mov dword [ebp - 0x18], 0xcae0e2de
mov dword [ebp - 0x14], 0xd1f7c5dc
mov dword [ebp - 0x10], 0xd7f7c5ec
mov dword [ebp - 0xc], 0xc0f1ffc6
mov word [ebp - 8], 0xcac3
mov word [ebp - 0x70], ax
call fcn.1000ae30
push 0x22
lea edx, [ebp - 0x28]
push edx
push 0x23
lea eax, [ebp - 0x70]
push eax
push 0x10
call fcn.1002cd10
push 0x3ff
lea ecx, [ebp - 0x677]
push 0
push ecx
mov byte [ebp - 0x678], 0
call fcn.1000ae30
lea edx, [ebp - 0x678]
push 0x400
push edx
call fcn.10029dd0
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x1002a077
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x678]
push esi
push eax
call fcn.1002cbd0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x276]
push edx
mov word [ebp - 0x278], cx
call fcn.1000ae30
push edi
lea eax, [ebp - 0x70]
push eax
push 0x100446d8
lea ecx, [ebp - 0x278]
push 0x103
push ecx
call fcn.1000c37d
add esp, 0x28
push esi
lea edx, [ebp - 0x678]
push edx
push 3
push str.Config
lea eax, [ebp - 0x278]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret

Function at 0x1002a100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10029fb0

Function at 0x1002a240
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov edi, ecx
mov ecx, dword [ebp + 8]
push 6
push ecx
mov ecx, edi
call fcn.1002a120
test eax, eax
jne 0x1002a263
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.1001d8f0
test eax, eax
jne 0x1002a2cb
lea edx, [ebp + 8]
push edx
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.1002da00
test eax, eax
jne 0x1002a290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1002a2cb
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.1000b020
mov esi, eax
add esp, 4
test esi, esi
je 0x1002a2ca
lea edx, [ebp + 8]
push edx
push esi
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.1002da00
test eax, eax
je 0x1002a2c1
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call fcn.1000ad98
add esp, 4
pop esi
lea edx, [ebp - 4]
push edx
mov ecx, edi
call fcn.1002da50
neg eax
sbb eax, eax
neg eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 1
push 0x40000000
push ebx
xor edi, edi
call fcn.1002beb0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x1002a3ad
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
push ecx
push esi
call fcn.1002bf30
add esp, 0x10
test eax, eax
je 0x1002a3a0
mov edi, 1
push esi
call fcn.1002bfa0
add esp, 4
test edi, edi
jne 0x1002a3b4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1002bee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp ecx, 0xffffffff
je 0x1002bf05
lea eax, [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1002bf30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0x14]
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp edx, 0xffffffff
je 0x1002bf54
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 0xc]
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x1002bfc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1002bfcc
pop ebp
ret
push esi
push 3
push 1
push SysReAllocString
push eax
call fcn.1002beb0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x1002bfeb
xor eax, eax
pop esi
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.1002bfa0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1002c010
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x1002cb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002cb80
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1002cb7f
xor eax, eax
test edi, edi
jle 0x1002cb7f
mov cl, byte [ebp + 8]
lea esp, [esp]
mov dl, byte [eax + esi]
add dl, al
xor dl, cl
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x1002cb70
pop edi
pop esi
pop ebp
ret

Function at 0x1002cb90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1002cbc0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x1002cbbf
xor eax, eax
test edi, edi
jle 0x1002cbbf
mov cl, byte [ebp + 8]
lea esp, [esp]
mov dl, byte [eax + esi]
xor dl, cl
sub dl, al
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x1002cbb0
pop edi
pop esi
pop ebp
ret
Function at 0x1002cbd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1002cbf0
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1002cbf0
xor eax, eax
test edx, edx
jle 0x1002cbf0
xor byte [eax + ecx], 0xa5
inc eax
cmp eax, edx
jl 0x1002cbe7
pop ebp
ret

Function at 0x1002cd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002cca0

Function at 0x1002cd50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
or eax, 0xffffffff
test ecx, ecx
je 0x1002cd7b
mov edx, dword [ebp + 8]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10049f90]
inc edx
dec ecx
jne 0x1002cd61
pop esi
not eax
pop ebp
ret

Function at 0x1002d110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
test esi, esi
jne 0x1002d140
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
push esi
push eax
call edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.1000ae30
add esp, 0xc
push 0x104
push esi
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 4
Function at 0x1002d320
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1004f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x82]
push edx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], eax
mov word [ebp - 0x84], cx
call fcn.1000ae30
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x102]
push ecx
mov word [ebp - 0x104], ax
call fcn.1000ae30
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x202]
push eax
mov word [ebp - 0x204], dx
call fcn.1000ae30
add esp, 0x24
push 0x40
lea ecx, [ebp - 0x204]
push ecx
push 0x40
lea edx, [ebp - 0x104]
push edx
push 0x40
lea eax, [ebp - 0x84]
push eax
push ebx
mov ecx, esi
call fcn.1002d280
test eax, eax
je 0x1002d502
push esi
push 0x20
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x1002d502
cmp dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x21c]
je 0x1002d4f5
cmp dword [edi], eax
jb 0x1002d4f5
xor ebx, ebx
xor esi, esi
mov dword [edi], eax
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x1002d4b3
jmp 0x1002d426
mov ebx, dword [ebp - 0x228]
cmp ebx, dword [ebp - 0x210]
jae 0x1002d4b3
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x182]
push edx
mov word [ebp - 0x184], cx
call fcn.1000ae30
push ebx
lea eax, [ebp - 0x204]
push eax
push str._s_d
lea ecx, [ebp - 0x184]
push 0x3f
push ecx
call fcn.1000c37d
mov eax, dword [edi]
sub eax, esi
add esp, 0x20
mov ebx, 0x4000
cmp eax, 0x4000
jg 0x1002d47a
mov ebx, eax
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
push edx
push ebx
add eax, esi
push eax
lea ecx, [ebp - 0x184]
push ecx
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
test eax, eax
je 0x1002d4b3
inc dword [ebp - 0x228]
add esi, ebx
cmp esi, dword [edi]
jb 0x1002d420
mov eax, dword [edi]
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x218]
push eax
push esi
push ecx
call fcn.1002cb90
mov edx, dword [edi]
push edx
push esi
call fcn.1002cd50
add esp, 0x14
cmp eax, dword [ebp - 0x214]
jne 0x1002d502
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 0xc
push 0xea
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1000ae1e
mov esp, ebp
pop ebp
ret 0xc