joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ee0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x425a10
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x425a10], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405f1f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405f23
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x4060ec
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40610c
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406112
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406141
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409994]
mov dword [ebp - 8], eax
mov eax, dword [0x409998]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406191
test edi, edi
jne 0x40614e
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40618b

Function at 0x406346
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x800
push dword [ebp + 8]
call fcn.004062e5
test eax, eax
mov esi, dword [ebp + 0x14]
jne 0x4063b6
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4063b6
cmp dword [ebp + 0xc], 1
je 0x4063ba
cmp dword [ebp + 0xc], 2
je 0x4063ba
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x40658b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4065af
xor eax, eax
test eax, eax
je 0x4065c2
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4065c2
xor ecx, ecx
jmp 0x4065c5
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x4092c8]
push ecx
lea eax, [ebp + eax*2 - 0x23c]
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406721
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004060ec
mov edi, eax
cmp edi, 0xffffffff
je 0x406762
test byte [esp + 0x10], 1
push esi
je 0x40674b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x406753
xor eax, eax
inc eax
jmp 0x406764
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406742
test byte [esp + 0x10], 4
jne 0x406762
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x40680a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425a58
push esi
call fcn.00406478
push esi
call fcn.00406015
mov edi, eax
test edi, edi
jne 0x40682b
xor eax, eax
jmp 0x406889
push edi
call fcn.004064b5
test byte [0x42a5f0], 0x80
je 0x406848
movzx eax, word [edi]
test ax, ax
je 0x406827
cmp ax, 0x5c
je 0x406827
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40686a
push esi
call fcn.00406564
test eax, eax
je 0x406864
test byte [eax], 0x10
je 0x40688e
push esi
call fcn.00406798
push esi
call ebx
cmp eax, edi
jg 0x406855
push esi
call fcn.00406769
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406888
Function at 0x406b08
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
push edi
mov dword [0x426258], 0x55004e
mov dword [0x42625c], 0x4c
mov edi, 0x400
mov ebp, 0x426258
je 0x406b5e
push 1
push 0
push esi
call fcn.00406112
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406c7d
cmp eax, edi
jg 0x406c7d
push edi
mov esi, 0x4278a8
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406c7d
cmp eax, edi
jg 0x406c7d
push esi
push ebp
push str._ls_ls_r_n
push 0x426ca8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x42a58c]
push dword [eax + 0x128]
push esi
call fcn.00406892
push 4
push 0xc0000000
push esi
call fcn.00406112
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406c7d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406c76
push edi
push esi
push ebp
call fcn.00406195
test eax, eax
je 0x406c76
push str._Rename__r_n
push esi
call fcn.00406072
test eax, eax
jne 0x406c14
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406c49
push 0x4099c4
add eax, 0xa
push eax
call fcn.00406072
mov ebp, eax
test ebp, ebp
je 0x406c45
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406c36
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406c30
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406c4b
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x426ca8
add eax, esi
push eax
call fcn.004060c8
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004061c4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406c82
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406ca5
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406b08
pop ecx
pop ecx
inc dword [0x42a650]
ret 8
Function at 0x406cae
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040680a
test bl, 8
mov dword [ebp - 8], eax
je 0x406cec
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a648], eax
jmp 0x406e6d
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406d07
test eax, eax
je 0x406e19
test bl, 2
je 0x406e19
push edi
mov esi, 0x4270a8
push esi
call fcn.00406478
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406d29
push str..
push esi
call ebx
jmp 0x406d2f
push edi
call fcn.00406798
cmp word [edi], 0
jne 0x406d3f
cmp word [0x4270a8], 0x5c
jne 0x406d47
push 0x4092c8
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406e0e
cmp word [ebp - 0x22c], 0x2e
jne 0x406d92
cmp word [ebp - 0x22a], 0
je 0x406df1
cmp word [ebp - 0x22a], 0x2e
jne 0x406d92
cmp word [ebp - 0x228], 0
je 0x406df1
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406478
test byte [ebp - 0x258], 0x10
je 0x406dbd
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406df1
push dword [ebp + 0xc]
push edi
call fcn.00406cae
jmp 0x406df1
push dword [ebp - 4]
push edi
call fcn.00406721
test eax, eax
jne 0x406de9
cmp dword [ebp - 4], eax
je 0x406de1
push edi
push 0xfffffffffffffff1
call fcn.004051ef
push 0
push edi
call fcn.00406c82
jmp 0x406df1
inc dword [0x42a648]
jmp 0x406df1
push edi
push 0xfffffffffffffff2
call fcn.004051ef
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d6a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406e19
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406e6c
cmp dword [ebp - 8], esi
je 0x406e5c
push edi
call fcn.00406564
test eax, eax
je 0x406e6c
push edi
call fcn.00406769
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.00406721
test eax, eax
jne 0x406e64
cmp dword [ebp - 4], esi
je 0x406e5c
push edi
push 0xfffffffffffffff1
call fcn.004051ef
push esi
push edi
call fcn.00406c82
jmp 0x406e6c
inc dword [0x42a648]
jmp 0x406e6c
push edi
push 0xffffffffffffffe5
call fcn.004051ef
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x406e73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4280ac], 0
jne 0x406eae
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406e87
mov dword [ecx*4 + 0x4280a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406e82
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406edb
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4280a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406ebc
not eax
pop ebp
ret 0xc

Function at 0x407808
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x4077f3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
pop esi
jne 0x40783f
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ebp
ret
Function at 0x529090
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd2000]
push edi
jmp 0x5290aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5290b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5290a0
mov eax, 1
add ebx, ebx
jne 0x5290c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5290d4
jne 0x5290f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5290f3
dec eax
add ebx, ebx
jne 0x5290e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5290b8
add ebx, ebx
jne 0x5290ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x529145
xor ecx, ecx
sub eax, 3
jb 0x52910b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52917a
sar eax, 1
mov ebp, eax
jmp 0x529116
add ebx, ebx
jne 0x529116
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5290e4
inc ecx
add ebx, ebx
jne 0x529124
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5290e4
add ebx, ebx
jne 0x529131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x529126
jne 0x529142
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x529126
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x529164
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x529156
jmp 0x5290a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x529164
add edi, ecx
jmp 0x5290a6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x529182
cmp byte [edi], 0x11
jne 0x529182
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x529187
lea edi, [esi + 0x122000]
mov eax, dword [edi]
or eax, eax
je 0x5291ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x179b8c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x179d08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5291b4
mov ecx, edi
jns 0x5291e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x179d0c]
or eax, eax
je 0x5291f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5291d1
call dword [esi + 0x179d1c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x529230
cmp al, 0xef
ja 0x529223
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x529205
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x529212
mov ebp, dword [esi + 0x179d10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x529264
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4070db
Capabilities:
Set registry value

Disassembly:
push 0x218
mov eax, 0x50d561
call fcn.004ac14c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
jne 0x4070fb
xor eax, eax
jmp 0x407272
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004ecae0
add esp, 0xc
call fcn.00407a58
lea ecx, [ebp - 0x219]
test al, al
je 0x407175
call fcn.00406438
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x220]
call fcn.004082cd
push esi
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x219]
call fcn.00405f62
push eax
lea ecx, [ebp - 0x220]
call fcn.004087b6
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.004083a8
jmp 0x407270
call fcn.00406594
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x224]
push eax
push 0x20006
push edi
lea ecx, [ebp - 0x219]
call fcn.00406e96
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407270
call fcn.004077b8
push eax
lea ecx, [ebp - 0x220]
call fcn.00405cab
mov dword [ebp - 4], 1
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x219]
test esi, esi
je 0x4071f6
push esi
push eax
call fcn.00406e28
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004076c3
add esp, 0x10
jmp 0x40720c
push eax
call fcn.00406e5f
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004076c3
add esp, 0xc
mov esi, dword [ebp - 0x220]
cmp dword [esi - 4], 1
mov ebx, dword [esi - 0xc]
jle 0x40722d
push ebx
lea ecx, [ebp - 0x220]
call fcn.00407659
mov esi, dword [ebp - 0x220]
lea eax, [ebx + ebx]
push eax
push esi
push 1
push edi
lea ecx, [ebp - 0x219]
call fcn.00406196
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
mov edi, eax
call fcn.00407ce0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00407cc8
mov eax, edi
call fcn.004ac0f6
ret

Function at 0x407546
Capabilities:
Delete registry value

Disassembly:
push 0xc
mov eax, 0x50d591
call fcn.004ac118
cmp dword [ebp + 8], 0
jne 0x40755f
xor eax, eax
jmp 0x4075e4
lea eax, [ebp - 0x14]
xor esi, esi
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
call fcn.004078b1
pop ecx
pop ecx
test eax, eax
jne 0x407579
inc eax
jmp 0x4075e4
call fcn.00407a58
test al, al
je 0x4075ac
lea ecx, [ebp - 0x10]
call fcn.004082cd
push 1
lea ecx, [ebp + 0xb]
mov dword [ebp - 4], esi
call fcn.00406204
push eax
lea ecx, [ebp - 0x10]
call fcn.00408e31
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.004083a8
jmp 0x4075e2
lea eax, [ebp - 0x18]
push eax
push 0x20006
push esi
lea ecx, [ebp + 0xb]
call fcn.00406639
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4075e2
lea ecx, [ebp + 0xb]
call fcn.0040655d
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, esi
call fcn.004ac0e1
ret
Function at 0x4078b1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x42c
mov eax, 0x50d5cd
call fcn.004ac14c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
jne 0x4078d1
xor eax, eax
jmp 0x407a52
xor edi, edi
test ebx, ebx
je 0x4078d9
mov dword [ebx], edi
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004ecae0
add esp, 0xc
call fcn.00407a58
lea ecx, [ebp - 0x421]
test al, al
je 0x407950
call fcn.004067b6
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x430]
call fcn.004082cd
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x421]
call fcn.00407043
push eax
lea ecx, [ebp - 0x430]
call fcn.00409145
lea ecx, [ebp - 0x430]
mov edi, eax
call fcn.004083a8
jmp 0x407a50
call fcn.00406a94
push eax
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x434]
push eax
push 0x20019
push edi
lea ecx, [ebp - 0x421]
call fcn.004061cd
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a50
lea eax, [ebp - 0x438]
mov dword [ebp - 0x438], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
lea ecx, [ebp - 0x421]
call fcn.00406526
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x434]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407a50
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405cd4
inc esi
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], esi
call fcn.00407b22
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405cd4
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.00407b22
push edi
push dword [ebp - 0x428]
lea ecx, [ebp - 0x42c]
call fcn.0040761f
test eax, eax
js 0x407a34
mov edi, esi
test ebx, ebx
je 0x407a34
mov dword [ebx], esi
mov ecx, dword [ebp - 0x428]
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov ecx, dword [ebp - 0x42c]
lea ecx, [ecx - 0x10]
call fcn.00407cc8
mov eax, edi
call fcn.004ac0f6
ret
Function at 0x40901b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [0x553278], 0
push esi
mov esi, 0x553278
jne 0x409042
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
mov ecx, dword [ebp + 8]
push esi
call fcn.00405cd4
mov eax, dword [ebp + 8]
pop esi
leave
ret 4

Function at 0x40c63f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
mov edi, dword [ebx]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x20]
call fcn.0040c9cb
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004ecce0
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x40c690
mov edi, dword [edi]
cmp edi, ebx
jne 0x40c657
xor eax, eax
xor edx, edx
jmp 0x40c694
mov eax, dword [edi + 0x10]
cdq
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40c699
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax + ebx + 0x78]
add esi, ebx
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
add eax, ebx
mov ecx, dword [esi + 0x1c]
add edx, ebx
add ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x18], edi
jbe 0x40c704
mov ecx, dword [eax + edi*4]
movzx eax, word [edx + edi*2]
add ecx, ebx
mov edx, dword [ebp - 4]
push dword [ebp + 0x10]
push ecx
mov eax, dword [edx + eax*4]
xor edx, edx
add eax, ebx
mov dword [ebp - 0x10], eax
adc edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
call fcn.0050006a
pop ecx
pop ecx
test eax, eax
je 0x40c70d
mov eax, dword [ebp - 8]
inc edi
mov edx, dword [ebp - 0xc]
cmp edi, dword [esi + 0x18]
jb 0x40c6cd
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
jmp 0x40c708
Function at 0x41136c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54e548]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x20d]
call fcn.00410629
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004ecae0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41142c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41142c
lea ecx, [ebp - 0x20d]
call fcn.0040fde7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41142c
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x214]
push ecx
push 1
call eax
test eax, eax
je 0x41142c
mov dword [edi + 0x3f8], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ac0d0
leave
ret