joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43270e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e200]
jne 0x432718
repz ret
jmp fcn.0043456f

Function at 0x442202
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00434ed9
and dword [ebp - 4], 0
cmp dword [0x4d1974], 0
mov ebx, eax
jne 0x4422b3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x442364
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x451d34
push edi
call esi
test eax, eax
je 0x442364
push eax
call fcn.00434e67
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d1974], eax
call esi
push eax
call fcn.00434e67
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d1978], eax
call esi
push eax
call fcn.00434e67
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d197c], eax
call esi
push eax
call fcn.00434e67
pop ecx
mov dword [0x4d1984], eax
test eax, eax
je 0x4422b3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434e67
pop ecx
mov dword [0x4d1980], eax
mov eax, dword [0x4d1980]
cmp eax, ebx
je 0x44230b
cmp dword [0x4d1984], ebx
je 0x44230b
push eax
call fcn.00434ee2
push dword [0x4d1984]
mov esi, eax
call fcn.00434ee2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44230b
test edi, edi
je 0x44230b
call esi
test eax, eax
je 0x442302
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x442302
test byte [ebp - 0xc], 1
jne 0x44230b
or dword [ebp + 0x10], 0x200000
jmp 0x442344
mov eax, dword [0x4d1978]
cmp eax, ebx
je 0x442344
push eax
call fcn.00434ee2
pop ecx
test eax, eax
je 0x442344
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x442344
mov eax, dword [0x4d197c]
cmp eax, ebx
je 0x442344
push eax
call fcn.00434ee2
pop ecx
test eax, eax
je 0x442344
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d1974]
call fcn.00434ee2
pop ecx
test eax, eax
je 0x442364
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x442366
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001aed
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
push 0x1001b28
push 0x80000001
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1006372
mov eax, esi
pop esi
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10063b8
push dword [ebp - 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10063aa
cmp dword [ebp - 0xc], 4
jne 0x10063aa
cmp dword [ebp - 4], 4
jne 0x10063aa
cmp dword [ebp - 0x10], esi
je 0x10063aa
inc esi
lea eax, [ebp - 8]
push eax
call fcn.01001324
jmp 0x1001b20

Function at 0x1001bca
Capabilities:
Terminate process

Disassembly:
call fcn.01001423
push 0x10
push 0x1001cd8
call fcn.01002bbc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100f02c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
jne 0x10078e4
xor esi, esi
inc esi
mov eax, dword [0x100f028]
cmp eax, esi
je 0x1007903
mov eax, dword [0x100f028]
test eax, eax
jne 0x1001cad
mov dword [0x100f028], esi
push 0x1001cd0
push 0x1001cc4
call fcn.01001ba1
pop ecx
pop ecx
test eax, eax
jne 0x1007910
mov eax, dword [0x100f028]
cmp eax, esi
jne 0x1001c62
push 0x1001cc0
push 0x1001cb8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100f028], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001c6f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100f480], ebx
jne 0x100791e
push dword [0x100f034]
push dword [0x100f038]
push dword [0x100f030]
call fcn.01001f21
add esp, 0xc
mov dword [0x100f014], eax
cmp dword [0x100f008], ebx
jne 0x1007970
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x100f48c], esi
jmp 0x1001c3e
cmp eax, esi
jne 0x10078f3
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001c05
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001bf1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001c3e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x100798a
push 0x100f480
call fcn.0100d5cf
pop ecx
test eax, eax
je 0x1001c7b
push ebx
push 2
push ebx
call dword [0x100f480]
jmp 0x1001c7b
cmp dword [0x100f48c], ebx
jne 0x100797e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100f014]
call fcn.01002714
ret
Function at 0x1005876
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [edi + 0x44], esi
jne 0x1005979
cmp dword [edi + 0x54], esi
jne 0x1005979
inc dword [ebx + 0x10]
jmp 0x1005979
test eax, eax
jne 0x100593c
jmp 0x100599d
cmp eax, 0xffffffff
jne 0x1005947
jmp 0x100599d
cmp eax, esi
jne 0x1006ddf
jmp 0x1005979
push eax
call fcn.01003151
jmp 0x10059ac
push 0x57
call fcn.01003151
jmp 0x1006df9
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x1005865
cmp dword [ebp + 0xc], esi
je 0x1005865
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x1005865
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
je 0x1005865
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp + 0x10], eax
cmp eax, esi
jne 0x1006da3
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.010026af
mov dword [ebp - 4], eax
cmp eax, esi
je 0x1006dae
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], esi
cmp dword [ebp - 0x10], esi
jbe 0x10059ac
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
add eax, eax
push eax
push esi
push dword [ebp - 4]
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp + 0x10], eax
cmp eax, esi
jne 0x100585a
mov eax, dword [edi + 0x44]
cmp eax, esi
jne 0x1006dbc
mov eax, dword [edi + 0x54]
cmp eax, esi
jne 0x1006dcf
xor ecx, ecx
inc ecx
mov dword [ebx + 8], ecx
mov eax, dword [edi + 0x4c]
test al, 2
je 0x100584d
mov eax, dword [ebp - 0xc]
push edi
add eax, eax
push eax
push ecx
push dword [ebp - 4]
call fcn.0100569b
mov dword [ebx + 8], eax
cmp eax, esi
jne 0x1005818
cmp dword [edi + 0x4c], 2
je 0x100599d
cmp dword [ebx + 8], 1
je 0x100598a
mov eax, dword [edi + 0x4c]
cmp eax, esi
je 0x100598a
test al, 4
je 0x100599d
push ebx
push edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01003def
mov dword [ebp + 0x10], eax
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x10058f7
cmp dword [ebx], esi
jne 0x10059c4
push 0x1003c30
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.0100245f
lea eax, [ebp - 4]
push eax
call fcn.01002024
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
push eax
call fcn.01003151
jmp 0x10059cd
push 0xe
call fcn.01003151
xor eax, eax
jmp 0x10059d0
push 0x102
push eax
push dword [ebp - 4]
call fcn.0100545b
jmp 0x1005832
push dword [ebp - 0x14]
push 1
push eax
call fcn.0100dcbd
jmp 0x100583f
cmp dword [edi + 0x44], esi
jne 0x1005979
cmp dword [edi + 0x54], esi
jne 0x1005979
mov dword [ebx + 8], esi
jmp 0x1005979
push 0x57
pop eax
jmp 0x10059d0
Function at 0x100852a
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push edi
mov edi, 0x20a
mov ebx, 0x104
push edi
mov dword [ebp - 0xc], ebx
call fcn.010026af
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008565
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10086ae
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push ebx
call esi
test eax, eax
je 0x100869d
cmp eax, ebx
jb 0x10085bf
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0100d7f8
test eax, eax
je 0x10085ce
cmp dword [ebp - 4], 0
je 0x10085d7
push dword [ebp - 4]
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x100869d
cmp eax, dword [ebp - 0xc]
jb 0x10085bf
lea eax, [ebp - 4]
push eax
call fcn.01002024
push 0x800300fd
jmp 0x10085d9
push edi
call fcn.010026af
xor esi, esi
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x10085e4
lea eax, [ebp - 4]
push eax
call fcn.01002024
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10086a6
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push eax
push esi
push 0x10086b8
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1008687
cmp dword [ebp + 8], esi
je 0x1008679
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1008679
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push dword [ebp + 8]
call fcn.0100243e
mov esi, eax
jmp 0x100862c
mov eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
je 0x1008631
dec esi
js 0x1008653
jmp 0x1008622
cmp esi, dword [ebp - 0xc]
jl 0x1008647
lea eax, [esi + 6]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0100d7f8
test eax, eax
je 0x1008679
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.010022bd
cmp esi, 0xffffffff
jne 0x1008666
push ebx
push 0x10086b4
push dword [ebp - 4]
call fcn.010022bd
push dword [ebp - 8]
push 0
push 0x10086b8
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1008687
lea eax, [ebp - 4]
push eax
call fcn.01002024
lea eax, [ebp - 8]
jmp 0x10086a0
lea eax, [ebp - 4]
push eax
call fcn.01002024
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10086aa
lea eax, [ebp - 4]
push eax
call fcn.01002024
xor eax, eax
jmp 0x10086ad
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x10089af
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x1008b33
cmp dword [ebp + 0xc], edi
je 0x1008b33
cmp dword [ebp + 0x10], edi
je 0x1008b33
cmp dword [ebp + 0x14], edi
je 0x1008b33
cmp dword [ebp + 0x18], edi
je 0x1008b33
cmp dword [ebp + 0x1c], edi
je 0x1008b33
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
je 0x1008a26
push ebx
call fcn.01003151
mov eax, ebx
jmp 0x1008b3d
mov eax, dword [ebp - 8]
inc eax
push eax
call fcn.010026af
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1008a45
push 0xe
call fcn.01003151
push 0xe
jmp 0x1008b3c
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
cmp ebx, edi
je 0x1008a68
lea eax, [ebp - 4]
push eax
call fcn.01002024
jmp 0x1008a19
mov ebx, dword [ebp + 0x18]
cmp dword [ebx], edi
jne 0x1008af3
push edi
push edi
push edi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x1008af3
push edi
push 0xcb
call fcn.0100339e
push 1
push 0xce
mov dword [ebp + 8], eax
call fcn.0100339e
push edi
push dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
call fcn.0100243e
test eax, eax
jne 0x1008abb
push 2
push 0x1f5
call fcn.0100339e
jmp 0x1008abe
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x1c]
push 0x1008b44
push 2
call fcn.010057ba
add esp, 0x10
call fcn.01002f1e
mov esi, eax
push dword [ebx]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.010034ce
cmp eax, 3
jg 0x1008ad8
jne 0x1008b16
mov dword [ebx], 1
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.01002024
jmp 0x1008b2f
cmp eax, 1
je 0x1008af3
lea eax, [ebp - 4]
push eax
call fcn.01002024
mov esi, 0x4c7
push esi
call fcn.01003151
mov eax, esi
jmp 0x1008b3d
push 0x57
call fcn.01003151
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x100a17d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jne 0x100a207
mov eax, dword [ebp - 4]
inc eax
and eax, 0xfffffffe
mov dword [ebp - 4], eax
add eax, 2
push eax
call fcn.010026af
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x100a1cd
push 8
pop eax
jmp 0x100a207
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
jne 0x100a1fc
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01009995
lea eax, [ebp - 0xc]
push eax
call fcn.01002024
mov eax, esi
pop edi
pop esi
leave
ret 0x10
Function at 0x100b0c4
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
cmp dword [ebp + 8], edi
je 0x100b29f
cmp esi, edi
je 0x100b29f
lea eax, [ebp - 0x68]
push eax
push 9
call fcn.01002865
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp + 8]
call fcn.0100ad49
test eax, eax
jne 0x100b13a
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.010030dc
inc edi
lea eax, [ebp - 0x68]
push eax
call fcn.0100307d
mov eax, edi
jmp 0x100b2b9
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x6c], ebx
jne 0x100b14b
push 9
call fcn.01008449
jmp 0x100b12a
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0xc]
or eax, 0x20019
push eax
push edi
push dword [ebp - 0x2c]
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100b23a
lea eax, [ebp - 0x70]
push eax
call fcn.01001324
push edi
push edi
push 3
push edi
push edi
push 0xc0010000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100b1d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0xce
call fcn.0100339e
push edi
push 0xcf
mov esi, eax
call fcn.0100339e
mov ebx, eax
push dword [ebp - 0x58]
push esi
push dword [ebp - 0x24]
push ebx
call fcn.010034ce
cmp eax, 2
jg 0x100b1b5
dec eax
neg eax
sbb eax, eax
and eax, 0x4c7
mov esi, eax
jmp 0x100b1ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x100b1e4
xor esi, esi
jmp 0x100b1f0
mov dword [ebp - 0x6c], edi
mov esi, 0x322
cmp esi, edi
jne 0x100b24b
mov eax, dword [ebp - 0x24]
push eax
mov dword [ebp - 0x20], eax
call fcn.0100852a
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x100b20a
mov esi, 0x322
jmp 0x100b258
push dword [ebp - 0xc]
push dword [ebp - 0x28]
push eax
call fcn.0100cee9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100b22f
mov dword [ebp - 0x6c], edi
mov esi, 0x322
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100b247
cmp esi, 6
jne 0x100b247
mov dword [ebp - 0x6c], edi
mov esi, 0x321
cmp esi, edi
je 0x100b280
cmp esi, 0x4c7
je 0x100b280
cmp dword [ebp - 0x6c], edi
jne 0x100b267
push edi
push esi
call fcn.0100339e
push eax
call fcn.01002f79
jmp 0x100b26d
push esi
call fcn.01003151
xor edi, edi
push 0x20001
inc edi
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
jmp 0x100b294
push esi
call fcn.01003151
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.010030dc
jmp 0x100b12a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100d7cd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002af3
leave
ret 8
Function at 0x100bc6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x104f6c4]
push esi
mov esi, dword [0x104f6cc]
push edi
cmp ecx, esi
jne 0x100bd40
cmp dword [0x100f484], 1
push 0
lea eax, [ebp - 4]
push eax
jne 0x100bccd
push 0x10000
push 0x102f6c0
push dword [0x104f6c0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bcc1
mov dword [0x100f6a4], 0x2bf
xor eax, eax
jmp 0x100bd5d
mov eax, dword [ebp - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x100bcff
mov edi, 0x10000
push edi
mov esi, 0x100f6c0
push esi
push dword [0x104f6c0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100bcb0
push edi
push 0x102f6c0
push dword [ebp - 4]
push esi
push 1
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
mov eax, dword [ebp - 4]
mov edi, dword [0x104f6d0]
add dword [0x104f6d4], eax
xor ecx, ecx
mov dword [0x104f6cc], esi
mov dword [0x104f6c4], ecx
test edi, edi
je 0x100bd2e
mov eax, dword [0x104f6d4]
xor edx, edx
div edi
cmp eax, 0x64
jbe 0x100bd31
push 0x64
pop eax
cmp dword [0x104f6d8], eax
je 0x100bd3e
mov dword [0x104f6d8], eax
cmp ecx, esi
jge 0x100bcba
mov ax, word [ecx*2 + 0x102f6c0]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
inc dword [0x104f6c4]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x100bde3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x104f6c4]
test eax, eax
je 0x100be26
push 0
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
push 0x102f6c0
push dword [0x104f6c0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100be1c
mov eax, dword [0x104f6c4]
add eax, eax
cmp eax, dword [ebp - 4]
je 0x100be26
mov dword [0x100f6a4], 0x322
and dword [0x104f6c4], 0
leave
ret
Function at 0x100be34
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
or eax, 9
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100be73
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
jmp 0x100bf33
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x100bec2
cmp eax, 0xea
je 0x100bec2
cmp eax, 0x7a
je 0x100bec2
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100bf32
mov eax, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
jne 0x100bedd
push 8
pop esi
jmp 0x100beb5
push ebx
xor ebx, ebx
mov eax, dword [ebp - 8]
inc eax
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x100bf04
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.0100be34
cmp eax, edi
je 0x100bf05
inc ebx
cmp eax, 0x103
je 0x100bf11
cmp ebx, dword [ebp - 0x10]
jb 0x100bee0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x100c3e2
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 8]
or eax, 2
push eax
xor ebx, ebx
push ebx
push ebx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100c428
mov dword [0x100f6a4], 0x2c0
jmp 0x100c618
lea eax, [ebp - 0x208]
push eax
call fcn.0100bc6b
test eax, eax
je 0x100c600
push esi
push edi
dec dword [0x104f6c4]
push 0x5c
call fcn.0100bd68
test eax, eax
je 0x100c456
mov esi, 0x100c628
jmp 0x100c464
mov esi, 0x1004678
cmp word [0x1004678], bx
je 0x100c47c
movzx eax, word [esi]
push eax
call fcn.0100bd68
inc esi
inc esi
test eax, eax
je 0x100c5e5
cmp word [esi], bx
jne 0x100c464
push 0x5c
call fcn.0100bd68
mov edi, eax
cmp edi, ebx
je 0x100c5e5
xor esi, esi
jmp 0x100c4b8
mov ecx, dword [ebp - 0x208]
cmp cx, 0x20
je 0x100c4cc
push ecx
call fcn.0100bdc0
test eax, eax
jne 0x100c4cc
cmp esi, 0xff
jae 0x100c4ca
mov word [ebp + esi*2 - 0x204], cx
inc esi
lea eax, [ebp - 0x208]
push eax
call fcn.0100bc6b
test eax, eax
je 0x100c4cc
jmp 0x100c491
xor edi, edi
cmp edi, ebx
je 0x100c5e5
xor eax, eax
mov word [ebp + esi*2 - 0x204], ax
call fcn.0100c313
push 0x3d
call fcn.0100bd68
test eax, eax
je 0x100c4f5
push 0x20
call fcn.0100bd68
push 0x100
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor eax, eax
cmp esi, ebx
setne al
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x208]
push eax
call fcn.0100bc6b
test eax, eax
je 0x100c58d
mov ebx, 0x200
cmp dword [ebp - 0x20c], 0
je 0x100c5c6
push dword [ebp - 0x208]
call fcn.0100bdc0
test eax, eax
jne 0x100c58d
lea eax, [ebx - 0x101]
cmp edi, eax
jb 0x100c571
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x20c], ecx
test ecx, ecx
je 0x100c5c6
mov esi, eax
add ebx, 0x100
mov ax, word [ebp - 0x208]
mov word [esi + edi*2], ax
lea eax, [ebp - 0x208]
push eax
inc edi
call fcn.0100bc6b
test eax, eax
jne 0x100c528
cmp dword [ebp - 0x20c], 0
je 0x100c5c6
lea eax, [edi + edi]
push eax
push esi
xor ecx, ecx
mov word [eax + esi], cx
push 1
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x100c5d0
mov dword [0x100f6a4], 0x2c1
jmp 0x100c5d0
mov dword [0x100f6a4], 0x6b
xor ebx, ebx
cmp esi, ebx
je 0x100c5dd
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20c], ebx
jne 0x100c5ea
call fcn.0100c343
lea eax, [ebp - 0x208]
push eax
call fcn.0100bc6b
test eax, eax
jne 0x100c43e
pop edi
pop esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01002af3
leave
ret 4