joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1075361
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1099a38]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push 0x10251c4
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10753ab
push eax
push 0x1025184
call fcn.01071ac0
pop ecx
pop ecx
xor eax, eax
jmp 0x10754af
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x1025174
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x214]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10753fb
push ebx
push 0x1025130
jmp 0x1075492
mov byte [ebp - 0x20d], 0
mov byte [esi + 1], 0x3a
mov byte [esi + 2], 0
mov bl, 0x43
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x107542d
mov byte [ebp - 0x20d], bl
jmp 0x1075446
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0x1075465
inc bl
cmp bl, 0x5a
jle 0x107540c
mov al, byte [ebp - 0x20d]
test al, al
jne 0x1075470
push 0x10250f8
call fcn.01071ac0
xor eax, eax
jmp 0x10754ad
movsx eax, byte [esi]
push eax
push 0x10250b0
jmp 0x10754a4
mov byte [esi], al
lea eax, [ebp - 0x108]
push eax
push esi
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x107549b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1025068
call fcn.01071ac0
xor eax, eax
jmp 0x10754ac
movsx eax, byte [esi]
push eax
push 0x1025020
call fcn.01071ac0
xor eax, eax
inc eax
pop ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0106bc50
leave
ret 4
Function at 0x10754bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1099a38]
push ebx
xor ebx, ebx
cmp dword [0x10f549c], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
je 0x10754e2
xor eax, eax
inc eax
jmp 0x1075549
push esi
lea ecx, [ebp - 0x230]
push ecx
push ebx
push 0x10252d8
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindFirstLineA]
cmp eax, ebx
mov esi, 0x100a5
je 0x1075538
lea eax, [ebp - 0x21c]
push eax
push 1
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpGetIntField]
cmp eax, ebx
je 0x1075522
cmp dword [ebp - 0x21c], esi
je 0x1075534
lea eax, [ebp - 0x230]
push eax
push eax
call dword [sym.imp.UPDSPAPI.dll_UpdSpFindNextLine]
cmp eax, ebx
jne 0x1075500
cmp eax, ebx
jne 0x1075556
push esi
push 0x10252a0
call fcn.01071ac0
pop ecx
pop ecx
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0106bc50
leave
ret 4
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
push 0x10251c4
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x1075585
push eax
push 0x1025268
call fcn.01071ac0
pop ecx
pop ecx
xor eax, eax
jmp 0x1075548
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x1025258
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x214]
mov esi, eax
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x210], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x10755dd
push esi
push 0x102521c
jmp 0x107557a
lea eax, [ebp - 0x10c]
push eax
call fcn.01075361
test eax, eax
jne 0x10755fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10251d8
jmp 0x107557a
push 0x107
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.01070fc9
lea eax, [ebp - 0x10c]
push eax
call sub.msvcrt.dll__strdup
cmp eax, ebx
pop ecx
mov dword [0x10f549c], eax
jne 0x1075545
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1075581
Function at 0x1075644
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x618], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x61c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [0x10f4464], 0xffffffff
push esi
push edi
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x614], ebx
je 0x1075750
mov dword [ebp - 0x610], ebx
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push eax
xor eax, eax
cmp dword [ebp - 0x610], ebx
push ebx
setne al
inc eax
push eax
push dword [ebp - 0x61c]
push dword [ebp - 0x618]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x107573d
cmp byte [ebp - 0x60c], bl
lea esi, [ebp - 0x60c]
je 0x107573d
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push esi
push 0x102530c
push 0x103
push eax
call sub.msvcrt.dll__snprintf
mov ecx, dword [0x10f4464]
add esp, 0x14
cmp ecx, 0xffffffff
je 0x107575a
lea eax, [ebp - 0x20c]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1075703
push ebx
lea edx, [ebp - 0x624]
push edx
sub eax, edi
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x107576f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x107572c
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x10756cf
inc dword [ebp - 0x610]
cmp dword [ebp - 0x610], 2
jl 0x1075690
mov dword [ebp - 0x614], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x614]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10252e8
call fcn.01071ac0
add esp, 0xc
jmp 0x107575a
Function at 0x1075961
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
or dword [ebp - 4], 0xffffffff
push edi
lea eax, [ebp - 0x18]
push eax
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push 0x1025510
push 0x80000001
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x10759ad
push eax
push 0x10254e0
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1075a8b
mov eax, dword [ebp + 8]
push ebx
push 4
pop esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x10254d0
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x10254b0
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, SysStringLen
push ebx
call edi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1075a93
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x10254a4
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1075a39
cmp dword [ebp - 0x14], esi
jne 0x1075a39
cmp dword [ebp - 0x10], esi
je 0x1075a3d
and dword [ebp - 8], 0
cmp dword [ebp - 4], 0xffffffff
je 0x1075a4c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
or ax, si
mov word [ebp - 0x24], ax
mov eax, dword [ebp - 8]
mov word [ebp - 0x1e], ax
shr eax, 0x10
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
shl eax, 0xa
lea ecx, [ebp - 0xc]
xor ax, cx
and ax, 0xc00
xor ax, cx
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x28]
push eax
call fcn.01072b7c
xor esi, esi
inc esi
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x1025430
push ebx
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x10254a4
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1075a39
cmp dword [ebp - 0x14], esi
jne 0x1075a39
cmp dword [ebp - 0x10], esi
jne 0x1075a39
push 0x1025410
call fcn.01071ac0
pop ecx
jmp 0x1075a3d
Function at 0x107624b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, 0x100aa44
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov esi, 0x100a9d4
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1099a38]
and dword [ebp - 0x5c], 0
movsw word es:[edi], word [esi]
mov esi, 0x1024cbc
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 4], eax
inc ebx
call sub.msvcrt.dll_malloc
push esi
mov dword [ebp - 0x64], eax
call sub.msvcrt.dll_malloc
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x58]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10763a3
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], esi
call edi
cmp eax, 0xea
jne 0x1076322
push dword [ebp - 0x60]
call fcn.0106bf39
push dword [ebp - 0x5c]
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
je 0x10763a3
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x6c]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x68]
call edi
xor ebx, ebx
cmp eax, ebx
jne 0x10763a3
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov byte [ecx + eax - 1], bl
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
lea eax, [ebp - 0x6c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x5c], esi
call edi
cmp eax, 0xea
jne 0x107637d
push dword [ebp - 0x64]
call fcn.0106bf39
push dword [ebp - 0x5c]
call sub.msvcrt.dll_malloc
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x64], eax
je 0x1076381
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x68]
call edi
test eax, eax
je 0x1076386
xor ebx, ebx
inc ebx
jmp 0x10763a3
mov eax, dword [ebp - 0x64]
push dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
push eax
mov byte [eax + ecx - 1], 0
call sub.msvcrt.dll__stricmp
mov ebx, eax
neg ebx
pop ecx
sbb ebx, ebx
pop ecx
inc ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call fcn.0106bf39
push dword [ebp - 0x60]
call fcn.0106bf39
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0106bc50
leave
ret
Function at 0x107658e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0xb
pop ecx
mov esi, 0x1025980
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x1099a38]
movsb byte es:[edi], byte [esi]
mov esi, 0x1025970
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x104
push esi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call sub.msvcrt.dll_malloc
mov edi, eax
mov eax, dword [ebp - 0x50]
pop ecx
mov dword [eax], ebx
lea eax, [ebp - 0x4c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x44]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x107666e
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
cmp eax, 0xea
jne 0x107664a
push edi
call fcn.0106bf39
push dword [ebp - 0x48]
call sub.msvcrt.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x107666e
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x58]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
call esi
cmp eax, ebx
jne 0x107666e
mov eax, dword [ebp - 0x48]
push ebx
push ebx
push edi
mov byte [edi + eax - 1], bl
mov dword [ebp - 0x54], 1
call sub.msvcrt.dll_strtoul
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov dword [ecx], eax
jmp 0x1076673
mov eax, dword [ebp - 0x50]
mov dword [eax], ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0106bf39
mov eax, dword [ebp - 0x54]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4

Function at 0x1076695
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push 0x10259c0
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10766ff
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10259b0
push dword [ebp - 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10766f6
cmp dword [ebp - 0xc], 4
jne 0x10766f6
cmp dword [ebp - 4], 4
jne 0x10766f6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
inc edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 4
Function at 0x1076706
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push esi
lea eax, [ebp - 4]
push eax
push 0x20007
xor esi, esi
push esi
push 0x100aa44
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x1076740
push eax
push 0x10259f8
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x1076761
push 4
push 0x10f5484
push 4
push esi
push 0x10259ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x10f5484], esi
xor esi, esi
inc esi
cmp dword [ebp - 4], 0xffffffff
je 0x1076770
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1077208
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push 0x100af40
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x1077248
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 8]
mov esi, 0x1106960
push 0x1026244
push esi
call fcn.0106bf51
add esp, 0x10
push esi
call fcn.01071aad
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
leave
ret 4
Function at 0x107813b
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1099a38]
push edi
mov edi, dword [ebp + 8]
push edi
push 0x10267e8
mov dword [ebp - 4], eax
call fcn.01071b3e
pop ecx
mov eax, edi
pop ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1078164
sub eax, edx
cmp eax, 0x104
jae 0x107818a
lea eax, [ebp - 0x108]
push eax
push 0x10267d8
push edi
call fcn.010780c4
test eax, eax
jne 0x1078191
xor eax, eax
jmp 0x1078215
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea eax, [ebp - 0x108]
push eax
push edi
call esi
test eax, eax
push 0x80
je 0x10781eb
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10781e6
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call esi
xor eax, eax
inc eax
jmp 0x1078214
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x1078212
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x107820f
cmp eax, 3
jne 0x1078212
xor esi, esi
inc esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0106bc50
leave
ret 4

