joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ebc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402ef8
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402f18
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004051fc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403150
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404f8c
test esi, esi
jne 0x403186
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040507c
jmp 0x4031a4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403054
mov edi, eax
test esi, esi
je 0x4031a4
cmp dword [ebx], 0
je 0x4031a4
dec esi
jmp 0x40318d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403f40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403fd8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403fb8
xor eax, eax
push ebp
push 0x403fb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ff4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403fb8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x48e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404dec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x490048], 0
je 0x404e4d
cmp word [0x49021c], 0xd7b2
jne 0x404e15
cmp dword [0x490224], 0
jbe 0x404e15
mov eax, 0x490218
call dword [0x490234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e74
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48e02c], 0
jne 0x404e69
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40c364
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c386
movzx eax, byte [esp]
jmp 0x40c388
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d328
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40d3fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405024
lea eax, [ebp - 4]
call fcn.004054a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d3e8
mov eax, ebx
call fcn.00402cec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d3e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d3cb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d410
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d3cb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3e8
mov eax, dword [ebp - 0x10]
call fcn.00402d08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d405
lea eax, [ebp - 4]
call fcn.00404f8c
ret

Function at 0x4202fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x493300
cmp dword [edi], 0
jne 0x420378
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4932fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48ec88
mov ecx, 2
call fcn.00402f54
mov edx, 0x4202d4
lea eax, [esi + 5]
call fcn.004202f4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004202f4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x42034d
mov dword [0x4932fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4229f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405450
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x422a4c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48ff2c]
mov dl, 1
mov eax, dword [0x422518]
call fcn.0040cbd8
call fcn.004049b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422620
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423bdc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x423be2
ret
Function at 0x45f4bc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x493584]
cmp dword [eax + 0x30], 0
je 0x45f566
cmp dword [ebx + 0x94], 0
jne 0x45f560
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f44c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f560
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45f526
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f560
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004190fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f535
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460280
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4602b5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040507c
jmp 0x4602c2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404fe0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4615a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461612
mov eax, esi
call fcn.0044bcd0
test al, al
je 0x461612
mov eax, dword [ebx + 0x84]
call fcn.0044b930
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461612
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x461606
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b930
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00443d50
jmp 0x461612
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004613e0
pop esi
pop ebx
ret

