joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463b30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463c63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [0x42dd7c]
call fcn.00409be0
lea eax, [ebp - 8]
call fcn.00406f58
push 0
push 0
call sub.kernel32.dll_GetLogicalDriveStringsW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00407b38
mov eax, dword [ebp - 8]
call fcn.00407a40
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetLogicalDriveStringsW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x463c3d
mov edx, dword [0x42dd7c]
lea eax, [ebp - 0x18]
call fcn.00409be0
mov ecx, eax
mov edx, 0x463c7c
mov eax, dword [ebp - 8]
call fcn.00430c30
mov eax, dword [ebp - 0x18]
call fcn.004096f4
push eax
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x42dd7c]
call fcn.00409abc
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
call fcn.00409700
test eax, eax
jl 0x463c23
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
cmp dword [eax + edx*4], 0
je 0x463c1b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
call fcn.004072fc
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
dec dword [ebp - 0x1c]
jne 0x463bf3
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov ecx, 1
mov edx, dword [0x42dd7c]
call fcn.00409abc
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463c6a
lea eax, [ebp - 0x18]
mov edx, dword [0x42dd7c]
call fcn.00409be0
lea eax, [ebp - 8]
call fcn.00406f58
pop eax
jmp eax

Function at 0x463c80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00406f58
mov eax, dword [ebp - 8]
mov edx, 0x400
call fcn.00407b38
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407410
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407a40
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.kernel32.dll_QueryDosDeviceW
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00407b38
mov eax, dword [ebp - 8]
call fcn.00430a90
mov esp, ebp
pop ebp
ret

Function at 0x463e10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff48
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x56
lea eax, [ebp - 0xb8]
push eax
push 0x59
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x463e50
mov ecx, dword [ebp - 0xc]
dec ecx
lea edx, [ebp - 0xb8]
mov eax, dword [ebp - 8]
call fcn.004070a4
jmp 0x463e58
mov eax, dword [ebp - 8]
call fcn.00406f58
mov esp, ebp
pop ebp
ret
Function at 0x464240
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46432f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0xc]
call fcn.00406f58
mov eax, dword [ebp - 0xc]
mov edx, 0x8000
call fcn.00407b38
push 0x8000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00407a40
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.psapi.dll_GetModuleFileNameExW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
jne 0x4642cb
cmp dword [ebp - 0x10], 0
jne 0x4642cb
push 0x8000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00407a40
push eax
mov eax, dword [ebp - 4]
push eax
call sub.psapi.dll_GetProcessImageFileNameW
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00407b38
cmp byte [ebp - 0x11], 0
je 0x4642f4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00463ce0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004072fc
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00434d80
cmp dword [ebp - 0x18], 0
je 0x464312
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004072fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x464336
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406fb8
pop eax
jmp eax
Function at 0x471270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
cmp edx, 4
jb 0x4712cb
mov edi, dword [ebx + 0x1c]
movzx eax, byte [edi]
cmp al, 2
jne 0x4712a6
movzx esi, word [edi + 2]
lea ecx, [esi + 4]
cmp edx, ecx
jne 0x4712cb
push esi
mov edx, dword [ebx + 0x20]
push edx
movzx ecx, byte [edi + 1]
mov edx, eax
mov eax, ebx
call fcn.00471100
jmp 0x4712cb
cmp al, 3
jne 0x4712cb
cmp edx, 6
jb 0x4712cb
mov esi, dword [edi + 2]
lea ecx, [esi + 6]
cmp edx, ecx
jne 0x4712cb
push esi
mov edx, dword [ebx + 0x24]
push edx
movzx ecx, byte [edi + 1]
mov edx, eax
mov eax, ebx
call fcn.00471100
push fcn.00470e10
lea eax, [ebx + 0x28]
push eax
push 0x100000
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x70]
push eax
call sub.kernel32.dll_ReadFileEx
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4712f4
mov byte [ebx + 0x6c], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x477a70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x477c17
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 8]
call fcn.00432dc0
mov eax, dword [ebp - 0x58]
call fcn.00433030
test byte [ebp - 9], 2
je 0x477b3c
mov byte [ebp - 0x1d], 0
mov edx, 0x201
mov eax, dword [ebp - 4]
call fcn.00432fc0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x477b25
xor eax, eax
push ebp
push 0x477b1e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x54]
mov edx, 0x34
call fcn.0042f000
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetFileInformationByHandle
test eax, eax
je 0x477b06
test byte [ebp - 0x53], 2
je 0x477b06
mov byte [ebp - 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477b25
lea eax, [ebp - 0x1c]
call fcn.0041fb64
pop eax
jmp eax
cmp byte [ebp - 0x1d], 0
je 0x477b3c
mov eax, dword [ebp - 4]
call fcn.004344b0
mov byte [ebp - 0xa], 1
jmp 0x477bfa
push 9
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407a40
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.kernel32.dll_MoveFileWithProgressW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x477b9b
cmp word [ebp + 0xa], 0
je 0x477bfa
push 0
push 0
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00432ff0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
jmp 0x477bfa
mov byte [ebp - 0x1e], 0
test byte [ebp - 9], 2
je 0x477ba9
or byte [ebp - 0x1e], 1
test byte [ebp - 9], 1
je 0x477bd5
push dword [ebp + 0xc]
push dword [ebp + 8]
mov cl, byte [ebp - 0x1e]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00477520
test al, al
je 0x477bd5
mov eax, dword [ebp - 4]
call fcn.004344b0
mov byte [ebp - 0xa], 1
jmp 0x477bfa
push 0x477c34
push dword [ebp - 4]
push 0x477c6c
push dword [ebp - 8]
lea eax, [ebp - 0x5c]
mov edx, 4
call fcn.00407c98
mov eax, dword [ebp - 0x5c]
call fcn.00477500
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477c1e
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406fb8
pop eax
jmp eax
Function at 0x4795a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x479679
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [0x493040]
call fcn.00407c10
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00434060
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00434410
test al, al
je 0x47965c
cmp byte [ebp - 1], 0
jne 0x47961e
push 0
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
xor edx, edx
call fcn.00432ff0
cmp edx, 0
jne 0x479612
cmp eax, 0
jbe 0x47961e
jmp 0x479614
jle 0x47961e
mov eax, dword [ebp - 0xc]
call fcn.00406f58
jmp 0x47965c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004344b0
test al, al
jne 0x47965c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.004794d0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.00434480
test al, al
je 0x47965c
push 4
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407a40
push eax
call sub.kernel32.dll_MoveFileExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479680
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406fb8
pop eax
jmp eax

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0047c7e0
pop ecx
test al, al
je 0x47c8b3
mov byte [ebp - 5], 1
jmp 0x47c971
mov eax, dword [ebp - 4]
call fcn.00433030
mov byte [ebp - 5], 0
mov dl, byte [0x47c978]
mov eax, dword [ebp - 4]
call fcn.0042fd70
test al, al
jne 0x47c971
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004675d0
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x47c917
test byte [ebp - 0xc], 1
je 0x47c917
mov eax, dword [ebp - 0xc]
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0047c7e0
pop ecx
test al, al
je 0x47c92e
mov byte [ebp - 5], 1
jmp 0x47c971
mov eax, dword [ebp - 4]
call fcn.00433030
mov dl, byte [0x47c978]
mov eax, dword [ebp - 4]
call fcn.0042fd70
test al, al
jne 0x47c971
call fcn.00454d60
cmp al, 3
jne 0x47c971
call fcn.00454d60
shr eax, 8
cmp al, 1
jne 0x47c971
call fcn.0047c400
test al, al
je 0x47c971
mov eax, dword [ebp + 8]
mov byte [eax - 1], 0
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x402abf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401414
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b20
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b1b
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b1b
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b17
sub eax, 1
jne 0x402b1b
mov ecx, esi
call fcn.004029ca
test eax, eax
jne 0x402b20
xor eax, eax
jmp 0x402b20
mov eax, 0x3f7
pop esi
leave
ret 8

Function at 0x403190
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4031c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4031c1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4031c1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002707d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [0x1078d420], 0
jg 0x100270ca
call fcn.1001dbef
cmp dword [0x1078d420], 0
jg 0x100270ca
mov eax, 1
test eax, eax
je 0x100270b2
mov dword [ebp - 0x204], 0
jmp 0x100270c5
push 0x10086280
call fcn.10007540
add esp, 4
mov dword [ebp - 0x204], eax
jmp 0x10027194
push 0x100
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.100665d0
add esp, 0xc
push 0x100
push 0
lea edx, [ebp - 0x200]
push edx
call fcn.100665d0
add esp, 0xc
mov eax, dword [0x1078d420]
push eax
push sym.Comdata.dll_SBJNM
lea ecx, [ebp - 0x100]
push ecx
call fcn.10067020
add esp, 0xc
push 0x10086294
lea edx, [ebp - 0x100]
push edx
call fcn.10066ac0
add esp, 8
mov eax, dword [0x1078d420]
push eax
push sym.Comdata.dll_SBJNM
lea ecx, [ebp - 0x200]
push ecx
call fcn.10067020
add esp, 0xc
push 0x1008629c
lea edx, [ebp - 0x200]
push edx
call fcn.10066ac0
add esp, 8
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x200]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10027194
mov edx, 1
test edx, edx
je 0x10027181
mov dword [ebp - 0x208], 0
jmp 0x10027194
push 0x100862a4
call fcn.10007540
add esp, 4
mov dword [ebp - 0x208], eax
mov esp, ebp
pop ebp
ret
Function at 0x1006714c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1006716c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1006836f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1006718f
test byte [esp + 8], 2
je 0x1006718f
call fcn.100683e2
mov dword [eax], 0xd
call fcn.100683eb
mov dword [eax], 5
jmp 0x10067168
xor eax, eax
ret

Function at 0x1006ce75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100876c8
cmp edx, dword [eax]
je 0x1006ce97
add eax, 8
inc ecx
cmp eax, 0x10087758
jl 0x1006ce88
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100876c8]
jne 0x1006cfc5
mov eax, dword [0x104d366c]
cmp eax, 1
je 0x1006cf9f
test eax, eax
jne 0x1006cec8
cmp dword [0x104d3670], 1
je 0x1006cf9f
cmp edx, 0xfc
je 0x1006cfc5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1006ceff
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10066ab0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10066fa0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1006cf42
lea eax, [ebp - 0x1a4]
push eax
call fcn.10066fa0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1007f264
push edi
call fcn.10067020
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10066ab0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10066ac0
lea eax, [ebp - 0xa0]
push 0x1007f244
push eax
call fcn.10066ac0
push dword [esi + 0x100876cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.10066ac0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10070b41
add esp, 0x2c
pop edi
jmp 0x1006cfc5
lea eax, [ebp + 8]
lea esi, [esi + 0x100876cc]
push 0
push eax
push dword [esi]
call fcn.10066fa0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x30003c27
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x3001d64c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30003c6b
call ebx
test eax, eax
jns 0x30003c61
push 0x300017e4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x300017d8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x3001d648], eax
mov dword [0x3001d64c], 1
mov eax, dword [0x3001d648]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x30003c87
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30003cb7
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30003cad
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x30003ca2
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x30003ca7
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x30003cb6
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x300048be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x34], eax
jne 0x300048dd
xor al, al
jmp 0x300048f6
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x3000488e
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret

Function at 0x300054d3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x300054ec
push 0x80004005
call fcn.30005274
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x300054ee
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x30005a7b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x300028e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.30005446
mov edi, eax
cmp edi, esi
je 0x30005adb
lea ecx, [ebp - 0x208]
call fcn.300053e1
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30015724
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x30005af9
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.30005a7b
cmp eax, esi
jne 0x30005b41
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x30005ae3
lea ecx, [ebp - 0x208]
call fcn.300053e1
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.300053e1
mov eax, esi
jmp 0x30005aca
Function at 0x30006a81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x30017116
call fcn.3001614b
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
call dword [0x3001d380]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x428], ebx
jne 0x30006af0
call fcn.30005306
mov esi, eax
jmp 0x30006bf2
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x30006b13
call fcn.30005306
jmp 0x30006be4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x420], eax
je 0x30006b09
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x41c], edi
jae 0x30006b6f
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x30006b55
lea ecx, [ebp - 0x418]
call fcn.30005a29
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.30005959
mov eax, esi
call fcn.300161a4
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.30005ea8
mov dword [ebp - 4], 1
jmp 0x30006b96
mov ebx, dword [ebp - 0x418]
cmp ebx, esi
jne 0x30006ba7
mov esi, 0x8007000e
jmp 0x30006be6
call dword [0x3001d380]
push edi
push ebx
push edi
push dword [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x30006b09
mov ecx, dword [ebp - 0x418]
push dword [ebp + 0x14]
mov word [ecx + eax*2], si
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.30006944
mov esi, eax
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x30006b5a
lea ecx, [ebp - 0x418]
call fcn.30005a29
jmp 0x30006b5a
Function at 0x3001521b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x300028e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x474], eax
push 0x105
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor esi, esi
cmp eax, esi
jne 0x30015257
xor eax, eax
jmp 0x3001537d
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30015273
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push ebx
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
mov edi, 0x30002728
push edi
call fcn.300151f0
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
jne 0x300152b3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x30015365
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30002714
push ebx
call edi
push 0x300026f4
push ebx
mov dword [ebp - 0x478], eax
call edi
cmp eax, esi
mov dword [ebp - 0x470], eax
je 0x30015365
cmp dword [ebp - 0x474], esi
mov ebx, 0x300026e0
mov edi, 0x30002690
je 0x3001533d
cmp dword [ebp - 0x478], esi
je 0x30015365
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x474]
call dword [ebp - 0x478]
cmp eax, esi
jne 0x30015336
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
cmp eax, esi
je 0x30015369
cmp eax, 0x642
je 0x30015369
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x46c], 0x104
call dword [ebp - 0x470]
test eax, eax
je 0x30015369
xor eax, eax
jmp 0x3001537b
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x3001d92c], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30015724
leave
ret 4