joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50880b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test ebx, ebx
je 0x508828
xor dword [ebx], eax
lea ebx, [ebx + 4]
dec ecx
jne 0x50881d
xor eax, eax
inc eax
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x50dd3b
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x50ddab
cmp ebx, 0x20
je 0x50ddab
cmp ebx, 0xffffffe0
je 0x50ddab
jne 0x50ddb4
add eax, 1
cmp esi, eax
je 0x50ddc1
jne 0x50dd90
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x50ddc5
jne 0x50dd8c
pop edx
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
cmp ebx, 0
je 0x50de0a
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x50de10
add eax, 4
pop esi
dec esi
push esi
jne 0x50ddf2
xor eax, eax
mov dword [ebp - 8], eax
nop
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
mov dword [ebp - 8], eax
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov esi, dword [esi + 4]
lea ecx, [esi - 1]
test ecx, ecx
jl 0x50de51
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
lea eax, [eax + ecx*4 + 8]
inc ecx
push dword [eax]
sub eax, 4
dec ecx
jne 0x50de49
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x50de67
lea eax, [esi*4]
add esp, eax
mov eax, dword [ebp - 0xc]
jmp 0x50de6f
mov esp, ebp
pop ebp
ret 0x18
Function at 0x50f2f7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x50f311
mov dword [ebp + 0x1c], 1
cmp dword [ebp + 0x18], 0
jne 0x50f339
mov eax, str.open
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x50f333
push ebx
call fcn.0055dd85
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x59ab40
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x50f374
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x50f388
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x512340
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmGetContext]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x512380
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5124b1
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0055ee60
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push 0x800
push dword [ebp - 4]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x5123dd
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x5123f0
push ebx
call fcn.0055dd85
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.0055eb70
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x512429
push ebx
call fcn.0055dd85
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0x800
push dword [ebp - 4]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x51245a
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x51247f
push 6
call fcn.0055dd91
add esp, 4
lea eax, [ebp - 0xc]
push eax
call fcn.005124d3
test eax, eax
je 0x5124b1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5124ac
push eax
mov ebx, eax
call fcn.00401a76
inc eax
push eax
call fcn.0055dd8b
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x5124bb
mov eax, 0x59ab40
jmp 0x5124bb
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5124cc
push ebx
call fcn.0055dd85
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x5404cf
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x5404e9
mov dword [ebp + 0xc], 0x1000
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0055ebb0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x40
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x540548
push 6
call fcn.0055dd91
add esp, 4
jmp 0x54054d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x540553
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push dword [ebp + 0x20]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x54059d
push 6
call fcn.0055dd91
add esp, 4
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
mov dword [ebp - 8], esp
push 0xffffffff
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x5405cb
push 6
call fcn.0055dd91
add esp, 4
mov dword [ebp - 8], esp
lea eax, [ebp - 4]
push eax
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x5405f3
push 6
call fcn.0055dd91
add esp, 4
cmp dword [ebp + 0x1c], 0
jne 0x540610
mov ebx, dword [ebp + 0x18]
cmp dword [ebx], 0
je 0x540610
mov eax, 1
jmp 0x540612
xor eax, eax
test eax, eax
je 0x54063e
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x54063e
push 6
call fcn.0055dd91
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x540646
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5417c5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x541808
push 6
call fcn.0055dd91
add esp, 4
jmp 0x54180d
mov esp, ebp
pop ebp
ret 0x18

Function at 0x55ee80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x55eee9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0055e590
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x55f410
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x55f493
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x55f493
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x55f486
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x55fec0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x55fede
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x55fed3
pop esi
ret

Function at 0x5609f0
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x5609fe
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00564970
add esp, 4
test eax, eax
jne 0x560a10
or eax, 0xffffffff
pop esi
ret
mov ecx, dword [esi]
or eax, 0xffffffff
cmp ecx, 1
jne 0x560a2b
mov esi, dword [esi + 4]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
ret
cmp ecx, 2
jne 0x560a38
mov ecx, dword [esi + 4]
call fcn.00564960
pop esi
ret

Function at 0x560a40
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x560a53
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.00564970
add esp, 4
test eax, eax
jne 0x560a65
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x560a74
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x560acb
mov ebx, dword [ebx + 4]
push edi
call fcn.00570858
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x560aae
push ebp
call fcn.0057080e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.00563e30
push ebp
mov esi, eax
call fcn.0057080e
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x560b0d
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.0055e590
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x560b0a
push esi
call fcn.0055e620
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x560b30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x560bc2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x560bb4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x560bac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x560b75
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x560ec0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x560f01.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x560f01.2
jmp dword [eax*4 + 0x560f8c]
mov word [esp + 0x48], di
jmp 0x560f3a
mov word [esp + 0x48], 2
jmp 0x560f3a
mov word [esp + 0x48], 3
jmp 0x560f3a
mov word [esp + 0x48], 4
jmp 0x560f3a
mov word [esp + 0x48], 7
jmp 0x560f3a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x560f84
cmp dword [esp + 0x70], edi
je 0x560f70
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x563260
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
jne 0x563284
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x5632e2
jmp 0x5632a6
mov edx, dword [esp + 0x124]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x5632e2
mov cl, byte [edx]
mov byte [esp + 0x19], 0x3a
mov byte [esp + 0x18], cl
lea edx, [esp + 8]
lea eax, [esp]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x5632e2
mov eax, dword [esp]
mov edx, dword [esp + 4]
mov ecx, 0xa
call fcn.00571310
add esp, 0x11c
ret
or eax, 0xffffffff
add esp, 0x11c
ret

Function at 0x5632f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x563340
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x563335
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00563f50
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret
Function at 0x56c540
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58da38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0056c930
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x63d914
call fcn.00571f72
mov ecx, dword [0x59071c]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00569ca0
mov esi, 0x590774
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x56c5e7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x56c5de
cmp al, 0xff
je 0x56c5de
dec al
mov byte [ecx], al
jmp 0x56c5e7
push ecx
call fcn.0057080e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0058c0c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x56c62d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x56c624
cmp al, 0xff
je 0x56c624
dec al
mov byte [ecx], al
jmp 0x56c62d
push ecx
call fcn.0057080e
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00571ff9
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x586510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58e180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0057b30e
mov eax, dword [0x591040]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0057b240
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00587020
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5865b7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5865ae
cmp al, 0xff
je 0x5865ae
dec al
mov byte [ecx], al
jmp 0x5865b7
push ecx
call fcn.0057080e
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5865e8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5865df
cmp al, 0xff
je 0x5865df
dec al
mov byte [ecx], al
jmp 0x5865e8
push ecx
call fcn.0057080e
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4a8740
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x53906b
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.0052cf12
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a87c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0052a6f0
mov eax, dword [eax]
push 0x757d70
push eax
call fcn.0051be44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0052d19d
test bl, bl
je 0x4a87c2
push 0x757d70
lea ecx, [esp + 0xc]
call fcn.0052d52d
push 0x757d7c
lea ecx, [esp + 0xc]
call fcn.0052d52d
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 0x4a87fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0052d19d
jmp 0x4a88c9
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 0x4a8882
lea edx, [esp + 0x7c]
push 0x757d78
push edx
call fcn.0051be44
add esp, 8
test eax, eax
je 0x4a8882
lea eax, [esp + 0x7c]
push 0x757d74
push eax
call fcn.0051be44
add esp, 8
test eax, eax
je 0x4a8882
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 0x4a8812
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.0052d19d
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 0x4a90e0
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 0x4a9142
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
Function at 0x4a9150
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5390eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x767de4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4a9288
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4a91b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0052d19d
xor eax, eax
jmp 0x4a92ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0052d2da
push esi
lea ecx, [esp + 0xc]
call fcn.0052d569
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x757db0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4a92dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004a90e0
test eax, eax
jne 0x4a92dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004a90e0
test eax, eax
jne 0x4a92dd
lea eax, [esp + 0x14]
push 0x757d8c
push eax
call fcn.0051cf90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a92bc
lea ecx, [esp + 0x14]
push 0x757d88
push ecx
call fcn.0051cf10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a92bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4a92bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0052d28a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a91ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0052d19d
xor eax, eax
jmp 0x4a92ff
mov byte [esi], 0
push 0x757d84
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0052d19d
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4