joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026795
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push eax
mov dword [ebp - 0x80], 0x1004f338
mov dword [ebp - 0x7c], 0x1004f314
mov dword [ebp - 0x78], 0x1004f2e8
call fcn.10031310
add esp, 0xc
xor esi, esi
push 0x208
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10031310
add esp, 0xc
push dword [ebp + esi*4 - 0x80]
lea eax, [ebp - 0x74]
push 0x1005bd1c
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1002684c
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002684c
push dword [0x1005cb6c]
lea eax, [ebp - 0x74]
push eax
call fcn.1000f01b
pop ecx
pop ecx
test eax, eax
je 0x1002684c
inc esi
cmp esi, 3
jb 0x100267e0
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x198
leave
ret
xor eax, eax
jmp 0x10026836

Function at 0x10026850
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor esi, esi
cmp dword [0x1005cbd0], esi
jne 0x100268e6
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.10031310
add esp, 0xc
push 0x1004e2f8
push 0x1005bb14
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x100268da
push dword [0x1005cb6c]
lea eax, [ebp - 0x74]
push eax
call fcn.1000f01b
pop ecx
pop ecx
test eax, eax
je 0x100268da
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
je 0x100268da
push 0x1004e2e4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005cbd0], eax
cmp dword [0x1005cbd0], esi
je 0x10026973
cmp dword [ebp + 0x1a0], esi
je 0x10026969
mov eax, dword [0x1005cb7c]
mov ecx, 0x20000
cmp eax, ecx
ja 0x1002690a
jne 0x10026973
cmp dword [0x1005cb80], 0x103ef
jb 0x10026973
cmp dword [ebp + 0x1a4], esi
je 0x10026961
push ebx
push edi
push 4
pop eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
mov ebx, 0x1004e2d0
push ebx
mov edi, 0x1004e278
push edi
mov esi, 0x80000002
push esi
mov dword [ebp - 0x78], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, 2
jne 0x1002695f
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
push 4
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop ebx
push dword [ebp + 0x1a0]
jmp 0x1002696a
push esi
call dword [0x1005cbd0]
mov esi, eax
pop ecx
mov ecx, dword [ebp + 0x194]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x198
leave
ret 8
Function at 0x10026bbc
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x398], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push 0x1004cbb8
mov edi, 0x80000002
push edi
call esi
push 0x1004abf0
push edi
call esi
xor eax, eax
mov edi, 0x206
push edi
push eax
mov word [ebp + 0x190], ax
lea eax, [ebp + 0x192]
push eax
call fcn.10031310
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004cb00
push esi
lea eax, [ebp + 0x190]
push eax
call fcn.1000e449
xor eax, eax
push edi
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.10031310
add esp, 0xc
mov dword [ebp - 0x80], 0x1004b73c
mov dword [ebp - 0x7c], 0x1004cb48
xor esi, esi
push 0x208
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10031310
add esp, 0xc
push dword [ebp + esi*4 - 0x80]
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, 2
jl 0x10026c5c
mov ecx, dword [ebp + 0x398]
pop edi
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x39c
leave
ret

Function at 0x10026dfe
Capabilities:
Check if file exists

Disassembly:
push 0x260
mov eax, 0x100486fa
call fcn.100317e8
mov esi, ecx
call fcn.10026768
test eax, eax
je 0x10026f2b
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x60], ax
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x28
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
xor ebx, ebx
call fcn.10026621
test eax, eax
je 0x10026e62
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.1000ce20
pop ecx
pop ecx
test eax, eax
jne 0x10026e86
push 0x28
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.10026681
test eax, eax
je 0x10026e89
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.1000ce20
pop ecx
pop ecx
test eax, eax
je 0x10026e89
xor ebx, ebx
inc ebx
xor eax, eax
push 0x206
mov word [ebp - 0x268], ax
xor edi, edi
lea eax, [ebp - 0x266]
push edi
push eax
call fcn.10031310
add esp, 0xc
push 0x1004e254
push 0x1005bd1c
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp ebx, edi
jne 0x10026ed5
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10026f2b
lea ecx, [ebp - 0x269]
call fcn.100234df
push edi
lea ecx, [ebp - 0x269]
mov dword [ebp - 4], edi
call fcn.100251e3
lea ecx, [ebp - 0x269]
call fcn.100248aa
cmp ebx, edi
je 0x10026f1c
lea eax, [ebp - 0x38]
push eax
push 0x28
lea eax, [esi + 8]
push eax
call fcn.10012a0b
lea eax, [ebp - 0x60]
push eax
push 0x28
add esi, 0x30
push esi
call fcn.10012a0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x269]
call fcn.1003b3f2
call fcn.1003186b
ret
Function at 0x10026f31
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x39c], ax
xor ebx, ebx
lea eax, [ebp + 0x39e]
push ebx
push eax
call fcn.10031310
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004cb00
push edi
lea eax, [ebp + 0x39c]
push eax
call fcn.1000e449
xor eax, eax
push esi
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
call fcn.10031310
xor eax, eax
push esi
mov word [ebp + 0x194], ax
lea eax, [ebp + 0x196]
push ebx
push eax
call fcn.10031310
lea edi, [esi + 2]
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0x18
mov dword [ebp - 0x80], 0x1004b73c
mov dword [ebp - 0x7c], 0x1004cb48
mov dword [ebp - 0x78], ebx
jmp 0x10026fde
xor ebx, ebx
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.10031310
push edi
lea eax, [ebp + 0x194]
push ebx
push eax
call fcn.10031310
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp + eax*4 - 0x80]
add esp, 0x18
push ebx
lea eax, [ebp + 0x39c]
push eax
lea eax, [ebp - 0x74]
push eax
call esi
push ebx
push 0x1005bd1c
lea eax, [ebp + 0x194]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
jne 0x1002703b
lea eax, [ebp + 0x194]
push eax
call ebx
test eax, eax
je 0x1002705f
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 2
jl 0x10026fdc
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
add ebp, 0x5a8
leave
ret
xor eax, eax
jmp 0x10027047
Function at 0x10027468
Capabilities:
Create thread

Disassembly:
push ebp
sub esp, 0x2d0
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x2d0], eax
push 0x14
mov eax, 0x100487b0
call fcn.1003177f
call fcn.1000f520
test eax, eax
je 0x1002759d
xor esi, esi
cmp dword [0x1005d6bc], esi
jne 0x1002759d
mov eax, dword [0x100591c4]
mov dword [0x1005d6bc], 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], eax
push 0x1004c55c
push 0x1005bd1c
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
call fcn.1000cc3d
add esp, 0xc
test eax, eax
je 0x10027516
mov eax, dword [ebp - 0x1c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x18]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x10]
push 0x1004b724
push eax
call fcn.10010895
add esp, 0x18
push 0xc8
lea eax, [ebp + 0x208]
push esi
push eax
call fcn.10031310
lea eax, [ebp + 0x208]
push 0x64
push eax
call fcn.1000f1de
add esp, 0x14
push 0x1004f440
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor ecx, ecx
test ax, ax
setne cl
mov eax, ecx
lea ecx, [ebp + 0x208]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp + 0x2dc]
push dword [ebp - 0x14]
push 0x1004f398
push 0x1005d6b8
call fcn.10010895
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push 0x100271fc
push esi
push esi
call fcn.1003316c
add esp, 0x34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
call fcn.1000e380
lea ecx, [ebp - 0x14]
call fcn.1000e380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2d0]
xor ecx, ebp
call fcn.10031770
add ebp, 0x2d4
leave
ret 4

Function at 0x10027623
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
jle 0x10027651
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
mov eax, esi
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [ecx]
xor al, bl
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
mov bl, al
jl 0x10027631
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x100281e1
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x140
lea ebp, [esp - 4]
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x140], eax
push 0x18
mov eax, 0x100487d8
call fcn.100317b2
mov eax, dword [ebp + 0x14c]
xor ebx, ebx
push ebx
push 0x1c
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
call fcn.10035003
push 0x63
lea eax, [ebp + 0xcd]
push ebx
push eax
mov byte [ebp + 0xcc], bl
call fcn.10031310
push 0x17
lea eax, [ebp + 0xcc]
push 0x1004ecf4
push eax
call fcn.100318a0
mov ecx, dword [ebp - 0x18]
mov esi, 0x1004f490
lea edi, [ebp + 0x130]
movsd dword es:[edi], dword [esi]
add esp, 0x24
movsd dword es:[edi], dword [esi]
push 0xd
lea eax, [ebp + 0x130]
push eax
movsd dword es:[edi], dword [esi]
push 0x17
lea eax, [ebp + 0xcc]
push eax
movsb byte es:[edi], byte [esi]
call fcn.10027623
mov eax, 0xcc
push eax
mov edi, eax
call fcn.10031154
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], bl
push dword [ebp - 0x20]
call fcn.10035088
pop ecx
test eax, eax
jne 0x10028330
push edi
push ebx
push esi
call fcn.10031310
push dword [ebp - 0x20]
push 1
push edi
push esi
call fcn.10034d51
add esp, 0x1c
cmp eax, 1
jne 0x1002828c
xor ecx, ecx
mov edi, 0xcc
cmp ecx, edi
jge 0x100282e9
mov eax, dword [ebp - 0x1c]
add eax, ecx
cdq
push 0x17
pop edi
idiv edi
mov bl, byte [ecx + esi]
mov al, byte [ebp + edx + 0xcc]
xor al, bl
xor al, byte [ebp - 0x11]
mov byte [ebp - 0x11], bl
mov byte [ecx + esi], al
inc ecx
xor ebx, ebx
jmp 0x100282bb
add dword [ebp - 0x1c], edi
lea ecx, [ebp]
call fcn.10017571
push edi
lea eax, [ebp]
push esi
push eax
call fcn.100318a0
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp]
push eax
add ecx, 0x208
call fcn.10028165
jmp 0x1002828c
push esi
call fcn.10031889
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x20c]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x140]
xor ecx, ebp
call fcn.10031770
add ebp, 0x144
leave
ret 4
Function at 0x10028365
Capabilities:
Read file on windows

Disassembly:
push 0x30
mov eax, 0x10048800
call fcn.100317b2
mov edi, ecx
push edi
lea ecx, [edi + 0x214]
call fcn.100087de
test eax, eax
jne 0x1002838a
inc eax
call fcn.10031857
ret
push 0x1004f4a0
lea eax, [ebp - 0x14]
push edi
xor esi, esi
push eax
mov dword [ebp - 0x14], esi
call fcn.10035275
add esp, 0xc
cmp eax, esi
je 0x100283a9
xor eax, eax
jmp 0x10028384
push esi
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.10035003
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push 1
push 4
push eax
call fcn.10034d51
add esp, 0x1c
push dword [ebp - 0x14]
mov ecx, edi
call fcn.10027657
cmp dword [ebp - 0x1c], eax
je 0x100283e9
push dword [ebp - 0x14]
call fcn.10035133
pop ecx
jmp 0x100283a5
push esi
push 4
push dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
call fcn.10035003
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 1
push 4
push eax
call fcn.10034d51
add esp, 0x1c
cmp dword [ebp - 0x18], 0x1c
je 0x10028420
push dword [ebp - 0x14]
call fcn.10035133
pop ecx
mov eax, esi
jmp 0x10028384
push esi
push esi
push dword [ebp - 0x14]
call fcn.10035003
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push 1
push dword [ebp - 0x18]
push eax
call fcn.10034d51
push 2
push esi
push dword [ebp - 0x14]
call fcn.10035003
push dword [ebp - 0x14]
call fcn.10034f0b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
add edx, ecx
add esp, 0x2c
cmp eax, edx
jne 0x10028472
push dword [ebp - 0x14]
mov ecx, edi
call fcn.100281e1
xor ecx, ecx
cmp eax, dword [ebp - 0x28]
sete cl
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x20]
jmp 0x10028410

