joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4960c4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x4961cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00497930
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x496193
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409c74
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0049697c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409b58
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004969f0
jmp 0x4961a5
xor edx, edx
mov eax, ebx
call fcn.0049697c
xor edx, edx
mov eax, ebx
call fcn.004969f0
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4961d4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404934
ret

Function at 0x497b8c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x497bea
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.00497c68
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x497bd2
lea eax, [ebp - 4]
call fcn.00497c68
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x497bd4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497bf1
lea eax, [ebp - 4]
call fcn.00404910
ret

Function at 0x497bf8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x497c5c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.00497c68
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a03c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497c63
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x49d06c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.0049d2a0
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.0049d2a0
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x49d0e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x49d105
inc esi
mov eax, edi
call fcn.0049d0c4
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.0049d06c
inc ebx
dec esi
jne 0x49d0ef
pop edi
pop esi
pop ebx
ret

Function at 0x49d194
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x49d209
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0049d10c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.0049d0c4
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.0049d06c
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x49d1d4
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d210
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x49ddcc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49dfb0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x49df6c
mov eax, dword [ebp - 4]
call fcn.0049f748
cmp ebx, eax
jge 0x49df6c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004946d4
mov edx, dword [0x495a5c]
call fcn.00403cec
mov esi, eax
mov eax, esi
call fcn.00496910
test al, al
je 0x49df62
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x49df56
xor eax, eax
push ebp
push 0x49df4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049e384
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041bd5c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00404f5c
mov eax, dword [ebp - 8]
call fcn.00404e28
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049e148
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49df9a
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x49df4e
mov eax, dword [ebp - 4]
call fcn.0049e408
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a03c
jmp 0x49df9a
mov eax, dword [ebp - 8]
call fcn.00404910
jmp 0x49df9a
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.004095a0
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x416c8c]
call fcn.0040d01c
call fcn.004042c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49dfb7
lea eax, [ebp - 0x54]
call fcn.00404910
ret
Function at 0x4a60d8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a6106
mov eax, ebx
call fcn.004a6b8c
cmp dword [ebx + 0x40], 0
je 0x4a60ff
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a6177
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a6169
cmp dword [ebx + 8], 0
je 0x4a6128
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4a613a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a6169
cmp dword [ebx + 8], 0
je 0x4a611b
cmp eax, 3
je 0x4a614d
dec eax
jne 0x4a611b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4a611b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a611b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a6195
cmp dword [ebx + 0x14], 0xcc
je 0x4a6195
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004a61a0
pop ebx
ret
Function at 0x4bf250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bf2c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x513d38]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4bf2ab
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004bf240
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4bf048]
call fcn.004bf2e8
mov dword [0x513d9c], eax
mov eax, dword [ebp - 4]
call fcn.004bf1f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf2c8
lea eax, [ebp - 8]
call fcn.00406440
ret
Function at 0x4c2610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c26ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040501c
mov eax, dword [0x514780]
cmp dword [eax], 2
jne 0x4c267f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405294
mov eax, dword [ebx]
call fcn.004051b8
push eax
mov eax, dword [ebx]
call fcn.004051a8
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.004051b8
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405294
jmp 0x4c26b1
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040a03c
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c26d1
lea eax, [ebp - 0x3f0]
call fcn.00404910
ret
Function at 0x4e9600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x4e97b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428f20
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.0045ad04
call fcn.004c0b2c
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x4e9684
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.00423988
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428f20
mov eax, dword [eax + 0xc]
pop edx
call fcn.00423990
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423870
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409ee8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428f20
call fcn.00424a90
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004238e4
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423920
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423920
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423920
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423988
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428f20
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042381c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428f20
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x13
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x90]
mov edx, dword [ecx + edx*8 + 0x10]
call fcn.00423660
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e97ba
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x4f88dc
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409738
test al, al
je 0x4f8963
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040333c
or esi, 0x100
test esi, esi
jns 0x4f8917
call fcn.00403a7c
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404dd0
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4f8963
mov dl, 1
mov eax, dword [0x4227f8]
call fcn.0042a5cc
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042a99c
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4f8963
mov eax, esp
call fcn.0040ecb4
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x502320
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.0040333c
ret

Function at 0x503bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x503c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404910
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00404bd0
mov esi, eax
sar esi, 1
jns 0x503c05
adc esi, 0
test esi, esi
jle 0x503c6e
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404e30
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x503ca8
call fcn.00404c1c
mov eax, dword [ebp - 0x10]
call fcn.00409288
mov edx, eax
mov al, byte [ebx + 0x513ed0]
xor dl, al
lea eax, [ebp - 0xc]
call fcn.00404af8
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404bd8
lea eax, [ebx + 1]
mov ecx, 0xa
cdq
idiv ecx
mov ebx, edx
inc dword [ebp - 8]
dec esi
jne 0x503c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503c98
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404934
lea eax, [ebp - 4]
call fcn.00404910
ret

Function at 0x503e7c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x503efb
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404af8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x503f10
call fcn.00404c1c
mov eax, dword [ebp - 4]
call fcn.00404dd0
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x503eda
cmp eax, 1
je 0x503eda
cmp eax, 3
jne 0x503eda
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x503e9a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503f02
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404934
ret
Function at 0x504bb0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x504ddc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x504da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x518140]
mov eax, dword [eax + 0x330]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp - 4]
call fcn.00402910
call fcn.004028d4
lea eax, [ebp - 0x14c]
push eax
push 0x504df0
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x504cb5
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404b80
lea eax, [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c1c
mov eax, dword [ebp - 0x150]
call fcn.00409738
test al, al
je 0x504c9e
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c1c
mov edx, dword [ebp - 0x154]
mov eax, dword [0x518140]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x504c3e
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [0x518140]
mov eax, dword [eax + 0x330]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov esi, eax
dec esi
test esi, esi
jl 0x504d92
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x158]
mov eax, dword [0x518140]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x158]
call fcn.005037d8
cmp edx, 0
jne 0x504d13
cmp eax, 0x25435650
jbe 0x504d8a
jmp 0x504d15
jle 0x504d8a
lea ecx, [ebp - 0x15c]
mov eax, dword [0x518140]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.005037d8
cmp edx, 0
jne 0x504d4c
cmp eax, 0x25437d60
jae 0x504d8a
jmp 0x504d4e
jge 0x504d8a
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x160]
mov eax, dword [0x518140]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x160]
mov eax, 0x51815c
call fcn.00404964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504dae
inc ebx
dec esi
jne 0x504cdc
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504dae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504de3
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.00404934
lea eax, [ebp - 0xc]
call fcn.00404910
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x504e74
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.00404dc0
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x504fee
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.0048334c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.0048336c
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x504fba
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b80
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409c74
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408c94
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408c94
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404d1c
je 0x504f94
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b80
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408c94
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408c94
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404d1c
jne 0x504fab
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.0048338c
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x504ef5
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504ff5
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404934
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x4923d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f59cb
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.004ea0df
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x492452
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004e7f2a
mov eax, dword [eax]
push 0x53c200
push eax
call fcn.004dac94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ea36a
test bl, bl
je 0x492452
push 0x53c200
lea ecx, [esp + 0xc]
call fcn.004ea6fa
push 0x53fdac
lea ecx, [esp + 0xc]
call fcn.004ea6fa
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 0x49248e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ea36a
jmp 0x492559
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 0x492512
lea edx, [esp + 0x7c]
push 0x53fda8
push edx
call fcn.004dac94
add esp, 8
test eax, eax
je 0x492512
lea eax, [esp + 0x7c]
push 0x53fda4
push eax
call fcn.004dac94
add esp, 8
test eax, eax
je 0x492512
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 0x4924a2
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.004ea36a
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 0x492d70
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 0x492dd2
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