joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ecfcc
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 0x5ed0b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0x18], 0
jne 0x5ed013
lea edx, [ebp + 0x18]
mov eax, edi
call fcn.005a2b48
cmp dword [ebp + 0x18], 0
jne 0x5ed013
lea eax, [ebp + 0x18]
call fcn.005a3b4c
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 0x5ed03e
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 0x5ed080
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
jmp 0x5ed09a
mov dword [esi], 0x103
mov eax, dword [ebp - 8]
test eax, eax
je 0x5ed09a
push esi
movzx edx, byte [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.005ecc6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed0b7
lea eax, [ebp + 0x18]
call fcn.0040870c
ret

Function at 0x5ed2e8
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 0x5ed316
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x10
call fcn.00409864
jmp 0x5ed31d
mov eax, ebx
call fcn.0040870c
add esp, 0x24
pop ebx
ret

Function at 0x5ed324
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 0x5ed355
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00409864
jmp 0x5ed35c
mov eax, ebx
call fcn.0040870c
add esp, 0x208
pop ebx
ret

Function at 0x5ed36c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
call fcn.004272d4
cmp eax, 2
jne 0x5ed3d4
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x5ed38f
xor eax, eax
jmp 0x5ed3e3
lea eax, [esp + 8]
push eax
push 0x5ed3e8
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 0x5ed3d4
xor eax, eax
jmp 0x5ed3e3
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x5ed410
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 0x5ed46a
inc esi
xor edi, edi
cmp edi, 1
jne 0x5ed436
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x5ed444
cmp edi, 1
jle 0x5ed444
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.005ea178
test eax, eax
jne 0x5ed46a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x5ed46a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x5ed46a
inc edi
dec esi
jne 0x5ed426
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x5edcd4
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.005a3ed8
and eax, 0x7f
mov ecx, dword [eax*4 + 0x652ae4]
mov edx, 0x80000002
xor eax, eax
call fcn.005a4104
test eax, eax
jne 0x5edd1e
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 0x5edd3f
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
pop edx
pop esi
pop ebx
ret
Function at 0x5edd44
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 0x5ede8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5edea4
push 0x5edecc
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00412174
mov ebx, eax
lea edx, [ebp - 0xc]
movzx eax, byte [ebp - 1]
call fcn.005e9f94
test al, al
jne 0x5edda3
mov byte [ebp - 2], 0
jmp 0x5ede72
xor eax, eax
push ebp
push 0x5ede6b
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5edde7
push 0
mov eax, dword [ebp + 8]
push eax
push edi
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.005a2a98
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.005a2674
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 0x5ede55
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.005a2a98
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.005a2b70
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.005a2674
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 0x5ede55
mov ecx, edi
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.005a7474
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
imul dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.005a7474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ede72
lea eax, [ebp - 0xc]
call fcn.005e9fd0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ede94
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.0040876c
ret

Function at 0x5ee07c
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 0x5ee0a0
mov eax, dword [ebp - 4]
jmp 0x5ee0a3
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret
Function at 0x5ee0a8
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 0x5ee0f5
xor ebx, ebx
jmp 0x5ee0ea
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.0041faec
test eax, eax
jne 0x5ee0e9
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x5ee1a0
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x5ee0cb
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x5ee101
je 0x5ee10a
jmp 0x5ee113
call fcn.005a46e4
mov esi, eax
jmp 0x5ee115
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x5ee115
xor esi, esi
test si, si
je 0x5ee1a0
xor ebx, ebx
jmp 0x5ee13b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x5ee13a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x5ee1a0
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x5ee122
xor ebx, ebx
jmp 0x5ee195
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 0x5ee194
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x5ee189
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.005ee07c
push eax
mov eax, esi
call fcn.005ee07c
pop edx
cmp edx, eax
jne 0x5ee194
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x5ee1a0
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x5ee14a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x5f6338
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.004219bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5f6368
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x5f6484
push dword fs:[eax]
mov dword fs:[eax], esp
inc dword [0x65acc4]
cmp dword [0x65acc0], 0
jne 0x5f645f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp ax, 6
jb 0x5f645f
lea eax, [ebp - 8]
call fcn.005f6338
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.005a2674
lea eax, [ebp - 4]
mov edx, 0x5f64a0
call fcn.004099bc
mov eax, dword [ebp - 4]
call fcn.004097c0
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x65acc0], eax
cmp dword [0x65acc0], 0
je 0x5f645f
push 0x5f64bc
mov eax, dword [0x65acc0]
push eax
call fcn.00412174
mov dword [0x65aca4], eax
push 0x5f64dc
mov eax, dword [0x65acc0]
push eax
call fcn.00412174
mov dword [0x65aca8], eax
push 0x5f6504
mov eax, dword [0x65acc0]
push eax
call fcn.00412174
mov dword [0x65acac], eax
push 0x5f6518
mov eax, dword [0x65acc0]
push eax
call fcn.00412174
mov dword [0x65acb0], eax
push 0x5f6530
mov eax, dword [0x65acc0]
push eax
call fcn.00412174
mov dword [0x65acb4], eax
push 0x5f6544
mov eax, dword [0x65acc0]
push eax
call fcn.00412174
mov dword [0x65acb8], eax
cmp dword [0x65acc0], 0
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f648b
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040876c
ret
Function at 0x5fad90
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 0x5faf91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx]
mov eax, dword [eax + 0x508]
mov edx, 0x20
call fcn.004ef694
mov eax, dword [ebx]
mov eax, dword [eax + 0x508]
mov edx, 0x20
call fcn.004ef6c8
mov eax, dword [ebx]
mov eax, dword [eax + 0x50c]
mov edx, 0x20
call fcn.004ef694
mov eax, dword [ebx]
mov eax, dword [eax + 0x50c]
mov edx, 0x20
call fcn.004ef6c8
xor eax, eax
push ebp
push 0x5faf66
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1010
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0x10
push 0x5fafa0
call sub.shell32.dll_SHGetFileInfoW
test eax, eax
je 0x5fae6d
cmp word [ebp - 0x2ac], 0
je 0x5fae6d
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x657634]
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.005faccc
xor edx, edx
mov al, 6
call fcn.00631304
test al, al
je 0x5faed2
push 0x27
lea edx, [ebp - 0x2bc]
mov eax, dword [0x653a0c]
mov eax, dword [eax]
call fcn.005a2674
lea eax, [ebp - 0x2bc]
mov edx, 0x5fafc8
call fcn.004099bc
mov eax, dword [ebp - 0x2bc]
call fcn.004097c0
push eax
mov eax, dword [0x657634]
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.005faccc
jmp 0x5faf5c
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
xor eax, eax
call fcn.00636a54
cmp dword [ebp - 4], 0
jne 0x5faef6
lea eax, [ebp - 4]
push eax
xor ecx, ecx
mov dl, 2
mov al, 1
call fcn.00636a54
cmp dword [ebp - 4], 0
je 0x5faf5c
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 0x5faf5c
cmp word [ebp - 0x2ac], 0
je 0x5faf5c
mov eax, dword [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x2ac]
push eax
mov eax, dword [0x657634]
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.005faccc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5faf70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5faf98
lea eax, [ebp - 0x2bc]
call fcn.0040870c
lea eax, [ebp - 4]
call fcn.0040870c
ret
Function at 0x60d5ec
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov ebx, edx
mov esi, eax
cmp byte [esi + 4], 0
je 0x60d6c6
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, 0x60d6d8
call fcn.005f4020
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x60d644
mov eax, 0x60d738
call fcn.005f3d9c
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 0x60d62f
push esp
mov eax, dword [esi + 8]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x60d697
cmp dword [esp], 0
jne 0x60d679
mov eax, 0x60d790
call fcn.005f3d9c
jmp 0x60d6a1
mov eax, dword [esp]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
lea edx, [esp + 4]
xor ecx, ecx
mov eax, 0x60d7cc
call fcn.005f4020
jmp 0x60d6a1
mov eax, 0x60d834
call fcn.005f3d9c
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 0x60d6c6
push 0xfa
call sub.kernel32.dll_Sleep
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x60d89c
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 0x60dada
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 0x60da7f
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 0x60d911
mov eax, 0x60daf8
call fcn.005eae9c
xor edx, edx
push ebp
push 0x60da14
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 0x60d9fd
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x60d979
mov eax, 0x60db1c
call fcn.005eae9c
xor edx, edx
push ebp
push 0x60d9e6
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [ebp + 8], 0
je 0x60d9b9
mov eax, dword [ebp - 4]
cmp word [eax + 0x1a], 0
je 0x60d9b9
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 0x60d997
pop dword fs:[0]
add esp, 8
push 0x60d9ed
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 0x60da1b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x612e4c
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 0x613093
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.0060facc
cmp dword [ebp - 0x1084], 0x418
jle 0x612f0c
lea ecx, [ebp - 0x11e8]
mov edx, dword [ebp - 0x1004]
mov al, 0xd9
call fcn.005ab1a0
mov ecx, dword [ebp - 0x11e8]
mov dl, 1
mov eax, dword [0x41991c]
call fcn.004265c4
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.00612768
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.00612768
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 0x613054
push ebp
mov eax, esi
mov edx, 0xa
call fcn.00612dd4
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.0061026c
mov dword [ebp - 0x11e4], eax
cmp dword [ebp - 0x11e4], 0
jne 0x612ff1
push ebp
call fcn.00612c2c
pop ecx
xor eax, eax
push ebp
push 0x613022
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.00612dd4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x61303c
mov edx, dword [ebp - 0x11e4]
mov eax, dword [ebp - 0x11d0]
call fcn.006102a8
dec ebx
jne 0x612fb6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61309a
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 0x614918
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 0x614931
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 0x614965
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.006147e8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x6167f0
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 0x616921
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
lea eax, [ebp - 8]
push eax
mov eax, dword [0x65354c]
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0x652fb8]
mov edx, 0x80000002
xor eax, eax
call fcn.005a4104
test eax, eax
jne 0x616885
mov esi, edi
test esi, esi
je 0x616848
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 0x61687a
mov eax, 0x61693c
call fcn.005f3d9c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x61688f
mov eax, 0x6169a0
call fcn.005f3d9c
test bl, bl
je 0x616906
mov eax, edi
call fcn.004097c0
push eax
call sub.gdi32.dll_AddFontResourceW
test eax, eax
je 0x6168b6
push 0
push 0
push 0x1d
push 0xffff
call sub.user32.dll_SendNotifyMessageW
jmp 0x616906
lea ecx, [ebp - 0x10]
mov edx, 0x6169f4
mov al, 0x3f
call fcn.005ab1a0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.005a49ec
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x65377c]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x65377c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x65377c]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov ecx, 2
pop eax
call fcn.00613dc4
test al, al
je 0x616893
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x616928
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040876c
ret
Function at 0x619ba8
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 0x619c69
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 0x619c4e
test bl, 0x10
je 0x619c4e
lea ecx, [ebp - 4]
mov edx, 0x619c84
mov eax, esi
call fcn.005a27e4
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor ecx, ecx
mov edx, 0x619ca8
mov eax, 0x619cc4
call fcn.005a2fbc
mov edx, 0x619cf0
mov eax, dword [ebp - 8]
call fcn.0041faec
test eax, eax
jne 0x619c4e
mov eax, dword [ebp - 4]
call fcn.004210cc
lea ecx, [ebp - 0xc]
mov edx, 0x619d4c
mov eax, esi
call fcn.005a27e4
mov eax, dword [ebp - 0xc]
call fcn.004210cc
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 0x619c70
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040876c
ret

Function at 0x61ac9c
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 0x61ad76
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, edi
call fcn.005eafa8
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, 0x61ad94
call fcn.005f4020
mov eax, dword [0x653344]
mov eax, dword [eax + 8]
mov edx, dword [ebp + 8]
call fcn.0045a3a8
mov esi, eax
mov eax, dword [esi]
mov ebx, eax
test ebx, ebx
je 0x61ad0f
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.006136c4
test al, al
jne 0x61ad60
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x61ad45
mov eax, 0x61ade4
call fcn.005f3d9c
jmp 0x61ad60
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x61ae84
call fcn.005f4020
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x61ad7d
lea eax, [ebp - 0x1c]
call fcn.0040870c
ret