Function at 0x100289ee
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, esi
je 0x100289ff
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10028a08
mov dword [eax], esi
cmp dword [ebp + 8], esi
je 0x10028ab3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10028ab3
push esi
push esi
push 3
push esi
push 3
push 0x120089
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10028aae
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x41]
cmp eax, 0x63fffbe
ja 0x10028aa4
push ebx
push edi
call fcn.10031154
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x10028aa3
push esi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10028a9c
cmp dword [ebp + 8], edi
jne 0x10028a9c
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x10028a8a
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x10028a93
mov dword [eax], edi
mov dword [ebp - 8], 1
jmp 0x10028aa3
push ebx
call fcn.10031300
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, dword [ebp - 8]
jmp 0x10028ab5
xor eax, eax
pop esi
leave
ret
Function at 0x10028ab8
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [eax + 0x3c]
push esi
mov esi, 0x5a4d
cmp word [eax], si
lea edx, [ecx + eax]
pop esi
jne 0x10028af8
cmp ecx, dword [esp + 4]
ja 0x10028af8
cmp dword [edx], 0x4550
jne 0x10028af8
cmp word [edx + 0x5c], 1
jne 0x10028af8
push 0x40
add eax, 0x40
push 0x10059790
push eax
call fcn.10033297
add esp, 0xc
neg eax
sbb eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x10028c29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [0x10059518]
jne 0x10028ccf
test edi, edi
je 0x10028ccf
push esi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10031310
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.10031310
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1004ea00
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
pop esi
test eax, eax
je 0x10028ccf
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x10028ccf
inc eax
jmp 0x10028cd1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10031770
leave
ret 8
Function at 0x1002a57c
Capabilities:
Check if file exists

Disassembly:
push 0x90
mov eax, 0x10048aa0
call fcn.100317b2
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1002a6f1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002a6f1
lea ecx, [ebp - 0x14]
call fcn.10007f4f
push esi
push esi
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.10008096
lea ecx, [ebp - 0x14]
test eax, eax
je 0x1002a6e8
call fcn.10007f55
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.10007f58
mov esi, eax
mov dword [ebp - 0x18], esi
test ebx, ebx
je 0x1002a6e5
test esi, esi
je 0x1002a6e5
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x44], eax
cmp dword [ebx + 0xc], 0x3e8
jne 0x1002a6e5
cmp dword [ebx + 0x14], 0x10
jb 0x1002a6e5
cmp dword [esi], 0x10
jb 0x1002a6e5
mov ebx, dword [esi + 8]
imul ebx, dword [esi + 0xc]
lea ecx, [ebp - 0x14]
cmp ebx, dword [esi + 4]
jne 0x1002a6e8
call fcn.10007f63
mov ecx, dword [esi]
add ecx, ebx
cmp eax, ecx
jb 0x1002a6e5
cmp dword [esi + 8], 0x7c
jb 0x1002a6e5
lea eax, [edi + 0x28]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 8
mov ecx, edi
call fcn.1002a18f
mov ebx, dword [esi]
push dword [esi + 0xc]
mov ecx, edi
add ebx, esi
mov byte [ebp - 4], 2
call fcn.1002a546
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0xc]
jae 0x1002a6cb
push 0x1f
pop ecx
mov esi, ebx
lea edi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
push eax
add ecx, 8
call fcn.10029d00
push 0x1f
mov edi, eax
pop ecx
lea esi, [ebp - 0x9c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0x1c]
cmp eax, dword [ecx + 4]
jbe 0x1002a6b8
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
add ebx, dword [eax + 8]
inc dword [ebp + 8]
mov esi, eax
jmp 0x1002a67c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10008086
xor eax, eax
inc eax
jmp 0x1002a6f3
lea ecx, [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.10008086
xor eax, eax
call fcn.10031857
ret 4
Function at 0x1002a7d3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov esi, ecx
call fcn.10031310
add esp, 0xc
push 0x1004f688
push 0x1005bd1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x1002a883
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002a883
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1000f01b
pop ecx
pop ecx
test eax, eax
je 0x1002a883
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x1002a883
push 0x1004f550
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1002a86d
call eax
mov dword [esi + 8], eax
cmp dword [esi + 8], ebx
jne 0x1002a883
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1002a883
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
push ebx
lea ecx, [esi + 0x4c]
call fcn.10030f56
test eax, eax
je 0x1002a89b
cmp dword [esi + 8], ebx
je 0x1002a89b
mov dword [esi], 1
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10031770
leave
ret 4

Function at 0x1002b173
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x100598e8]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
mov esi, dword [ebp + 0x19c]
test esi, esi
je 0x1002b233
push esi
call fcn.1002a93d
test eax, eax
jne 0x1002b233
cmp dword [esi + 0xd54], 2
jne 0x1002b1da
push 4
lea eax, [ebp - 0x80]
push eax
push 4
lea eax, [esi + 0xd64]
push eax
push 0x1004f720
push 0x80000002
mov dword [ebp - 0x80], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
and dword [ebp - 0x7c], 0
push 0x208
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.10031310
add esi, 0xd64
push esi
push 0x1004f6e0
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.1000e4b8
add esp, 0x1c
test eax, eax
jl 0x1002b233
push 8
lea eax, [ebp - 0x7c]
push eax
push 0
push 0xf003f
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_SHRegCreateUSKeyW]
test eax, eax
jne 0x1002b233
push dword [ebp - 0x7c]
call dword [sym.imp.SHLWAPI.dll_SHRegCloseUSKey]
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.10031770
add ebp, 0x194
leave
ret 4
Function at 0x1002eda9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
call fcn.1002ed5f
cmp dword [eax + 0x134], 0
je 0x1002ede4
call fcn.1002ed5f
cmp dword [eax + 0x130], 0
je 0x1002ede4
push 0x45
call fcn.1002ed73
pop ecx
test eax, eax
je 0x1002ee01
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x1002ee73
call fcn.1002ed5f
cmp dword [eax + 0x134], 0
je 0x1002ee01
push 0x45
call fcn.1002ed73
pop ecx
test eax, eax
je 0x1002ee01
pop ebp
jmp eax
test byte [0x1005e4d8], 1
jne 0x1002ee21
or dword [0x1005e4d8], 1
push 0x1004e430
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1005e4d4], eax
mov eax, dword [0x1005e4d4]
test eax, eax
je 0x1002ee67
test byte [0x1005e4d8], 2
jne 0x1002ee4b
or dword [0x1005e4d8], 2
push 0x1004fa50
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005e4d0], eax
mov eax, dword [0x1005e4d0]
test eax, eax
je 0x1002ee67
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
cmp eax, 1
jne 0x1002ee73
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebp
ret 0x10

Function at 0x1002ee77
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 0x30
mov dword [ebp - 4], esi
call fcn.1002ed73
pop ecx
cmp eax, esi
je 0x1002ee9f
lea ecx, [ebp - 4]
push ecx
push 2
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x1002eeb2
lea eax, [ebp - 4]
push eax
push 2
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, esi
jne 0x1002eee9
mov edi, dword [ebp - 4]
push 0x42
call fcn.1002ed73
pop ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push edi
cmp eax, esi
je 0x1002eed9
call eax
jmp 0x1002eedf
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, eax
call fcn.1002ed95
xor eax, eax
cmp edi, esi
pop edi
sete al
pop esi
leave
ret

Function at 0x1002eef4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0x30
call fcn.1002ed73
pop ecx
test eax, eax
je 0x1002ef1b
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x1002ef2f
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1002ef5c
mov esi, dword [ebp - 4]
push 0x38
call fcn.1002ed73
pop ecx
push dword [ebp + 0x10]
push esi
test eax, eax
je 0x1002ef4c
call eax
jmp 0x1002ef52
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, eax
call fcn.1002ed95
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret