joyce8/EMBER2024-capa huggingface dataset:
Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x10001f70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10001fae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10001fa6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10001fb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10001f96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10002090
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100020a6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x100020c1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x10024f3
Capabilities:
Check if file exists
Delete directory
Delete file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x100aba0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x100a548]
xor ebp, ebp
cmp eax, ebp
je 0x100251a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100a548], ebp
mov esi, dword [0x10011d0]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov edi, 0x10011d0
jmp 0x100255c
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x100255a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1002557
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002557
cmp eax, 3
je 0x1002557
push 4
push ebp
push dword [esi + 4]
call ebx
mov dword [esi + 4], ebp
mov esi, dword [esi]
cmp esi, edi
jne 0x100252d
mov esi, dword [0x10011d8]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, 0x10011d8
jmp 0x10025a0
mov eax, dword [esi + 4]
test eax, eax
je 0x100259e
push eax
call ebp
test eax, eax
jne 0x100259a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100259a
cmp eax, 3
je 0x100259a
push 4
push 0
push dword [esi + 4]
call ebx
and dword [esi + 4], 0
mov esi, dword [esi]
cmp esi, edi
jne 0x1002573
mov eax, dword [0x10011ec]
cmp eax, 0xffffffff
je 0x10025bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x10011ec], 0xffffffff
mov esi, 0x100abc0
push esi
call ebp
test eax, eax
jne 0x10025df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10025df
cmp eax, 3
je 0x10025df
push 4
push 0
push esi
call ebx
push 0x100aba0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x1002713
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
test edx, edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
je 0x100273f
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
mov esi, dword [esi*4 + 0x100a560]
shr eax, 8
xor eax, esi
inc ecx
dec edx
jne 0x1002725
pop edi
pop esi
ret 0xc
Function at 0x1002b26
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x280
push esi
mov esi, dword [ebp + 0x7c]
cmp esi, 0xffffffff
jne 0x1002b42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101ae00], 0
jne 0x1002b97
lea eax, [ebp - 0x20c]
push eax
push 0x200
push esi
call fcn.0100248b
and byte [ebp - 0xc], 0
push 0x80
lea eax, [ebp - 0xc]
push eax
push 0x20000003
push dword [0x100a380]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [0x100aa64]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.010024f3
test esi, esi
jne 0x1002ba1
inc esi
cmp dword [0x100a384], 0
je 0x1002bbc
push 0x100aba0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a384], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1002bf0
Capabilities:
Get common file path
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x1b4
push ebx
push esi
push 0x10018bc
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp + 0x60], 0x10
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, eax
cmp esi, ebx
je 0x1002c32
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002c49
cmp dword [ebp + 0x74], ebx
je 0x1002c3e
push 0xea60
jmp 0x1002c43
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x50]
push eax
push ebx
push 0x13
call fcn.01002a51
test eax, eax
je 0x1002d60
push edi
push 0x10018ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0x74], eax
je 0x1002c96
push 0x1001890
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1002c96
push dword [ebp + 0x7c]
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push dword [ebp + 0x78]
push ebx
call eax
jmp 0x1002ca5
push dword [ebp + 0x6c]
push dword [ebp + 0x70]
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
mov edi, eax
cmp edi, ebx
jne 0x1002d46
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x94
call esi
cmp dword [ebp - 0x48], 4
jbe 0x1002d46
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x9c
call esi
test byte [ebp + 0x4c], 0x40
je 0x1002d46
push 0x104
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1002d46
lea eax, [ebp - 0x150]
push 0x5c
push eax
call fcn.010041b0
pop ecx
pop ecx
push ebx
push 0x2000000
push 3
push ebx
push 7
mov byte [eax + 1], bl
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002d46
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x1002d46
push 1
call dword [sym.imp.ntdll.dll_NtShutdownSystem]
mov edi, eax
cmp dword [ebp + 0x74], ebx
je 0x1002d54
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 0x50]
push eax
call fcn.01002ad5
mov eax, edi
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x1002e16
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push dword [ebp + 8]
and byte [ebp - 0xc], 0
and byte [ebp - 0xb], 0
and byte [ebp - 0xa], 0
and byte [ebp - 9], 0
and byte [ebp - 8], 0
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1002e6e
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1002e75
xor eax, eax
jmp 0x1002f2e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x100ae00
push 4
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1002e9d
xor eax, eax
jmp 0x1002f2c
push dword [0x100ae00]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01002d69
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x1002f0a
mov ecx, esi
mov esi, dword [0x100ae00]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x100ae00
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 8]
call ebx
test eax, eax
je 0x1002e96
push dword [0x100ae00]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov esi, eax
push esi
call fcn.01002d69
test eax, eax
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x1002f11
push 8
call fcn.01002b26
mov ecx, esi
mov esi, dword [0x100ae00]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop ebx
pop edi
leave
ret 0xc

