joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446290
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477d43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046b1ff
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00470895
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00471df4
test eax, eax
je 0x4463ac
mov ecx, dword [esp + 0x3c]
call fcn.004708c2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x446370
push edi
mov ecx, esi
call fcn.0046df32
mov ecx, esi
call fcn.00446510
cmp dword [esp + 0x38], 1
jne 0x4463a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046e06d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x448de0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x448e13
push esi
call fcn.0044bee0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x448e0c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x448e99
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448e82
mov eax, dword [esi + 8]
test eax, eax
je 0x448e37
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x448e7e
cmp eax, 2
je 0x448e82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x448e2a
cmp eax, 3
je 0x448e5d
cmp eax, 1
jne 0x448e2a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x448e2a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x448e2a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448ec0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448ea8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448ec0
add esp, 4
pop esi
ret
Function at 0x455c80
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x455cca
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x455cf9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x455d3b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46bff5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c02d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046a07f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046a057
jmp 0x46c039
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d6e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46d729
call fcn.004731e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d729
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d720
xor eax, eax
jmp 0x46d731
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d737
pop edi
pop esi
pop ebx
ret 4

Function at 0x473714
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473742
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473760
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047367a
jmp 0x473760
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473760
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047367a
test edi, edi
mov eax, edi
jne 0x47374a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4111d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
or ebp, 0xffffffff
jmp 0x4111f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4111f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4111e8
mov eax, 1
add ebx, ebx
jne 0x41120b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411200
jne 0x41121c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411200
xor ecx, ecx
sub eax, 3
jb 0x411230
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4112a2
mov ebp, eax
add ebx, ebx
jne 0x41123b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411248
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41126c
inc ecx
add ebx, ebx
jne 0x411258
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41124d
jne 0x411269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41124d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41128c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41127d
jmp 0x4111ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41128c
add edi, ecx
jmp 0x4111ee
pop esi
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x4112f4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4112a9
mov ecx, edi
jns 0x4112d8
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11068]
or eax, eax
je 0x4112ee
mov dword [ebx], eax
add ebx, 4
jmp 0x4112c6
call dword [esi + 0x11078]
mov ebp, dword [esi + 0x1106c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x411328
sub esp, 0xffffff80
jmp 0x40edac
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x40915c
mov ecx, 0x1da17ed6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x75640c7d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40b252
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40b261
pop dword [ebp - 0x28]
mov eax, 0x40b261
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x354bb
push 0
mov eax, 0xbcfec05c
add eax, 0x4342207c
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0xa80b28dd
add ecx, 0x57f50f08
mov edi, eax
mov ebx, 0xfc6947c7
add ebx, 0x3d7f3fd
add ebx, dword [ebp - 0x28]
mov edx, 0x4688d26a
add edx, 0xad1968f6
add dword [ebp - 0x24], 0x77076186
mov esi, dword [ebx]
xor dword [ebp - 0x20], 0x2665b7bc
xor esi, edx
mov dword [edi], esi
add dword [ebp - 0x20], ebx
add edi, 0xfd28273e
add edi, 0x2d7d8c6
add ebx, 4
loop 0x40b2bb
add eax, 0xc8056645
add eax, 0x37fb6c22
xor ebx, ebx
add ebx, eax
add eax, 0x25de33ed
sub eax, 0x25de33e8
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x40100b
Capabilities:
Execute shellcode via indirect call
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x4010ad
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x40102e
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011b8
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401048
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011b8
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x401134
mov word [ebx], 0x5c
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011b8
mov dword [ebp - 0x108], eax
push 0x401023
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4011ad
push 0x3e8
call eax
test eax, eax
je 0x4011ad
push eax
push 0x40
push 0x3000
push 0x10000
push 0
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x40119a
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x4010a7]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40108c]
jmp 0x4011be
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
lea eax, [0x40104d]
push 0x10
push 0x4010a7
push eax
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402f69
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 1
pop esi
mov dword [0x43a038], eax
mov edx, esi
mov eax, 0x43a038
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
inc edx
mov dword [eax], edi
cmp eax, 0x43a9f4
jl 0x402f7e
mov dword [0x43405c], esi
mov dword [0x43a9f8], esi
pop edi
pop esi
ret

Function at 0x402fab
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x43a9f8], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x43a038
jne 0x402fcd
push 0
call fcn.004293e4
push eax
call fcn.00402f69
pop ecx
pop ecx
mov dword [0x43405c], 0x270
mov dword [0x43a034], esi
mov dword [esp + 0x10], 0xe3
mov edi, 0x7ffffffe
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x402fef
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x403026
mov eax, dword [esi]
mov edx, dword [0x43a038]
mov ebx, eax
xor ebx, edx
and dl, 1
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x403080
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x43405c]
jne 0x40308d
call fcn.00402fab
mov eax, dword [0x43a034]
mov ecx, dword [eax]
add dword [0x43a034], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x4030c3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x43405c]
jne 0x4030d5
call fcn.00402fab
mov eax, dword [0x43a034]
mov eax, dword [eax]
add dword [0x43a034], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and cx, 0xdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
fild qword [ebp - 8]
fmul qword [0x433008]
leave
ret
Function at 0x40928e
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x409315
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4092fc
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4092fc
push dword [ebp + 0x10]
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call fcn.00426557
add esp, 0xc
test al, al
je 0x40930e
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x4092b3
xor bl, bl
jmp 0x4093be
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x409329
mov al, 1
jmp 0x4093c7
lea eax, [ebp - 0x140]
push eax
push 0x435380
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4093bc
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x4093aa
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4093aa
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x4093aa
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040928e
test al, al
je 0x40930e
push 0x435384
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409344
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40afd8
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [ebp - 0x140]
push edi
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40b06f
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b056
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b056
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 0xc]
not ecx
and eax, ecx
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40b068
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x40affd
xor bl, bl
jmp 0x40b118
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
jne 0x40b083
mov al, 1
jmp 0x40b121
lea eax, [ebp - 0x140]
push eax
push 0x435380
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40b116
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 0x140]
and eax, 0x10
cmp al, 0x10
jne 0x40b104
lea eax, [ebp - 0x114]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b104
lea eax, [ebp - 0x114]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b104
lea eax, [ebp - 0x114]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040afd8
test al, al
je 0x40b068
push 0x435384
call esi
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b09e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40b7e9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040101d
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00401073
push 0x435380
lea ecx, [ebp - 0xc]
call fcn.0040121d
lea eax, [ebp - 0x160]
mov byte [ebp + 0xb], 1
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40b942
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.00407591
cmp eax, 1
je 0x40b93e
cmp eax, 0xb
jne 0x40b865
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b845
lea eax, [ebp - 0x134]
push str..__
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b925
lea eax, [ebp - 0x134]
push 0x435384
push eax
call fcn.00428f30
pop ecx
test eax, eax
pop ecx
je 0x40b925
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0xc]
push eax
call fcn.004010dd
lea eax, [ebp - 0x134]
lea ecx, [ebp - 0xc]
push eax
call fcn.0040121d
test byte [ebp - 0x160], 0x10
je 0x40b8fc
cmp byte [ebp + 0x18], 0
je 0x40b8cc
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x40b925
push 0x43539c
lea ecx, [ebp - 0xc]
call fcn.0040121d
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push ebx
push dword [ebp - 0xc]
call fcn.0040b7e9
test al, al
mov byte [ebp + 0xb], al
je 0x40b942
jmp 0x40b925
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 0x140]
xor ebx, ebx
xor eax, eax
or ecx, ebx
mov ebx, dword [ebp + 0xc]
or eax, edx
add dword [ebx], eax
adc dword [ebx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x40b925
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x160]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40b942
jmp 0x40b845
and byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.00428f1b
push dword [ebp - 0xc]
call fcn.00428f1b
mov al, byte [ebp + 0xb]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x41329d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004294c0
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.00401000
lea ecx, [ebp - 0x20]
call fcn.00401000
mov ecx, dword [ebp + 8]
call fcn.00401f26
and byte [ebp - 1], 0
mov esi, eax
push 1
mov al, byte [esi]
pop edi
test al, al
mov byte [ebp - 8], al
je 0x413379
push ebx
push 0x25
pop ebx
cmp al, bl
jne 0x41334e
cmp byte [esi + edi], bl
mov byte [ebp - 1], 1
jne 0x4132f7
push ebx
lea ecx, [ebp - 0x14]
call fcn.00401272
inc edi
jmp 0x413359
push 0x43a030
lea ecx, [ebp - 0x20]
call fcn.00401123
mov al, byte [esi + edi]
cmp al, bl
je 0x41331b
test al, al
je 0x41331b
push eax
lea ecx, [ebp - 0x20]
inc edi
call fcn.00401272
jmp 0x413304
cmp byte [esi + edi], bl
jne 0x413321
inc edi
and byte [ebp - 0x1020], 0
lea eax, [ebp - 0x1020]
push 0xfff
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x1020]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040121d
jmp 0x413359
push dword [ebp - 8]
lea ecx, [ebp - 0x14]
call fcn.00401272
mov al, byte [esi + edi]
inc edi
test al, al
mov byte [ebp - 8], al
jne 0x4132de
cmp byte [ebp - 1], al
pop ebx
je 0x413379
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.004022ff
push dword [ebp - 0x20]
call fcn.00428f1b
push dword [ebp - 0x14]
call fcn.00428f1b
pop ecx
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x416ba2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0xff
push eax
push ebx
push dword [ebp + 8]
call esi
mov edi, 0x103
cmp eax, edi
je 0x416c4b
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x114]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416c4f
push dword [ebp - 0xc]
call fcn.00416ba2
pop ecx
mov byte [ebp - 1], al
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 1], bl
je 0x416c4f
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x416c4f
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0xff
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp + 8]
call esi
jmp 0x416bda
mov al, 1
jmp 0x416c51
xor al, al
pop edi
pop esi
pop ebx
leave
ret