Function at 0x489098
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x489134
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x48fa88]
call fcn.00409294
mov edx, dword [ebp - 4]
mov eax, 0x49372c
call fcn.0040573c
call fcn.00403ba4
call fcn.00402e48
mov eax, 0x49372c
call fcn.004035b0
call fcn.00402e48
push 1
lea eax, [ebp - 8]
call fcn.00409a6c
mov eax, dword [ebp - 8]
call fcn.00405450
push eax
push 0x489140
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00403150
mov eax, dword [ebp - 0xc]
call fcn.00405450
push eax
push 0x489150
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48913b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fb0
ret
Function at 0x489690
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x489699
mov eax, dword [ebp - 4]
add esp, 0xffffff94
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405440
mov eax, dword [ebp - 8]
call fcn.00405440
mov eax, dword [ebp - 0xc]
call fcn.00405440
mov eax, dword [ebp + 0x10]
call fcn.00405440
mov eax, dword [ebp + 0xc]
call fcn.00405440
mov eax, dword [ebp + 8]
call fcn.00405440
xor eax, eax
push ebp
push 0x4898e1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x8070]
xor ecx, ecx
mov edx, 0xc
call fcn.00403750
mov dword [ebp - 0x8070], 0xc
xor eax, eax
mov dword [ebp - 0x806c], eax
mov dword [ebp - 0x8068], 0xffffffff
cmp dword [ebp - 8], 0
je 0x48973d
push dword [ebp - 4]
push 0x4898fc
push dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405310
lea eax, [ebp - 0x8010]
mov edx, dword [ebp - 4]
call fcn.00409b20
cmp dword [ebp - 0xc], 0
jne 0x489755
xor ebx, ebx
jmp 0x48975f
mov eax, dword [ebp - 0xc]
call fcn.00405450
mov ebx, eax
lea eax, [ebp - 0x8054]
xor ecx, ecx
mov edx, 0x44
call fcn.00403750
mov dword [ebp - 0x8054], 0x44
cmp dword [ebp + 0x10], 0
jne 0x489790
mov dword [ebp - 0x8028], 1
jmp 0x48981b
mov dword [ebp - 0x8028], 0x101
push 0
push 0x80
push 2
lea eax, [ebp - 0x8070]
push eax
push 3
push 0xc0000000
mov eax, dword [ebp + 0x10]
call fcn.00405450
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x801c], eax
push 0
push 0x80
push 2
lea eax, [ebp - 0x8070]
push eax
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
call fcn.00405450
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x8018], eax
push 0
push 0x80
push 2
lea eax, [ebp - 0x8070]
push eax
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
call fcn.00405450
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x8014], eax
movzx eax, word [ebp + 0x14]
mov word [ebp - 0x8024], ax
lea eax, [ebp - 0x8064]
push eax
lea eax, [ebp - 0x8054]
push eax
push ebx
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x8010]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x489856
or ebx, 0xffffffff
jmp 0x48988f
push 0xffffffffffffffff
mov eax, dword [ebp - 0x8064]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x8064]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x8064]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x8060]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp + 0x10], 0
je 0x4898b9
mov eax, dword [ebp - 0x801c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x8018]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x8014]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4898e8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fb0
lea eax, [ebp + 8]
mov edx, 3
call fcn.00404fb0
ret
Function at 0x489900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x489987
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
lea edx, [ebp - 0x104]
mov eax, ebx
call fcn.0040507c
cmp dword [ebx], 0
jne 0x48996e
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x108]
call fcn.0040c2cc
mov ecx, dword [ebp - 0x108]
mov dl, 1
mov eax, dword [0x407fc4]
call fcn.0040cae0
call fcn.004049b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48998e
lea eax, [ebp - 0x108]
call fcn.00404f8c
ret
Function at 0x4899e8
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489bd6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x489b8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 4]
call fcn.0040507c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409784
test al, al
jne 0x489b81
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405450
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x489b81
lea eax, [ebp - 0x110]
call fcn.00489900
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.00489994
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 4]
mov ecx, 0x489bec
call fcn.0040529c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409784
test al, al
jne 0x489b81
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x489b81
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409884
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 4]
mov ecx, 0x489bfc
call fcn.0040529c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409784
test al, al
jne 0x489b81
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x489b81
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409884
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov ecx, 0x489c0c
call fcn.0040529c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409784
test al, al
jne 0x489b81
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x489b81
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x11c]
call fcn.0040c2cc
mov ecx, dword [ebp - 0x11c]
mov dl, 1
mov eax, dword [0x407fc4]
call fcn.0040cae0
call fcn.004049b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x489ba2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489bdd
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00404fb0
lea eax, [ebp - 0x110]
call fcn.00404f8c
lea eax, [ebp - 0x10c]
call fcn.00404f8c
ret
Function at 0x489c14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x489cc7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x489cd4
lea eax, [ebp - 0x108]
call fcn.004899e8
mov eax, dword [ebp - 0x108]
call fcn.00405450
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x489c91
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x10c]
call fcn.0040c2cc
mov ecx, dword [ebp - 0x10c]
mov dl, 1
mov eax, dword [0x407fc4]
call fcn.0040cae0
call fcn.004049b4
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, 0x104
call fcn.004051fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489cce
lea eax, [ebp - 0x10c]
call fcn.00404f8c
lea eax, [ebp - 0x108]
call fcn.00404f8c
ret

