joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aae10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
lea eax, [esp + 0x50]
push edi
mov esi, ecx
push eax
mov edi, edx
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call edi
mov ebx, eax
mov edi, dword [esp + 0x78]
push edi
call fcn.005aac40
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
push edx
sub eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
call fcn.005aad40
mov ebp, eax
push edi
call fcn.005aad60
push edi
mov dword [esp + 0x7c], eax
call fcn.005aad80
push 0
push edi
push ebp
push 4
push edi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ebp, eax
push ebp
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
sub edx, edi
xor eax, eax
test edx, edx
jle 0x5aaf84
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov ebp, edx
mov dword [esp + 0x44], eax
add ecx, eax
sub ebp, edi
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], ecx
jle 0x5aaf6c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
lea ebp, [eax + edi]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x5aaf56
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push ebx
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov eax, ebp
sub ecx, edi
cmp eax, ecx
jl 0x5aaf0d
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
cmp eax, ecx
jl 0x5aaef1
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
push edx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
Function at 0x5abc00
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp word [esi], 3
jne 0x5abc20
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x5abc2e
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
mov edx, edi
call fcn.005aba10
test eax, eax
jne 0x5abc35
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x5ae0f0
Capabilities:
Query or enumerate registry value

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

Function at 0x5ae160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push ebx
push ebp
mov ebp, edx
push edi
push ebp
mov edi, ecx
push 0
push eax
push edi
push 0x5b5240
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x5ae256
mov ecx, edi
call fcn.005ac260
test eax, eax
jne 0x5ae1ae
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
lea ecx, [esp + 0x10]
mov edx, 0x5b5238
push ecx
mov ecx, 0x80000000
call fcn.005ae0f0
test eax, eax
jne 0x5ae25e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x5b5224
push edx
call ebx
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, 0x80000000
call fcn.005ae0f0
test eax, eax
jne 0x5ae25e
push esi
lea ecx, [esp + 0x14]
push 0x5b521c
push ecx
call fcn.005b3170
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ae235
lea edx, [esp + 0x14]
push 0x5b5218
push edx
call fcn.005b3170
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ae235
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x5ae238
mov byte [esi], 0
push 0x5b50b4
push esi
call ebx
push edi
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop esi
jbe 0x5ae25e
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
Function at 0x5ae940
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x5b8d80]
push ebx
push ebp
push esi
mov esi, dword [ecx + 6]
push edi
mov edi, edx
mov edx, dword [ecx + 2]
xor edx, eax
mov eax, edx
mov dword [ecx + 2], edx
mov edx, dword [ecx + 0xa]
xor esi, eax
mov eax, dword [esp + 0x14]
xor esi, edx
add esi, eax
xor edx, edx
mov eax, esi
mov ebx, dword [ecx + 6]
mov ebp, dword [eax]
xor ebp, ebx
inc edx
mov dword [eax], ebp
mov ebx, dword [ecx + 0xa]
mov ebp, dword [eax + 4]
add eax, 4
xor ebp, ebx
inc edx
mov dword [eax], ebp
add eax, 4
cmp edx, 0x14
jl 0x5ae969
mov ecx, dword [edi]
call fcn.005b2440
mov dword [edi], 0
cmp word [0x5b8e10], 0
je 0x5ae9ac
cmp word [0x5b529a], 0
je 0x5ae9ac
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x5aea10
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
mov byte [0x5b8c44], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x5aea43
mov byte [esp + 0x110], 0x63
mov byte [esp + 0x111], al
push edi
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x5aea85
cmp byte [esp + edx + 0x114], 0x5c
je 0x5aea7d
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x5aea5b
jmp 0x5aea85
mov byte [esp + edx + 0x115], 0
lea ecx, [esp + 0x10]
push 0x104
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x22c]
push 0x104
lea eax, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5aebde
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push 0xa
push ecx
push edx
call fcn.005b2f4e
add esp, 0xc
xor eax, eax
mov dl, 0x38
mov cl, byte [esp + eax + 0x10]
cmp cl, 0x30
jl 0x5aeaef
cmp cl, 0x39
jg 0x5aeaef
mov byte [eax + 0x5b8c3c], cl
jmp 0x5aeaf5
mov byte [eax + 0x5b8c3c], dl
inc eax
cmp eax, 8
jl 0x5aead9
mov edi, 0x5b8c3c
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x19]
mov dl, byte [esp + 0x1b]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x5b8c3d], al
mov al, byte [esp + 0x17]
mov cl, byte [esp + 0x14]
xor al, 0x7f
xor dl, 0x7f
mov byte [0x5b8c3e], al
mov al, byte [esp + 0x16]
mov byte [0x5b8c3f], dl
mov dl, byte [0x5b8c3e]
xor al, 0x7f
xor dl, 0x7f
xor cl, 0x7f
mov byte [0x5b8c40], dl
mov dl, byte [0x5b8c3d]
xor al, 0x7f
xor cl, 0x7f
xor dl, 0x7f
cmp al, 0x30
mov byte [0x5b8c41], 0
mov byte [0x5b8c3c], al
mov byte [0x5b8c3e], cl
mov byte [0x5b8c3d], dl
pop esi
jne 0x5aeb96
mov byte [0x5b8c3c], 0x31
mov eax, 1
mov dl, 0x35
mov cl, byte [eax + 0x5b8c3c]
cmp cl, 0x30
jb 0x5aebad
cmp cl, 0x39
jbe 0x5aebb3
mov byte [eax + 0x5b8c3c], dl
inc eax
cmp eax, 5
jl 0x5aeb9d
mov edx, 0x5b5338
mov ecx, 0x5b8c3c
call fcn.005b28e0
xor ecx, ecx
mov dword [0x5b8c48], eax
test eax, eax
setne cl
mov eax, ecx
pop edi
add esp, 0x318
ret
mov edx, 0x5b5330
mov ecx, 0x5b5318
call fcn.005b2450
xor eax, eax
pop edi
add esp, 0x318
ret
Function at 0x5af580
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [0x5b8e14]
mov eax, 0x60000
test eax, ecx
jne 0x5af5a8
mov edx, ecx
mov ecx, dword [0x5b8d80]
or edx, eax
xor ecx, eax
mov dword [0x5b8e14], edx
mov dword [0x5b8d80], ecx
lea eax, [esp]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push eax
push 0x5b5258
push 0x80000000
call esi
test eax, eax
je 0x5af628
lea ecx, [esp + 4]
push ecx
push 0x5b5258
push 0x80000001
call esi
test eax, eax
jne 0x5af5ec
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000001
pop esi
pop ecx
ret
lea eax, [esp + 4]
push eax
push 0x5b5258
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x5af5e4
push 0x5b5258
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000000
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80000000
pop esi
pop ecx
ret
Function at 0x5b0050
Capabilities:
Get common file path

Disassembly:
sub esp, 0x190
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
push 0x104
mov edi, edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x5b0081
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x5b00a6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll__lopen]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push 0x1a3
push 0x5b53a0
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5b010d
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
lea ecx, [edi - 0x104]
test ecx, ecx
jle 0x5b013f
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
sub edi, 0x104
cmp edi, 0x104
jg 0x5b0117
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lwrite]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll__lclose]
call ebp
push ebx
call ebp
lea edx, [esp + 0x118]
mov edi, dword [esp + 0x10]
push 0x200
push edx
push edi
call dword [sym.imp.KERNEL32.dll_OpenFile]
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebx, eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b01be
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
jne 0x5b01f3
push 0x104
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll__lread]
cmp eax, 0x104
je 0x5b01d2
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call ebp
push ebx
call ebp
lea ecx, [esp + 0x118]
lea edx, [esp + 0x14]
push 0x200
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
Function at 0x5b08e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [0x5b8c6c]
sub esp, 0xc
lea eax, [esp + 8]
push ebp
push esi
push eax
push 0x5b5268
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x5b090a
pop esi
mov ax, 2
pop ebp
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x5b092e
pop esi
mov ax, 3
pop ebp
add esp, 0xc
ret
mov eax, dword [0x5b8c6c]
lea edx, [esp + 8]
push edx
push ebp
push 0x5b5268
push eax
mov dword [esp + 0x18], 0xbb80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x5b0980
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop esi
pop ebp
add esp, 0xc
ret
mov edx, dword [esp + 8]
push ebx
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
dec edx
push ecx
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.005b25d0
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add eax, 8
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x5b09ce
mov edi, dword [0x5b8c4c]
mov ecx, 3
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x5b09ce
mov ecx, dword [esp + 0x10]
add eax, 0xc
inc ebx
cmp ebx, ecx
jl 0x5b09af
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
call edi
push ebp
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree]
push eax
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call esi
push eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
cmp ebx, eax
pop ebx
je 0x5b0a26
or byte [0x5b8c14], 0x20
pop esi
mov ax, 1
pop ebp
add esp, 0xc
ret
pop esi
xor ax, ax
pop ebp
add esp, 0xc
ret
Function at 0x5b1310
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x5b8c4c]
push eax
push 0xa
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x5b8c78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5b13b3
mov eax, dword [0x5b8b08]
test ah, 0x30
jne 0x5b134d
test ah, 1
je 0x5b1352
mov eax, 1
ret
test ah, 1
jne 0x5b137f
test ah, 0x10
mov cl, 8
je 0x5b1361
test byte [0x5b8adc], cl
jne 0x5b137f
cmp byte [0x5b8bf3], 2
jne 0x5b13d5
movsx edx, word [0x5b8bf1]
mov eax, dword [0x5b8afc]
shl edx, 6
test byte [edx + eax + 0x28], cl
je 0x5b13d5
mov ecx, dword [0x5b8c78]
push 0xa
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [eax]
inc edx
mov ecx, edx
mov dword [eax], edx
cmp ecx, 2
jne 0x5b13ce
push eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, 1
ret
mov edx, dword [0x5b8c78]
push 0xa
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
ret
Function at 0x5b15c0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
or ecx, 0xffffffff
mov byte [ebp], 0
mov edi, dword [0x5b8e04]
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], esi
jne 0x5b15eb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
mov eax, dword [0x5b8e04]
push 0x3a
push eax
call fcn.005b2fb0
add esp, 8
test eax, eax
mov eax, dword [0x5b8e04]
jne 0x5b16f5
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x5b1620
cmp byte [eax + 1], cl
je 0x5b16f5
cmp cl, 0x2e
jne 0x5b1630
mov cl, byte [eax + 1]
lea ebx, [eax + 1]
cmp cl, 0x5c
je 0x5b165e
push 0x5b53ec
push eax
mov ebx, eax
call fcn.005b3170
add esp, 8
test eax, eax
je 0x5b165e
lea ebx, [eax + 2]
push 0x5b53ec
push ebx
inc esi
call fcn.005b3170
add esp, 8
test eax, eax
jne 0x5b1644
mov dword [esp + 0x10], esi
cmp byte [edi], 0x22
jne 0x5b1664
inc edi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test esi, esi
jl 0x5b16a2
push 0x5c
push ebp
call fcn.005b3220
add esp, 8
test eax, eax
je 0x5b15e3
dec esi
mov byte [eax], 0
jns 0x5b1689
cmp byte [ebx], 0x5c
je 0x5b16d1
mov edi, 0x5b5130
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x5b170f
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
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]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x5b1730
mov byte [ecx + ebp], 0x5c
mov byte [ecx + ebp + 1], 0
mov ecx, dword [0x5b8c4c]
mov esi, 0x5b8e18
add ecx, 9
mov eax, 1
dec esi
mov dl, byte [ecx]
mov byte [esi + eax], dl
inc eax
dec ecx
cmp eax, 8
jl 0x5b1744
mov byte [eax + 0x5b8e18], 0
mov edi, 0x5b8e18
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5b1790
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [0x5b8e00]
sub esp, 0x104
test eax, eax
push esi
jne 0x5b17ab
xor ax, ax
pop esi
add esp, 0x104
ret
lea ecx, [esp + 4]
call fcn.005b15c0
test eax, eax
jne 0x5b17c4
mov ax, 1
pop esi
add esp, 0x104
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80000002
push 4
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x5b53e8], eax
jne 0x5b1852
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.005b31f0
add esp, 4
call fcn.005b31fa
cdq
mov ecx, 0x1f4
idiv ecx
cmp dx, 0xc8
jae 0x5b1816
add edx, 0xc8
and edx, 0xffff
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 4]
push 0
push 0x80000002
push 4
push 0
push 3
push 0xc0000000
push edx
call esi
cmp eax, 0xffffffff
mov dword [0x5b53e8], eax
jne 0x5b1852
mov ax, 1
pop esi
add esp, 0x104
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
je 0x5b1872
mov ecx, 1
mov dword [0x5b8e28], ecx
call fcn.005b19e0
jmp 0x5b1882
mov ecx, 0x5b8e28
call fcn.005b19b0
inc dword [0x5b8e28]
mov eax, dword [0x5b8e28]
mov ecx, dword [0x5b8e00]
cmp eax, ecx
ja 0x5b18d7
call fcn.005b15a0
mov ecx, dword [0x5b8e28]
call fcn.005b19e0
mov ecx, dword [0x5b53e8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 4]
push 0
push 0x80000002
push 4
push 0
push 3
push 0xc0000000
push edx
call esi
mov dword [0x5b53e8], eax
xor ax, ax
pop esi
add esp, 0x104
ret
mov eax, dword [0x5b53e8]
cmp eax, 0xffffffff
je 0x5b18e8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5b8c78]
push 0xa
push 0
push 0
push 6
push eax
mov dword [0x5b53e8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [eax], 0
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ax, 2
pop esi
add esp, 0x104
ret

Function at 0x5b19e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov edx, dword [0x5b53e8]
lea eax, [esp + 4]
shl ecx, 0x12
xor ecx, 0x20202020
push 0
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x5b53e8]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add esp, 8
ret

Function at 0x5b1a20
Capabilities:
Delete registry key

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [0x5b8c6c]
lea eax, [esp + 4]
push eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x5b1a43
mov eax, 1
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5b8c6c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop esi
inc eax
pop ecx
ret
Function at 0x5b21c0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x35c
lea eax, [esp + 0x54]
push edi
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x5b227a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x160]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x17c]
push 0
lea edx, [esp + 0x7c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x5b227a
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [0x5b8e2c], ecx
mov ecx, dword [0x5b8bf4]
mov dword [0x5b8e34], eax
mov eax, 1
inc ecx
mov dword [0x5b8e38], eax
mov dword [0x5b8bf4], ecx
pop edi
add esp, 0x35c
ret
xor eax, eax
pop edi
add esp, 0x35c
ret

Function at 0x5b2450
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, 0x5b548c
or ecx, 0xffffffff
lea ebp, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebx
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]