joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bb78
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44bd23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44bd04
mov dl, 1
mov eax, dword [0x412410]
call fcn.00403270
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040405c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44bcf3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439bac
test al, al
je 0x44bce6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44bd34
lea eax, [ebp - 0x254]
call fcn.00408f50
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44bce6
xor eax, eax
push ebp
push 0x44bcdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44bd6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44bcc8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042cc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44bcc8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bce6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44bbe9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416714
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bd2a
lea eax, [ebp - 0x260]
call fcn.0040405c
ret

Function at 0x44c658
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x460bb4]
cmp byte [eax + 0xa5], 0
jne 0x44c6c9
cmp dword [0x460bcc], 0
jne 0x44c68a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44c614
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460bcc], eax
cmp dword [0x460bc8], 0
jne 0x44c6a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460bc8], eax
cmp dword [0x460bd0], 0
jne 0x44c6c9
push esp
push 0
push 0
push 0x44c5b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x460bd0], eax
pop edx
ret
Function at 0x44c7c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44c7d7
add esp, 0xfffffff0
call fcn.004035ac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aac0
mov eax, dword [0x45f710]
cmp word [eax + 2], 0
jne 0x44c7ff
mov eax, dword [0x45f710]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044deb0
mov eax, dword [0x45f810]
cmp word [eax + 2], 0
jne 0x44c819
mov eax, dword [0x45f810]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044e0a8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e68]
call fcn.00403270
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e68]
call fcn.00403270
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cc94]
call fcn.004228dc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44c9a0
mov eax, dword [0x45f5c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422cac
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44e658
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45f5c4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c8b0
test eax, eax
je 0x44c90e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408944
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8d8
test eax, eax
je 0x44c922
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042cc
mov eax, dword [0x45f3fc]
cmp byte [eax], 0
jne 0x44c956
mov eax, ebx
call fcn.0044cac8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044e834
mov eax, ebx
call fcn.0044f1f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c996
call fcn.00403604
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44cd48
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460bb4]
cmp dword [eax + 0x30], 0
je 0x44cdf2
cmp dword [ebx + 0x94], 0
jne 0x44cdec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ccd8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44cdec
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 0x44cdb2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44cdec
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.004143dc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44cdc1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44d954
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44d989
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.0040414c
jmp 0x44d996
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040b0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44ea10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44ea51
mov eax, esi
call fcn.004353b4
test al, al
je 0x44ea51
mov eax, dword [ebx + 0x84]
call fcn.00435154
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44ea51
push 0
mov eax, dword [ebx + 0x84]
call fcn.00435154
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x459524
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45965e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00415078
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x4595a0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4595a0
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00407ed0
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x45f484]
mov ebx, dword [ebx]
mov eax, 0x459674
call ebx
dec eax
jne 0x4595a0
mov ebx, 1
jmp 0x4595a2
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x459643
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00459034
test al, al
jne 0x459637
mov eax, dword [ebp - 4]
call fcn.00459518
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.004040b0
xor edx, edx
push ebp
push 0x459625
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x45961b
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.00459938
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459637
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4595ba
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459665
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404080
ret
Function at 0x45d72c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040450c
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x45d8a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
xor edx, edx
mov eax, 2
call fcn.0045c7fc
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0045c81c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x45d875
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004042cc
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00408820
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00407ed0
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00407ed0
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404468
je 0x45d84f
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004042cc
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00407ed0
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00407ed0
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404468
jne 0x45d866
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.0045c83c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45d7b0
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8b0
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404080
lea eax, [ebp - 4]
call fcn.0040405c
ret
Function at 0x4015f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
sub esp, 0x4c
push ebx
push esi
push edi
mov edi, dword [esp + 0x5c]
mov dword [0x40f9a8], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x40d0f8
xor esi, esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40162a
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x30
push eax
mov dword [esp + 0x30], 0x222b
mov dword [esp + 0x34], 0x4018b0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], 0x40d0b0
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x58], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
call ebx
push 1
mov dword [0x40f6ac], eax
call ebx
mov ecx, dword [0x40f6ac]
push esi
push edi
push esi
push esi
push eax
push ecx
push esi
push esi
push 0x80000000
push esi
push 0x40d0b0
push 8
mov dword [0x40f684], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
lea edx, [esp + 0x14]
push esi
push edx
call edi
test eax, eax
je 0x40170a
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call ebp
push esi
push esi
lea edx, [esp + 0x18]
push esi
push edx
call edi
test eax, eax
jne 0x4016e0
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x4c
ret 0x10
Function at 0x4048e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
mov esi, 0x40d394
lea edi, [esp + 0x18]
push 0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0
push 0
push 0x40d38c
movsb byte es:[edi], byte [esi]
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
push esi
mov dword [0x40f6b0], eax
call edi
mov ecx, dword [0x40f684]
mov edx, dword [0x40f6ac]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ecx
push edx
push esi
mov dword [0x40f69c], eax
call ebx
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
push eax
mov eax, dword [0x40f6b0]
push eax
call ebp
mov ecx, dword [0x40f684]
mov edx, dword [0x40f6ac]
push ecx
push edx
push esi
call ebx
mov dword [esp + 0x14], eax
push eax
mov eax, dword [0x40f69c]
push eax
call ebp
mov ecx, dword [0x40f684]
mov edx, dword [0x40f6ac]
mov eax, dword [0x40f6b0]
push 0xcc0020
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [0x40f684]
mov edx, dword [0x40f6ac]
mov eax, dword [0x40f69c]
push 0xcc0020
push 0
push 0
push esi
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x404a13
push esi
call edi
mov ecx, dword [0x40f684]
mov edx, dword [0x40f6ac]
push ecx
push edx
push esi
mov dword [0x40f678], eax
call ebx
mov edi, eax
mov eax, dword [0x40f678]
push edi
push eax
call ebp
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
jmp 0x404a19
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret

Function at 0x404e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
lea eax, [esp]
push eax
call fcn.00405160
mov edx, dword [esp + 0x110]
add esp, 4
lea ecx, [esp]
push 3
push ecx
push 0
push 0x40d3d4
push 0
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x108
ret
Function at 0x4050a0
Capabilities:
Create directory
Set current directory

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov ecx, dword [0x40f9a8]
mov edx, dword [esp + 0x6c]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], edx
xor edi, edi
lea edx, [esp + 8]
push esi
mov dword [esp + 0x18], 0x4c
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0x105
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0x280806
mov word [esp + 0x50], di
mov word [esp + 0x52], di
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40514b
push esi
call fcn.00405160
add esp, 4
push 0x40d3f8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcat]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x14]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
pop edi
pop esi
add esp, 0x58
ret

Function at 0x4051c0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
xor ecx, ecx
test edi, edi
jbe 0x4051f3
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
mov eax, ecx
xor edx, edx
div ebx
mov al, byte [edx + ebp]
mov dl, byte [ecx + esi]
xor dl, al
mov byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jb 0x4051da
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x405430
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret

Function at 0x405480
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4054a9
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x4075b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40e8f8
cmp edx, dword [eax]
je 0x4075db
add eax, 8
inc ecx
cmp eax, 0x40e988
jl 0x4075cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40e8f8]
jne 0x407709
mov eax, dword [0x40f36c]
cmp eax, 1
je 0x4076e3
test eax, eax
jne 0x40760c
cmp dword [0x40e618], 1
je 0x4076e3
cmp edx, 0xfc
je 0x407709
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407643
lea eax, [ebp - 0x1a4]
push 0x40bdd8
push eax
call fcn.00408c10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407d10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407686
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407d10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40bdd4
push edi
call fcn.00409620
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x40bdb8
push eax
call fcn.00408c10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408c20
lea eax, [ebp - 0xa0]
push 0x40bdb4
push eax
call fcn.00408c20
push dword [esi + 0x40e8fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408c20
push 0x12010
lea eax, [ebp - 0xa0]
push 0x40bd8c
push eax
call fcn.0040958a
add esp, 0x2c
pop edi
jmp 0x407709
lea eax, [ebp + 8]
lea esi, [esi + 0x40e8fc]
push 0
push eax
push dword [esi]
call fcn.00407d10
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 0x409390
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x464d4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00459959
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409412
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00457870
mov eax, dword [eax]
push 0x4ba1f0
push eax
call fcn.0044a4a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459be4
test bl, bl
je 0x409412
push 0x4ba1f0
lea ecx, [esp + 0xc]
call fcn.00459f74
push 0x4bdd64
lea ecx, [esp + 0xc]
call fcn.00459f74
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40944e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459be4
jmp 0x409519
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4094d2
lea edx, [esp + 0x7c]
push 0x4bdd60
push edx
call fcn.0044a4a4
add esp, 8
test eax, eax
je 0x4094d2
lea eax, [esp + 0x7c]
push 0x4bdd5c
push eax
call fcn.0044a4a4
add esp, 8
test eax, eax
je 0x4094d2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409462
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00459be4
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409d72
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc