joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403489
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x4014ac], eax
je 0x4034ab
cmp dword [0x4014ac], ebx
jne 0x403544
push esi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x4014ac
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x4014ac], esi
test esi, esi
jne 0x40351a
mov dword [0x4014ac], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov esi, 0x4014ac
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x4014ac]
not eax
mov dword [0x407248], eax
pop esi
pop ebx
leave
ret

Function at 0x403547
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4014ac]
jne 0x4039b6
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4073f8], eax
mov dword [0x4073f4], ecx
mov dword [0x4073f0], edx
mov dword [0x4073ec], ebx
mov dword [0x4073e8], esi
mov dword [0x4073e4], edi
mov word [0x407410], ss
mov word [0x407404], cs
mov word [0x4073e0], ds
mov word [0x4073dc], es
mov word [0x4073d8], fs
mov word [0x4073d4], gs
pushfd
pop dword [0x407408]
mov eax, dword [ebp]
mov dword [0x4073fc], eax
mov eax, dword [ebp + 4]
mov dword [0x407400], eax
lea eax, [ebp + 8]
mov dword [0x40740c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x407348], 0x10001
mov eax, dword [0x407400]
mov dword [0x4072fc], eax
mov dword [0x4072f0], 0xc0000409
mov dword [0x4072f4], 1
mov eax, dword [0x4014ac]
mov dword [ebp - 0x328], eax
mov eax, dword [0x407248]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x407340], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x4014b8
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x407340], 0
jne 0x403aa2
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x403832
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x405338
call fcn.00403d57
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp dword [0x407680], ebx
jne 0x4035cd
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x407674
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x403607
cmp eax, esi
jne 0x4035fa
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40360a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4035e1
xor esi, esi
inc esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x40361d
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x403658
mov eax, dword [0x407670]
test eax, eax
jne 0x403652
mov dword [0x407670], esi
push 0x40118c
push 0x40117c
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x403658
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x403772
mov dword [0x4072e8], esi
mov eax, dword [0x407670]
cmp eax, esi
jne 0x40367c
push 0x401178
push 0x40116c
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x407670], 2
cmp dword [ebp - 0x24], ebx
jne 0x403689
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x407684], ebx
je 0x4036aa
push 0x407684
call fcn.00403c8f
pop ecx
test eax, eax
je 0x4036aa
push ebx
push 2
push ebx
call dword [0x407684]
mov eax, dword [sym.imp.MSVCR100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x403703
cmp al, bl
je 0x4036c3
cmp dword [ebp - 0x1c], ebx
jne 0x403703
mov al, byte [esi]
cmp al, bl
je 0x4036d3
cmp al, 0x20
ja 0x4036d3
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4036c3
test byte [ebp - 0x40], 1
je 0x4036df
movzx eax, word [ebp - 0x3c]
jmp 0x4036e2
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x4072e4], eax
cmp dword [0x4072d8], ebx
jne 0x403758
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp al, 0x22
jne 0x403712
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR100.dll__ismbblead]
pop ecx
test eax, eax
je 0x403725
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x4036b1
cmp dword [0x4072e8], ebx
jne 0x403766
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4072e4]
call fcn.00403d9c
ret
call fcn.00403489
jmp 0x40359f
Function at 0x404824
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4014ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push esi
mov word [edi], ax
push 0x2b
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404896
cmp word [ebp - 0x20c], si
je 0x404896
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x401898
push eax
call fcn.00404731
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403547
leave
ret 8

Function at 0x4048e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 0x16
pop edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
and dword [ebp - 8], esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40497b
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40497b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
ja 0x40497b
add eax, eax
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x40497b
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40497b
mov eax, dword [ebp - 8]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push dword [ebp - 8]
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esp, 0x10
mov edi, eax
cmp dword [ebp - 4], 0
je 0x40498e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
test esi, esi
je 0x40499a
push esi
call dword [sym.imp.MSVCR100.dll_free]
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret 0x14
Function at 0x4049a2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
mov eax, dword [0x4014ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x31c], 6
jne 0x404a67
cmp dword [ebp - 0x318], 0
jne 0x404a57
push esi
push edi
mov edi, 0x104
push edi
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x4018bc
push 0x4018e0
push 0x80000002
call fcn.004048e0
mov ecx, 0x40193c
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404a47
test dx, dx
je 0x404a4c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404a47
add eax, 4
add ecx, 4
test dx, dx
jne 0x404a23
jmp 0x404a4c
sbb esi, esi
sbb esi, 0xffffffff
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
jmp 0x404a70
cmp dword [ebp - 0x318], 2
jae 0x404a6d
cmp dword [ebp - 0x31c], 6
ja 0x404a6d
xor eax, eax
jmp 0x404a70
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403547
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x105c7108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105c7258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105c712e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105c711a
add dl, dl
jne 0x105c7139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105c718c
xor eax, eax
add dl, dl
jne 0x105c7146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105c722d
add dl, dl
jne 0x105c7155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105c7160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105c716b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105c7176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105c7182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105c7125
mov eax, 1
add dl, dl
jne 0x105c719a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105c71a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105c7191
sub eax, ebx
mov ebx, 1
jne 0x105c71d8
mov ecx, 1
add dl, dl
jne 0x105c71be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105c71c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105c71b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105c7125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105c71ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105c71fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105c71e6
cmp eax, 0x7d00
jae 0x105c721d
cmp eax, 0x500
jb 0x105c7218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105c7125
cmp eax, 0x7f
ja 0x105c7220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105c7125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105c724e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105c7125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402d89
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x402dbf
lea esi, [edi + 4]
test esi, esi
je 0x402dbf
call fcn.00402ceb
test al, al
je 0x402dbf
mov ecx, edi
call fcn.00402ceb
test al, al
je 0x402dbf
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x402dc1
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x405301
pop dword [ebp - 0xc]
mov eax, 0x4cea38c6
add eax, 0xb3561a3b
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3f2c9
push 0
mov eax, 0xe1f0e27
add eax, 0xf222c3ed
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x45ef0574
sub ecx, 0x45eeb643
xor edx, edx
add edx, eax
mov ebx, 0x436000
add ebx, dword [ebp - 0xc]
mov edi, 0x6902e7d8
xor dword [ebp - 8], 0xfd300c7e
mov esi, dword [ebx]
add dword [ebp - 8], ebx
xor esi, edi
xor dword [ebp - 8], ebx
mov dword [edx], esi
xor dword [ebp - 8], 0x6b026c86
add edx, 4
add ebx, 4
loop 0x405356
add eax, 0x77f05f0b
add eax, 0x8810d08c
xor ebx, ebx
add ebx, eax
add eax, 0x77a7d9fe
add eax, 0x88582607
mov ecx, 0xcd17e735
sub ecx, 0xccd7e735
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x40612f
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x4061b0
mov byte [esi + 8], 1
call main
cmp dword [esi + 0x10], 0
je 0x4061b0
test al, al
je 0x40614f
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.00406749
test al, al
jne 0x406176
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406e12
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call main
cmp dword [esi + 0x18], 0
jne 0x40619d
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.00406e12
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x4061b0
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
pop esi
ret

