joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023ac6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x107c472
call fcn.01032938
sub esp, 0x218
mov eax, dword [0x109126c]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.01021f63
cmp eax, esi
jne 0x1023b6f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1023b26
lea eax, [ebp - 0x210]
push eax
call fcn.01023ac6
cmp eax, esi
jne 0x1023b6e
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x1023b16
call fcn.01021ef0
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01021ef0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0102a8ee
leave
ret 4
Function at 0x1026e6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x1026ec1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1026eac
call esi
mov esi, eax
jmp 0x1026f87
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1026f87
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1026ee2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1026f07
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1026ef5
call esi
jmp 0x1026f7c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1026f7e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x1026f46
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01032890
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x1026f4e
xor eax, eax
jmp 0x1026f70
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.01032890
mov eax, esp
push esi
push edi
push eax
call fcn.01021d7f
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0102584c
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1027f25
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff8c
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x50]
test esi, esi
je 0x1027f4f
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x10281fa
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff74
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x98]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x68]
test esi, esi
je 0x1028227
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x102b0ce
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, dword [ebp + 8]
push edi
call ebx
mov dword [ebp + 8], eax
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, esi
jb 0x102b18b
cmp eax, 0x80
jb 0x102b10e
lea ecx, [esi + 0x80]
cmp eax, ecx
jb 0x102b18b
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x102b137
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x102b0e7
push 0x4ff
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, eax
call ebx
cmp edi, esi
jb 0x102b189
cmp edi, 0x80
jb 0x102b164
lea ecx, [esi + 0x80]
cmp edi, ecx
jb 0x102b189
cmp edi, esi
jne 0x102b189
cmp dword [ebp + 0x10], 0xffffffff
je 0x102b0e2
sub eax, dword [ebp + 8]
cmp dword [ebp + 0x10], eax
jb 0x102b182
sub dword [ebp + 0x10], eax
jmp 0x102b0e2
mov eax, 0x102
jmp 0x102b18b
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x102c314
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
mov eax, 0x107cb2a
call fcn.01032938
sub esp, 0x218
mov eax, dword [0x109126c]
push ebx
xor ebx, ebx
cmp dword [0x1097550], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ebx
jne 0x102c401
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push edi
mov edi, 0x1097554
jmp 0x102c357
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push edi
call esi
test eax, eax
jne 0x102c350
cmp dword [0x1097550], ebx
jne 0x102c3fb
push 0x1097530
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xc
call fcn.0102aa1d
pop ecx
mov dword [ebp - 0x224], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x102c39c
lea ecx, [ebp - 0x219]
push ecx
mov ecx, eax
call fcn.0103e4f0
jmp 0x102c39e
xor eax, eax
cmp eax, ebx
mov dword [0x109752c], eax
je 0x102c3f1
push 0x103
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x100393c
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x102c3e3
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [0x1097550], 1
xor ebx, ebx
jmp 0x102c3fb
mov dword [ebp - 0x220], 0x8007000e
push ebx
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x220]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0102a8ee
leave
ret
Function at 0x102c4ea
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.0102bf5e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0102ba45
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x102c53a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x102c580
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x102c580
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x102c045
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x102c5a4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x102c592
call esi
mov esi, eax
jmp 0x102c5a8
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102c5a8
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x102d9bb
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], ebx
mov dword [eax], ebx
jne 0x102d9ee
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x102d9ee
xor esi, esi
inc esi
jmp 0x102db3a
push edi
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [eax + eax + 2]
push eax
call fcn.0102aa1d
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x102db29
mov dword [ebp - 0xc], ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], ebx
jmp 0x102da1c
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x102da1a
xor edi, edi
jmp 0x102dadc
cmp di, 0x22
je 0x102da6a
cmp di, 0x27
je 0x102da6a
mov ebx, dword [ebp - 4]
jmp 0x102da5d
push edi
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x102da62
mov word [ebx], di
inc ebx
inc ebx
inc esi
inc esi
xor edi, edi
mov di, word [esi]
test di, di
jne 0x102da45
and word [ebx], 0
xor ebx, ebx
jmp 0x102daa7
mov edx, dword [ebp - 4]
inc esi
inc esi
jmp 0x102da98
cmp ax, di
je 0x102daa2
cmp byte [ebp + 0x14], 0
je 0x102da8f
cmp ax, 0x5c
jne 0x102da8f
lea ecx, [esi + 2]
cmp word [ecx], bx
je 0x102da8f
mov esi, ecx
mov ax, word [esi]
mov word [edx], ax
inc edx
inc edx
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
cmp ax, bx
jne 0x102da71
jmp 0x102daa4
inc esi
inc esi
mov word [edx], bx
mov edi, dword [ebp + 0xc]
cmp dword [edi], ebx
je 0x102dac4
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll__wcsdup]
cmp eax, ebx
pop ecx
je 0x102db29
mov ecx, dword [edi]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], eax
inc dword [ebp - 8]
jmp 0x102dacb
inc esi
inc esi
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswspace]
test eax, eax
pop ecx
jne 0x102dac9
mov di, word [esi]
cmp di, bx
jne 0x102da34
cmp dword [ebp - 0xc], ebx
jne 0x102db18
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov dword [esi], eax
shl eax, 2
push eax
call fcn.0102aa1d
cmp eax, ebx
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x102db29
xor eax, eax
cmp dword [esi], ebx
jle 0x102db18
mov edx, dword [ecx]
mov dword [edx + eax*4], ebx
inc eax
cmp eax, dword [esi]
jl 0x102db0e
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 2
jl 0x102da12
xor esi, esi
jmp 0x102db39
push dword [ebp + 0xc]
mov esi, 0x8007000e
push dword [ebp + 8]
call fcn.0102d6ac
pop edi
push dword [ebp - 4]
call fcn.0102aa0c
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x102e6c9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x109126c]
and dword [ebp - 0x218], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push eax
push 0x1c
push 0
mov dword [ebp - 0x214], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, eax
test esi, esi
jl 0x102e7da
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x102e753
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x102e73e
call esi
mov esi, eax
jmp 0x102e7da
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102e7da
lea eax, [ebp - 0x210]
push eax
call fcn.0102d36b
test edi, edi
je 0x102e7c6
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
mov edi, dword [sym.imp.msvcrt.dll_wcsncat]
mov ebx, 0x104
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x1003768
push eax
call edi
and word [ebp - 8], 0
lea eax, [ebp - 0x210]
push eax
call esi
sub ebx, eax
push ebx
push dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call edi
and word [ebp - 8], 0
add esp, 0x20
lea eax, [ebp - 0x210]
push eax
call fcn.0102d36b
pop ebx
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
call fcn.010293c1
xor esi, esi
cmp dword [ebp - 0x218], 0
je 0x102e81d
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x102e81d
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x102e81d
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0102a8ee
leave
ret 8
Function at 0x102ec78
Capabilities:
Create directory

Disassembly:
mov eax, 0x107cc8b
call fcn.01032938
sub esp, 0x20
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x102ece8
mov ecx, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 0x5c
call fcn.0102dc69
cmp eax, 0xffffffff
je 0x102ed81
mov ecx, dword [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0102ebc6
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0102e56f
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.01025782
jmp 0x102ecf6
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0102e56f
mov eax, dword [ebp - 0x18]
cmp eax, esi
jne 0x102ed02
mov eax, 0x1003ac8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push esi
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
cmp esi, 1
je 0x102ed7d
cmp eax, 0xb7
je 0x102ed7d
cmp eax, 3
je 0x102ed39
test eax, eax
jle 0x102ed67
and eax, 0xffff
or eax, 0x80070000
jmp 0x102ed67
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.0102ec78
mov esi, eax
test esi, esi
jl 0x102ed7f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x102ed56
mov eax, 0x1003ac8
push 0
push eax
call ebx
test eax, eax
jne 0x102ed7d
call edi
test eax, eax
jg 0x102ed6b
call edi
mov esi, eax
jmp 0x102ed7f
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102ed7f
xor esi, esi
pop edi
pop ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.01025782
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x102ee7b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x107cca5
call fcn.01032938
sub esp, 0x434
mov eax, dword [0x109126c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0x10]
je 0x102eec7
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov word [ebp - 0x14], bx
jmp 0x102eedd
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x102ef59
lea eax, [ebp - 0x21c]
push eax
call fcn.0102d36b
lea eax, [ebp - 0x429]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.010293e8
push ebx
lea eax, [ebp - 0x440]
push eax
mov dword [ebp - 4], ebx
call fcn.0102ec78
mov esi, eax
cmp esi, ebx
setl byte [ebp - 0x429]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x440]
call fcn.01025782
cmp byte [ebp - 0x429], bl
jne 0x102ef91
cmp edi, ebx
jne 0x102ef3f
mov edi, 0x1003b38
lea eax, [ebp - 0x428]
push eax
push ebx
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x102ef7d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x102ef6b
call esi
mov esi, eax
jmp 0x102ef91
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102ef91
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
call fcn.010293c1
xor esi, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0102a8ee
leave
ret 0xc

Function at 0x102f909
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [esi], ebx
push edi
mov byte [eax], bl
lea eax, [ebp + 0x17]
push eax
mov edi, ecx
call fcn.0102f8a7
cmp eax, ebx
jl 0x102f997
cmp byte [ebp + 0x17], bl
je 0x102f995
push dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push dword [ebp + 8]
push dword [edi + 8]
call esi
cmp eax, ebx
je 0x102f963
cmp eax, 2
je 0x102f995
cmp eax, ebx
jle 0x102f997
and eax, 0xffff
or eax, 0x80070000
jmp 0x102f997
mov eax, dword [ebp + 0x10]
push dword [eax]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010324a9
cmp eax, ebx
jl 0x102f997
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0103238a
push eax
push ebx
push ebx
push dword [ebp + 8]
push dword [edi + 8]
call esi
cmp eax, ebx
jne 0x102f955
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1031558
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1031568
and dword [esi], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x1031579
mov eax, 0x80030009
jmp 0x10315c6
cmp dword [ebp + 0xc], 0
je 0x1031572
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10315af
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
neg eax
sbb eax, eax
and eax, 0x7ffcfffc
add eax, 0x80030005
jmp 0x10315c6
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10315be
cmp dword [ebp + 0x10], eax
je 0x10315be
inc eax
jmp 0x10315c6
test esi, esi
je 0x10315c4
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x10315d0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x10315e0
and dword [esi], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x10315f1
mov eax, 0x80030009
jmp 0x1031651
cmp dword [ebp + 0xc], 0
je 0x10315ea
test byte [ecx + 0x33], 0x40
jne 0x1031604
mov eax, 0x8003001d
jmp 0x1031651
push 0
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1031646
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x103162d
mov eax, 0x80030070
jmp 0x1031651
xor ecx, ecx
cmp eax, 5
setne cl
dec ecx
and ecx, 0xffffff02
add ecx, 0x80030103
mov eax, ecx
jmp 0x1031651
test esi, esi
je 0x103164f
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x1031ad1
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], edi
mov ecx, 0x80070057
jne 0x1031aef
mov esi, ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1031afb
cmp word [eax], bx
jne 0x1031afd
mov esi, ecx
cmp esi, ebx
jl 0x1031bd9
mov ecx, edi
call fcn.010316bc
push dword [ebp + 8]
lea eax, [edi + 0x20]
push eax
call fcn.010252ca
push 0x40
push 1
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea esi, [edi + 0x24]
push esi
call ebx
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x1031b5c
call edi
cmp eax, 0x80090016
je 0x1031b4d
test eax, eax
jle 0x1031bba
and eax, 0xffff
or eax, 0x80070000
jmp 0x1031bba
push 0x48
push 1
push 0
push 0
push esi
call ebx
test eax, eax
je 0x1031bb2
mov ebx, dword [ebp - 4]
add ebx, 0x2c
push ebx
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1031bb2
push 0
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1031bb2
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
push 1
push dword [ebx]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1031bd0
call edi
test eax, eax
jg 0x1031bbe
call edi
mov esi, eax
jmp 0x1031bd2
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1031bd2
xor esi, esi
test esi, esi
jge 0x1031be0
mov edi, dword [ebp - 4]
mov ecx, edi
call fcn.010316bc
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1031eee
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x1031f07
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp byte [ebp + 0x10], al
push esi
sete al
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1031f3f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1031f31
call esi
jmp 0x1031f41
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1031f41
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x1031f4b
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
je 0x1031f64
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1031fb9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x1031fb9
cmp eax, 3
je 0x1031fb9
cmp byte [ebp + 0x10], 0
je 0x1031fb3
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1031fb9
call esi
test eax, eax
jg 0x1031fa5
call esi
jmp 0x1031fbb
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1031fbb
test eax, eax
jle 0x1031fbb
jmp 0x1031fa7
xor eax, eax
pop esi
pop ebp
ret 0xc