joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10093a5
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test byte [esi + 0xc], 2
push edi
mov edi, ecx
jne 0x10094bf
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0x10]
cmp eax, 0xc8
jb 0x100944b
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi]
sub ecx, 0
je 0x10093f8
dec ecx
je 0x10093ef
dec ecx
jne 0x100944b
push 4
pop eax
jmp 0x1009402
xor ecx, ecx
test eax, eax
sete cl
jmp 0x10093ff
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov eax, ecx
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1009419
and dword [esi + 0xc], 0xfffffffe
jmp 0x100944b
mov eax, dword [esi + 8]
push dword [ebp + 0x14]
lea ecx, [eax - 5]
push dword [ebp + 0x10]
add eax, 5
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x50], ecx
lea ecx, [eax - 5]
add eax, 5
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1009450
xor eax, eax
inc eax
jmp 0x10094c1
or dword [esi + 0xc], 2
mov eax, dword [edi + 0x13cac]
cmp eax, dword [esi + 0x10]
jne 0x10094bf
mov esi, dword [esi]
test esi, esi
jne 0x1009470
cmp dword [edi + 0x13ca4], 0x78
je 0x100948f
jmp 0x10094bf
cmp esi, 1
jne 0x100947e
cmp dword [edi + 0x13ca4], 0x79
jmp 0x100946c
cmp esi, 2
jne 0x10094bf
cmp dword [edi + 0x13ca4], 0x2bc
jne 0x10094bf
push 0x7d
push 0x1001d7c
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.010067aa
add esp, 0x10
lea eax, [ebp - 0x44]
push eax
push 2
push 0x8000
add edi, 0x3ca0
push edi
call fcn.010085a5
test eax, eax
jl 0x10094c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101bc5d
leave
ret 0x10
Function at 0x100b57c
Capabilities:
Log keystrokes via application hook

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov esi, 0x80004005
cmp dword [ebx + 0x14], edi
jne 0x100b704
cmp dword [ebx + 0x18], edi
jne 0x100b704
push 0x1002248
push edi
push 1
push edi
mov dword [0x1031b90], edi
mov dword [0x1031b9c], edi
mov dword [0x1031ba0], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x1031b88], eax
cmp eax, edi
jne 0x100b5fa
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b72c
test byte [eax + 0x1c], 1
je 0x100b72c
push 0x1001eac
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
jmp 0x100b72c
mov eax, dword [ebx + 0x10]
push dword [eax + 0x3c]
mov ecx, dword [0x1031b94]
push dword [ebp + 8]
call fcn.0100a06d
mov esi, eax
cmp esi, edi
jge 0x100b63a
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b728
test byte [eax + 0x1c], 1
je 0x100b728
push 0x1001eac
push 0x1b
jmp 0x100b71d
push dword [0x1031b94]
call fcn.01005505
mov ecx, dword [0x1031b94]
push edi
push 0x1002208
call fcn.01009eb3
push dword [ebp + 8]
mov ecx, dword [0x1031b98]
call fcn.01008522
mov esi, eax
cmp esi, edi
jge 0x100b690
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b728
test byte [eax + 0x1c], 1
je 0x100b728
push 0x1001eac
push 0x1c
jmp 0x100b71d
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push edi
push edi
push 0x100b54d
push 0xd
call esi
mov dword [ebx + 0x14], eax
cmp eax, edi
jne 0x100b6d3
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b6cc
test byte [eax + 0x1c], 1
je 0x100b6cc
push 0x1001eac
push 0x1d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
mov esi, 0x80004005
jmp 0x100b72c
push edi
push edi
push 0x100b51e
push 0xe
call esi
mov dword [ebx + 0x18], eax
cmp eax, edi
jne 0x100b700
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b6cc
test byte [eax + 0x1c], 1
je 0x100b6cc
push 0x1001eac
push 0x1e
jmp 0x100b6c1
xor esi, esi
jmp 0x100b733
mov eax, dword [section..data]
cmp eax, section..data
je 0x100b72c
test byte [eax + 0x1c], 1
je 0x100b72c
push 0x1001eac
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
cmp esi, edi
jge 0x100b733
mov ecx, ebx
call fcn.0100a6db
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x100ccb2
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x34
mov dword [ebp - 0x2ac], eax
lea eax, [ebp - 0x2e8]
push 0
push eax
mov dword [ebp - 0x2b0], 0x100250c
mov dword [ebp - 0x2a8], 0x10024ec
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a0], 0x10024d4
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x294], 0x409
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x100cd4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100cd44
mov eax, 0x54f
mov esi, eax
jmp 0x100ce87
push ebx
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x100cd6a
push 8
pop esi
jmp 0x100ce72
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x100cd8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100cd87
mov eax, 0x54f
mov esi, eax
jmp 0x100ce72
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x298]
push eax
push 0x100186c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100cdb7
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x28c]
push eax
push 0x10024a0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x100cde2
lea eax, [ebp - 0x294]
mov dword [ebp - 0x28c], eax
jmp 0x100cde8
mov eax, dword [ebp - 0x28c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x100246c
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.010067aa
add esp, 0x14
xor esi, esi
push dword [ebp + esi*8 - 0x2b0]
lea eax, [ebp - 0x84]
push eax
push 0x100245c
lea eax, [ebp - 0x284]
push 0x200
push eax
call fcn.010067aa
add esp, 0x14
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x284]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100ce6a
push dword [ebp - 0x288]
push dword [ebp - 0x290]
push dword [ebp + esi*8 - 0x2ac]
call fcn.01006da1
inc esi
cmp esi, 3
jb 0x100ce0c
xor esi, esi
test ebx, ebx
je 0x100ce86
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101bc5d
leave
ret 0x10
Function at 0x100d45a
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push ecx
push 0x100257c
mov esi, 0x208
mov dword [ebp - 0x620], edx
mov edx, dword [ebp + 0x18]
lea eax, [ebp - 0x414]
push esi
push eax
mov dword [ebp - 0x624], edx
call fcn.010067aa
mov edi, eax
add esp, 0x14
test edi, edi
jge 0x100d4dc
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d620
test byte [eax + 0x1c], 1
je 0x100d620
movzx ecx, di
push ecx
push 0x10022b4
push 0x8c
jmp 0x100d570
push 0x104
lea eax, [ebp - 0x61c]
push eax
push ebx
call fcn.0100d2da
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x100d520
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d620
test byte [eax + 0x1c], 1
je 0x100d620
movzx ecx, di
push ecx
push 0x10022b4
push 0x8d
jmp 0x100d570
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
lea eax, [ebp - 0x20c]
push 0x100256c
push esi
push eax
call fcn.010067aa
mov edi, eax
add esp, 0x14
cmp edi, ebx
jge 0x100d580
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d620
test byte [eax + 0x1c], 1
je 0x100d620
movzx ecx, di
push ecx
push 0x10022b4
push 0x8e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010062be
jmp 0x100d620
push 0xb
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100d5d9
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d5c1
test byte [eax + 0x1c], 1
je 0x100d5c1
push 0x10022b4
push 0x8f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x100d5d5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x100d620
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebx
push ebx
push dword [ebp + 0x1c]
push dword [ebp - 0x624]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100d61e
mov eax, dword [section..data]
cmp eax, section..data
je 0x100d5c1
test byte [eax + 0x1c], 1
je 0x100d5c1
push 0x10022b4
push 0x90
jmp 0x100d5b6
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0x18
Function at 0x1011c5b
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xaac
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x1035930]
push edi
xor eax, eax
mov word [ebp - 0x414], ax
mov ecx, 0x115
lea edi, [ebp - 0xa70]
rep movsd dword es:[edi], dword [esi]
mov edx, 0x1035938
lea eax, [ebp - 0xa2c]
xor edi, edi
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1011cc1
cmp cx, di
je 0x1011cbd
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x1011cc1
add eax, 4
add edx, 4
cmp cx, di
jne 0x1011c9b
xor eax, eax
jmp 0x1011cc6
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x1011cd3
xor eax, eax
mov word [ebp - 0xa2c], ax
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa70]
push eax
call fcn.0100692e
cmp eax, edi
jl 0x1011e45
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1011cfd
sub eax, edx
sar eax, 1
push 0x1002cbc
mov ecx, esi
sub ecx, eax
push 0x1002cb0
push ecx
lea eax, [ebp + eax*2 - 0x20c]
push eax
call fcn.01005835
add esp, 0x10
cmp eax, edi
jl 0x1011e45
push edi
push 0x10
lea eax, [ebp - 0x61c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1011d51
mov eax, 0x80004005
jmp 0x1011e45
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1011d5a
lea ecx, [ebp - 0x61c]
push ecx
sub eax, edx
sar eax, 1
push 0x1001a84
mov ecx, esi
sub ecx, eax
push 0x1001aa8
push ecx
lea eax, [ebp + eax*2 - 0x20c]
push eax
call fcn.01005835
add esp, 0x14
cmp eax, edi
jl 0x1011e45
push esi
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1011e28
push 0x3c
pop esi
push esi
lea eax, [ebp - 0xaac]
push edi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x414]
mov dword [ebp - 0xa9c], eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xa98], eax
mov eax, dword [0x1035900]
mov dword [ebp - 0xaa4], eax
add esp, 0xc
lea eax, [ebp - 0xaac]
push eax
mov dword [ebp - 0xaac], esi
mov dword [ebp - 0xaa8], 0x440
mov dword [ebp - 0xaa0], 0x1002ca4
mov dword [ebp - 0xa90], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1011e28
mov eax, dword [ebp - 0xa74]
cmp eax, edi
je 0x1011e28
mov dword [0x1036390], eax
xor eax, eax
jmp 0x1011e45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x1011e39
mov eax, 0x54f
cmp eax, edi
jle 0x1011e45
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101bc5d
leave
ret
Function at 0x10142be
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov edi, ecx
push 0x1002d70
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101432d
mov eax, dword [section..data]
cmp eax, section..data
je 0x101442a
test byte [eax + 0x1c], 1
je 0x101442a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002d04
push 0x13
jmp 0x101441a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x20c]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1014382
push 0
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
jne 0x1014382
mov eax, dword [section..data]
cmp eax, section..data
je 0x101442a
test byte [eax + 0x1c], 1
je 0x101442a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002d04
push 0x14
jmp 0x101441a
mov eax, dword [ebp - 0x214]
add eax, 0x468
push eax
lea eax, [ebp - 0x20c]
push eax
add edi, 0x670
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x10143c8
mov eax, dword [section..data]
cmp eax, section..data
je 0x101442a
test byte [eax + 0x1c], 1
je 0x101442a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002d04
push 0x15
jmp 0x101441a
push edi
call ebx
test eax, eax
je 0x10143f1
mov eax, dword [section..data]
cmp eax, section..data
je 0x101442a
test byte [eax + 0x1c], 1
je 0x101442a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002d04
push 0x16
jmp 0x101441a
push 0
push edi
call esi
test eax, eax
jne 0x101445a
mov eax, dword [section..data]
cmp eax, section..data
je 0x101442a
test byte [eax + 0x1c], 1
je 0x101442a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1002d04
push 0x17
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010062be
mov eax, dword [ebp - 0x214]
push 0x208
add eax, 0x670
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret
mov dword [ebp - 0x210], 1
jmp 0x1014445

Function at 0x101447e
Capabilities:
Hide graphical window

Disassembly:
mov ecx, dword [ecx + 0xa8c]
jmp fcn.01010cba
Function at 0x101466e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push 0x24c
lea eax, [ebp - 0x458]
push esi
push eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], esi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
cmp ax, word [ebx]
jne 0x10146e3
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014873
test byte [eax + 0x1c], 1
je 0x1014873
push 0x1002d04
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
jmp 0x1014873
push 0x1002dd0
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x101471d
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014873
test byte [eax + 0x1c], 1
je 0x1014873
push 0x1002d04
push 0x25
jmp 0x10146d3
push edi
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101476a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014872
test byte [eax + 0x1c], 1
je 0x1014872
push 0x1002d04
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
jmp 0x1014872
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
lea eax, [ebp - 0x430]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x101477f
sub eax, edx
sar eax, 1
je 0x1014850
lea eax, [ebp - 0x430]
push 0x1002dcc
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1014850
lea eax, [ebp - 0x430]
push 0x1002dc4
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1014850
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp dword [ebp + 0xc], 0
jne 0x10147e4
push 0x1001ba0
push eax
call ebx
pop ecx
pop ecx
test eax, eax
je 0x1014850
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x460]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x1014828
mov eax, dword [section..data]
cmp eax, section..data
je 0x1014850
test byte [eax + 0x1c], 1
je 0x1014850
push 0x1002d04
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
jmp 0x1014850
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
lea eax, [ebp - 0x20c]
je 0x1014849
push 1
push eax
call fcn.0101466e
jmp 0x1014850
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x45c]
push eax
push edi
call esi
test eax, eax
jne 0x1014776
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x460]
pop edi
cmp dword [ebp + 0xc], 0
je 0x1014882
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 8
Function at 0x101573e
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x1015792
mov eax, dword [section..data]
cmp eax, section..data
je 0x101586b
test byte [eax + 0x1c], 1
je 0x101586b
push 0x1002de4
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
jmp 0x101586b
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
jle 0x1015861
push esi
mov esi, dword [sym.imp.msvcrt.dll__wcsicmp]
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ebx*4]
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10157b2
sub eax, edi
sar eax, 1
cmp eax, 2
jb 0x1015817
movzx eax, word [ecx]
cmp ax, 0x2d
je 0x10157d4
cmp ax, 0x2f
jne 0x1015832
lea edi, [ecx + 2]
push 0x1002f20
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x1015858
push 0x1002f08
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x1015858
push 0x1002ef4
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x1015858
push 0x1002edc
push edi
call esi
pop ecx
pop ecx
test eax, eax
je 0x1015858
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x10157a7
jmp 0x101585f
mov eax, dword [section..data]
cmp eax, section..data
je 0x101585f
test byte [eax + 0x1c], 1
je 0x101585f
push 0x1002de4
push 0x36
jmp 0x101584b
mov eax, dword [section..data]
cmp eax, section..data
je 0x101585f
test byte [eax + 0x1c], 1
je 0x101585f
push 0x1002de4
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010054b7
jmp 0x101585f
mov dword [ebp - 8], 1
pop edi
pop esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x1015cfc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1015d17
push 0x80004005
call fcn.0101534c
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1015d19
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10164f8
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01015c5a
mov edi, eax
cmp edi, esi
je 0x101656a
lea ecx, [ebp - 0x214]
call fcn.01015be7
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101bc5d
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1016588
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010164f8
cmp eax, esi
jne 0x10165d3
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1016572
lea ecx, [ebp - 0x214]
call fcn.01015be7
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01015b61
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01015be7
mov eax, esi
jmp 0x101655a

Function at 0x1016a60
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x1016a81
xor eax, eax
jmp 0x1016aa7
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x101644d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x1016aa4
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x1019269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x102cf80
call fcn.0101bde7
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x10192c2
call fcn.010156bf
mov esi, eax
jmp 0x10193cb
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x10192db
call fcn.010156bf
jmp 0x10193bd
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x10192d1
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x1019341
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1019327
lea ecx, [ebp - 0x418]
call fcn.010163ca
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.010162d9
mov eax, esi
call fcn.0101be52
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.01017322
mov dword [ebp - 4], 1
jmp 0x101936f
cmp dword [ebp - 0x418], esi
jne 0x101937e
mov esi, 0x8007000e
jmp 0x10193bf
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x10192d1
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.010186de
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x101932c
lea ecx, [ebp - 0x418]
call fcn.010163ca
jmp 0x101932c