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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ddef
add esp, 0xfffffff0
call fcn.00403630
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b300
mov eax, dword [0x47180c]
cmp word [eax + 2], 0
jne 0x44de17
mov eax, dword [0x47180c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f4b0
mov eax, dword [0x47193c]
cmp word [eax + 2], 0
jne 0x44de31
mov eax, dword [0x47193c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044f6a8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412198]
call fcn.004032f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412198]
call fcn.004032f4
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 [0x41d4d4]
call fcn.00423274
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44dfb8
mov eax, dword [0x471688]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423644
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44fc48
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x471688]
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.0040c5c4
test eax, eax
je 0x44df26
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408834
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5ec
test eax, eax
je 0x44df3a
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.00404350
mov eax, dword [0x4714b4]
cmp byte [eax], 0
jne 0x44df6e
mov eax, ebx
call fcn.0044e0e0
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.0044fe24
mov eax, ebx
call fcn.004507e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dfae
call fcn.00403688
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e360
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x472bb4]
cmp dword [eax + 0x30], 0
je 0x44e40a
cmp dword [ebx + 0x94], 0
jne 0x44e404
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44e2f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44e404
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 0x44e3ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44e404
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.00414874
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44e3d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ef6c
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 0x44efa1
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.004041d0
jmp 0x44efae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404134
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450000
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450041
mov eax, esi
call fcn.00436884
test al, al
je 0x450041
mov eax, dword [ebx + 0x84]
call fcn.00436624
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450041
push 0
mov eax, dword [ebx + 0x84]
call fcn.00436624
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x465364
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 0x46536c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46555e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x465574
mov eax, esi
call fcn.00461c24
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404134
lea ecx, [ebp - 0x10]
mov edx, 0x465588
mov eax, esi
call fcn.00461c24
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404134
lea ecx, [ebp - 0x14]
mov edx, 0x4655a0
mov eax, esi
call fcn.00461c24
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404134
lea ecx, [ebp - 0x18]
mov edx, 0x4655bc
mov eax, esi
call fcn.00461c24
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404134
lea ecx, [ebp - 0x1c]
mov edx, 0x4655d8
mov eax, esi
call fcn.00461c24
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404134
lea ecx, [ebp - 0x24]
mov edx, 0x4655f0
mov eax, esi
call fcn.00461c24
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407fe8
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004082c8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x465608
mov eax, esi
call fcn.00461c24
mov eax, dword [ebp - 0x28]
call fcn.00456034
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x465618
mov eax, esi
call fcn.00461c24
mov eax, dword [ebp - 0x2c]
call fcn.00456034
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x465630
mov eax, esi
call fcn.00461c24
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004082c8
inc eax
je 0x465501
lea ecx, [ebp - 0x34]
mov edx, 0x465630
mov eax, esi
call fcn.00461c24
mov eax, dword [ebp - 0x34]
call fcn.0040828c
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.00409790
fstp qword [ebp - 0x3c]
wait
call fcn.00409af4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x46551c
lea ecx, [ebp - 0x40]
mov edx, 0x465630
mov eax, esi
call fcn.00461c24
mov eax, dword [ebp - 0x40]
call fcn.00456034
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x465640
mov eax, esi
call fcn.00461c24
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404134
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465565
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404104
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404104
ret
Function at 0x403968
Capabilities:
Terminate process

Disassembly:
jmp 0x456a79
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x456a8a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405f83
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403aa3
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ac7d2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ac7e3
pop esi
ret
push ebx
push edi
push esi
call fcn.004ac6b9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040440d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ac80b
push ebx
push esi
push edi
call fcn.00405d49
add esp, 0xc
push 0
call fcn.004069ba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405e20
Capabilities:
Parse pe header

Disassembly:
jmp 0x445c3b
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x445c7a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x445c7a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x445c7a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x445c7a
cmp dword [ecx + 0x74], 0xe
jbe 0x445c7a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a53a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ece
mov eax, dword [0x5159d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040655a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a53e6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a5542
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004066d1
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x519628]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403580
mov ecx, dword [esi*4 + 0x519628]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a553b
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a553b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a553b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403580
add esp, 0x14
test edx, edx
jl 0x4a553b
jg 0x4a54b1
test eax, eax
jb 0x4a553b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a553b
jl 0x4a54cb
cmp dword [ebp - 0x1008], eax
ja 0x4a553b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a54e9
test ebx, ebx
je 0x4a5522
cmp ecx, edi
jae 0x4a5522
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a5503
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a550f
cmp byte [ecx + 1], 0xa
jne 0x4a550f
inc ecx
jmp 0x4a550f
movzx eax, al
movsx eax, byte [eax + 0x515d00]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a54e9
cmp edx, ebx
jne 0x4a54e9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a5540
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403337
leave
ret
Function at 0x4a5c81
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x519628]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a5cc1
cmp byte [ebx], 0xa
jne 0x4a5cc1
or byte [eax + edi + 0x28], 4
jmp 0x4a5cc6
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a5dc4
mov al, byte [edx]
cmp al, 0x1a
je 0x4a5da6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a5cf5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a5d1a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a5d24
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a5cd7
jmp 0x4a5dc4
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a5da1
cmp dword [ebp - 0xc], 0
je 0x4a5da1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x519628]
test byte [eax + edi + 0x28], 0x48
je 0x4a5d7b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a5d66
mov byte [esi], dl
jmp 0x4a5d77
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x519628]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a5dc4
cmp byte [ebp - 1], 0xa
jne 0x4a5d8a
cmp esi, ebx
jne 0x4a5d8a
mov byte [esi], 0xa
jmp 0x4a5dc3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004019ec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a5dc4
mov byte [esi], 0xd
jmp 0x4a5dc3
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x519628]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5dc0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5dc4
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a5e20
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x519628]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a5e63
cmp word [esi], dx
jne 0x4a5e63
or byte [edi + eax + 0x28], 4
jmp 0x4a5e68
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a5fbb
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a5f9b
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a5eaa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a5ee0
cmp eax, edx
jae 0x4a5eec
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a5e82
jmp 0x4a5fbb
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a5f97
cmp dword [ebp - 0x14], 0
je 0x4a5f97
mov eax, dword [ebx*4 + 0x519628]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a5f6f
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a5f38
mov word [esi], cx
jmp 0x4a5f6b
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x519628]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x519628]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x519628]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a5fbb
pop ebx
cmp word [ebp - 4], bx
jne 0x4a5f80
cmp esi, dword [ebp + 0xc]
jne 0x4a5f80
mov word [esi], bx
jmp 0x4a5fb8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004019ec
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a5fbb
push 0xd
jmp 0x4a5fb4
mov ecx, dword [ebx*4 + 0x519628]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5fb2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5fbb
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4aad71
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5159d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4aadbc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ab233
test al, al
jne 0x4aadb6
sub edx, 2
cmp edx, edi
jne 0x4aad9c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4aadde
lea eax, [edi + 2]
cmp edx, eax
je 0x4aadde
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004aa96a
add esp, 0x10
jmp 0x4aaed8
push esi
lea ecx, [ebp - 0x255]
call fcn.004ab233
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4aae21
push dword [ebp - 0x25c]
jmp 0x4aadce
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4aae5e
cmp word [ebp - 0x226], 0
je 0x4aae7f
cmp word [ebp - 0x226], ax
jne 0x4aae5e
cmp word [ebp - 0x224], 0
je 0x4aae7f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004aa96a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4aaecb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4aae38
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4aaeb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4aaed8
push 0x4aa352
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b5f
add esp, 0x10
jmp 0x4aaea8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403337
leave
ret
Function at 0x403c7e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403e2e
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x403d7c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403d1f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403d62
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x403d36
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403d51
test al, 0x40
je 0x403d48
mov ecx, dword [edi + 0x20]
jmp 0x403d4f
test al, 0x80
je 0x403d62
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403d62
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403cee
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x41e020
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a2fbb
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.004974c1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41e0a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00494acb
mov eax, dword [eax]
push 0x4dc214
push eax
call fcn.00474574
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049774c
test bl, bl
je 0x41e0a2
push 0x4dc214
lea ecx, [esp + 0xc]
call fcn.00497adc
push 0x4dfdb4
lea ecx, [esp + 0xc]
call fcn.00497adc
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 0x41e0de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049774c
jmp 0x41e1a9
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 0x41e162
lea edx, [esp + 0x7c]
push 0x4dfdb0
push edx
call fcn.00474574
add esp, 8
test eax, eax
je 0x41e162
lea eax, [esp + 0x7c]
push 0x4dfdac
push eax
call fcn.00474574
add esp, 8
test eax, eax
je 0x41e162
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 0x41e0f2
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.0049774c
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 0x41e9a0
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 0x41ea02
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