joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c3e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48c3fb
add esp, 0xfffffff0
call fcn.00403f50
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423e94
mov eax, dword [0x580f04]
cmp word [eax + 2], 0
jne 0x48c423
mov eax, dword [0x580f04]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048db64
mov eax, dword [0x581098]
cmp word [eax + 2], 0
jne 0x48c43d
mov eax, dword [0x581098]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048dd5c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418204]
call fcn.00403bbc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418204]
call fcn.00403bbc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x426b14]
call fcn.0042eb24
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x48c5c4
mov eax, dword [0x580d18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042eef4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48e30c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x580d18]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e370
test eax, eax
je 0x48c532
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409e80
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e398
test eax, eax
je 0x48c546
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov eax, dword [0x580a0c]
cmp byte [eax], 0
jne 0x48c57a
mov eax, ebx
call fcn.0048c6ec
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0048e4e8
mov eax, ebx
call fcn.0048eeac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48c5ba
call fcn.00403fa8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c96c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x582bf4]
cmp dword [eax + 0x30], 0
je 0x48ca16
cmp dword [ebx + 0x94], 0
jne 0x48ca10
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48c8fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48ca10
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x48c9d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48ca10
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041ad3c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48c9e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48d578
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x48d5ad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b10
jmp 0x48d5ba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48e6c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48e705
mov eax, esi
call fcn.00473afc
test al, al
je 0x48e705
mov eax, dword [ebx + 0x84]
call fcn.004737f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48e705
push 0
mov eax, dword [ebx + 0x84]
call fcn.004737f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x491dcc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x491dfa
mov eax, ebx
call fcn.00492880
cmp dword [ebx + 0x40], 0
je 0x491df3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x491e6b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x491e5d
cmp dword [ebx + 8], 0
je 0x491e1c
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 0x491e2e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x491e5d
cmp dword [ebx + 8], 0
je 0x491e0f
cmp eax, 3
je 0x491e41
dec eax
jne 0x491e0f
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 0x491e0f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x491e0f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x491e89
cmp dword [ebx + 0x14], 0xcc
je 0x491e89
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.00491e94
pop ebx
ret
Function at 0x4a2d30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417738]
call fcn.004053e0
xor eax, eax
push ebp
push 0x4a2e74
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x57ec38], 0
jne 0x4a2d83
mov ecx, dword [0x580a4c]
mov dl, 1
mov eax, dword [0x4081b4]
call fcn.0040d55c
call fcn.004043b8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004032d8
mov eax, ebx
call fcn.00405290
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a2e84
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406564
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004052a0
test eax, eax
jle 0x4a2e1b
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a2e14
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404ca8
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404c90
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409060
test eax, eax
jne 0x4a2e14
mov ebx, 0x15
jmp 0x4a2e20
mov ebx, 0x10
jmp 0x4a2e20
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x57ec38]
call fcn.004a2c88
mov eax, dword [ebp - 8]
call fcn.004a2c88
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040657c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2e7b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x10]
mov edx, dword [0x417738]
call fcn.004054b0
ret