Function at 0x1003157
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100316a
sub eax, edx
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + eax - 0x104]
cmp byte [eax - 1], 0x5c
pop edi
pop esi
je 0x10031a0
mov byte [eax], 0x5c
and byte [eax + 1], 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push eax
call fcn.01003103
test eax, eax
je 0x1003205
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003205
test al, 0x10
je 0x1003205
push 0x10018ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x1003200
push 0x10018d0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003200
push 0
lea ecx, [ebp - 0x104]
push ecx
call eax
test eax, eax
jne 0x1003200
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
inc eax
jmp 0x1003207
xor eax, eax
leave
ret 0xc
Function at 0x1004f3d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01005430
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004fd2
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x100a3c4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1004fd2
cmp eax, 1
je 0x1004fea
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004fd2
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1004fa7
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1004fce
xor eax, eax
inc eax
jmp 0x1005006
cmp esi, ebx
jae 0x1004fd6
xor eax, eax
jmp 0x1005006
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100a3c4]
jmp 0x1004fec
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10054f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x101c084]
push ebx
push esi
push edi
jae 0x100567e
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x101c0a0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x100567e
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x100554d
xor eax, eax
jmp 0x1005692
test al, 0x20
je 0x100555e
push 2
push edi
push edi
push ecx
call fcn.010065c5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100561a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x1005652
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x10055b4
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10055a5
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100558a
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10055f4
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x10055fd
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100557e
jmp 0x10055ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1005679
cmp dword [ebp + 8], edi
je 0x1005652
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1005647
mov dword [0x100a3bc], eax
jmp 0x1005685
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100563c
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x10055ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x10055ff
push dword [ebp + 8]
call fcn.010064b0
pop ecx
jmp 0x100568f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1005667
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1005546
mov dword [0x100a3b8], 0x1c
mov dword [0x100a3bc], edi
jmp 0x100568f
sub eax, dword [ebp - 0x10]
jmp 0x1005692
and dword [0x100a3bc], 0
mov dword [0x100a3b8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006e84
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1001650]
je 0x1006ea4
inc eax
cmp eax, 0x12
jb 0x1006e95
shl eax, 3
cmp edx, dword [eax + 0x1001650]
mov dword [ebp + 8], eax
jne 0x1007042
mov ecx, dword [0x100a410]
cmp ecx, 1
je 0x1007017
test ecx, ecx
jne 0x1006ed6
cmp dword [0x1001644], 1
je 0x1007017
cmp edx, 0xfc
je 0x1007042
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1006f11
push 5
pop ecx
mov esi, 0x100219c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006f20
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1006f58
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006f38
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1002198
push ebx
call fcn.01004450
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006f5d
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1001654]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006f74
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01005430
mov edx, esp
push 6
pop ecx
mov esi, 0x100217c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006fa0
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006fac
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1006fc5
mov eax, dword [ebp + 8]
mov esi, 0x1002178
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1001654]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006fe0
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006fec
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002150
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01007326
add esp, 0xc
jmp 0x1007042
mov ecx, dword [eax + 0x1001654]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1007022
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007326
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100a530], ebx
push esi
push edi
jne 0x10073a6
push 0x1002228
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10073e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100221c
push edi
call esi
test eax, eax
mov dword [0x100a530], eax
je 0x10073e1
push 0x100220c
push edi
call esi
push 0x10021f8
push edi
mov dword [0x100a534], eax
call esi
cmp dword [0x100a3c4], 2
mov dword [0x100a538], eax
jne 0x10073a6
push 0x10021dc
push edi
call esi
test eax, eax
mov dword [0x100a540], eax
je 0x10073a6
push 0x10021c4
push edi
call esi
mov dword [0x100a53c], eax
mov eax, dword [0x100a53c]
test eax, eax
je 0x10073eb
call eax
test eax, eax
xor eax, eax
jmp 0x100741a