Function at 0x48a784
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, eax
mov eax, edi
call fcn.0048a644
mov ebp, eax
xor ebx, ebx
test ebp, ebp
je 0x48a7c5
mov bl, 1
push ebp
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
call fcn.0048a644
mov ebp, eax
test ebp, ebp
jne 0x48a799
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48afc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x48b03f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x48b054
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405174
push dword [ebp - 8]
push 0x48b068
lea eax, [ebp - 4]
mov edx, 3
call fcn.00405310
mov eax, dword [ebp - 4]
call fcn.00409760
test al, al
je 0x48b016
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.0048afa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b046
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404fb0
ret
Function at 0x48b070
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48b166
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00404f8c
mov eax, 0x48b17c
call fcn.00409784
test al, al
jne 0x48b0ac
push 0
push 0x48b184
call sub.kernel32.dll_CreateDirectoryA
mov eax, 0x48b194
call fcn.00409760
test al, al
je 0x48b0c7
lea edx, [ebp - 8]
mov eax, 0x48b194
call fcn.00482c00
mov eax, dword [ebp - 8]
test eax, eax
je 0x48b0d3
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x24
jge 0x48b0fd
push ebp
mov al, 0x30
call fcn.0048afc0
pop ecx
lea eax, [ebp - 8]
mov edx, 0x48b1b4
call fcn.00405024
mov edx, dword [ebp - 8]
mov eax, 0x48b194
call fcn.00482c8c
jmp 0x48b14b
push ebp
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
call fcn.0048afc0
pop ecx
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x23
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.004054b0
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00405174
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
pop edx
call fcn.0040529c
mov edx, dword [ebp - 8]
mov eax, 0x48b194
call fcn.00482c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b16d
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404fb0
ret
Function at 0x21003b3b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x18], 0
je 0x21003b56
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x21003b70
xor eax, eax
jmp 0x21003bc0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x21003bb3
mov dword [ebp - 0xc], 1
cmp dword [ebp + 0x18], 0
je 0x21003bb3
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x21006b09
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x21006b36
mov eax, 1
jmp 0x21006d22
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
jg 0x21006b59
mov eax, 1
jmp 0x21006d22
push 0x2108abe0
lea eax, [ebp - 0x200]
push eax
call fcn.2105e86f
add esp, 8
test eax, eax
jne 0x21006c42
push 0xfffffffffffffff0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xf
mov dword [ebp - 0x60c], eax
cmp dword [ebp - 0x60c], 9
ja case.0x21006ba5.2
mov eax, dword [ebp - 0x60c]
xor edx, edx
mov dl, byte [eax + 0x21006d32]
jmp dword [edx*4 + 0x21006d26]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x610], eax
cmp dword [ebp - 0x610], 0
jle 0x21006bec
cmp dword [ebp - 0x610], 2
jle 0x21006bd0
jmp 0x21006bec
mov edx, dword [ebp + 8]
push edx
call fcn.21008bf8
add esp, 4
test eax, eax
jne 0x21006bea
mov eax, 1
jmp 0x21006d22
jmp 0x21006c2d
mov word [ebp - 0x404], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x2108abf0
lea edx, [ebp - 0x404]
push edx
call fcn.2105e83a
add esp, 8
test eax, eax
jne 0x21006c2d
mov eax, 1
jmp 0x21006d22
jmp 0x21006c3b
jmp 0x21006c3b
mov eax, 1
jmp 0x21006d22
xor eax, eax
jmp 0x21006d22
push 0x2108abf8
lea eax, [ebp - 0x200]
push eax
call fcn.2105e86f
add esp, 8
test eax, eax
jne 0x21006d1d
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x608], eax
cmp dword [ebp - 0x608], 0
jne 0x21006c83
mov eax, 1
jmp 0x21006d22
push pe_nt_image_headers32
lea edx, [ebp - 0x604]
push edx
mov eax, dword [ebp - 0x608]
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x21006ca7
mov eax, 1
jmp 0x21006d22
push str.edit
lea ecx, [ebp - 0x604]
push ecx
call fcn.2105e86f
add esp, 8
test eax, eax
jne 0x21006ce0
push 0xfffffffffffffff0
mov edx, dword [ebp - 0x608]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x800
test eax, eax
je 0x21006cde
mov eax, 1
jmp 0x21006d22
jmp 0x21006d19
push str.combobox
lea eax, [ebp - 0x604]
push eax
call fcn.2105e86f
add esp, 8
test eax, eax
je 0x21006d10
push str.listbox
lea ecx, [ebp - 0x604]
push ecx
call fcn.2105e86f
add esp, 8
test eax, eax
jne 0x21006d12
jmp 0x21006d19
mov eax, 1
jmp 0x21006d22
xor eax, eax
jmp 0x21006d22
mov eax, 1
mov esp, ebp
pop ebp
ret