joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100449f
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100900c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x224], eax
push 0x104
lea eax, [ebp - 0x20c]
mov edi, 0x2000
push eax
mov dword [ebp - 0x21c], edi
call fcn.01007950
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x100450a
push 2
push edi
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
jne 0x1004511
xor eax, eax
jmp 0x10046e4
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
jmp 0x100458b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10046c7
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_free]
mov ebx, dword [ebp - 0x220]
add ebx, 0x400
push 2
push ebx
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.msvcrt.dll_calloc]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x214], eax
je 0x10046c3
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push ebx
push eax
push 0
push 5
push dword [ebp - 0x218]
call edi
test eax, eax
je 0x1004534
cmp dword [ebp - 0x210], 0
je 0x10046c7
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01007950
mov edi, dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
lea eax, [edi + 0x38]
push eax
mov ebx, edi
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
jne 0x1004694
add edi, dword [edi + 0x24]
push 0x100
push edi
lea eax, [esi + 4]
push eax
call fcn.010043ce
push eax
lea eax, [esi + 0x406]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x40a]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x404]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x40c]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x40e]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x410]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x412]
push eax
call fcn.01004472
push eax
lea eax, [esi + 0x414]
push eax
call fcn.010043fa
push eax
lea eax, [esi + 0x418]
push eax
call fcn.01004436
push 0x100
push eax
lea eax, [esi + 0x204]
push eax
call fcn.010043ce
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x430], eax
mov eax, dword [ebx + 0x34]
add eax, ebx
push esi
mov dword [esi + 0x42c], eax
call dword [ebp - 0x224]
test eax, eax
je 0x10046c7
mov eax, dword [ebx]
cmp dword [ebp - 0x210], eax
ja 0x10046a7
and dword [ebp - 0x210], 0
jmp 0x10046ad
sub dword [ebp - 0x210], eax
mov edi, dword [ebx]
add edi, ebx
cmp dword [ebp - 0x210], 0
ja 0x10045bf
jmp 0x1004512
xor eax, eax
jmp 0x10046e3
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007b1d
leave
ret 8
Function at 0x10046f7
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2260
call fcn.01007db0
mov eax, dword [0x100900c]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
xor edx, edx
xor eax, eax
mov word [ebp - 0x220c], dx
mov ecx, 0x7ff
lea edi, [ebp - 0x220a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x13
xor eax, eax
cmp dword [ebp + 0xc], edx
pop ecx
lea edi, [ebp - 0x225c]
mov dword [ebp - 0x2260], edx
rep stosd dword es:[edi], eax
jbe 0x1004756
call fcn.010064b3
cmp eax, dword [ebp + 0xc]
jb 0x1004756
xor eax, eax
jmp 0x100491a
push esi
call fcn.010064b3
inc eax
push eax
call fcn.01005c9c
lea eax, [ebp - 0x220c]
push ebx
push eax
mov esi, 0x1000
push esi
push eax
mov dword [ebp - 0x2260], eax
call fcn.01004334
movzx ecx, word [ebx + 0x402]
push ecx
mov edi, 0x10016bc
push edi
push eax
mov dword [ebp - 0x225c], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
movzx ecx, word [ebx + 0x406]
push ecx
push edi
push eax
mov dword [ebp - 0x2258], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
movzx ecx, word [ebx + 0x400]
push ecx
push 0x10016b4
push eax
mov dword [ebp - 0x2254], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
movzx ecx, word [ebx + 0x408]
push ecx
push edi
push eax
mov dword [ebp - 0x2250], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
movzx ecx, word [ebx + 0x40a]
push ecx
push edi
push eax
mov dword [ebp - 0x224c], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
movzx ecx, word [ebx + 0x40c]
push ecx
push edi
push eax
mov dword [ebp - 0x2248], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
movzx ecx, word [ebx + 0x40e]
push ecx
push 0x10016a8
push eax
mov dword [ebp - 0x2244], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
push dword [ebx + 0x410]
mov dword [ebp - 0x2240], eax
push 0x100169c
push eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
push dword [ebx + 0x414]
mov dword [ebp - 0x223c], eax
push 0x1001694
push eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004378
add ebx, 0x200
push ebx
push eax
mov dword [ebp - 0x2238], eax
push esi
lea eax, [ebp - 0x220c]
push eax
call fcn.01004334
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.01007950
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
jne 0x10048d9
xor eax, eax
jmp 0x1004919
lea eax, [ebp - 0x2210]
push eax
call fcn.01004b2d
mov ebx, eax
push ebx
lea eax, [ebp - 0x2260]
push eax
push dword [ebp - 0x2210]
push 0xb
push edi
push 0x40001001
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push ebx
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01007b1d
leave
ret 8
Function at 0x10049b6
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.01007db0
mov eax, dword [0x100900c]
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
xor esi, esi
mov word [ebp - 0x2004], si
mov ecx, 0x7ff
lea edi, [ebp - 0x2002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x2008], eax
lea eax, [ebp - 0x2008]
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
mov eax, 0x800
push eax
push dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp eax, esi
mov dword [ebp - 0x200c], eax
mov dword [ebp - 0x2008], esi
je 0x1004a5b
cmp dword [0x1009718], esi
jne 0x1004a3d
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0100492d
jmp 0x1004a5b
push esi
lea ecx, [ebp - 0x200c]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x1009710]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01007b1d
leave
ret

Function at 0x1004a6c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.01007db0
mov eax, dword [0x100900c]
and word [ebp - 0x2004], 0
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, 0x7ff
lea edi, [ebp - 0x2002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call dword [sym.imp.msvcrt.dll__vsnwprintf]
and word [ebp - 6], 0
add esp, 0x10
test eax, eax
jl 0x1004ac8
cmp eax, esi
jne 0x1004acd
mov eax, 0xfff
cmp dword [0x1009718], 0
pop edi
mov dword [ebp - 0x2008], eax
pop esi
jne 0x1004aed
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0100492d
jmp 0x1004b0c
push 0
lea ecx, [ebp - 0x2008]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x1009710]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
call fcn.01007b1d
leave
ret

Function at 0x1004b2d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 1
xor edi, edi
push edi
push edi
push dword [0x1009710]
call esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
sub eax, dword [0x1009714]
push 2
push eax
mov dword [ebx], edi
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 8], eax
jne 0x1004b72
xor eax, eax
jmp 0x1004bc2
push edi
push edi
push dword [0x1009714]
push dword [0x1009710]
call esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push dword [0x1009710]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1004bad
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
push edi
push edi
push dword [ebp - 8]
push dword [0x1009710]
call esi
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1004c00
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
push ebx
xor ecx, ecx
cmp dword [ebp + 0xc], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
setne cl
push eax
mov ebx, 0x80
push ebx
mov dword [ebp - 4], 0xa
mov edi, 0xc0000000
lea ecx, [ecx + ecx + 2]
push ecx
mov dword [ebp - 8], ecx
push eax
jmp 0x1004cb8
cmp dword [ebp + 0x10], 0
je 0x1004c97
push 0xd3
call fcn.010078fd
push eax
call fcn.01004166
mov dword [esp], 0x104
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wgetcwd]
pop ecx
pop ecx
push 0x104
push dword [ebp + 8]
push 0
call fcn.0100214e
test eax, eax
jne 0x1004c8d
push 0xd2
call fcn.010078fd
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004024
pop ecx
pop ecx
push dword [ebp + 8]
call fcn.01004bce
jmp 0x1004cb0
mov eax, dword [ebp - 4]
dec dword [ebp - 4]
test eax, eax
je 0x1004d8a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
push dword [ebp - 8]
push 0
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [0x1009710], eax
je 0x1004c39
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1004d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004d31
push edi
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp + 8]
push eax
push dword [0x1009710]
mov dword [ebp + 8], edi
mov dword [0x1009718], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d23
mov ax, word [ebp + 8]
cmp ax, word [0x1009004]
jne 0x1004d23
mov dword [0x1009718], 1
push 2
push edi
push edi
push dword [0x1009710]
call ebx
jmp 0x1004d72
mov eax, dword [0x1009710]
push edi
lea ecx, [ebp - 0xc]
push ecx
push 2
push 0x1009004
push eax
mov dword [0x1009718], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, 0x10012ec
push esi
call fcn.01004a6c
mov dword [esp], 0x40001026
call fcn.010049b6
push esi
call fcn.01004a6c
pop ecx
pop ecx
push 1
push edi
push edi
push dword [0x1009710]
call ebx
pop edi
pop esi
mov dword [0x1009714], eax
pop ebx
leave
ret 0xc
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1005152
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.01007db0
mov eax, dword [0x100900c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x200c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2010], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
push 2
mov esi, eax
xor al, al
mov byte [ebp - 0x2006], bl
mov byte [ebp - 0x2005], bl
pop edi
mov cx, word [esi]
add esi, edi
cmp cx, 0x20
je 0x10051bf
cmp cx, 9
je 0x10051af
cmp cx, bx
jne 0x1005199
cmp cx, 0x20
je 0x10051bf
cmp cx, 9
jne 0x100537f
mov cx, word [esi]
add esi, edi
jmp 0x10051af
mov cx, word [esi]
add esi, edi
movzx ecx, cx
cmp ecx, 0x50
jg 0x1005275
je 0x1005297
sub ecx, 0x3f
je 0x1005259
sub ecx, 6
je 0x100530e
sub ecx, edi
je 0x1005307
sub ecx, edi
jne 0x1005389
push ebx
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x400
push 0x40001036
push ebx
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_tolower]
sub eax, 0x71
neg eax
sbb eax, eax
pop ecx
inc eax
push eax
call fcn.010064e4
push 0x10040
push 0x10016f8
lea eax, [ebp - 0x2004]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov cx, word [esi]
add esi, edi
jmp 0x1005355
push ebx
push 0x1004d98
push ebx
push 0x1fe
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x100524f
sub ecx, 0x65
je 0x100530e
sub ecx, edi
je 0x1005307
sub ecx, edi
je 0x10051fb
sub ecx, 7
jne 0x1005389
mov cx, word [esi]
add esi, edi
cmp cx, 0x20
je 0x1005297
cmp cx, 9
je 0x1005297
cmp cx, 0x2d
jne 0x10052f8
mov cx, word [esi]
add esi, edi
cmp cx, 0x31
jne 0x10052fe
cmp byte [ebp - 0x2005], bl
jne 0x10052ca
mov eax, dword [ebp - 0x200c]
or dword [eax], 0xffffffff
mov cx, word [esi]
add esi, edi
jmp 0x10052fe
cmp cx, 0x39
ja 0x10052fe
cmp byte [ebp - 0x2005], bl
jne 0x10052f3
mov edx, dword [ebp - 0x200c]
mov eax, dword [edx]
movzx ecx, cx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
mov dword [edx], eax
mov cx, word [esi]
add esi, edi
cmp cx, 0x30
jae 0x10052d1
mov byte [ebp - 0x2005], 1
jmp 0x1005355
mov cx, word [esi]
add esi, edi
jmp 0x1005357
mov cx, word [esi]
add esi, edi
cmp cx, 0x20
je 0x100530e
cmp cx, 9
je 0x100530e
jmp 0x1005348
cmp cx, 0x39
ja 0x100534e
cmp byte [ebp - 0x2006], bl
jne 0x1005343
mov edx, dword [ebp - 0x2010]
mov eax, dword [edx]
movzx ecx, cx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
mov dword [edx], eax
mov cx, word [esi]
add esi, edi
cmp cx, 0x30
jae 0x1005321
mov byte [ebp - 0x2006], 1
mov al, 1
cmp cx, 0x20
je 0x1005378
cmp cx, 9
je 0x100536c
cmp cx, bx
jne 0x10051cb
cmp cx, 0x20
je 0x1005378
cmp cx, 9
jne 0x100537f
mov cx, word [esi]
add esi, edi
jmp 0x100536c
cmp cx, 0x2d
je 0x10051c6
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b1d
leave
ret 8
Function at 0x100539d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push 1
push 0x678
call dword [sym.imp.msvcrt.dll_calloc]
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
mov dword [0x100971c], eax
je 0x1005564
push edi
lea ecx, [eax + 0x650]
push ecx
add eax, 0x64c
push eax
call fcn.01005152
mov eax, dword [0x100971c]
add eax, 4
push eax
call fcn.0100643c
mov eax, dword [0x100971c]
cmp dword [eax + 0x628], esi
je 0x100547a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push 0x1fd
mov edi, 0x1004e4c
push ebx
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 0x1e
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x1001710
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
push edi
push esi
push 0x1f5
push ebx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ecx, dword [0x100971c]
mov dword [ecx], eax
mov eax, dword [0x100971c]
cmp dword [eax], esi
pop ebx
je 0x1005563
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0x1003d6d
push 0x3e80
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1009720], eax
je 0x1005563
mov eax, dword [0x100971c]
cmp dword [eax + 0x62c], esi
je 0x10054f2
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
je 0x10054e4
mov eax, dword [0x100971c]
add eax, 0x20c
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x10054e4
mov eax, dword [0x100971c]
push 0x20000
push esi
add eax, 0x20c
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
jmp 0x10054f2
mov edi, dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
call edi
push 0x10
call edi
mov eax, dword [0x100971c]
cmp dword [eax + 0x628], esi
je 0x1005549
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x100553a
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x100971c]
push dword [eax]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x100553a
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call edi
test eax, eax
jne 0x1005511
jmp 0x1005557
push 0xffffffffffffffff
push dword [0x1009720]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x1009720]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x1005a3f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc

Function at 0x1005a6f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1005ab6
cmp eax, 2
jne 0x1005ab6
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005a1b
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x1005ac2
Capabilities:
Create directory
Get common file path
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1005af0
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 0xe4
pop ecx
jbe 0x1005af8
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1001804
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005b24
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x1005b24
call esi
pop esi
pop ebp
ret 4

Function at 0x1005b2e
Capabilities:
Create directory
Get common file path
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x801c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1005b5d
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 0xdc
pop ecx
jbe 0x1005b65
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x1001804
push edi
call esi
pop ecx
pop ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005b92
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x1005b92
call ebx
push 0x1001830
push edi
call esi
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1005cce
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1005d34
mov esi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x10019d8
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005d15
push dword [ebp + 0x10]
call fcn.01005ac2
jmp 0x1005db4
push 0x10019bc
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005db4
push dword [ebp + 0x10]
call fcn.01005b2e
jmp 0x1005db4
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x10019d8
push ebx
call edi
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
jne 0x1005d83
push 0x10019a0
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
je 0x1005d6f
push 0x100198c
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005d83
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call fcn.01005ac2
jmp 0x1005db3
push 0x10019bc
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1005db3
push 0x1001968
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1005db3
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call fcn.01005b2e
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1005dbf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x100900c]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
push 4
mov dword [ebp - 4], eax
pop eax
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x808]
push eax
xor ebx, ebx
push 1
push ebx
push 0x1001b08
mov edi, 0x80000002
push edi
mov dword [ebp - 0x808], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x814], ebx
call esi
test eax, eax
jne 0x1005f97
lea eax, [ebp - 0x80c]
push eax
push 1
push ebx
push 0x1001ab0
push edi
call esi
cmp dword [ebp - 0x80c], ebx
je 0x1005e5e
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push 0x1001a94
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x800
push esi
lea eax, [ebp - 0x804]
push eax
push 0x1001a6c
push dword [ebp - 0x808]
call fcn.01005cce
lea eax, [ebp - 0x804]
push eax
push 0x40001031
call fcn.010049b6
cmp dword [ebp - 0x80c], ebx
pop ecx
pop ecx
je 0x1005eda
cmp dword [ebp - 0x810], 4
jne 0x1005eda
mov ax, word [ebp - 0x814]
shr ax, 8
cmp al, bl
je 0x1005eda
movzx eax, al
push eax
lea eax, [ebp - 0x804]
push 0x1001a64
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x804]
push eax
push 0x40001043
call fcn.010049b6
add esp, 0x14
jmp 0x1005f00
lea eax, [ebp - 0x804]
push 0x1001a58
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x804]
push eax
push 0x40001043
call fcn.010049b6
add esp, 0x10
push esi
lea eax, [ebp - 0x804]
push eax
push 0x1001a40
push dword [ebp - 0x808]
call fcn.01005cce
lea eax, [ebp - 0x804]
push eax
push 0x40001032
call fcn.010049b6
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x804]
push eax
push 0x1001a10
push dword [ebp - 0x808]
call fcn.01005cce
lea eax, [ebp - 0x804]
push eax
push 0x40001033
call fcn.010049b6
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x804]
push eax
push 0x10019f0
push dword [ebp - 0x808]
call fcn.01005cce
lea eax, [ebp - 0x804]
push eax
push 0x40001034
call fcn.010049b6
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
push dword [ebp - 0x808]
call esi
push dword [ebp - 0x80c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b1d
leave
ret