Function at 0x1078280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
push 0x10268a8
call fcn.0106bf63
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
xor edi, edi
inc edi
or dword [ebp + 8], edi
mov dword [ebp - 0x34], 0x10
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push 3
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrFindResource_U]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x10782de
test eax, eax
jl 0x1078375
mov dword [ebp - 4], edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_LdrAccessResource]
mov dword [ebp - 0x24], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1078319
test eax, eax
jl 0x1078375
mov dword [ebp - 4], 2
cmp dword [ebp - 0x28], 0x5c
jb 0x1078359
push 0x1026884
mov eax, dword [ebp - 0x1c]
add eax, 6
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1078359
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x30]
mov eax, dword [eax + 0x34]
xor edi, edi
or ecx, eax
or edx, edi
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp 0x1078371
push 0x102685c
jmp 0x107836c
call fcn.01071aad
or dword [ebp - 4], 0xffffffff
call fcn.0106bf9e
ret 8
Function at 0x107837d
Capabilities:
Parse pe header

Disassembly:
push 0x1c
push 0x10268d0
call fcn.0106bf63
mov dword [ebp - 0x1c], 0x57
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
je 0x1078435
mov edi, dword [ebp + 0x10]
cmp edi, ecx
je 0x1078435
cmp dword [ebp + 0x14], ecx
je 0x1078435
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x1078435
lea ebx, [esi + 0x10040]
add eax, esi
mov dword [ebp - 0x24], eax
mov dword [edi], ecx
mov dword [edi + 4], ecx
cmp eax, ebx
jae 0x10783ce
mov ebx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], esi
lea eax, [esi + 0x40]
cmp eax, ebx
jae 0x1078431
cmp dword [ebp - 0x1c], 0x57
jne 0x1078431
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x20], eax
cmp word [esi], 0x5a4d
jne 0x1078423
lea ecx, [eax + 0xf8]
cmp ecx, dword [ebp - 0x24]
jae 0x1078423
cmp dword [eax], 0x4550
jne 0x1078423
cmp word [eax + 4], 0x14c
jne 0x1078423
push edi
push esi
call fcn.01078280
mov eax, dword [edi]
or eax, dword [edi + 4]
je 0x1078423
and dword [ebp - 0x1c], 0
add esi, dword [ebp + 0x14]
xor ecx, ecx
jmp 0x10783d1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
call fcn.0106bf9e
ret 0x10
Function at 0x10784b6
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0x12c
push 0x10268f8
call fcn.0106bf63
mov eax, dword [0x1099a38]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x128], ebx
push esi
push 0x10268dc
call fcn.01071b3e
pop ecx
pop ecx
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10784f3
sub eax, edi
cmp eax, 0x104
jae 0x107852f
lea eax, [ebp - 0x120]
push eax
push 0x10267d8
push esi
call fcn.010780c4
test eax, eax
je 0x107852f
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x13c]
call fcn.0103a535
test eax, eax
jne 0x1078536
xor eax, eax
jmp 0x1078637
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.0106e19f
cmp eax, ebx
je 0x1078624
push ebx
push 0x80000080
push 4
push ebx
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x134], edi
cmp edi, 0xffffffff
je 0x1078613
push ebx
push ebx
push dword [ebp - 0x124]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
cmp eax, dword [ebp - 0x124]
jne 0x107860c
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x107860c
push ebx
push ebx
push ebx
push edi
call esi
test eax, eax
jne 0x107860c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x130], ebx
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x124]
push dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10785f5
mov eax, dword [ebp - 0x130]
cmp eax, dword [ebp - 0x124]
jne 0x10785f5
mov dword [ebp - 0x128], 1
or dword [ebp - 4], 0xffffffff
jmp 0x107860c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x12c]
push dword [ebp - 0x138]
call fcn.010718f1
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x1c]
call fcn.0106bc50
call fcn.0106bf9e
ret 8
Function at 0x10787d0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
push 0xd
pop ecx
mov esi, 0x1026910
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov esi, 0x1026904
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
push 0x20019
xor ebx, ebx
push ebx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x44]
push eax
push SysStringLen
mov dword [ebp - 0x54], ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1078880
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], ebx
call esi
cmp eax, ebx
je 0x1078844
cmp eax, 0xea
jne 0x107886b
push dword [ebp - 0x48]
call fcn.0107243e
mov edi, eax
cmp edi, ebx
je 0x1078880
lea eax, [ebp - 0x48]
push eax
push edi
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x4c]
call esi
test eax, eax
je 0x107886e
jmp 0x107887a
mov edi, dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1078884
push edi
call fcn.01072452
xor eax, eax
jmp 0x1078886
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret