joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f4e8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f507
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40f547
xor eax, eax
jmp 0x40f590
cmp ebx, 0x20
je 0x40f580
cmp ebx, 0x40
je 0x40f580
test bl, 0xb
jne 0x40f560
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f590
xor ecx, ecx
test bl, 0x14
je 0x40f568
inc ecx
xor eax, eax
test bl, 2
je 0x40f570
inc eax
push dword [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x40f590
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_SetSystemPowerState]
pop esi
leave
ret

Function at 0x40f7f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
test edi, edi
js 0x40f86e
jne 0x40f804
push 0
jmp 0x40f868
cmp edi, 0xf
jae 0x40f867
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f867
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x475be8]
call fcn.00469f36
cmp eax, edi
jb 0x40f825
jmp 0x40f86e
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fade
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
mov bl, byte [0x4803c7]
push esi
push 0x8000
push dword [ebp + 8]
call fcn.004581c9
pop ecx
push eax
call fcn.004580de
cmp dword [edi + 8], 0xb
pop ecx
pop ecx
mov dword [esp + 8], eax
jne 0x40fb34
push dword [ebp + 8]
mov ecx, edi
call fcn.00412b6a
push eax
push 1
push ecx
mov eax, edi
call fcn.00412c01
pop ecx
push eax
call fcn.00458346
add esp, 0x10
mov dword [esp + 0xc], eax
jmp 0x40fb7f
lea esi, [esp + 0x10]
call fcn.00407c35
mov eax, edi
call fcn.00412bcc
mov ecx, esi
push ecx
call fcn.0040d228
push dword [esp + 0x10]
push 0x470a74
push dword [ebp + 8]
call fcn.004583c0
add esp, 0xc
mov dword [esp + 0xc], eax
test bl, bl
je 0x40fb76
mov eax, edi
call fcn.00412bb1
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea esi, [esp + 0x10]
call fcn.00407c54
push dword [ebp + 8]
call fcn.00458656
cmp dword [esp + 0xc], 0xffffffff
pop ecx
jne 0x40fb96
push 0x4000
jmp 0x40fb9a
push dword [esp + 8]
push dword [ebp + 8]
call fcn.004581c9
pop ecx
push eax
call fcn.004580de
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411d09
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x411d46
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411da6
push 1
push eax
mov eax, esi
call fcn.00411c6f
pop ecx
pop ecx
jmp 0x411dc2
test dword [ebp + 8], eax
je 0x411d69
mov eax, dword [esi]
cmp eax, edi
jne 0x411dc4
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x411daa
or eax, 0xffffffff
jmp 0x411dc4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi], eax
cmp eax, edi
je 0x411d7d
cmp eax, 0xffffffff
jne 0x411d38
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x470cf4
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411da6
cmp eax, edi
jne 0x411daa
mov dword [esi], edi
jmp 0x411dc2
push 1
push dword [esi]
lea eax, [ebp + 0xc]
call fcn.00411c6f
pop ecx
pop ecx
call fcn.00411c5e
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0xc
Function at 0x411dca
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x411e06
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411e64
push 1
push eax
mov eax, esi
call fcn.00411c6f
pop ecx
pop ecx
jmp 0x411e80
test al, 1
je 0x411e28
mov eax, dword [esi]
cmp eax, edi
jne 0x411e82
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
jne 0x411e68
or eax, 0xffffffff
jmp 0x411e82
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov dword [esi], eax
cmp eax, edi
je 0x411e3b
cmp eax, 0xffffffff
jne 0x411df8
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push SysReAllocString
push 0x470cf4
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411e64
cmp eax, edi
jne 0x411e68
mov dword [esi], edi
jmp 0x411e80
push 1
push dword [esi]
lea eax, [ebp + 8]
call fcn.00411c6f
pop ecx
pop ecx
call fcn.00411c5e
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x411fb3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x411fd4
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x4121dc
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x30], eax
leave
ret

Function at 0x411fd6
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + 0x30]
cmp dword [esi], 0
je 0x41203e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
add eax, 0x34
push edi
push dword [eax]
mov dword [ebp - 4], eax
push eax
call ebx
mov edi, 0x1f6
cmp eax, edi
je 0x41203c
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call fcn.00411c5e
push edi
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4121f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004666e0
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.00455667
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x4122e2
cmp dword [ebp - 4], 0
jbe 0x4122fd
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x4122b9
push dword [esi + 0xc]
call fcn.00455667
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.00454ef0
push dword [esi + 8]
call fcn.0045526c
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0x412289
fadd qword [0x475bc0]
fmul qword [0x475bf8]
call fcn.00469f36
push eax
mov dword [esi + 0x10], eax
call fcn.00455667
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.00454ef0
push dword [ebp - 8]
call fcn.0045526c
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.00454ef0
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x412237
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x414bba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x490420], eax
push edi
mov edx, esi
mov eax, 0x490420
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x490ddc
jl 0x414bcb
pop edi
mov dword [0x47b05c], esi
mov dword [0x490df0], esi
pop esi
ret
Function at 0x414bf9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x490df0], 0
push ebx
push esi
push edi
mov esi, 0x490420
jne 0x414c1b
push 0
call fcn.00458943
pop ecx
call fcn.00414bba
mov dword [0x47b05c], 0x270
mov dword [0x49041c], esi
mov dword [ebp - 4], 0xe3
mov ecx, SysReAllocString
mov eax, 0x9908b0df
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi + 0x634]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414c3c
mov dword [ebp - 4], 0x18c
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414c6e
mov edi, dword [esi]
mov edx, dword [0x490420]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, eax
xor edi, ecx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414cc4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x47b05c]
jne 0x414cd1
call fcn.00414bf9
mov eax, dword [0x49041c]
mov ecx, dword [eax]
add dword [0x49041c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x414d08
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x47b05c]
jne 0x414d19
call fcn.00414bf9
mov eax, dword [0x49041c]
mov eax, dword [eax]
add dword [0x49041c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jns 0x414d5d
fadd qword [0x475bc0]
fmul qword [0x475bd0]
leave
ret

Function at 0x414f0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x414f2c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00454ef0
add esp, 0xc
jmp 0x414f3f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00458d94
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00458dc0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x41eb67
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 dword [ebp - 8], ecx
xor bl, bl
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41ebec
lea eax, [ebp - 0x22c]
push 0x4708e8
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x41ebda
lea eax, [ebp - 0x22c]
push 0x47372c
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x41ebda
push dword [ebp + 0x10]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push eax
call fcn.0040e409
add esp, 0xc
test al, al
je 0x41ec04
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41eb91
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x41ec0f
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x41ebfd
lea eax, [ebp - 0x258]
push eax
push 0x473724
call esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x41ec9b
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [ebp - 0x258], 0x10
je 0x41ec87
lea eax, [ebp - 0x22c]
push 0x4708e8
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x41ec87
mov ebx, 0x47372c
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x41ec87
lea eax, [ebp - 0x22c]
push eax
call esi
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041eb67
test al, al
je 0x41ec9f
push ebx
call esi
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41ec2b
mov bl, 1
jmp 0x41eca1
xor bl, bl
push dword [ebp - 4]
call edi
jmp 0x41ebfb
Function at 0x42038b
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str.___s
push eax
call fcn.0045732b
lea eax, [ebp - 0x208]
push eax
call fcn.00455251
add esp, 0x10
cmp word [ebp + eax*2 - 0x20a], 0x5c
jne 0x4203f1
lea eax, [ebp - 0x208]
push eax
call fcn.00455251
cmp word [ebp + eax*2 - 0x20c], 0x3a
pop ecx
je 0x4203f1
lea eax, [ebp - 0x208]
push eax
call fcn.00455251
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x20a], cx
push ebx
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x420409
cmp byte [ebp + 8], bl
je 0x4204d5
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 0x4204c0
push 0x14
lea eax, [ebp - 0x820]
push ebx
push eax
call fcn.00456fd0
lea eax, [ebp - 0x208]
push eax
mov dword [ebp - 0x820], 0xa0000003
call fcn.00455251
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.0045704a
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]
push esi
test eax, eax
jne 0x4204cb
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
jmp 0x4204d4
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 8
Function at 0x4210fa
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
xor bl, bl
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x421187
lea eax, [esp + 0x44]
push 0x4708e8
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x421177
lea eax, [esp + 0x44]
push 0x47372c
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x421177
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 0x4211a1
mov bl, 1
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x421126
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_FindClose]
call edi
cmp byte [ebp + 0x14], 0
jne 0x4211ac
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x421198
lea eax, [esp + 0x18]
push eax
push 0x473724
call esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x42122f
mov esi, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [esp + 0x18], 0x10
je 0x42121c
lea eax, [esp + 0x44]
push 0x4708e8
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x42121c
mov ebx, 0x47372c
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x42121c
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.004210fa
test al, al
je 0x421233
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4211c7
mov bl, 1
jmp 0x421235
xor bl, bl
push dword [esp + 0x10]
call edi
jmp 0x421196
Function at 0x421c83
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
call fcn.00401983
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
inc dword [eax]
push 0x473724
mov dword [ebp - 0x1c], eax
call fcn.00401a27
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x10]
mov byte [ebp + 0xb], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x421de3
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push dword [ebp - 0x14]
call fcn.004173ac
cmp eax, 1
je 0x421ddf
cmp eax, 0xb
jne 0x421d07
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x421ce7
lea eax, [ebp - 0x24c]
push 0x4708e8
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x421dc5
lea eax, [ebp - 0x24c]
push 0x47372c
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x421dc5
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.00401b3c
lea eax, [ebp - 0x24c]
push eax
lea esi, [ebp - 0x10]
call fcn.00401a27
test byte [ebp - 0x278], 0x10
je 0x421d9f
cmp byte [ebp + 0x18], 0
je 0x421d6d
add dword [edi], 1
adc dword [edi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x421dc5
push 0x46e4b0
lea esi, [ebp - 0x10]
call fcn.00401a27
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x18]
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.00421c83
mov byte [ebp + 0xb], al
test al, al
je 0x421de3
jmp 0x421dc5
mov edx, dword [ebp - 0x25c]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
or ecx, dword [ebp - 0x258]
xor esi, esi
or edx, esi
add dword [eax], ecx
adc dword [eax + 4], edx
cmp byte [ebp + 0x18], 0
je 0x421dc5
add dword [ebx], 1
adc dword [ebx + 4], esi
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x421ce7
jmp 0x421de3
mov byte [ebp + 0xb], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x28]
call fcn.00401a04
lea ecx, [ebp - 0x10]
call fcn.00401a04
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x4247ba
Capabilities:
Connect to http server
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi + 0xd0], bl
je 0x424811
cmp byte [ebp + 8], bl
je 0x424811
mov eax, dword [esi + 0xd4]
cmp eax, ebx
je 0x4247e4
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0xd4], ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push esi
push ebx
push 0x4248c7
mov dword [esi + 0xd4], eax
call fcn.004592a4
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], ebx
sete al
pop ebx
pop ebp
ret 4
pop ebx
mov eax, esi
pop ebp
jmp fcn.004248d6
Function at 0x424dd8
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
cmp dword [edi + 0x74], 4
mov esi, ecx
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x424df8
or dword [ebp - 4], 0x800000
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x10]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push eax
movzx eax, word [edi + 0x78]
push ecx
push eax
push edx
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
cmp eax, ebx
jne 0x424e49
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0xd4]
cmp esi, ebx
je 0x424f67
push esi
call dword [sym.imp.KERNEL32.DLL_SetEvent]
jmp 0x424f67
mov ecx, dword [edi + 0x60]
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push ecx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x424e6c
mov dword [esi + 0x18], 0xc
jmp 0x424e26
cmp byte [ebp + 8], bl
je 0x424e7b
push eax
mov eax, edi
mov ecx, esi
call fcn.00424ceb
test dword [ebp - 4], 0x1000
je 0x424eb4
push 4
pop edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 8], 0x100
push edi
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x424f3d
mov edi, dword [ebp - 0xc]
push edi
call fcn.00424d3b
cmp eax, 0xc8
jne 0x424f3d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
push 5
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 4], 0x20
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x2c]
push eax
call fcn.0045722b
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0xc], bl
je 0x424f1e
push edi
mov eax, esi
call fcn.00425087
push edi
mov bl, al
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
jmp 0x424f69
mov dword [esi + 0x18], ebx
mov esi, dword [esi + 0xd4]
cmp esi, ebx
je 0x424f32
push esi
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x424f69
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x1c], eax
mov esi, dword [esi + 0xd4]
cmp esi, ebx
je 0x424f5e
push esi
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8