Function at 0x406749
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406756
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x40678f
cmp eax, 0x80
je 0x40678f
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406e12
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406752
mov al, 1
pop esi
ret
Function at 0x407427
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x407496
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x407472
push ebx
push edi
push eax
call fcn.0040b3a0
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x40748d
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xbd174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xbd17a6
cmp eax, 0xffffffff
je 0xbd17a6
cmp dword [ebp + 8], ebx
je 0xbd17a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xbdf302
cmp esi, dword [ebp - 4]
jne 0xbdf31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xbd179e

Function at 0xbd227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xbe621c
call fcn.00bd1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xbeb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00bd2097
test eax, eax
jne 0xbd23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xbeb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00bd23dc
test eax, eax
jne 0xbd23c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00bd13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xbd23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xbeb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00bd23dc
test eax, eax
jne 0xbd23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xbd23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00bd13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xbd23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xbd23b2
cmp dword [ebp + 8], ebx
je 0xbdea08
push dword [0xbeb460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00bd13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xbd23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00bd21cb
push dword [0xbeb460]
push edi
push dword [ebp - 0x18]
call fcn.00bd2436
push dword [ebp - 0x14]
call fcn.00bd13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00bd13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00bd1f10
mov eax, dword [ebp - 0x18]
call fcn.00bd1390
ret 4
Function at 0xbd23dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0xbd242c
cmp dword [ebp - 4], 2
ja 0xbde965
mov ecx, dword [edi]
test cl, 1
jne 0xbd242c
cmp esi, ebx
je 0xbd2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0xbd242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0xbd2425

Function at 0xbd24ed
Capabilities:
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0xbe6b05
call fcn.00bd1350
mov esi, ecx
mov eax, dword [esi + 0x44]
xor edi, edi
mov ebx, 0x8007000e
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0xbd2519
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x44], edi
cmp dword [ebp + 8], edi
je 0xbd265b
cmp dword [ebp + 0xc], edi
je 0xbd265b
push 1
call fcn.00bd227c
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0xbd264a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 4], edi
call esi
push dword [ebp + 8]
mov edi, eax
call esi
lea eax, [eax + edi + 1]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x20], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00bd13e0
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0xbd259b
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00bd21cb
mov ebx, eax
test ebx, ebx
jl 0xbd259b
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00bd2436
mov ebx, eax
test ebx, ebx
jl 0xbd259b
xor ebx, ebx
inc ebx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
jl 0xbd2632
push 2
pop ebx
push dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
call esi
push dword [ebp + 0xc]
mov edi, eax
call esi
lea esi, [eax + edi + 1]
xor ecx, ecx
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00bd13e0
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0xbd2654
push dword [ebp - 0x1c]
inc edi
push edi
push eax
call fcn.00bd21cb
mov ebx, eax
test ebx, ebx
jl 0xbd2623
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x14]
call fcn.00bd2436
mov ebx, eax
test ebx, ebx
jl 0xbd2623
xor ebx, ebx
inc ebx
test ebx, ebx
jl 0xbd2623
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xbdf3a2
xor ebx, ebx
cmp dword [ebp - 0x14], 0
je 0xbd2632
push dword [ebp - 0x14]
call fcn.00bd13c0
pop ecx
cmp dword [ebp - 0x18], 0
je 0xbd2641
push dword [ebp - 0x18]
call fcn.00bd13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00bd13c0
pop ecx
mov eax, ebx
call fcn.00bd1390
ret 8
mov ebx, 0x8007000e
jmp 0xbd25fe
mov ebx, 0x80070057
jmp 0xbd264a
Function at 0xbd3a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0xbd3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0xbd3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xbd3ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0xbde30e
mov eax, dword [ebp - 8]
leave
ret