joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4180b8
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x14]
test ebx, ebx
mov eax, 0xa00000
cmove ebx, eax
push edi
mov dword [esp + 0x10], ecx
test esi, esi
je 0x4180e5
push 8
push 0
push esi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push 0x1000
xor ebp, ebp
push ebp
push dword [0x4420ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41819a
cmp dword [esp + 0x20], 0
je 0x41811d
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418188
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
mov ecx, 0x1000
push ecx
push edi
push dword [eax + 8]
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418188
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41817d
add ebp, eax
cmp ebp, ebx
ja 0x418188
test esi, esi
je 0x418103
mov edx, dword [esi + 4]
add edx, eax
mov ecx, esi
call fcn.00430d6d
test al, al
je 0x418188
push dword [esp + 0x1c]
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [esp + 0x28]
add esp, 0xc
add dword [esi + 4], eax
jmp 0x418103
mov ecx, edi
call fcn.00430e28
mov al, 1
jmp 0x41819c
mov ecx, edi
call fcn.00430e28
test esi, esi
je 0x41819a
mov ecx, dword [esi]
call fcn.00430e28
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x4181a4
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [esp + 0x30]
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41827b
push edi
push 0x1000
push ebx
push dword [0x4420ec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x418266
push ebp
mov ebp, ebx
cmp dword [esp + 0x28], ebx
je 0x418208
push ebx
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41825e
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push 0x1000
push edi
push dword [eax + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41825e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418255
add ebp, eax
cmp ebp, 0xa00000
ja 0x41825e
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41825e
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
je 0x4181f0
jmp 0x41825e
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov bl, 1
mov ecx, edi
call fcn.00430e28
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test bl, bl
jne 0x41827b
mov ecx, dword [esp + 0x18]
call fcn.0040c62c
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret 0xc
Function at 0x418c8c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push edx
call ecx
test eax, eax
je 0x418cfd
mov ecx, dword [ebp - 4]
push esi
call fcn.0040d271
mov esi, eax
test esi, esi
je 0x418cf3
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x418cec
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp - 4]
lea eax, [ebp + 8]
push 0x408de8
push eax
call fcn.004341e5
add esp, 0xc
test eax, eax
jle 0x418ceb
sub esp, 0xc
push dword [ebp + 8]
push ecx
mov ecx, edi
call fcn.0042888d
mov ecx, dword [ebp + 8]
call fcn.00430e28
pop edi
mov ecx, esi
call fcn.00430e28
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret 8
Function at 0x419536
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
xor ebx, ebx
test byte [0x441030], 1
push edi
mov esi, ecx
jne 0x419576
mov edi, 0x440fec
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [0x441030]
test al, 1
jne 0x41956f
or al, 1
mov dword [0x440fe8], ebx
mov dword [0x441034], ebx
mov byte [0x441030], al
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esi, ebx
je 0x4195bb
dec esi
dec esi
je 0x4195b2
dec esi
je 0x4195a9
dec esi
je 0x4195a0
dec esi
je 0x419597
dec esi
jne 0x41965f
mov edi, 0x401570
push 0x24
jmp 0x4195c2
mov edi, 0x4015b0
push 0x25
jmp 0x4195c2
mov edi, 0x401580
push 0x10
jmp 0x4195c2
mov edi, 0x4015a0
push 0x28
jmp 0x4195c2
mov edi, 0x4015c0
push 0x1c
jmp 0x4195c2
mov edi, 0x401590
push 0x1a
mov eax, dword [0x440fe8]
pop esi
push ebp
or ebp, 0xffffffff
test eax, eax
jne 0x4195fc
push 0x407a90
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4195f7
push 0x407aa8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
cmove eax, ebp
mov dword [0x440fe8], eax
jmp 0x4195fc
mov eax, dword [0x440fe8]
cmp eax, ebp
pop ebp
je 0x419647
test eax, eax
je 0x419647
lea ecx, [esp + 0xc]
push ecx
push ebx
push 0x1000
push edi
call eax
test eax, eax
jne 0x41965f
push dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, 0x104
call fcn.004189ac
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
jne 0x41965f
push dword [esp + 0x18]
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov al, 1
jmp 0x419661
push dword [esp + 0x18]
or esi, 0x3000
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jmp 0x419637
xor al, al
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x419894
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
jne 0x4198ab
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x419902
push ebx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4198db
push edi
xor edi, edi
cmp dword [esi + 0x40], edi
jbe 0x4198da
mov eax, dword [esi + 0x3c]
cmp dword [eax + edi*4], ebx
jne 0x4198d4
lea ecx, [esi + 0x38]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [esi + 0x40]
jb 0x4198c3
pop edi
push dword [esp + 0xc]
lea ecx, [esi + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x10]
pop ebx
cmp eax, 0xffffffff
je 0x419902
push dword [esp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x419902
mov al, 1
jmp 0x419904
xor al, al
pop esi
ret 4
Function at 0x41a51f
Capabilities:
Clear file content
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
push 0
call fcn.0040c2fc
test al, al
je 0x41a625
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040c29b
test al, al
je 0x41a625
xor ebp, ebp
and dword [esp + 0x14], ebp
push 0
lea eax, [esp + 0x1c]
push eax
push 5
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a606
cmp dword [esp + 0x18], 0
je 0x41a602
cmp dword [esp + 0x18], 5
jne 0x41a606
mov ecx, dword [esp + 0x1c]
xor ecx, dword [esi + 0x18]
mov al, byte [esi + 0x18]
xor byte [esp + 0x20], al
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov edi, ecx
add edi, ebp
adc ebx, eax
add edi, 5
adc ebx, 0
mov dword [esp + 0x1c], ecx
cmp ebx, dword [esp + 0x28]
ja 0x41a60a
jb 0x41a5bf
cmp edi, dword [esp + 0x24]
ja 0x41a60a
cmp ecx, 0xa00000
ja 0x41a60a
push 0
push ebx
push edi
mov ecx, esi
call fcn.0040c2fc
test al, al
je 0x41a625
add dword [esi + 0x20], 1
mov ebp, edi
mov dword [esp + 0x14], ebx
adc dword [esi + 0x24], 0
test byte [esp + 0x20], 1
jne 0x41a561
cmp dword [esp + 0x1c], 0
jbe 0x41a561
inc dword [esi + 0x28]
jmp 0x41a561
mov al, 1
jmp 0x41a627
mov eax, dword [esp + 0x14]
push 0
push eax
push ebp
mov ecx, esi
call fcn.0040c2fc
test al, al
je 0x41a625
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41a602
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x41a6b4
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
push dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
push ebx
call fcn.004128a7
mov edi, eax
test edi, edi
jne 0x41a6de
xor al, al
jmp 0x41a77d
push 2
push ebx
push ebx
mov ecx, esi
call fcn.0040c2fc
test al, al
je 0x41a773
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040c2c8
test al, al
je 0x41a773
mov eax, dword [esi + 0x18]
xor eax, edi
mov dword [ebp - 0xc], eax
mov al, byte [esi + 0x18]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 8], al
lea eax, [ebp + 0x10]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call ebx
test eax, eax
je 0x41a75b
cmp dword [ebp + 0x10], 5
jne 0x41a75b
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp - 4]
push dword [esi]
call ebx
test eax, eax
je 0x41a75b
cmp dword [ebp + 0x10], edi
jne 0x41a75b
push dword [esi]
xor ebx, ebx
inc ebx
add dword [esi + 0x20], ebx
adc dword [esi + 0x24], 0
inc dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x41a773
xor ebx, ebx
push ebx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
call fcn.0040c2fc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 4]
call fcn.00430e28
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41a784
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
jmp 0x41a7e5
push 0
lea eax, [esp + 0x18]
push eax
push 5
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a7f2
cmp dword [esp + 0x14], 5
jne 0x41a7f2
mov edx, dword [esp + 0x1c]
xor edx, dword [esi + 0x18]
mov cl, byte [esp + 0x20]
xor cl, byte [esi + 0x18]
lea eax, [edx + 5]
mov ebp, edi
add edi, eax
mov dword [esp + 0x18], ebx
adc ebx, 0
mov dword [esp + 0x1c], edx
mov byte [esp + 0x20], cl
test cl, 1
jne 0x41a7e3
test edx, edx
jne 0x41a7fc
mov ecx, esi
push 0
push ebx
push edi
call fcn.0040c2fc
test al, al
jne 0x41a795
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 8], ebp
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov al, 1
jmp 0x41a7f4

Function at 0x41a8a6
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
and eax, ebx
mov esi, ecx
cmp eax, 0xffffffff
je 0x41a960
lea eax, [esp + 0x20]
push eax
call fcn.0040c29b
test al, al
je 0x41a960
cmp ebx, dword [esp + 0x24]
ja 0x41a960
jb 0x41a8e8
cmp edi, dword [esp + 0x20]
jae 0x41a960
xor edx, edx
mov dword [esp + 0x20], edx
xor ebp, ebp
push 0
push ebp
push edx
mov ecx, esi
call fcn.0040c2fc
test al, al
je 0x41a960
push 0
lea eax, [esp + 0x14]
push eax
push 5
lea eax, [esp + 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a960
cmp dword [esp + 0x10], 5
jne 0x41a960
mov cl, byte [esp + 0x18]
xor cl, byte [esi + 0x18]
mov eax, dword [esp + 0x14]
xor eax, dword [esi + 0x18]
mov edx, dword [esp + 0x20]
mov byte [esp + 0x18], cl
xor ecx, ecx
mov dword [esp + 0x14], eax
add eax, edx
adc ecx, ebp
add eax, 5
adc ecx, 0
cmp edx, edi
jne 0x41a94e
cmp ebp, ebx
je 0x41a96c
mov edx, eax
mov dword [esp + 0x20], edx
mov ebp, ecx
cmp ecx, ebx
ja 0x41a960
jb 0x41a8f0
cmp eax, edi
jbe 0x41a8f0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
test byte [esp + 0x18], 1
jne 0x41a960
cmp dword [esp + 0x14], 0
jbe 0x41a960
mov dword [esi + 0x10], eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x14], ecx
mov al, 1
jmp 0x41a962
Function at 0x41a98a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
cmp eax, 0xffffffff
je 0x41aa2b
xor ebx, ebx
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0040c2fc
test al, al
je 0x41aa2b
push ebx
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aa2b
cmp dword [ebp - 4], 5
jne 0x41aa2b
mov cl, byte [esi + 0x18]
xor cl, byte [ebp - 8]
mov edx, dword [ebp - 0xc]
xor edx, dword [esi + 0x18]
or cl, 1
xor cl, byte [esi + 0x18]
xor edx, dword [esi + 0x18]
push ebx
push dword [esi + 0xc]
mov byte [ebp - 8], cl
push dword [esi + 8]
mov ecx, esi
mov dword [ebp - 0xc], edx
call fcn.0040c2fc
test al, al
je 0x41aa2b
push ebx
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41aa2b
cmp dword [ebp - 4], 5
jne 0x41aa2b
push dword [esi]
dec dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x41aa2d
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x41aa31
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
mov edi, ecx
push 0x40000000
push edi
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41aa8f
test ebp, ebp
je 0x41aa7a
cmp dword [esp + 0x18], ebx
je 0x41aa7a
push ebx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41aa7c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
je 0x41aa8f
mov ecx, edi
call fcn.0040c62c
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4

Function at 0x41aa99
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x41ab30
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41ab27
cmp dword [ebp - 8], edi
jne 0x41ab27
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
test eax, eax
jne 0x41aae2
mov dword [esi], edi
jmp 0x41ab15
push 4
push 0x3000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
test eax, eax
je 0x41ab27
push edi
lea ecx, [ebp - 4]
push ecx
push dword [esi + 4]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ab19
mov ecx, dword [ebp - 4]
cmp ecx, dword [esi + 4]
jne 0x41ab19
mov al, 1
jmp 0x41ab32
push 0x8000
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x41ab60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push esi
push edi
push eax
push 0xf6
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41abf5
xor esi, esi
push edi
call fcn.00427945
push eax
push 0x4076cc
push 0x407ad4
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00434140
add esp, 0x18
cmp eax, 0xffffffff
je 0x41abf5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp - 0x410]
call fcn.00419668
test eax, eax
je 0x41abec
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41abfd
inc esi
cmp esi, 0xc8
jb 0x41ab89
xor al, al
pop edi
pop esi
leave
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x41abf7

Function at 0x41ac08
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push esi
push edi
push eax
push 0xf6
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0xf5
ja 0x41ac85
xor esi, esi
call fcn.00427945
push eax
push 0x4076cc
push 0x407ae8
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00434140
add esp, 0x14
cmp eax, 0xffffffff
je 0x41ac85
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp - 0x410]
mov ecx, edi
call fcn.00419668
test eax, eax
je 0x41ac7f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ac8b
inc esi
cmp esi, 0x64
jb 0x41ac31
xor al, al
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x41ac87

Function at 0x41acb7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
push edi
xor ebx, ebx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
cmove esi, edi
movzx eax, word [esi]
cmp eax, 0x5c
je 0x41acdf
cmp eax, 0x2f
je 0x41acdf
test ax, ax
jne 0x41ad0a
mov ebp, eax
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41acfe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x41ad00
test al, 0x10
je 0x41ad11
test bp, bp
je 0x41ad0f
mov word [esi], bp
add esi, 2
jmp 0x41accd
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret
Function at 0x41ad18
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x458
push esi
mov esi, ecx
push edi
push 0x407964
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.00419668
test eax, eax
je 0x41adac
lea eax, [esp + 0x210]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41adac
lea ecx, [esp + 0x23c]
call fcn.0041ac8f
test al, al
jne 0x41ad92
mov eax, ecx
push eax
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.00419668
test eax, eax
je 0x41ad92
test byte [esp + 0x210], 0x10
lea ecx, [esp + 8]
je 0x41ad8d
call fcn.0041ad18
jmp 0x41ad92
call fcn.0040c62c
lea eax, [esp + 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ad56
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41c861
Capabilities:
Encode data using xor

Disassembly:
push esi
movzx esi, cx
push edi
mov edi, edx
xor eax, eax
xor edx, edx
cmp ax, word [esi*8 + 0x4051a2]
jae 0x41c89a
mov eax, dword [esi*8 + 0x4051a4]
movzx ecx, dx
mov al, byte [eax + ecx]
xor al, byte [esi*8 + 0x4051a0]
xor al, dl
inc edx
mov byte [ecx + edi], al
cmp dx, word [esi*8 + 0x4051a2]
jb 0x41c876
movzx eax, word [esi*8 + 0x4051a2]
mov byte [eax + edi], 0
pop edi
pop esi
ret

Function at 0x41c8a9
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
movzx esi, cx
push edi
xor eax, eax
xor edi, edi
mov ebx, edx
cmp ax, word [esi*8 + 0x4051a2]
jae 0x41c8f3
mov eax, dword [esi*8 + 0x4051a4]
movzx edx, di
movsx cx, byte [eax + edx]
movzx eax, byte [esi*8 + 0x4051a0]
xor cx, ax
xor cx, di
mov eax, 0xff
and cx, ax
inc edi
mov word [ebx + edx*2], cx
cmp di, word [esi*8 + 0x4051a2]
jb 0x41c8bf
movzx eax, word [esi*8 + 0x4051a2]
pop edi
xor ecx, ecx
pop esi
mov word [ebx + eax*2], cx
pop ebx
ret
Function at 0x41ca78
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0xc]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x41cb06
cmp dword [esp + 0x14], ebx
je 0x41cb06
mov eax, dword [esi]
lea ecx, [esi + 4]
lea edx, [eax*4 + 4]
call fcn.00430d6d
test al, al
je 0x41cb06
push edi
push ebx
push 4
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x41caf8
cmp dword [esp + 0x24], ebx
je 0x41cb15
push 2
push ebx
push ebx
push dword [esp + 0x30]
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x41cb15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esi]
shl edx, 2
lea ecx, [esi + 4]
call fcn.00430d6d
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
mov al, bl
pop ebx
ret 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push edi
mov dword [eax + ecx*4], edi
inc dword [esi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov bl, 1
jmp 0x41cb05

Function at 0x41cb97
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push ecx
xor ebx, ebx
push ebx
push 0x47a
mov edi, edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41cc13
push ebx
push ebx
mov edx, edi
mov ecx, esi
call fcn.0040a6d3
mov dword [ebp - 4], eax
test eax, eax
je 0x41cc0c
sub eax, dword [0x440744]
push ebx
push ebx
push ebx
add eax, 0x40adea
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x41cbfc
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x41cc0c
push 0x8000
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x41cc1c
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x248
push ebx
xor al, al
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
xor edi, edi
mov dword [esp + 0x18], edi
cmp ebp, 0xffffffff
je 0x41cdae
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x30], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41cd9f
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x41cd87
cmp ecx, dword [0x440b88]
je 0x41cd87
xor eax, eax
test ebx, ebx
je 0x41cc9b
cmp dword [esi + eax*4], ecx
je 0x41cd87
inc eax
cmp eax, ebx
jb 0x41cc8d
call fcn.0040a5d5
mov dword [esp + 0x10], eax
test eax, eax
je 0x41cd87
push dword [esp + 0x30]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41cd7c
lea edx, [esp + 0x24]
mov ecx, edi
call fcn.00428561
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41cd78
mov ecx, dword [esp + 0x24]
cmp ecx, dword [0x440740]
jne 0x41cd67
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, dword [0x440738]
jne 0x41cd67
push eax
mov eax, dword [0x440734]
push dword [eax]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x41cd67
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
lea edx, [edi*4 + 4]
call fcn.00430d6d
mov esi, dword [esp + 0x20]
test al, al
je 0x41cd67
mov eax, dword [esp + 0x30]
mov dword [esi + edi*4], eax
inc edi
inc dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x34]
mov edx, edi
call fcn.0041cb97
mov ecx, dword [esp + 0x1c]
xor edx, edx
movzx ecx, cl
inc edx
test al, al
cmovne ecx, edx
mov dword [esp + 0x1c], ecx
jmp 0x41cd6b
mov edi, dword [esp + 0x10]
mov ecx, ebx
call fcn.00430e28
mov ebx, dword [esp + 0x14]
jmp 0x41cd80
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41cc6f
mov edi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x41cc38
mov ecx, esi
call fcn.00430e28
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret