joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403168
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2004
mov esi, 0x4e50d8
push esi
add eax, 0x3e8
push edi
mov dword [0x478600], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 3
push 0x80000000
push esi
call fcn.00405ad6
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov dword [0x40a010], ebx
cmp ebx, 0xffffffff
jne 0x4031c2
mov eax, str.Error_launching_installer
jmp 0x403364
push esi
mov esi, 0x4d50b8
push esi
call fcn.00405c90
push esi
call fcn.004061ed
push eax
push 0x4e90e0
call fcn.00405c90
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [0x4321c0], eax
mov esi, eax
jle 0x4032dc
mov ebx, 0x42a138
mov eax, dword [0x47860c]
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
mov edi, esi
jl 0x403216
mov edi, eax
push edi
push ebx
call fcn.00402f17
test eax, eax
jne 0x403229
push 1
call fcn.00402eb3
pop ecx
cmp dword [0x47860c], 0
jne 0x4032a4
push 0x1c
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.00405a92
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x4032b2
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x4032b2
cmp dword [ebp - 0x18], 0x74736e49
jne 0x4032b2
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x4032b2
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x4032b2
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x42a134]
and eax, 2
or dword [0x478680], eax
test byte [ebp + 8], 8
mov dword [0x47860c], ecx
jne 0x403293
test byte [ebp + 8], 4
jne 0x4032d7
mov esi, dword [ebp - 0x10]
inc dword [ebp - 4]
add esi, 0xfffffffc
cmp edi, esi
jbe 0x4032b2
mov edi, esi
jmp 0x4032b2
test byte [ebp + 8], 2
jne 0x4032b2
push 0
call fcn.00402eb3
pop ecx
cmp esi, dword [0x4321c0]
jge 0x4032c7
push edi
push ebx
push dword [ebp - 8]
call fcn.00406911
mov dword [ebp - 8], eax
add dword [0x42a134], edi
sub esi, edi
test esi, esi
jg 0x4031fb
mov ebx, dword [ebp - 0xc]
xor edi, edi
push 1
call fcn.00402eb3
pop ecx
cmp dword [ebp - 4], edi
je 0x4032f4
push dword [0x42a134]
call fcn.00402f49
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x47860c]
add eax, 0x1c
push eax
call fcn.00402f49
push dword [ebp - 0x14]
push esi
push edi
push 0xffffffffffffffff
call fcn.00402f60
test byte [ebp - 0x28], 1
mov dword [0x4785bc], esi
mov eax, dword [esi]
mov dword [0x478608], eax
je 0x403334
inc dword [0x478604]
push 8
pop ecx
lea eax, [esi + 0x44]
sub eax, 8
add dword [eax], esi
dec ecx
cmp ecx, edi
jne 0x40333a
push 1
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x3c], eax
push 0x40
add esi, 4
push esi
push 0x4785c0
call fcn.00405a92
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404bcc
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d4
push ebx
push edi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x404bfd
push str.CommandLine_Failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x404c74
push esi
xor esi, esi
cmp dword [ebp - 4], ebx
jle 0x404c6c
xor eax, eax
push 0x7ce
push eax
mov word [ebp - 0x7d4], ax
lea eax, [ebp - 0x7d2]
push eax
call fcn.00407402
add esp, 0xc
push dword [edi + esi*4]
lea eax, [ebp - 0x7d4]
push eax
call fcn.00405c90
test ebx, ebx
jne 0x404c4e
push dword [ebp + 0xc]
lea eax, [ebp - 0x7d4]
push eax
call fcn.00404b84
pop ecx
pop ecx
test eax, eax
je 0x404c53
inc ebx
jmp 0x404c53
cmp ebx, 1
je 0x404c5b
inc esi
cmp esi, dword [ebp - 4]
jl 0x404c05
jmp 0x404c6c
lea eax, [ebp - 0x7d4]
push eax
call fcn.00405bf0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4058c4
Capabilities:
Create process on windows

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

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

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

Function at 0x405ad6
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 0x405b05
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 [0x4087ac]
mov dword [ebp - 8], eax
mov eax, dword [0x4087b0]
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 0x405b55
test edi, edi
jne 0x405b12
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405b4f

Function at 0x405b59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
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 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bd2
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405bbb
cmp dword [ebp + 0x14], 1
je 0x405bc0
cmp dword [ebp + 0x14], 2
je 0x405bc0
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x40621a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45e2b0
push esi
call fcn.00405c90
push esi
call fcn.004059df
mov edi, eax
test edi, edi
jne 0x40623b
xor eax, eax
jmp 0x406299
push edi
call fcn.00405cbf
test byte [0x478608], 0x80
je 0x406258
movzx eax, word [edi]
test ax, ax
je 0x406237
cmp ax, 0x5c
je 0x406237
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x40627a
push esi
call fcn.00405d70
test eax, eax
je 0x406274
test byte [eax], 0x10
je 0x40629e
push esi
call fcn.004061ed
push esi
call ebx
cmp eax, edi
jg 0x406265
push esi
call fcn.004061be
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 0x406298
Function at 0x406533
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408894
mov ebx, 0x4622b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406581
push 1
push ebp
push edi
call fcn.00405ad6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066f8
cmp eax, esi
jg 0x4066f8
push esi
mov edi, 0x467910
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066f8
cmp eax, esi
jg 0x4066f8
push ebp
push ebp
push esi
push 0x462ab8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4066f8
push ebp
push ebp
push esi
mov esi, 0x463108
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4066f8
push esi
push 0x462ab8
push str._s_s_r_n
push 0x463508
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4785bc]
push dword [eax + 0x128]
push edi
call fcn.004062a2
push 4
push 0xc0000000
push edi
call fcn.00405ad6
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4066f8
push ebp
push eax
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
cmp esi, ebp
je 0x4066ee
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4066ee
cmp edi, dword [esp + 0x10]
jne 0x4066ee
push str._Rename__r_n
push esi
call fcn.00405a3c
cmp eax, ebp
jne 0x406685
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4066b6
push 0x408888
add eax, 0xa
push eax
call fcn.00405a3c
mov ebp, eax
test ebp, ebp
je 0x4066b4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4066a7
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4066a1
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x4066b8
xor ebp, ebp
mov eax, edi
push ebx
push 0x463508
add eax, esi
push eax
call fcn.00405a92
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406731
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0040621a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x406766
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x478668], eax
jmp 0x40690c
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406781
test eax, eax
je 0x4068b7
test cl, 2
je 0x4068b7
push edi
push ebx
mov esi, 0x463908
push esi
call fcn.00405c90
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067a4
push str..
push esi
call edi
jmp 0x4067aa
push ebx
call fcn.004061ed
cmp word [ebx], 0
jne 0x4067ba
cmp word [0x463908], 0x5c
jne 0x4067c2
push 0x4082d8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4068a6
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.0040598b
xor edi, edi
cmp word [eax], di
je 0x406809
cmp word [ebp - 0x28], di
je 0x406809
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x406824
movzx eax, word [esi + 2]
cmp ax, di
je 0x406883
cmp ax, 0x2e
jne 0x406824
cmp word [esi + 4], di
je 0x406883
push esi
push dword [ebp - 4]
call fcn.00405c90
test byte [ebp - 0x25c], 0x10
je 0x40684b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406883
push dword [ebp + 0xc]
push ebx
call fcn.00406731
jmp 0x406883
push ebx
call fcn.00405ab6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40687b
test byte [ebp + 0xc], 4
je 0x406873
push ebx
push 0xfffffffffffffff1
call fcn.00404a54
push edi
push ebx
call fcn.004066fe
jmp 0x406883
inc dword [0x478668]
jmp 0x406883
push ebx
push 0xfffffffffffffff2
call fcn.00404a54
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4067e9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4068a8
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x4068b7
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40690b
cmp dword [ebp - 0xc], esi
je 0x4068fb
push ebx
call fcn.00405d70
test eax, eax
je 0x40690b
push ebx
call fcn.004061be
push ebx
call fcn.00405ab6
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406903
test byte [ebp + 0xc], 4
je 0x4068fb
push ebx
push 0xfffffffffffffff1
call fcn.00404a54
push esi
push ebx
call fcn.004066fe
jmp 0x40690b
inc dword [0x478668]
jmp 0x40690b
push ebx
push 0xffffffffffffffe5
call fcn.00404a54
pop esi
pop ebx
leave
ret 8
Function at 0x406911
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x468114], 0
jne 0x40694f
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406925
mov dword [ecx*4 + 0x468110], eax
inc ecx
cmp ecx, 0x100
jl 0x406920
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40697c
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 + 0x468110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40695d
not eax
pop ebp
ret 0xc
Function at 0x4550d6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045506b
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043b840
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x455125
cmp dword [ebp - 0x1c], 5
jb 0x45513d
jmp 0x455139
cmp dword [ebp - 0x10], 1
jne 0x45513d
cmp dword [ebp - 0x1c], 4
ja 0x455139
jne 0x45513d
cmp dword [ebp - 0x18], 0
jbe 0x45513d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x464da4
call fcn.00454f5c
test eax, eax
jge 0x45515e
mov byte [0x484e93], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00438785
add ebp, 0x78
leave
ret
Function at 0x4026d0
Capabilities:
Create process on windows

Disassembly:
push ebp
push edi
push 1
push 0x208
call fcn.0041a332
push 1
push 0x208
mov edi, eax
call fcn.0041a332
add esp, 0x10
mov ebp, eax
test edi, edi
je 0x40280b
test ebp, ebp
je 0x40280b
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov edx, ebp
xor esi, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40270f
push 7
push str.http:__
push ebp
call fcn.0041a8d0
add esp, 0xc
test eax, eax
je 0x402755
push 8
push str.https:__
push ebp
call fcn.0041a8d0
add esp, 0xc
test eax, eax
je 0x402755
push 0x5c
push ebp
call fcn.0041a130
add esp, 8
test eax, eax
je 0x402755
mov byte [eax], 0
mov esi, ebp
push 5
push esi
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4027fa
mov eax, dword [esp + 0x18]
push edi
push eax
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._shellopencommand
push edi
call ebx
push edi
push edi
push 0x80000000
call fcn.00402810
add esp, 0xc
test eax, eax
jne 0x4027fa
push str.__1_
push edi
call fcn.0041a630
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push 0x42567c
push edi
call fcn.0041a630
mov esi, eax
add esp, 8
test esi, esi
jne 0x4027de
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + edi - 1]
jmp 0x4027e1
mov byte [esi], 0
push 0x425678
push esi
call ebx
mov ecx, dword [esp + 0x14]
push ecx
push esi
call ebx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push ebp
call fcn.0041a3e3
push edi
call fcn.0041a3e3
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402810
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402859
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x402860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x214]
push 0x208
push eax
push edi
call fcn.00402950
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x40293a
mov al, byte [esp + 8]
push esi
test al, al
je 0x402912
push 0x5c
push edi
call fcn.0041a130
mov esi, eax
add esp, 8
test esi, esi
je 0x4028ad
inc esi
jmp 0x4028af
mov esi, edi
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42ad9c]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x4028d3
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402912
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0xc]
push esi
push 1
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x42a964
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
mov dword [0x42a964], 0
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
pop esi
pop edi
add esp, 0x20c
ret

Function at 0x402b70
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x214]
push edi
push 0x208
push eax
push esi
call fcn.00402950
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_RemoveFontResourceA]
mov edi, eax
mov al, byte [esp + 0xc]
test al, al
je 0x402c02
push 0x5c
push esi
call fcn.0041a130
add esp, 8
lea ecx, [esp + 0xc]
push str.__TrueType_
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x42ad9c]
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
test ecx, ecx
je 0x402bd2
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
lea edx, [esp + 8]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c02
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
je 0x402c25
push 0x42a964
push 0x1388
push 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
add esp, 0x20c
ret
Function at 0x402cd0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0x208
call fcn.0041a280
mov ebp, eax
xor ebx, ebx
add esp, 4
cmp ebp, ebx
jne 0x402cf6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x68]
push eax
push 0x4256c4
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, ebx
je 0x402d4f
cmp byte [edx], bl
je 0x402d4f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x425678]
mov word [edi - 1], cx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x208
call fcn.0041a280
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x402d75
push ebp
call fcn.0041a3e3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x68]
lea edi, [esi + 0x104]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x402d91
push 0x5c
push edi
call fcn.0041a130
add esp, 8
cmp eax, ebx
je 0x402db3
push edi
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push ebp
push ebx
mov dword [eax], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x74], ebx
mov word [esp + 0x7a], bx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.0041a3e3
push ebp
call fcn.0041a3e3
add esp, 8
cmp edi, ebx
jne 0x402e1a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x54
ret

Function at 0x403ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 8
lea eax, [esp + 0x10]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b19
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b0e
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret