joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f750
Capabilities:
Connect socket

Disassembly:
sub esp, 0x84
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov edi, dword [esp + 0x9c]
mov ebx, dword [ebp]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f8f4
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x14]
push 0x80
push ecx
push edi
mov byte [eax], 0
call fcn.0040a970
lea edx, [esp + 0x20]
push edx
push 0x42cabc
push ebx
call fcn.004149c0
mov al, byte [ebx + 0x1ae]
add esp, 0x18
test al, al
je 0x41f7c9
push esi
push ebp
call fcn.0041fb20
add esp, 8
mov eax, dword [ebp]
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x41f7e5
push esi
push ebp
call fcn.0041f910
add esp, 8
test eax, eax
jne 0x41f8ed
push 1
push esi
call fcn.0041f620
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
add esp, 8
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f899
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb
mov dword [esp + 0x10], eax
je 0x41f886
cmp eax, 0x2732
jle 0x41f826
cmp eax, 0x2734
jle 0x41f886
push eax
push ebp
call fcn.0040a250
push eax
lea eax, [esp + 0x20]
push eax
push 0x42caa0
push ebx
call fcn.00414a30
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov dword [ebx + 0x8308], ecx
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0041f6e0
add esp, 8
test edi, edi
jne 0x41f8b4
test al, al
je 0x41f8c9
mov ecx, dword [esp + 0xa4]
push 0x42ca94
push ebx
mov byte [ecx], 1
call fcn.004149c0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0xa0]
push edx
push esi
call fcn.0041f6b0
add esp, 8
mov edi, eax
cmp edi, 1
jne 0x41f84b
cmp dword [ebx + 0x2c8], 2
jne 0x41f84b
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
cmp edi, 1
jne 0x41f8c9
push 0x42ca88
push ebx
call fcn.004149c0
add esp, 8
jmp 0x41f8ed
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x8308], edx
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.0040a250
push eax
push 0x42ca84
push ebx
call fcn.004149c0
add esp, 0x14
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x84
ret
Function at 0x41f910
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x118
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
push edi
mov ebx, dword [ebp]
mov edx, dword [ebx + 0x74]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xff
jae 0x41fb07
mov dword [esp + 0x10], eax
mov al, byte [0x42d680]
mov byte [esp + 0x28], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x41f9b2
mov edx, dword [ebx + 0x74]
lea ecx, [esp + 0x28]
push 0x100
push ecx
push edx
call fcn.0040a8b0
add esp, 0xc
test eax, eax
je 0x41f9b2
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push 0
push ecx
push ebp
call fcn.0040ab40
add esp, 0x10
cmp eax, 1
jne 0x41f9aa
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.00413b30
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x41fa05
mov ecx, dword [ebx + 0x74]
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push ebp
call fcn.0040ab40
add esp, 0x10
cmp eax, 1
jne 0x41f9d9
lea edx, [esp + 0x10]
push edx
push ebp
call fcn.00413b30
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41fa05
mov edi, dword [ebx + 0x74]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x28]
test al, al
jne 0x41fa1b
mov ecx, dword [ebx + 0x74]
push ecx
push 0x42cb20
jmp 0x41fafe
lea edx, [esp + 0x28]
push edx
push 0x42cb04
push ebx
call fcn.004149c0
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x41faf4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41faed
mov esi, dword [eax]
push eax
push ebx
call fcn.0040ad00
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov esi, dword [esp + 0x138]
add esp, 8
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x41faaf
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x41fae0
push 0x42b360
push ebx
call fcn.00414a30
add esp, 8
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
call sub.KERNEL32.dll_GetLastError
push eax
push ebp
mov dword [ebx + 0x8308], eax
call fcn.0040a250
push eax
push 0x42caf0
push ebx
call fcn.00414a30
add esp, 0x14
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret
lea edx, [esp + 0x28]
push edx
jmp 0x41faf9
lea eax, [esp + 0x28]
push eax
push 0x42cacc
push ebx
call fcn.00414a30
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x2d
pop ebx
add esp, 0x118
ret
Function at 0x41fb20
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 4
mov esi, dword [edi]
xor eax, eax
push ecx
push 1
mov al, byte [esi + 0x1ae]
push 6
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x41fb6c
call sub.KERNEL32.dll_GetLastError
push eax
push edi
call fcn.0040a250
push eax
push 0x42cb4c
push esi
call fcn.004149c0
add esp, 0x14
pop edi
pop esi
ret
push 0x42cb38
push esi
call fcn.004149c0
add esp, 8
pop edi
pop esi
ret
Function at 0x420aa0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0xfb20
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x430010
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c000]
push edi
or ebp, 0xffffffff
jmp 0x430032
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430039
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430028
mov eax, 1
add ebx, ebx
jne 0x43004b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430040
jne 0x43005c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430040
xor ecx, ecx
sub eax, 3
jb 0x430070
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4300e2
mov ebp, eax
add ebx, ebx
jne 0x43007b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4300ac
inc ecx
add ebx, ebx
jne 0x430098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43008d
jne 0x4300a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43008d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4300cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4300bd
jmp 0x43002e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4300cc
add edi, ecx
jmp 0x43002e
pop esi
mov edi, esi
mov ecx, 0x7c5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4300ea
cmp byte [edi], 0xc
jne 0x4300ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4300ef
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x430167
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32a34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32afc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43011c
mov ecx, edi
jns 0x43014b
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 + 0x32b00]
or eax, eax
je 0x430161
mov dword [ebx], eax
add ebx, 4
jmp 0x430139
call dword [esi + 0x32b04]
popal
jmp 0x41ac42
Function at 0x403523
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413020]
jne 0x40352d
repz ret
jmp fcn.00403f0c

Function at 0x4083fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404084
and dword [ebp - 4], 0
cmp dword [0x414b68], 0
mov ebx, eax
jne 0x4084ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40855e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40855e
push eax
call fcn.00404012
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414b68], eax
call esi
push eax
call fcn.00404012
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414b6c], eax
call esi
push eax
call fcn.00404012
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x414b70], eax
call esi
push eax
call fcn.00404012
pop ecx
mov dword [0x414b78], eax
test eax, eax
je 0x4084ad
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404012
pop ecx
mov dword [0x414b74], eax
mov eax, dword [0x414b74]
cmp eax, ebx
je 0x408505
cmp dword [0x414b78], ebx
je 0x408505
push eax
call fcn.0040408d
push dword [0x414b78]
mov esi, eax
call fcn.0040408d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408505
test edi, edi
je 0x408505
call esi
test eax, eax
je 0x4084fc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4084fc
test byte [ebp - 0xc], 1
jne 0x408505
or dword [ebp + 0x10], 0x200000
jmp 0x40853e
mov eax, dword [0x414b6c]
cmp eax, ebx
je 0x40853e
push eax
call fcn.0040408d
pop ecx
test eax, eax
je 0x40853e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40853e
mov eax, dword [0x414b70]
cmp eax, ebx
je 0x40853e
push eax
call fcn.0040408d
pop ecx
test eax, eax
je 0x40853e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x414b68]
call fcn.0040408d
pop ecx
test eax, eax
je 0x40855e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408560
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405f00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push ebx
push esi
push edi
lea edi, [ebp - 0x18c]
mov ecx, 0x63
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x48], 0x77
mov byte [ebp - 0x47], 0x77
mov byte [ebp - 0x46], 0x6b
mov byte [ebp - 0x45], 0x72
mov byte [ebp - 0x44], 0x6e
mov byte [ebp - 0x43], 0x2e
mov byte [ebp - 0x42], 0x78
mov byte [ebp - 0x41], 0x63
mov byte [ebp - 0x40], 0x66
mov byte [ebp - 0x3f], 0
lea eax, [ebp - 0x14c]
push eax
call fcn.00406100
add esp, 4
lea ecx, [ebp - 0x14c]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x405fd3
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [ebp + eax - 0x14c]
cmp ecx, 0x5c
je 0x405f96
mov edx, dword [ebp - 4]
movsx eax, byte [ebp + edx - 0x14c]
cmp eax, 0x2f
jne 0x405fb6
mov ecx, dword [ebp - 4]
mov byte [ebp + ecx - 0x14b], 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
jmp 0x405fd3
cmp dword [ebp - 4], 1
jge 0x405fd1
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x14c]
push edx
call sub.MSVCRTD.dll_strcpy
add esp, 8
jmp 0x405fd3
jmp 0x405f67
push 0
push 0
lea eax, [ebp - 0x14c]
push eax
call fcn.004010a0
add esp, 0xc
test eax, eax
jge 0x405ff1
xor eax, eax
jmp 0x40607c
push 0
lea ecx, [ebp - 0x14c]
push ecx
call fcn.00401109
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40607a
mov esi, esp
mov edx, dword [ebp + 8]
push edx
push 0x406190
push 0
push str._t__r_n
push 0x42271c
push 0x422718
push 0x422714
push 0x422594
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.xstrd.dll_XTreeStr]
add esp, 0x28
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.xstrd.dll_XIniDic_Sort]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
cmp esi, esp
call sub.MSVCRTD.dll__chkesp
mov eax, 1
jmp 0x40607c
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x18c
cmp ebp, esp
call sub.MSVCRTD.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x408ef0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x408f08
mov dword [ebp - 4], 0xffffffff
jmp 0x408f51
mov eax, dword [0x424ad4]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x408f51
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [eax*4 + 0x4246d4]
xor edx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0xc], 0
jne 0x408f16
mov edx, dword [ebp - 4]
mov dword [0x424ad4], edx
mov eax, dword [ebp - 4]
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a7ab0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402c0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402bcb
cmp dword [ebp + 0x10], ebx
jne 0x402c02
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b7a
test eax, eax
jne 0x402bdd
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402bb2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406152
cmp eax, ebx
je 0x402c15
push ebx
push dword [0x7a7ab0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a7ab0], ebx
jne 0x402c0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402c0b
jmp 0x402c0e
Function at 0x405563
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a3ef0], 0x44
push eax
xor eax, eax
push 0x7a3ef0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40559e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405628
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a2f
mov edi, eax
cmp edi, 0xffffffff
je 0x405669
test byte [esp + 0x10], 1
push esi
je 0x40564b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405651
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40565a
xor eax, eax
inc eax
jmp 0x40566b
test byte [esp + 0x10], 4
jne 0x405669
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405670
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040593b
test bl, 8
mov dword [ebp - 8], eax
je 0x4056af
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x7a7a88], eax
jmp 0x40582c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056c9
test eax, eax
je 0x4057da
test bl, 2
je 0x4057da
mov esi, 0x7a2ef0
push edi
push esi
call fcn.00405de8
cmp dword [ebp + 8], 0
je 0x4056e8
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4056ee
push edi
call fcn.0040587f
cmp word [edi], 0
jne 0x4056fe
cmp word [0x7a2ef0], 0x5c
jne 0x405709
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057cf
cmp word [ebp - 0x22c], 0x2e
jne 0x405753
cmp word [ebp - 0x22a], 0
je 0x4057b2
cmp word [ebp - 0x22a], 0x2e
jne 0x405753
cmp word [ebp - 0x228], 0
je 0x4057b2
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405de8
test byte [ebp - 0x258], 0x10
je 0x40577e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4057b2
push dword [ebp + 0xc]
push edi
call fcn.00405670
jmp 0x4057b2
push dword [ebp - 4]
push edi
call fcn.00405628
test eax, eax
jne 0x4057aa
cmp dword [ebp - 4], eax
je 0x4057a2
push edi
push 0xfffffffffffffff1
call fcn.00405092
push 0
push edi
call fcn.00405c82
jmp 0x4057b2
inc dword [0x7a7a88]
jmp 0x4057b2
push edi
push 0xfffffffffffffff2
call fcn.00405092
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40572b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057da
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40582c
cmp dword [ebp - 8], esi
jne 0x4057ee
inc dword [0x7a7a88]
jmp 0x40582c
push edi
call fcn.0040612b
test eax, eax
je 0x40582c
push edi
call fcn.00405833
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405628
test eax, eax
jne 0x405824
cmp dword [ebp - 4], esi
je 0x4057e6
push edi
push 0xfffffffffffffff1
call fcn.00405092
push esi
push edi
call fcn.00405c82
jmp 0x40582c
push edi
push 0xffffffffffffffe5
call fcn.00405092
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40593b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a36f0
push esi
call fcn.00405de8
push esi
call fcn.004058de
mov edi, eax
test edi, edi
jne 0x40595c
xor eax, eax
jmp 0x4059b4
push edi
call fcn.0040607c
test byte [0x7a7a18], 0x80
je 0x405979
mov ax, word [edi]
test ax, ax
je 0x405958
cmp ax, 0x5c
je 0x405958
sub edi, esi
sar edi, 1
jmp 0x405993
call fcn.0040612b
test eax, eax
je 0x40598d
test byte [eax], 0x10
je 0x405958
push esi
call fcn.0040587f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x40597f
call fcn.00405833
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405a2f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a4e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405a54
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405a83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409528]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40952c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ad3
test edi, edi
jne 0x405a90
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405acd
Function at 0x405b06
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x7a4588
push 0x40954c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405b55
push 1
push 0
push esi
call fcn.00405a54
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405c7c
cmp eax, edi
jg 0x405c7c
mov esi, 0x7a4d88
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405c7c
cmp eax, edi
jg 0x405c7c
push esi
push ebx
push str._ls_ls_r_n
push 0x7a4188
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a7a10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405e0a
push 4
push 0xc0000000
push esi
call fcn.00405a54
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405c7c
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405c75
push edi
push esi
push ebp
call fcn.00405ad7
test eax, eax
je 0x405c75
push str._Rename__r_n
push esi
call fcn.004059b9
test eax, eax
jne 0x405c0b
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405c40
add eax, 0xa
push 0x409530
push eax
call fcn.004059b9
mov ebp, eax
test ebp, ebp
je 0x405c3c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405c2d
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405c27
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405c42
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x7a4188
push eax
call fcn.00405a0f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405cb5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405d29
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405d16
cmp dword [ebp + 0x14], 1
je 0x405d19
cmp dword [ebp + 0x14], 2
je 0x405d19
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14