joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405df4
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405e14
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408760
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408750
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405e8c
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x405e86
xor eax, eax
jmp 0x405e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x406186
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x4061c0
test eax, eax
je 0x4061c0
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x4061c2
mov ecx, 0x4082b0
jmp 0x4061c7
xor eax, eax
mov ecx, 0x4082b2
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406225
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 0x406248
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062ee
pop ecx
pop ecx
inc dword [0x429df0]
ret 8

Function at 0x4062ee
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x426e68], 0x55004e
mov ebp, 0x426e68
mov dword [0x426e6c], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406344
push 1
push 0
push esi
call fcn.00406903
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406424
cmp eax, ebx
jg 0x406424
push ebx
mov esi, 0x426668
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406424
cmp eax, ebx
jg 0x406424
push esi
push ebp
push str._ls_ls_r_n
push 0x426268
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x429d30]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405e90
push 4
push 0xc0000000
push esi
call fcn.00406903
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406424
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40641d
push esi
push edi
push ebx
call fcn.00406930
test eax, eax
je 0x40641d
push str._Rename__r_n
push edi
call fcn.00406b1e
test eax, eax
jne 0x406429
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x426268
lea eax, [ecx + edi]
push eax
call fcn.0040669c
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004069f3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408984
add eax, 0xa
push eax
call fcn.00406b1e
mov ecx, eax
test ecx, ecx
je 0x4063ee
lea edx, [edi + esi]
jmp 0x406448
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406442
sub ecx, edi
inc ecx
jmp 0x4063f0
Function at 0x40656d
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406b85
mov edi, eax
cmp edi, 0xffffffff
je 0x4065b0
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x406591
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x406597
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4065a0
xor eax, eax
inc eax
jmp 0x4065b2
test byte [ebp + 0xc], 4
jne 0x4065b0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x425a68
push ebx
call fcn.00406b02
push ebx
call fcn.00406bad
mov esi, eax
test esi, esi
je 0x406695
push esi
call fcn.00406d25
test byte [0x429d2c], 0x80
je 0x406659
movzx eax, word [esi]
test ax, ax
je 0x406695
cmp eax, 0x5c
je 0x406695
sub esi, ebx
sar esi, 1
jmp 0x406673
call fcn.004065b7
test eax, eax
je 0x40666d
test byte [eax], 0x10
je 0x406695
push ebx
call fcn.00406cf8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x40665f
call fcn.0040653e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406695
xor eax, eax
inc eax
jmp 0x406697
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x4066be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x425220], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x425220
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4066fd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406701
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406620
mov dword [esp + 0x14], eax
test bl, 8
je 0x406743
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429de8], eax
jmp 0x4068c2
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406760
test eax, eax
je 0x4068b1
test bl, 2
je 0x40687a
push esi
push 0x425268
call fcn.00406b02
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406783
push str..
push 0x425268
call ebp
jmp 0x406789
push esi
call fcn.00406cf8
xor eax, eax
cmp word [esi], ax
jne 0x40679a
cmp word [0x425268], 0x5c
jne 0x4067a2
push 0x4082b0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x425268
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406863
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x4067ec
cmp word [esp + 0x4a], 0
je 0x406845
cmp word [esp + 0x4a], ax
jne 0x4067ec
cmp word [esp + 0x4c], 0
je 0x406845
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b02
test byte [esp + 0x1c], 0x10
je 0x406813
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406845
push ebx
push esi
call fcn.00406701
jmp 0x406845
push edi
push esi
call fcn.0040656d
test eax, eax
jne 0x40683d
test edi, edi
je 0x406835
push esi
push 0xfffffffffffffff1
call fcn.00405d10
xor eax, eax
push eax
push esi
call fcn.00406225
jmp 0x406845
inc dword [0x429de8]
jmp 0x406845
push esi
push 0xfffffffffffffff2
call fcn.00405d10
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4067ce
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x4068c1
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x4068b1
push esi
call fcn.004065b7
test eax, eax
je 0x4068c1
push esi
call fcn.0040653e
mov eax, edi
or eax, 1
push eax
push esi
call fcn.0040656d
test eax, eax
jne 0x4068b9
test edi, edi
je 0x4068b1
push esi
push 0xfffffffffffffff1
call fcn.00405d10
xor eax, eax
push eax
push esi
call fcn.00406225
jmp 0x4068c1
inc dword [0x429de8]
jmp 0x4068c1
push esi
push 0xffffffffffffffe5
call fcn.00405d10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x40695f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c0
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4069d1
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x4069d1
cmp dword [ebp + 0x18], 1
je 0x4069d6
cmp dword [ebp + 0x18], 2
je 0x4069d6
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x4069db
Capabilities:
Create process on windows

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

Function at 0x406a3e
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
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406a88
test edi, edi
jne 0x406a4b
mov word [esi], ax
jmp 0x406a8a
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406b85
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 0x406ba7
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406e24
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4278bc], 0
push esi
jne 0x406e5e
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e35
mov dword [ecx*4 + 0x4278b8], edx
inc ecx
cmp ecx, 0x100
jl 0x406e30
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406e88
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4278b8]
inc esi
sub edx, 1
jne 0x406e70
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5b972bfe
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5bad0dfd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x9eb920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9eb96c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9eb932
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9eb9d0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9eba22
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9eba28
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa03f15
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a03bd5

Function at 0xa08d0f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a08b8e

Function at 0xa0e2c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0e2ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0e2ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x67462f1
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x11582298
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x328165ea
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x77415f87
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10004420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10004478
cmp byte [esi + ebx - 1], 0xa
je 0x1000444c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10005118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401590
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
mov dword [0x638840], edi
push 0x4b4574
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [edi], eax
test eax, eax
je 0x401636
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CoGetCallContext
push eax
call esi
push str.CoInitializeSecurity
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.CoInitializeEx
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.CoUninitialize
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.CoCreateInstanceEx
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.CoResumeClassObjects
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.CoSuspendClassObjects
push dword [edi]
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
pop esi
mov eax, edi
pop edi
ret

Function at 0x403000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a592
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 1
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x11c], 0
mov bl, 1
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
test al, al
je 0x40305c
mov dword [ebp - 0x11c], esi
jmp 0x4030cc
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4030c6
mov dword [ebp - 0x11c], 0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004743e6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x11c]
test esi, esi
je 0x403089
push 0xff
lea eax, [ebp - 0x10f]
mov dword [ebp - 0x118], 0x100
push 0
push eax
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x110], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40314c
mov eax, dword [ebp - 0x114]
cmp eax, 4
je 0x403142
cmp eax, 0xb
jne 0x40314c
mov eax, dword [ebp - 0x110]
mov dword [edi], eax
jmp 0x40314e
xor bl, bl
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
test al, al
jne 0x40308b
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40308b
Function at 0x403170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a5de
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], edi
mov dword [ebp - 4], 1
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x41c], 0
mov bl, 1
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
test al, al
je 0x4031d2
mov dword [ebp - 0x41c], esi
jmp 0x403242
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40323c
mov dword [ebp - 0x41c], 0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004743e6
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x41c]
test esi, esi
je 0x4031ff
push 0xff
lea eax, [ebp - 0x10f]
mov dword [ebp - 0x414], 0x100
push 0
push eax
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x110], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x414]
lea ecx, [ebp + 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403388
mov eax, dword [ebp - 0x418]
dec eax
jne 0x403388
push 0x1fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR120.dll_memset
mov esi, dword [ebp - 0x414]
add esp, 0xc
xor edx, edx
shr esi, 1
je 0x40331a
mov edi, 0x100
jmp 0x4032f0
movzx ecx, byte [ebp + edx*2 - 0x10f]
movzx eax, byte [ebp + edx*2 - 0x110]
imul cx, di
add cx, ax
mov word [ebp + edx*2 - 0x410], cx
inc edx
cmp edx, esi
jb 0x4032f0
mov edi, dword [ebp - 0x420]
push 0xff
lea eax, [ebp - 0x20f]
mov byte [ebp - 0x210], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc120u.dll_Ordinal_290]
mov byte [ebp - 4], 2
mov ecx, edi
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_1518]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x420]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x40338a
xor bl, bl
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc120u.dll_Ordinal_8064]
test al, al
jne 0x403201
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403201