joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100374b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x778
and word [ebp - 0x46c], 0
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x105
lea edi, [ebp - 0x46a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 0x10]
push 0
push 0x104
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x674]
mov ecx, dword [eax]
lea edx, [ebp - 0x570]
push edx
push eax
call dword [ecx + 0x7c]
test eax, eax
jge 0x10037bb
mov esi, 0x1001668
lea edi, [ebp - 0x570]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0xc]
push 0x100
lea eax, [ebp - 0x46c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x570]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10037f2
lea eax, [ebp - 0x46c]
push 0x1001654
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0x40001003
call fcn.010042d3
push dword [ebx + 0x64c]
mov esi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x778]
push 0x1001368
push eax
call esi
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0x40001004
call fcn.010042d3
add esp, 0x1c
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x6c]
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
movzx eax, word [ebp - 0x5e]
push eax
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x62]
push eax
movzx eax, word [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push 0x100162c
push eax
call esi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x40001005
call fcn.010042d3
push dword [edi]
lea eax, [ebp - 0x778]
push 0x1001620
push eax
call esi
lea eax, [ebp - 0x778]
push eax
push 0x40001006
call fcn.010042d3
add esp, 0x38
push dword [edi]
call fcn.01002707
push eax
push 0x100160c
call fcn.0100435f
pop ecx
pop ecx
push ebx
call fcn.010029ab
push ebx
call fcn.01002b50
push ebx
call fcn.01002c2e
lea eax, [ebp - 0x46c]
push eax
push ebx
call fcn.0100339c
xor esi, esi
cmp dword [ebx + 0x61c], esi
je 0x10038e2
push ebx
call fcn.0100346b
push dword [ebx + 0x644]
lea eax, [ebp - 0x46c]
push eax
call fcn.010040cc
mov eax, dword [edi]
mov dword [ebx + 0x65c], eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x10036cd
push 0x3e80
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x7530
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003b61
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5004
call fcn.01007030
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
mov word [ebp - 0x1004], si
mov ecx, 0x3ff
lea edi, [ebp - 0x1002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x5004], si
mov ecx, 0xfff
lea edi, [ebp - 0x5002]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push 0x800
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
push esi
push esi
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 8]
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x1004]
push eax
push pe_nt_image_headers32
call fcn.01006d4e
push eax
lea eax, [ebp - 0x5004]
push 0x2000
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
cmp edi, esi
je 0x1003c43
push dword [ebp - 4]
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
call edi
mov ebx, eax
lea eax, [ebp - 0x5004]
push eax
call edi
add ebx, eax
lea eax, [ebx + ebx + 2]
cmp eax, 0x4000
pop ecx
pop ecx
jae 0x1003c43
push dword [ebp - 4]
lea eax, [ebp - 0x5004]
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0x12000
push 0xca
call fcn.01006d4e
push eax
lea eax, [ebp - 0x5004]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [ebp - 4], esi
je 0x1003c6f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1003ed9
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push 0x104
lea eax, [ebp - 0x21c]
mov esi, 0x2000
push eax
mov dword [ebp - 0x14], esi
call fcn.01006d72
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1003f24
push 2
push esi
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x1003f2b
xor eax, eax
jmp 0x10040c7
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
push dword [ebp - 8]
jmp 0x1003f8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10040af
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
mov ebx, dword [ebp - 0x10]
add ebx, 0x400
push 2
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.msvcrt.dll_calloc]
add esp, 0xc
test eax, eax
mov dword [ebp - 8], eax
je 0x10040ab
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push 0
push 5
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x1003f46
cmp dword [ebp - 4], 0
je 0x10040af
push 0x208
lea eax, [ebp - 0x21c]
push eax
call fcn.01006d72
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x21c]
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 0x1004088
add edi, dword [edi + 0x24]
push 0x100
push edi
lea eax, [esi + 4]
push eax
call fcn.01003e41
push eax
lea eax, [esi + 0x406]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x40a]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x404]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x40c]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x40e]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x410]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x412]
push eax
call fcn.01003eb5
push eax
lea eax, [esi + 0x414]
push eax
call fcn.01003e67
push eax
lea eax, [esi + 0x418]
push eax
call fcn.01003e8e
push 0x100
push eax
lea eax, [esi + 0x204]
push eax
call fcn.01003e41
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 + 0xc]
test eax, eax
je 0x10040af
mov eax, dword [ebx]
cmp dword [ebp - 4], eax
ja 0x1004095
and dword [ebp - 4], 0
jmp 0x1004098
sub dword [ebp - 4], eax
mov edi, dword [ebx]
add edi, ebx
cmp dword [ebp - 4], 0
ja 0x1003fb6
jmp 0x1003f30
xor eax, eax
jmp 0x10040c5
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x10040cc
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.01007030
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x225c], bx
mov ecx, 0x7ff
lea edi, [ebp - 0x225a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x13
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
rep stosd dword es:[edi], eax
jbe 0x1004118
call fcn.01005b4a
cmp eax, dword [ebp + 0xc]
jb 0x1004118
xor eax, eax
jmp 0x1004262
push esi
call fcn.01005b4a
inc eax
push eax
call fcn.01005481
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x225c]
mov dword [ebp - 0x54], eax
push esi
lea eax, [ebp - 0x225c]
push eax
call fcn.01003df3
movzx ecx, word [esi + 0x402]
push ecx
mov edi, 0x10016bc
push edi
push eax
mov dword [ebp - 0x50], eax
call fcn.01003e18
movzx ecx, word [esi + 0x406]
push ecx
push edi
push eax
mov dword [ebp - 0x4c], eax
call fcn.01003e18
movzx ecx, word [esi + 0x400]
push ecx
push 0x10016b4
push eax
mov dword [ebp - 0x48], eax
call fcn.01003e18
movzx ecx, word [esi + 0x408]
push ecx
push edi
push eax
mov dword [ebp - 0x44], eax
call fcn.01003e18
movzx ecx, word [esi + 0x40a]
push ecx
push edi
push eax
mov dword [ebp - 0x40], eax
call fcn.01003e18
movzx ecx, word [esi + 0x40c]
push ecx
push edi
push eax
mov dword [ebp - 0x3c], eax
call fcn.01003e18
movzx ecx, word [esi + 0x40e]
push ecx
push 0x10016a8
push eax
mov dword [ebp - 0x38], eax
call fcn.01003e18
push dword [esi + 0x410]
mov dword [ebp - 0x34], eax
push 0x100169c
push eax
call fcn.01003e18
push dword [esi + 0x414]
mov dword [ebp - 0x30], eax
push 0x1001694
push eax
call fcn.01003e18
add esi, 0x200
push esi
push eax
mov dword [ebp - 0x2c], eax
call fcn.01003df3
push 0x104
lea eax, [ebp - 0x25c]
push eax
call fcn.01006d72
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, ebx
jne 0x100422a
xor eax, eax
jmp 0x1004261
lea eax, [ebp - 4]
push eax
call fcn.01004405
mov edi, eax
push edi
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
push 0xb
push ebx
push 0x40001001
push ebx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push edi
call dword [sym.imp.msvcrt.dll_free]
xor eax, eax
pop ecx
inc eax
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x10042d3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.01007030
push esi
push edi
xor eax, eax
xor esi, esi
mov word [ebp - 0x2008], si
mov ecx, 0x7ff
lea edi, [ebp - 0x2006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x2008]
push eax
mov eax, 0x800
push eax
push dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
cmp dword [0x100971c], esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
jne 0x1004340
push eax
lea eax, [ebp - 0x2008]
push eax
call fcn.01004268
jmp 0x100435b
push esi
lea ecx, [ebp - 8]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x2008]
push eax
push dword [0x1009710]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
leave
ret

Function at 0x100435f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.01007030
and word [ebp - 0x2004], 0
push edi
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]
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
cmp dword [0x100971c], 0
mov dword [ebp - 4], eax
pop edi
jne 0x10043be
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.01004268
leave
ret
push 0
lea ecx, [ebp - 4]
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [0x1009710]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x1004405
Capabilities:
Read file on windows

Disassembly:
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 [0x1009718]
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 0x1004448
xor eax, eax
jmp 0x1004498
push edi
push edi
push dword [0x1009718]
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 0x1004483
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 0x1004ab1
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x2000
call fcn.01007030
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 2
mov esi, eax
xor al, al
pop edi
mov cx, word [esi]
add esi, edi
cmp cx, 0x20
je 0x1004aee
cmp cx, 9
je 0x1004ae2
test cx, cx
jne 0x1004acc
cmp cx, 0x20
je 0x1004aee
cmp cx, 9
jne 0x1004af5
mov cx, word [esi]
add esi, edi
jmp 0x1004ae2
mov ebx, dword [esp + 0x2018]
mov ebp, dword [esp + 0x2014]
cmp cx, 0x2d
je 0x1004b16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2000
ret 8
mov cx, word [esi]
add esi, edi
movzx ecx, cx
cmp ecx, 0x50
jg 0x1004bc2
je 0x1004bdc
sub ecx, 0x3f
je 0x1004ba4
sub ecx, 6
je 0x1004c30
sub ecx, edi
je 0x1004c29
sub ecx, edi
jne 0x1004b09
push 0
push 0x1000
lea eax, [esp + 0x18]
push eax
push 0x400
push 0x40001036
push 0
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.01005b74
push 0x10040
push 0x1001710
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov cx, word [esi]
add esi, edi
jmp 0x1004c64
xor eax, eax
push eax
push 0x1004723
push eax
push 0x1fe
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x1004b9a
sub ecx, 0x65
je 0x1004c30
sub ecx, edi
je 0x1004c29
sub ecx, edi
je 0x1004b47
sub ecx, 7
jne 0x1004b09
mov cx, word [esi]
add esi, edi
cmp cx, 0x20
je 0x1004bdc
cmp cx, 9
je 0x1004bdc
cmp cx, 0x2d
jne 0x1004c21
mov cx, word [esi]
add esi, edi
cmp cx, 0x31
jne 0x1004c64
or dword [ebp], 0xffffffff
jmp 0x1004b9a
cmp cx, 0x39
ja 0x1004c64
mov eax, dword [ebp]
movzx ecx, cx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
xor ecx, ecx
mov dword [ebp], eax
mov cx, word [esi]
add esi, edi
cmp cx, 0x30
jae 0x1004c04
jmp 0x1004c64
mov cx, word [esi]
add esi, edi
jmp 0x1004c66
mov cx, word [esi]
add esi, edi
cmp cx, 0x20
je 0x1004c30
cmp cx, 9
je 0x1004c30
jmp 0x1004c5e
cmp cx, 0x39
ja 0x1004c64
mov eax, dword [ebx]
movzx ecx, cx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
xor ecx, ecx
mov dword [ebx], eax
mov cx, word [esi]
add esi, edi
cmp cx, 0x30
jae 0x1004c43
mov al, 1
cmp cx, 0x20
je 0x1004c8b
cmp cx, 9
je 0x1004c7b
test cx, cx
jne 0x1004b1b
cmp cx, 0x20
je 0x1004c8b
cmp cx, 9
jne 0x1004b03
mov cx, word [esi]
add esi, edi
jmp 0x1004c7b
Function at 0x1004c92
Capabilities:
Create thread

Disassembly:
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 [0x1009720], eax
je 0x1004e57
push edi
lea ecx, [eax + 0x650]
push ecx
add eax, 0x64c
push eax
call fcn.01004ab1
mov eax, dword [0x1009720]
add eax, 4
push eax
call fcn.01005aef
mov eax, dword [0x1009720]
cmp dword [eax + 0x628], esi
je 0x1004d6d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
push 0x1fd
mov edi, 0x10047b8
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], 0x1001728
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 [0x1009720]
mov dword [ecx], eax
mov eax, dword [0x1009720]
cmp dword [eax], esi
pop ebx
je 0x1004e56
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0x100392f
push 0x3e80
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1009724], eax
je 0x1004e56
mov eax, dword [0x1009720]
cmp dword [eax + 0x62c], esi
je 0x1004de5
call dword [sym.imp.WINMM.dll_waveOutGetNumDevs]
test eax, eax
je 0x1004dd7
mov eax, dword [0x1009720]
add eax, 0x20c
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1004dd7
mov eax, dword [0x1009720]
push 0x20000
push esi
add eax, 0x20c
push eax
call dword [sym.imp.WINMM.dll_PlaySoundW]
jmp 0x1004de5
mov edi, dword [sym.imp.USER32.dll_MessageBeep]
push 0x10
call edi
push 0x10
call edi
mov eax, dword [0x1009720]
cmp dword [eax + 0x628], esi
je 0x1004e3c
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1004e2d
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x1009720]
push dword [eax]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1004e2d
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 0x1004e04
jmp 0x1004e4a
push 0xffffffffffffffff
push dword [0x1009724]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x1009724]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x1005241
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 2
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x1005267
Capabilities:
Query or enumerate registry value

Disassembly:
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 0x10052ac
cmp eax, 2
jne 0x10052ac
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005225
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x10052b3
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push dword [ebp + 8]
xor esi, esi
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x100181c
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1005329
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x1005329
call esi
pop esi
leave
ret 4

Function at 0x100532e
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
xor esi, esi
push esi
push esi
push 0x8023
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x100181c
push ebx
call edi
pop ecx
pop ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10053a5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x10053a5
call esi
push 0x1001848
push ebx
call edi
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10054a9
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
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 0x100550d
mov esi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x10019f0
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x10054ee
push dword [ebp + 0x10]
call fcn.010052b3
jmp 0x100558d
push 0x10019d4
push ebx
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100558d
push dword [ebp + 0x10]
call fcn.0100532e
jmp 0x100558d
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x10019f0
push ebx
call edi
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
jne 0x100555c
push 0x10019b8
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
je 0x1005548
push 0x10019a4
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100555c
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call fcn.010052b3
jmp 0x100558c
push 0x10019d4
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x100558c
push 0x1001980
push dword [ebp + 0x10]
call esi
test eax, eax
pop ecx
pop ecx
jne 0x100558c
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp + 0x10]
call fcn.0100532e
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1005593
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 1
push ebx
push 0x1001b20
mov edi, 0x80000002
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x1005722
lea eax, [ebp - 8]
push eax
push 1
push ebx
push 0x1001ac8
push edi
call esi
cmp dword [ebp - 8], ebx
je 0x1005604
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x1001aac
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x800
push esi
lea eax, [ebp - 0x814]
push eax
push 0x1001a84
push dword [ebp - 4]
call fcn.010054a9
lea eax, [ebp - 0x814]
push eax
push 0x40001031
call fcn.010042d3
cmp dword [ebp - 8], ebx
pop ecx
pop ecx
je 0x1005674
cmp dword [ebp - 0xc], 4
jne 0x1005674
mov ax, word [ebp - 0x10]
shr ax, 8
cmp al, bl
je 0x1005674
movzx eax, al
push eax
lea eax, [ebp - 0x814]
push 0x1001a7c
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x814]
push eax
push 0x40001043
call fcn.010042d3
add esp, 0x14
jmp 0x100569a
lea eax, [ebp - 0x814]
push 0x1001a70
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x814]
push eax
push 0x40001043
call fcn.010042d3
add esp, 0x10
push esi
lea eax, [ebp - 0x814]
push eax
push 0x1001a58
push dword [ebp - 4]
call fcn.010054a9
lea eax, [ebp - 0x814]
push eax
push 0x40001032
call fcn.010042d3
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x814]
push eax
push 0x1001a28
push dword [ebp - 4]
call fcn.010054a9
lea eax, [ebp - 0x814]
push eax
push 0x40001033
call fcn.010042d3
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x814]
push eax
push 0x1001a08
push dword [ebp - 4]
call fcn.010054a9
lea eax, [ebp - 0x814]
push eax
push 0x40001034
call fcn.010042d3
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call esi
pop edi
pop esi
pop ebx
leave
ret