joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40359a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.g_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00401558
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402ac7
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402ac7
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401198
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.g_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40373b
xor eax, eax
jmp 0x403794
test al, 0x10
je 0x40374c
push 0x10
call dword [sym.imp.g_SetLastError]
or eax, 0xffffffff
jmp 0x403794
mov eax, dword [0x41b96c]
test eax, eax
jne 0x40375e
push esi
call fcn.004036f1
pop ecx
jmp 0x403794
cmp eax, 2
jne 0x403791
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.g_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403755
push eax
call dword [sym.imp.g_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.g_CompareFileTime]
test eax, eax
jl 0x403755
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403a88
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.g_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402a8e
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403ab9
push esi
lea ecx, [ebp - 0x18]
call fcn.004011cb
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403acd
cmp ax, 0x2f
jne 0x403ad6
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403afc
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403aef
cmp ax, 0x5c
je 0x403aef
dec esi
test esi, esi
jg 0x403ada
test esi, esi
je 0x403bab
and word [edi + esi*2], 0
push edi
call fcn.00401e92
test eax, eax
pop ecx
je 0x403aeb
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.g_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.g_GetFileAttributesW]
test al, 0x10
jne 0x403b33
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040371e
test eax, eax
pop ecx
pop ecx
je 0x403b33
xor esi, esi
jmp 0x403bd0
push edi
call fcn.00401e92
test eax, eax
pop ecx
jne 0x403b4d
push edi
push 0xc
push 1
call fcn.004095ea
add esp, 0xc
jmp 0x403b2c
cmp esi, ebx
jge 0x403b9f
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.004161ea
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403b85
jmp 0x403b84
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403b8b
cmp ax, 0x2f
je 0x403b8b
inc esi
cmp word [edi + esi*2], cx
jne 0x403b74
push edi
mov word [edi + esi*2], cx
call fcn.00401e92
test eax, eax
pop ecx
je 0x403b3e
cmp esi, dword [ebp - 4]
jl 0x403b51
push edi
call fcn.0041619a
xor eax, eax
pop ecx
inc eax
jmp 0x403bf0
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403bdb
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403bdb
cmp ax, 0x7a
ja 0x403bdb
cmp word [ecx + 2], 0x3a
jne 0x403bdb
xor esi, esi
inc esi
push edi
call fcn.0041619a
pop ecx
mov eax, esi
jmp 0x403bf0
push ecx
push 0xc
push 1
call fcn.004095ea
push edi
call fcn.0041619a
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40454f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
call dword [0x417010]
call fcn.00415e70
call fcn.0040244e
push 3
call fcn.004024a4
push 0x28
mov dword [0x41b958], eax
call fcn.004024a4
push 2
mov dword [0x41b954], eax
call fcn.004024a4
push 5
mov dword [0x41b950], eax
call fcn.004024a4
push 0x15
mov dword [0x41b94c], eax
call fcn.004024a4
push 0x16
mov dword [0x41b948], eax
call fcn.004024a4
push 0x17
mov dword [0x41b944], eax
call fcn.004024a4
xor ebx, ebx
add esp, 0x1c
mov dword [0x41b940], eax
mov dword [0x41b938], ebx
mov dword [0x41b93c], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [0x41725c]
test eax, eax
je 0x404633
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [0x4172c0]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00403677
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x41b3a4], edi
jne 0x40462b
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x41b3a8]
call fcn.00403677
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x40460d
inc edi
cmp edi, 0x40
jl 0x4045d2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404a4f
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401558
push 2
mov ecx, esi
call fcn.00402ac7
mov edi, dword [sym.imp.g_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x404aa2
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402ac7
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401198
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402ac7
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [0x4172c0]
mov edi, dword [esi]
push edi
call fcn.00401198
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.g_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404af7
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404ab2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404afe
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41b3d4], esi
jle 0x404b52
mov eax, dword [0x41b3d8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00401434
lea eax, [ebp - 0xc]
push eax
call fcn.00404672
mov eax, dword [0x41b3d8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.g_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.0041619a
inc esi
cmp esi, dword [0x41b3d4]
pop ecx
jl 0x404b0f
pop esi
leave
ret
Function at 0x4053d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401558
lea ecx, [ebp - 0x18]
call fcn.00401558
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00416220
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x405424
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x405431
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404ec0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401466
cmp dword [ebp - 8], edi
jne 0x405466
push dword [ebp - 0x18]
call fcn.0041619a
push dword [ebp - 0xc]
call fcn.0041619a
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [0x417274]
test eax, eax
je 0x4054a6
test dword [ebp + 0xc], 0x10000
jne 0x405494
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.g_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.g_CloseHandle]
push edi
call fcn.0041619a
push esi
jmp 0x405458
xor ebx, ebx
jmp 0x40549d
Function at 0x405770
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x405922
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x40579a
cmp ax, 0x2f
jne 0x405922
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.g_GetDriveTypeW]
cmp eax, 3
jne 0x405922
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404a4f
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.g_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4058ec
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401558
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401466
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040151f
mov esi, 0x418914
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402adf
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040151f
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402adf
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040151f
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402adf
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402e3d
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.g_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call fcn.0041619a
pop ecx
push dword [ebp - 4]
call dword [sym.imp.g_CloseHandle]
cmp esi, ebx
pop edi
je 0x4058fd
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4058fd
push ebx
push dword [ebp + 8]
call dword [sym.imp.g_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [0x417260]
push dword [ebp - 0x1c]
call fcn.0041619a
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call fcn.0041619a
push esi
call fcn.0041619a
pop ecx
jmp 0x405928
push dword [ebp - 0x28]
call fcn.00403310
push dword [ebp - 0x1c]
call fcn.0041619a
push dword [ebp - 0x28]
call fcn.0041619a
push dword [ebp + 8]
call fcn.0041619a
add esp, 0x10
jmp 0x405929
push esi
call fcn.0041619a
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x407568
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [0x41721c]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040751b
add esp, 0x1c
leave
ret
Function at 0x40918b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407920
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.0040793d
push 1
inc edi
push edi
mov ecx, esi
call fcn.0040793d
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.g_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [0x417270]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [0x417290]
push 0x407f86
push 0xfffffffffffffffc
push eax
call dword [0x4172e4]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408e5a
mov ecx, esi
mov edi, eax
call fcn.004082f3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40aec0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40af3d
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40aef0
jmp 0x40aee0
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40aee0
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40af15
cmp eax, 0x20
jae 0x40b093
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40aef7
cmp eax, 0x20
jae 0x40b093
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call fcn.00416220
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00416320
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40b081
ja 0x40afdc
cmp eax, esi
jbe 0x40b081
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040abb0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040abb0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40b040
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040aaf0
test ebp, ebp
ja 0x40b017
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40b055
add eax, 1
cmp eax, 8
jl 0x40b046
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40afe0
ja 0x40b07f
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40afe0
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040ac00
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x40f1fe
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.g_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f224
call dword [sym.imp.g_GetLastError]
test eax, eax
je 0x40f224
xor al, al
jmp 0x40f244
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004162e0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x402197
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov eax, esi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.0040244a
push dword [0x41571c]
mov ebx, eax
call fcn.00401de0
or eax, 0x20019
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 4]
call fcn.0040f963
add esp, 0x10
cmp dword [ebp - 8], edi
mov ebx, eax
je 0x40227b
mov eax, dword [esi + 0x10]
mov ecx, 0x41512c
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call fcn.00405cb3
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
push ecx
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
call esi
mov ebx, eax
cmp ebx, edi
jne 0x402272
cmp dword [ebp - 4], edi
jbe 0x402272
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
mov ebx, eax
cmp ebx, edi
jne 0x402264
push dword [ebp + 8]
call fcn.0040490b
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x402264
push dword [ebp - 4]
push dword [ebp - 0x1c]
push esi
call fcn.0040556a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x1c], edi
je 0x402272
push dword [ebp - 0x1c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x40230a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [0x41571c]
xor esi, esi
mov dword [ebp - 8], esi
call fcn.00401de0
or eax, 0x20019
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f963
add esp, 0x10
test eax, eax
jne 0x40235c
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret 8
Function at 0x402364
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov eax, edi
mov esi, 0xffff
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.0040244a
cmp dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
je 0x4023bf
cmp dword [ebp - 4], 0x80000002
je 0x4023a2
cmp dword [ebp - 4], 0x80000003
jne 0x402442
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x402442
mov ebx, dword [ebp - 8]
jmp 0x4023c2
mov ebx, dword [ebp - 4]
cmp dword [edi + 0x18], 0x63
jne 0x4023e3
push dword [ebp - 0xc]
push ebx
call fcn.0040230a
test eax, eax
jne 0x402433
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x402433
push dword [0x41571c]
call fcn.00401de0
or eax, 0x2001f
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
push ebx
call fcn.0040f963
add esp, 0x10
test eax, eax
jne 0x402433
mov eax, dword [edi + 0x10]
mov ecx, 0x41512c
call fcn.00405cb3
test eax, eax
jne 0x40241e
mov eax, 0x412535
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x402442
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x404a99
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x404af5
push ebx
push edi
push ebp
call sub.msvcrt.dll_strlen
pop ecx
lea ebx, [eax + 1]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x404af3
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404b00
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004048f2
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404b8f
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404b78
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404b78
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x404b81
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404b98
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x404ba3
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004048f2
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x404c32
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x404c1b
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x404c1b
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x404c24
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x404c3b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x404ffc
Capabilities:
Get common file path

Disassembly:
cmp byte [0x415b08], 0
push esi
mov esi, 0x415b08
jne 0x40501c
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x415c10], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x415c10]
pop ecx
pop ecx
pop esi
ret

Function at 0x40502f
Capabilities:
Get common file path

Disassembly:
cmp byte [0x415c18], 0
push esi
mov esi, 0x415c18
jne 0x40504f
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x415d20], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x415d20]
pop ecx
pop ecx
pop esi
ret

Function at 0x4053fd
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x412535
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x4059ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret

Function at 0x40677e
Capabilities:
Read .ini file

Disassembly:
push 0x4157c0
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x412535
push dword [esp + 0x14]
push 0x4158c8
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret