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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
call fcn.004087f0
xor eax, eax
push ebp
push 0x5f1b60
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x5f1ac3
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.005a2b90
cmp dword [ebp + 0x18], 0
jne 0x5f1ac3
lea eax, [ebp + 0x18]
call fcn.005a3b94
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00405ce4
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
test ebx, ebx
je 0x5f1aee
mov eax, ebx
call fcn.004097c0
mov dword [ebp - 0x34], eax
mov eax, edi
call fcn.004097c0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
call fcn.004097c0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
call fcn.004097c0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x5f1b30
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x5f1b4a
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x5f1b4a
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.005f171c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1b67
lea eax, [ebp + 0x18]
call fcn.0040870c
ret

Function at 0x5f1d98
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x5f1dc6
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00409864
jmp 0x5f1dcd
mov eax, ebx
call fcn.0040870c
add esp, 0x24
pop ebx
ret

Function at 0x5f1dd4
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x5f1e05
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00409864
jmp 0x5f1e0c
mov eax, ebx
call fcn.0040870c
add esp, 0x208
pop ebx
ret

Function at 0x5f1e1c
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
call fcn.00427314
cmp eax, 2
jne 0x5f1e8a
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x5f1e45
xor eax, eax
jmp 0x5f1e97
lea eax, [esp + 8]
push eax
push 0x5f1ea0
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x5f1e8a
xor eax, eax
jmp 0x5f1e97
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x5f1ed8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x5f1f32
inc esi
xor edi, edi
cmp edi, 1
jne 0x5f1efe
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x5f1f0c
cmp edi, 1
jle 0x5f1f0c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005ed47c
test eax, eax
jne 0x5f1f32
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x5f1f32
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x5f1f32
inc edi
dec esi
jne 0x5f1eee
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x5f279c
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
push 0
push 2
lea eax, [esp + 8]
push eax
call fcn.005a3f20
and eax, 0x7f
mov ecx, dword [eax*4 + 0x655b98]
mov edx, 0x80000002
xor eax, eax
call fcn.005a414c
test eax, eax
jne 0x5f27e6
mov eax, esi
call fcn.004097c0
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey
mov eax, ebx
call fcn.004097c0
push eax
call sub.gdi32.dll_RemoveFontResourceW
test eax, eax
je 0x5f2807
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop esi
pop ebx
ret
Function at 0x5f280c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, ecx
mov esi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x5f2955
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f296c
push 0x5f2994
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.0041218c
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.005ed298
test al, al
jne 0x5f286b
mov byte [ebp - 2], 0
jmp 0x5f293a
xor eax, eax
push ebp
push 0x5f2933
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5f28af
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.005a2ae0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.005a26bc
mov eax, dword [ebp - 0x20]
call fcn.004097c0
push eax
call ebx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
jmp 0x5f291d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.005a2ae0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.005a2bb8
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.005a26bc
mov eax, dword [ebp - 0x28]
call fcn.004097c0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x5f291d
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.005a7444
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.005a7444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f293a
lea eax, [ebp - 0xc]
call fcn.005ed2d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f295c
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.0040876c
ret

Function at 0x5f2b44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x5f2b68
mov eax, dword [ebp - 4]
jmp 0x5f2b6b
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x5f2b70
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x5f2bbd
xor ebx, ebx
jmp 0x5f2bb2
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041fb14
test eax, eax
jne 0x5f2bb1
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x5f2c68
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x5f2b93
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5f2bc9
je 0x5f2bd2
jmp 0x5f2bdb
call fcn.005a472c
mov esi, eax
jmp 0x5f2bdd
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x5f2bdd
xor esi, esi
test si, si
je 0x5f2c68
xor ebx, ebx
jmp 0x5f2c03
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x5f2c02
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x5f2c68
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x5f2bea
xor ebx, ebx
jmp 0x5f2c5d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x5f2c5c
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x5f2c51
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.005f2b44
push eax
mov eax, esi
call fcn.005f2b44
pop edx
cmp edx, eax
jne 0x5f2c5c
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x5f2c68
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x5f2c12
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x5faa70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x208]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
lea eax, [ebp - 0x208]
call fcn.004219fc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5faaa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x5fabbc
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x65e0c8]
cmp dword [0x65e0c4], 0
jne 0x5fab97
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 6
jb 0x5fab97
lea eax, [ebp - 8]
call fcn.005faa70
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.005a26bc
lea eax, [ebp - 4]
mov edx, 0x5fabd8
call fcn.004099bc
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x65e0c4], eax
cmp dword [0x65e0c4], 0
je 0x5fab97
push 0x5fabf4
mov eax, dword [0x65e0c4]
push eax
call fcn.0041218c
mov dword [0x65e0a8], eax
push 0x5fac14
mov eax, dword [0x65e0c4]
push eax
call fcn.0041218c
mov dword [0x65e0ac], eax
push 0x5fac3c
mov eax, dword [0x65e0c4]
push eax
call fcn.0041218c
mov dword [0x65e0b0], eax
push 0x5fac50
mov eax, dword [0x65e0c4]
push eax
call fcn.0041218c
mov dword [0x65e0b4], eax
push 0x5fac68
mov eax, dword [0x65e0c4]
push eax
call fcn.0041218c
mov dword [0x65e0b8], eax
push 0x5fac7c
mov eax, dword [0x65e0c4]
push eax
call fcn.0041218c
mov dword [0x65e0bc], eax
cmp dword [0x65e0c4], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fabc3
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040876c
ret
Function at 0x5ff38c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
add ebx, 0xfffffffc
xor eax, eax
push ebp
push 0x5ff58d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
mov eax, dword [eax + 0x508]
mov edx, 0x20
call fcn.004ef6dc
mov eax, dword [ebx]
mov eax, dword [eax + 0x508]
mov edx, 0x20
call fcn.004ef710
mov eax, dword [ebx]
mov eax, dword [eax + 0x50c]
mov edx, 0x20
call fcn.004ef6dc
mov eax, dword [ebx]
mov eax, dword [eax + 0x50c]
mov edx, 0x20
call fcn.004ef710
xor eax, eax
push ebp
push 0x5ff562
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x5ff59c
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x5ff469
cmp word [ebp - 0x2ac], 0
je 0x5ff469
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x65a634]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebx]
mov edx, dword [edx + 0x410]
mov ecx, dword [edx + 0x7c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x508]
call fcn.005ff2c8
xor edx, edx
mov al, 6
call fcn.00634924
test al, al
je 0x5ff4ce
push 0x27
lea edx, [ebp - 0x2bc]
mov eax, dword [0x656b1c]
mov eax, dword [eax]
call fcn.005a26bc
lea eax, [ebp - 0x2bc]
mov edx, 0x5ff5c4
call fcn.004099bc
mov eax, dword [ebp - 0x2bc]
call fcn.004097c0
push eax
mov eax, dword [0x65a634]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebx]
mov edx, dword [edx + 0x418]
mov ecx, dword [edx + 0x7c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x50c]
call fcn.005ff2c8
jmp 0x5ff558
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.00639a48
cmp dword [ebp - 4], 0
jne 0x5ff4f2
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.00639a48
cmp dword [ebp - 4], 0
je 0x5ff558
push 0x1000
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x5ff558
cmp word [ebp - 0x2ac], 0
je 0x5ff558
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x65a634]
push eax
call sub.shell32.dll_ExtractIconW
mov edx, dword [ebx]
mov edx, dword [edx + 0x418]
mov ecx, dword [edx + 0x7c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x50c]
call fcn.005ff2c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5ff56c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ff594
lea eax, [ebp - 0x2bc]
call fcn.0040870c
lea eax, [ebp - 4]
call fcn.0040870c
ret
Function at 0x611ebc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x611f96
mov byte [esi + 5], 1
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x611fa8
call fcn.005f890c
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x611f14
mov eax, 0x611fe4
call fcn.005f8688
push 1
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_TerminateProcess
push 0x2710
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x611eff
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x611f67
cmp dword [esp], 0
jne 0x611f49
mov eax, 0x61200c
call fcn.005f8688
jmp 0x611f71
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x61202c
call fcn.005f890c
jmp 0x611f71
mov eax, 0x612060
call fcn.005f8688
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0x10], eax
mov byte [esi + 4], 0
test bl, bl
je 0x611f96
push 0xfa
call sub.kernel32.dll_Sleep
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x612088
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6122c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
inc dword [eax + 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ebx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ecx
xor eax, eax
lea ebx, [eax + 0xc]
add ebx, ecx
xor edx, edx
push ebp
push 0x61226b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6120fd
mov eax, 0x6122e4
call fcn.005ef94c
xor edx, edx
push ebp
push 0x612200
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x14
call fcn.00405ce4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
push 0x14
mov eax, dword [ebp - 4]
add eax, 0x4034
push eax
push ebx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x6121e9
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x612165
mov eax, 0x612308
call fcn.005ef94c
xor edx, edx
push ebp
push 0x6121d2
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x6121a5
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x6121a5
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x612183
pop dword fs:[0]
add esp, 8
push 0x6121d9
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
call sub.kernel32.dll_GetOverlappedResult
mov ebx, eax
call sub.kernel32.dll_GetLastError
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x612207
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x616e6c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe08
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x11f4], ebx
mov dword [ebp - 0x11f8], ebx
mov dword [ebp - 0x11ec], ebx
mov dword [ebp - 0x11f0], ebx
mov dword [ebp - 0x11e8], ebx
mov dword [ebp - 0x1004], ecx
mov dword [ebp - 0x11cc], edx
mov dword [ebp - 0x11d0], eax
lea esi, [ebp - 0x11de]
xor eax, eax
push ebp
push 0x6170b3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x11d4], eax
xor eax, eax
mov dword [ebp - 0x11c8], eax
mov eax, dword [ebp - 0x11d0]
add eax, 0x10
push eax
lea ecx, [ebp - 0x11c4]
mov edx, dword [ebp - 0x1004]
mov eax, dword [ebp - 0x11cc]
call fcn.00614118
cmp dword [ebp - 0x1084], 0x418
jle 0x616f2c
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xd6
call fcn.005ab128
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x419944]
call fcn.00426604
call fcn.00407e08
lea eax, [ebp - 0x11f0]
lea edx, [ebp - 0x1184]
mov ecx, 0x80
push 0
call fcn.00408edc
mov edx, dword [ebp - 0x11f0]
lea ecx, [ebp - 0x11ec]
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
call fcn.006167b0
mov edx, dword [ebp - 0x11ec]
mov eax, dword [ebp - 0x11d0]
add eax, 0x14
call fcn.00408aec
lea eax, [ebp - 0x11f8]
lea edx, [ebp - 0x1104]
mov ecx, 0x80
push 0
call fcn.00408edc
mov edx, dword [ebp - 0x11f8]
lea ecx, [ebp - 0x11f4]
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
call fcn.006167b0
mov edx, dword [ebp - 0x11f4]
mov eax, dword [ebp - 0x11d0]
add eax, 0x18
call fcn.00408aec
lea eax, [ebp - 0x1078]
movzx eax, byte [eax]
mov edx, dword [ebp - 0x11d0]
mov byte [edx + 0x1d], al
mov ebx, dword [ebp - 0x1080]
test ebx, ebx
jle 0x617074
push ebp
mov eax, esi
mov edx, 0xa
call fcn.00616df4
pop ecx
mov eax, dword [esi + 6]
push eax
mov eax, dword [ebp - 0x11d0]
mov eax, dword [eax]
mov ecx, dword [esi + 2]
movzx edx, word [esi]
call fcn.006146fc
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x617011
push ebp
call fcn.00616c4c
pop ecx
xor eax, eax
push ebp
push 0x617042
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x11e4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x11e4]
add eax, 0x12
call fcn.00616df4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61705c
mov edx, dword [ebp - 0x11e4]
mov eax, dword [ebp - 0x11d0]
call fcn.00614738
dec ebx
jne 0x616fd6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6170ba
lea eax, [ebp - 0x11f8]
call fcn.00408730
lea eax, [ebp - 0x11f4]
call fcn.0040870c
lea eax, [ebp - 0x11f0]
call fcn.00408730
lea eax, [ebp - 0x11ec]
mov edx, 2
call fcn.0040876c
ret
Function at 0x619218
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, esi
test ebx, ebx
je 0x619231
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004097c0
push eax
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x619265
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
xor eax, eax
call fcn.006190e8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x61ae14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x61af45
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x656654]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x6560ac]
mov edx, 0x80000002
xor eax, eax
call fcn.005a414c
test eax, eax
jne 0x61aea9
mov esi, edi
test esi, esi
je 0x61ae6c
sub esi, 4
mov esi, dword [esi]
inc esi
mov eax, esi
add eax, eax
push eax
mov eax, edi
call fcn.004097c0
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x61ae9e
mov eax, 0x61af60
call fcn.005f8688
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x61aeb3
mov eax, 0x61af8c
call fcn.005f8688
test bl, bl
je 0x61af2a
mov eax, edi
call fcn.004097c0
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x61aeda
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x61af2a
lea ecx, [ebp - 0x10]
mov edx, 0x61afb0
mov al, 0x3d
call fcn.005ab128
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.005a4a34
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x656884]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x656884]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x656884]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov ecx, 2
pop eax
call fcn.00618708
test al, al
je 0x61aeb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61af4c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040876c
ret
Function at 0x61d984
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x61da45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004097c0
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x61da2a
test bl, 0x10
je 0x61da2a
lea ecx, [ebp - 4]
mov edx, 0x61da60
mov eax, esi
call fcn.005a282c
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x61da84
mov eax, 0x61daa0
call fcn.005a3004
mov edx, 0x61dacc
mov eax, dword [ebp - 8]
call fcn.0041fb14
test eax, eax
jne 0x61da2a
mov eax, dword [ebp - 4]
call fcn.0042110c
lea ecx, [ebp - 0xc]
mov edx, 0x61db28
mov eax, esi
call fcn.005a282c
mov eax, dword [ebp - 0xc]
call fcn.0042110c
and ebx, 0xfffffffe
push ebx
mov eax, esi
call fcn.004097c0
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesW
push edi
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61da4c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040876c
ret

Function at 0x61e92c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x61ea06
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.005efa58
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x11
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x61ea24
call fcn.005f890c
mov eax, dword [0x656444]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.0045a3f0
mov esi, eax
mov eax, dword [esi]
mov ebx, eax
test ebx, ebx
je 0x61e99f
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
push eax
mov eax, ebx
mov ecx, 0x14
cdq
idiv ecx
push eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov edx, edi
call fcn.006176b0
test al, al
jne 0x61e9f0
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x61e9d5
mov eax, 0x61ea54
call fcn.005f8688
jmp 0x61e9f0
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x61ea84
call fcn.005f890c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61ea0d
lea eax, [ebp - 0x1c]
call fcn.0040870c
ret