Function at 0x1008957
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1008992
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100896f
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10089ae
dec esi
je 0x10089a7
dec esi
jne 0x10089b3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x4036da
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.0041be80
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403729
sub eax, ecx
push esi
sar eax, 1
lea esi, [edi + 0x8c]
lea ecx, [ebp - 0x404]
call fcn.00401f96
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00419e3b
leave
ret

Function at 0x403765
Capabilities:
Create process on windows

Disassembly:
push 0x85c
mov eax, 0x43d826
call fcn.0041fdb5
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x868], esi
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x6c]
mov edi, 0xc4
add eax, edi
cmp dword [eax + 0x14], 8
jb 0x4037ac
mov eax, dword [eax]
push eax
call fcn.0040c426
pop ecx
test al, al
je 0x4037cf
mov eax, dword [esi + 0x6c]
push 0xffffffffffffffff
push ebx
add eax, edi
lea ecx, [ebp - 0x82c]
call fcn.00401d19
jmp 0x40389f
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.0041be80
push str.KRglXTx2gH3c24R6o3JfvDqdFO9DgW9GgOnUdF
mov ecx, str.okKyEg_Q1SilKZeCLuWuUx5axbsK9FlLX7xNFVUS3VLLg2
lea ebx, [ebp - 0x864]
call fcn.0040df10
lea ecx, [ebp - 0x848]
push ecx
mov edi, eax
mov byte [ebp - 4], 1
call fcn.0040c348
mov esi, dword [esi + 0x6c]
lea ecx, [esi + 0x8c]
add esp, 0x14
cmp dword [ecx + 0x14], 8
jb 0x403825
mov ecx, dword [ecx]
lea edx, [esi + 0xc4]
cmp dword [edx + 0x14], 8
jb 0x403833
mov edx, dword [edx]
cmp dword [eax + 0x14], 8
jb 0x40383b
mov eax, dword [eax]
push ecx
push edx
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0041aa7d
add esp, 0x10
push 1
xor edi, edi
lea esi, [ebp - 0x848]
call fcn.0040211c
push edi
push 1
lea ecx, [ebp - 0x864]
mov byte [ebp - 4], 0
call fcn.004020ce
lea eax, [ebp - 0x810]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403877
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x810]
lea esi, [ebp - 0x82c]
call fcn.00401f96
mov esi, dword [ebp - 0x868]
xor ebx, ebx
cmp dword [ebp - 0x818], 8
mov ecx, dword [ebp - 0x82c]
jae 0x4038b4
lea ecx, [ebp - 0x82c]
push 5
mov eax, 0x443268
push eax
push eax
push ecx
push 0x443294
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.0040211c
xor eax, eax
inc eax
call fcn.0041fe38
ret
Function at 0x405ca1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x44e234]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.00405c5a
mov edi, eax
cmp edi, ebx
je 0x405d0f
cmp dword [ebp - 0x218], ebx
je 0x405d08
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405dd2
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405d33
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00405ca1
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x405d9c
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], pe_nt_image_headers32
call edi
test eax, eax
je 0x405d17
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x405d7e
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x405db8
mov esi, eax
call fcn.00405e34
jmp 0x405dbe
cmp dword [ebp - 0x218], ebx
je 0x405db0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x405dd2
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x405dd0
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419e3b
leave
ret 4