joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4111a7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x43c], eax
push edi
mov dword [esp + 0x10], eax
jae 0x411307
mov ebp, 0xff
push 1
mov eax, esi
call fcn.00411337
cmp eax, 1
mov eax, esi
jne 0x411203
push 8
call fcn.00411337
mov ecx, dword [esi + 0x43c]
mov edx, dword [esi + 0x438]
and ecx, 0x1ffff
mov byte [ecx + edx], al
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
jmp 0x4112a2
push 0xf
call fcn.00411337
mov ebx, eax
push 2
mov eax, esi
xor edi, edi
call fcn.00411337
cmp eax, 3
jne 0x411262
push eax
pop edi
push eax
mov eax, esi
call fcn.00411337
cmp eax, 7
jne 0x411262
push 0xa
pop edi
push 5
mov eax, esi
call fcn.00411337
cmp eax, 0x1f
jne 0x411262
push 0x29
pop edi
push 8
mov eax, esi
call fcn.00411337
cmp eax, ebp
jne 0x411262
mov edi, 0x128
jmp 0x411255
add edi, ebp
push 8
mov eax, esi
call fcn.00411337
cmp eax, ebp
je 0x411253
lea edi, [eax + edi + 3]
mov eax, dword [esi + 0x43c]
sub eax, ebx
jmp 0x41129e
mov ebx, dword [esi + 0x43c]
mov ecx, dword [esi + 0x438]
mov edx, eax
and edx, 0x1ffff
mov dl, byte [edx + ecx]
and ebx, 0x1ffff
dec edi
mov byte [ebx + ecx], dl
inc eax
inc dword [esi + 0x43c]
inc dword [esi + 0x440]
test edi, edi
jne 0x411270
call fcn.004110e6
cmp dword [0x4893e8], 0x1000
jbe 0x4112e8
mov edi, dword [esi + 0x454]
and dword [0x4893e8], 0
test edi, edi
je 0x4112ee
mov ecx, dword [esi + 8]
mov eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [esi + 0x10]
push eax
push ecx
push dword [esi + 0xc]
call edi
add esp, 0xc
test eax, eax
jne 0x4112ee
mov byte [esi + 0x448], 1
jmp 0x4112ee
inc dword [0x4893e8]
cmp byte [esi + 0x448], 0
jne 0x411332
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x43c], eax
jb 0x4111c6
lea edi, [esi + 0x460]
mov eax, dword [edi]
test eax, eax
je 0x41132a
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.0044e8a5
add esp, 0x10
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
pop eax
jmp 0x41132c

Function at 0x4113c7
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.0044db90
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret
Function at 0x411dac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x468050
or eax, 0xffffffff
call fcn.0040d472
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.0044d880
push esi
call fcn.0044b716
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.004113c7
lea eax, [esp + 0xa8]
push eax
call fcn.0044d7f0
pop ecx
mov ebx, eax
call fcn.004113c7
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.004113f4
mov eax, esi
call fcn.0041148b
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x411e20
push 0x468d18
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.0044e5bc
test eax, eax
pop ecx
pop ecx
mov dword [edi], eax
jne 0x411e47
inc eax
jmp 0x411ea3
mov esi, edi
call fcn.00411eab
push dword [edi]
mov esi, eax
test esi, esi
je 0x411e5f
call fcn.0044e999
mov eax, esi
jmp 0x411ea2
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0044ecb1
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00411fa6
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x411e86
push dword [edi]
mov dword [edi + 8], ecx
call fcn.0044fdd3
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411eab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.00450b00
xor eax, eax
mov cl, byte [eax + 0x473608]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x473600]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x411eba
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.0044d880
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044dc10
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.0044ecb1
add esp, 0x10
cmp eax, 0x18
mov dword [ebp - 0xc], eax
jl 0x411fa1
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x411f4d
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x411f3d
inc edx
cmp edx, 0x14
jl 0x411f2e
cmp edx, 0x14
je 0x411f61
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x411f25
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.0044e656
add esp, 0xc
jmp 0x411ef8
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.0044e656
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.0044ecb1
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.0044e3b0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x411f9d
Function at 0x411fa6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.00411c0d
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.00411d4d
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x411feb
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.00411d1f
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x411fd1
pop edi
pop esi
leave
ret 0xc
Function at 0x4122de
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
push ebx
push esi
mov esi, eax
push edi
lea eax, [ebp - 0x478]
call fcn.00410e49
push 0
push dword [esi + 4]
xor edi, edi
push dword [esi]
inc edi
mov dword [ebp - 0xc], edi
call fcn.0044e656
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
push str.___AUTOIT_SCRIPT___
call fcn.0041244e
test eax, eax
je 0x412329
push 6
pop eax
jmp 0x412447
push dword [esi]
lea eax, [ebp - 1]
push edi
push edi
push eax
call fcn.0044ecb1
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.0044ecb1
push dword [esi]
mov edi, dword [ebp - 8]
push 1
lea eax, [ebp - 8]
push 4
mov ebx, 0x87bc
push eax
xor edi, ebx
call fcn.0044ecb1
push dword [esi]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, ebx
push 1
mov dword [ecx], eax
lea eax, [ebp - 8]
push 4
push eax
call fcn.0044ecb1
mov ebx, dword [ebp - 8]
add esp, 0x40
push 1
push 0x10
push dword [esi]
xor ebx, 0xa685
call fcn.0044e656
mov eax, dword [ebp + 0xc]
add esp, 0xc
push dword [eax]
call fcn.0044d71f
pop ecx
push edi
mov dword [ebp + 0xc], eax
call fcn.0044d71f
pop ecx
push dword [esi]
mov dword [ebp - 0x10], eax
push 1
push edi
push eax
call fcn.0044ecb1
mov eax, dword [esi + 8]
mov esi, dword [ebp - 0x10]
add esp, 0x10
add eax, 0x2477
push eax
push edi
push esi
call fcn.00411fa6
push edi
push esi
lea edi, [ebp - 0xc]
call fcn.00410df5
cmp ebx, dword [ebp - 0xc]
je 0x4123ef
push dword [ebp + 0xc]
call fcn.0044d978
pop ecx
push esi
call fcn.0044d978
pop ecx
push 0xa
jmp 0x412323
cmp byte [ebp - 1], 1
jne 0x412431
lea eax, [ebp - 0x478]
call fcn.00410e49
xor eax, eax
inc eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x478]
mov dword [ebp - 0x474], esi
call fcn.00410e77
push esi
call fcn.0044d978
jmp 0x41243c
push dword [ebp + 0xc]
call fcn.0044d978
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41244e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.0044ecb1
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.00411fa6
lea eax, [ebp - 0x14]
push str.FILE
push eax
mov byte [ebp - 0x10], 0
call fcn.0044e3b0
test eax, eax
pop ecx
pop ecx
jne 0x4125a3
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.0044ecb1
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.0044ecb1
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00411fa6
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.0044b632
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.0044ecb1
mov edi, dword [ebp - 0xc]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.0044ecb1
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00411fa6
and word [ebp + ebx - 0x228], 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.0044b632
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.0044bbeb
add esp, 0x10
test eax, eax
je 0x4125ba
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.0044e656
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.0044ecb1
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.0044e656
add esp, 0x1c
jmp 0x4125a7
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x41245d
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x4125b4
Function at 0x41ad7b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
xor eax, eax
mov ecx, ebx
call fcn.00405338
cmp dword [eax + 8], 4
jne 0x41adf6
push 0x60
call fcn.0044b6ac
test eax, eax
pop ecx
je 0x41adaa
call fcn.0040a955
mov edi, eax
jmp 0x41adac
xor edi, edi
xor eax, eax
mov ecx, ebx
call fcn.00405338
mov esi, eax
call fcn.0040eff7
xor ebx, ebx
push eax
inc ebx
mov eax, ebx
mov ecx, edi
call fcn.0040a965
test al, al
jne 0x41ae84
test edi, edi
je 0x41ade3
mov esi, edi
call fcn.0040ab30
push edi
call fcn.0044b716
pop ecx
push 0
mov esi, dword [ebp + 0xc]
call fcn.0040f5b2
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
xor eax, eax
mov ecx, ebx
call fcn.00405338
call fcn.0040f0cf
mov esi, eax
dec esi
js 0x41ade3
xor eax, eax
mov ecx, ebx
call fcn.00405338
call fcn.00410319
test al, al
je 0x41ade3
cmp esi, dword [edi + 0x67c]
jge 0x41ade3
jb 0x41ae2c
call fcn.00403bba
jmp 0x41ae35
mov eax, dword [edi + 0x678]
mov eax, dword [eax + esi*4]
xor ebx, ebx
cmp dword [eax], ebx
je 0x41ade3
cmp esi, dword [edi + 0x67c]
jb 0x41ae4a
call fcn.00403bba
jmp 0x41ae53
mov eax, dword [edi + 0x678]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
cmp dword [eax], ebx
jne 0x41ade3
cmp esi, dword [edi + 0x67c]
jb 0x41ae68
call fcn.00403bba
jmp 0x41ae71
mov eax, dword [edi + 0x678]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
mov edi, dword [eax + 4]
test byte [edi], 3
jne 0x41ae81
push ebx
jmp 0x41ade5
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405338
cmp dword [eax + 8], 0xb
je 0x41af25
test byte [edi], 0x10
jne 0x41af25
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405338
mov esi, eax
call fcn.0040eff7
mov ecx, eax
mov esi, edi
call fcn.0040abf2
cmp byte [ebp + 0x10], 0
je 0x41af6b
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405338
mov esi, eax
call fcn.0040eff7
push eax
call fcn.0044bc79
test eax, eax
pop ecx
je 0x41af17
mov ecx, dword [ebp + 8]
lea ebx, [eax + eax - 2]
xor eax, eax
inc eax
call fcn.00405338
mov esi, eax
call fcn.0040eff7
cmp word [eax + ebx], 0xd
je 0x41af6b
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
call fcn.00405338
mov esi, eax
call fcn.0040eff7
cmp word [eax + ebx], 0xa
je 0x41af6b
mov ecx, 0x468fbc
mov esi, edi
call fcn.0040abf2
jmp 0x41af6b
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00405338
call fcn.0040f039
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, ebx
call fcn.00405338
mov ecx, eax
call fcn.0040efbc
push dword [edi + 4]
push eax
push ebx
push esi
call fcn.0044e8a5
push dword [edi + 4]
call fcn.0044ecfb
add esp, 0x14
test eax, eax
je 0x41af6b
mov esi, dword [ebp + 0xc]
push 0
call fcn.0040f5b2
mov ecx, dword [ebp + 8]
xor eax, eax
call fcn.00405338
cmp dword [eax + 8], 4
jne 0x41aded
mov esi, edi
call fcn.0040ab30
call fcn.0040ab30
push edi
call fcn.0044b716
pop ecx
jmp 0x41aded
Function at 0x41b42f
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov ebx, ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41b4af
lea eax, [ebp - 0x22c]
push 0x468e04
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41b49d
lea eax, [ebp - 0x22c]
push 0x46b9f8
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41b49d
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040b855
add esp, 0xc
test al, al
je 0x41b4c7
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b456
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41b4d2
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x41b4c0
lea eax, [ebp - 0x258]
push eax
push 0x46b9f0
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41b560
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41b54c
lea eax, [ebp - 0x22c]
push 0x468e04
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41b54c
lea eax, [ebp - 0x22c]
push 0x46b9f8
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41b54c
lea eax, [ebp - 0x22c]
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.0041b42f
test al, al
je 0x41b564
push 0x46b9f8
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41b4ee
mov bl, 1
jmp 0x41b566
xor bl, bl
push dword [ebp - 4]
call edi
mov al, bl
jmp 0x41b4c0
Function at 0x41cabd
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str.___s
push eax
call fcn.0044bc8f
lea eax, [ebp - 0x208]
push eax
call fcn.0044bc79
add esp, 0x10
xor ebx, ebx
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x41cb24
lea eax, [ebp - 0x208]
push eax
call fcn.0044bc79
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x41cb24
lea eax, [ebp - 0x208]
push eax
call fcn.0044bc79
pop ecx
mov word [ebp + eax*2 - 0x20a], bx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41cb39
cmp byte [ebp + 8], bl
je 0x41cc05
push esi
push ebx
push 0x2200000
push 3
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41cbf0
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.0044db90
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.0044bc79
add eax, eax
mov word [ebp - 0x816], ax
mov eax, dword [ebp - 0x816]
add eax, 2
mov word [ebp - 0x814], ax
push 0x104
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.0044da9c
mov eax, dword [ebp - 0x816]
add esp, 0x1c
push ebx
add eax, 0xc
mov word [ebp - 0x81c], ax
lea ecx, [ebp + 0xc]
push ecx
push ebx
movzx eax, ax
push ebx
add eax, 8
push eax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
jne 0x41cbfb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
jmp 0x41cc04
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x41d7ef
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebp + 8]
mov dword [esp + 0x1c], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41d824
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x44]
push 0x468e04
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41d879
lea eax, [esp + 0x44]
push 0x46b9f8
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41d879
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
not ecx
and eax, ecx
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41d898
lea eax, [esp + 0x18]
push eax
push edi
call ebx
test eax, eax
jne 0x41d82a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41d8a4
mov al, 1
jmp 0x41d81b
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x41d819
lea eax, [esp + 0x18]
push eax
push 0x46b9f0
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x41d926
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x41d917
lea eax, [esp + 0x44]
push 0x468e04
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41d917
lea eax, [esp + 0x44]
push 0x46b9f8
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41d917
lea eax, [esp + 0x44]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d7ef
test al, al
je 0x41d92a
push 0x46b9f8
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call ebx
test eax, eax
jne 0x41d8bf
mov bl, 1
jmp 0x41d92c
xor bl, bl
push dword [esp + 0x10]
call edi
mov al, bl
jmp 0x41d81b
Function at 0x41e42e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call fcn.0040d832
mov edi, esi
lea esi, [ebp - 0x20]
call fcn.0040d898
push 0x46b9f0
mov eax, edi
call fcn.0040da22
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0xc]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41e581
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
call fcn.004185b3
cmp eax, 1
je 0x41e57d
cmp eax, 0xb
jne 0x41e4a1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41e481
lea eax, [ebp - 0x244]
push 0x468e04
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41e563
lea eax, [ebp - 0x244]
push 0x46b9f8
push eax
call fcn.0044bbeb
test eax, eax
pop ecx
pop ecx
je 0x41e563
lea ebx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040d95e
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0xc]
call fcn.0040da22
test byte [ebp - 0x270], 0x10
je 0x41e53b
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp byte [ebp + 0x18], bl
je 0x41e50a
add dword [esi], 1
adc dword [esi + 4], ebx
cmp byte [ebp + 0x1c], bl
je 0x41e563
push 0x468460
lea eax, [ebp - 0xc]
call fcn.0040da22
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.0041e42e
cmp al, bl
mov byte [ebp + 0xb], al
je 0x41e581
jmp 0x41e563
mov eax, dword [ebp - 0x250]
mov edx, dword [ebp - 0x254]
xor ecx, ecx
xor esi, esi
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x41e563
add dword [edi], 1
adc dword [edi + 4], esi
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e481
jmp 0x41e581
mov byte [ebp + 0xb], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x20]
call fcn.0044b716
pop ecx
push dword [ebp - 0xc]
call fcn.0044b716
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x426a5d
Capabilities:
Set socket configuration

Disassembly:
push ebx
push edi
push dword [esp + 0x10]
or eax, 0xffffffff
mov word [esi], 2
call fcn.0040d472
pop ecx
mov ebx, eax
push ebx
call sub.WSOCK32.dll_inet_addr
push ebx
mov edi, eax
call fcn.0044b716
cmp edi, 0xffffffff
pop ecx
jne 0x426a8e
xor ecx, ecx
push 0
inc ecx
jmp 0x426ab3
mov eax, dword [esp + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
mov dword [esi + 4], edi
ja 0x426aae
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 2], ax
mov al, 1
jmp 0x426abe
push 0
push 2
pop ecx
mov eax, dword [esp + 0x10]
call fcn.00419aac
xor al, al
pop edi
pop ebx
ret 0xc

Function at 0x4276dd
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0x80004002
mov dword [ebp - 4], 0x28
call fcn.0040d806
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.interface
mov edi, connect
push edi
call esi
test eax, eax
je 0x42773b
mov esi, 0x80004002
push dword [ebp - 0x20]
call fcn.0044b716
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427809
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x78], 0
push str.interface_
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0x1fe
call fcn.0040d98a
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x20]
call fcn.0040da22
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
jne 0x4277f4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x280]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4277eb
shr dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and word [ebp + eax*2 - 0x280], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x280]
push eax
call fcn.0044b577
test eax, eax
pop ecx
pop ecx
jne 0x4277eb
push dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_IIDFromString]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x427809
inc dword [ebp - 8]
mov dword [ebp - 4], 0x28
jmp 0x42773b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xc]
jmp 0x42772b