Function at 0x4a543c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4a548d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4a5474
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4a5464
jmp 0x4a548d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4a5475
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b91d0
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
mov edx, 0x40
call fcn.00407b58
ret
Function at 0x4c15e4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4c15ec
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c17de
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4c17f4
mov eax, esi
call fcn.004bf470
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404a74
lea ecx, [ebp - 0x10]
mov edx, 0x4c1808
mov eax, esi
call fcn.004bf470
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404a74
lea ecx, [ebp - 0x14]
mov edx, 0x4c1820
mov eax, esi
call fcn.004bf470
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404a74
lea ecx, [ebp - 0x18]
mov edx, 0x4c183c
mov eax, esi
call fcn.004bf470
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404a74
lea ecx, [ebp - 0x1c]
mov edx, 0x4c1858
mov eax, esi
call fcn.004bf470
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404a74
lea ecx, [ebp - 0x24]
mov edx, 0x4c1870
mov eax, esi
call fcn.004bf470
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004090d0
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409618
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4c1888
mov eax, esi
call fcn.004bf470
mov eax, dword [ebp - 0x28]
call fcn.004b81c4
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4c1898
mov eax, esi
call fcn.004bf470
mov eax, dword [ebp - 0x2c]
call fcn.004b81c4
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4c18b0
mov eax, esi
call fcn.004bf470
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409618
inc eax
je 0x4c1781
lea ecx, [ebp - 0x34]
mov edx, 0x4c18b0
mov eax, esi
call fcn.004bf470
mov eax, dword [ebp - 0x34]
call fcn.004095dc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b178
fstp qword [ebp - 0x3c]
wait
call fcn.0040b5ec
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4c179c
lea ecx, [ebp - 0x40]
mov edx, 0x4c18b0
mov eax, esi
call fcn.004bf470
mov eax, dword [ebp - 0x40]
call fcn.004b81c4
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4c18c0
mov eax, esi
call fcn.004bf470
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404a74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c17e5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404a44
ret
Function at 0x4c8570
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4c85ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004c8560
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b6e30
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004b6a30
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c85d1
lea eax, [ebp - 4]
call fcn.00404a20
ret

Function at 0x4cbaa4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [eax + 4]
mov ecx, dword [ecx]
mov dword [edx + 4], ecx
lea ecx, [eax + 8]
mov ecx, dword [ecx]
mov dword [edx + 8], ecx
add eax, 0xc
mov eax, dword [eax]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [esp], 1
mov ecx, dword [edx + eax*4 + 0xc]
mov ebx, ecx
shl ebx, 0x18
shr ecx, 8
or ebx, ecx
mov ecx, ebx
xor ebx, ebx
mov bl, cl
mov ebx, dword [ebx*4 + 0x57f9f4]
mov dword [esp + 4], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
mov esi, dword [ebx*4 + 0x57f9f4]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x57f9f4]
mov dword [esp + 8], ebx
shr ecx, 0x18
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x57f9f4]
mov ebx, esi
shl ebx, 8
shr esi, 0x18
or ebx, esi
xor ebx, dword [esp + 4]
mov esi, dword [esp + 8]
shl esi, 0x10
mov edi, dword [esp + 8]
shr edi, 0x10
or esi, edi
xor ebx, esi
mov esi, ecx
shl esi, 0x18
shr ecx, 8
or esi, ecx
xor ebx, esi
xor ebx, dword [edx + eax*4]
mov ecx, dword [esp]
xor ebx, dword [ecx*4 + 0x57f578]
mov dword [edx + eax*4 + 0x10], ebx
inc dword [esp]
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4 + 0x10]
mov dword [edx + eax*4 + 0x14], ecx
mov ebx, dword [edx + eax*4 + 8]
xor ebx, ecx
mov dword [edx + eax*4 + 0x18], ebx
mov ecx, dword [edx + eax*4 + 0xc]
xor ecx, ebx
mov dword [edx + eax*4 + 0x1c], ecx
add eax, 4
cmp eax, 0x28
jl 0x4cbacf
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x4cceac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp], eax
mov dword [esp + 4], 9
mov ebx, dword [esp]
add ebx, 0x10
Function at 0x4cf91c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x4cfa14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.004027dc
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x418888]
call fcn.00403bbc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4cf9e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404c18
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov ecx, 0x4cfa28
call fcn.00404d2c
call fcn.0040b58c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x18]
mov eax, 0x4cfa3c
call fcn.0040c2f0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 8]
mov edx, 0x4cfa50
call fcn.004ce9c0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cf9ec
mov eax, dword [ebp - 0x10]
call fcn.00403bec
mov eax, dword [ebp - 4]
call fcn.004027fc
ret
Function at 0x4d5748
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404ed0
xor eax, eax
push ebp
push 0x4d59b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ee0
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x154]
push eax
push 0x4d59c8
call sub.kernel32.dll_FindFirstFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x4d5981
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
mov ebx, dword [ebp - 0x154]
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.00404c90
mov eax, dword [ebp - 0x10]
mov edx, 0x4d59d4
call fcn.00404e2c
je 0x4d5966
mov eax, dword [ebp - 0x10]
mov edx, 0x4d59e0
call fcn.00404e2c
je 0x4d5966
cmp ebx, 0x10
je 0x4d583d
cmp ebx, 2
je 0x4d583d
cmp ebx, 4
je 0x4d583d
cmp ebx, 0x80
je 0x4d583d
cmp ebx, 0x100
je 0x4d583d
cmp ebx, 0x20
je 0x4d583d
cmp ebx, 0x11
je 0x4d583d
cmp ebx, 0x12
je 0x4d583d
cmp ebx, 0x13
je 0x4d583d
cmp ebx, 0x14
jne 0x4d5966
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x4d5981
lea edx, [ebp - 0x158]
mov eax, dword [ebp - 0x10]
call fcn.00409c60
mov edx, dword [ebp - 0x158]
mov ecx, dword [0x5812e0]
mov ecx, dword [ecx]
mov eax, 0x4d59ec
call fcn.004d4684
test al, al
jne 0x4d5966
mov eax, esi
call fcn.004d0190
mov ebx, eax
mov edx, ebx
mov eax, esi
call fcn.004d01a4
mov byte [eax + 0x12], 1
mov edx, ebx
mov eax, esi
call fcn.004d01a4
mov edx, dword [0x580bb0]
mov dl, byte [edx + 0x14]
mov byte [eax + 0xc], dl
mov edx, ebx
mov eax, esi
call fcn.004d01a4
xor edx, edx
mov dword [eax + 0xe], edx
mov edx, ebx
mov eax, esi
call fcn.004d01a4
add eax, 0x13
mov edx, 0x4d5a00
call fcn.00404a74
mov edx, ebx
mov eax, esi
call fcn.004d01a4
add eax, 0x17
mov edx, 0x4d59ec
call fcn.00404a74
mov edx, ebx
mov eax, esi
call fcn.004d01a4
add eax, 0x1b
mov edx, 0x4d5a10
call fcn.00404a74
mov edx, ebx
mov eax, esi
call fcn.004d01a4
add eax, 0x1f
mov edx, 0x4d59ec
call fcn.00404a74
mov edx, ebx
mov eax, esi
call fcn.004d01a4
add eax, 0x23
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 0x10]
call fcn.00409c60
mov edx, dword [ebp - 0x15c]
pop eax
call fcn.00404a74
push dword [ebp - 4]
push 0x4d5a28
push dword [ebp - 0x10]
mov edx, ebx
mov eax, esi
call fcn.004d01a4
add eax, 0x2f
mov edx, 3
call fcn.00404da0
inc dword [ebp - 0x14]
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004d4158
lea eax, [ebp - 0x154]
push eax
push edi
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d57b6
push edi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d59bc
lea eax, [ebp - 0x15c]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x10]
call fcn.00404a20
lea eax, [ebp - 4]
call fcn.00404a20
ret
Function at 0x4d5a2c
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d5adb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x441474]
call fcn.00441574
mov dword [ebp - 4], eax
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.00441614
xor eax, eax
push ebp
push 0x4d5abe
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, 0x4d5af4
mov eax, dword [ebp - 4]
call fcn.0044167c
test al, al
je 0x4d5aa8
lea ecx, [ebp - 8]
mov edx, 0x4d5b40
mov eax, dword [ebp - 4]
call fcn.00441bf8
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004d5748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5ac5
mov eax, dword [ebp - 4]
call fcn.00403bec
ret
Function at 0x4d7850
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
mov eax, dword [ebp - 8]
call fcn.00404ed0
lea esi, [ebp - 0x14c]
xor eax, eax
push ebp
push 0x4d7a06
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea eax, [ebp - 0x150]
mov ecx, 0x4d7a1c
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov eax, dword [ebp - 0x150]
call fcn.00404ee0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
setne al
jmp 0x4d79cd
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x4d79d5
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
lea eax, [ebp - 0xc]
lea edx, [esi + 0x2c]
mov ecx, 0x104
call fcn.00404c90
mov eax, dword [esi]
cmp eax, 0x10
je 0x4d7926
cmp eax, 2
je 0x4d7926
cmp eax, 4
je 0x4d7926
cmp eax, 0x80
je 0x4d7926
cmp eax, 0x100
je 0x4d7926
cmp eax, 0x13
je 0x4d7926
cmp eax, 0x20
je 0x4d7926
cmp eax, 0x16
jne 0x4d7997
mov eax, dword [ebp - 0xc]
mov edx, 0x4d7a2c
call fcn.00404e2c
je 0x4d7997
mov eax, dword [ebp - 0xc]
mov edx, 0x4d7a38
call fcn.00404e2c
je 0x4d7997
push dword [ebp - 4]
push 0x4d7a44
push dword [ebp - 0xc]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x154]
call fcn.004099c4
test al, al
je 0x4d7997
push dword [ebp - 4]
push 0x4d7a44
push dword [ebp - 0xc]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.004d7850
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404e2c
jne 0x4d79c0
push dword [ebp - 4]
push 0x4d7a44
push dword [ebp - 0xc]
mov eax, 0x583028
mov edx, 3
call fcn.00404da0
jmp 0x4d79db
push esi
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d78ce
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7a0d
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404a44
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a44
ret
Function at 0x4d8274
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ed0
lea esi, [ebp - 0x148]
xor eax, eax
push ebp
push 0x4d8426
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
lea eax, [ebp - 0x14c]
mov ecx, 0x4d843c
mov edx, dword [ebp - 4]
call fcn.00404d2c
mov eax, dword [ebp - 0x14c]
call fcn.00404ee0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
setne al
jmp 0x4d83ed
mov eax, dword [0x580cd8]
cmp byte [eax], 2
je 0x4d83f5
mov eax, dword [0x581040]
mov eax, dword [eax]
call fcn.0048d8b8
lea eax, [ebp - 8]
lea edx, [esi + 0x2c]
mov ecx, 0x104
call fcn.00404c90
mov eax, dword [esi]
cmp eax, 0x10
je 0x4d8343
cmp eax, 2
je 0x4d8343
cmp eax, 4
je 0x4d8343
cmp eax, 0x80
je 0x4d8343
cmp eax, 0x100
je 0x4d8343
cmp eax, 0x13
je 0x4d8343
cmp eax, 0x20
je 0x4d8343
cmp eax, 0x16
jne 0x4d83e0
mov eax, dword [ebp - 8]
mov edx, 0x4d844c
call fcn.00404e2c
je 0x4d83e0
mov eax, dword [ebp - 8]
mov edx, 0x4d8458
call fcn.00404e2c
je 0x4d83e0
push dword [ebp - 4]
push 0x4d8464
push dword [ebp - 8]
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x150]
call fcn.004099c4
test al, al
je 0x4d83e0
mov eax, dword [ebp - 8]
mov edx, 0x4d8470
call fcn.00404e2c
jne 0x4d83ba
push dword [ebp - 4]
push 0x4d8464
push dword [ebp - 8]
mov eax, 0x583028
mov edx, 3
call fcn.00404da0
jmp 0x4d83fb
push dword [ebp - 4]
push 0x4d8464
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00404da0
mov eax, dword [ebp - 0x154]
call fcn.004d8274
push esi
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d82e7
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d842d
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00404a44
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a44
ret