joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4704d2
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x470517
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47059d
push 1
mov edx, esi
mov ecx, eax
call fcn.00470371
pop ecx
jmp 0x47059f
test dword [ebp + 8], eax
je 0x47053d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x4705a1
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x47057d
or eax, 0xffffffff
jmp 0x4705a1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x470554
cmp eax, 0xffffffff
jne 0x470506
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x4c6a10
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47059d
test eax, eax
je 0x47059d
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00470371
pop ecx
cmp dword [esi], edi
je 0x470596
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x47059f
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10

Function at 0x4705a7
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x4705eb
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47066f
push 1
mov edx, esi
mov ecx, eax
call fcn.00470371
pop ecx
jmp 0x470671
test al, 1
je 0x470610
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
test eax, eax
jne 0x470673
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x47064f
or eax, 0xffffffff
jmp 0x470673
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [ebp + 0x10]
mov dword [esi], eax
test eax, eax
je 0x470626
cmp eax, 0xffffffff
jne 0x4705da
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push bind
push 0x4c6a10
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x47066f
test eax, eax
je 0x47066f
mov ecx, dword [esi]
lea edx, [ebp + 0x10]
push 1
call fcn.00470371
pop ecx
cmp dword [esi], edi
je 0x470668
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x470671
mov dword [esi], edi
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0x10
Function at 0x4707ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x1f5
lea esi, [ebx + 0x38]
mov dword [ebp - 8], edi
push esi
call edi
mov eax, dword [ebx + 8]
mov ecx, 0xffff
test eax, eax
jne 0x470826
push ecx
call fcn.0041fe0b
pop ecx
mov ecx, 0xffff
mov dword [ebx + 8], eax
push ecx
mov dword [ebx + 0x14], ecx
call fcn.0041fe0b
pop ecx
push 0
mov dword [ebx + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebx + 8]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470907
cmp dword [ebp - 4], 0
jbe 0x470901
lea esi, [ebx + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 4]
add eax, ecx
cmp dword [ebx + 0x14], eax
jae 0x4708c2
mov eax, dword [ebx + 0x10]
add eax, dword [ebp - 4]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jns 0x47088d
fadd qword [0x4c81c0]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x4c33f8]
call fcn.004420b0
push eax
mov dword [ebx + 0x14], eax
call fcn.0041fe0b
push dword [ebx + 0x10]
mov dword [ebx + 0xc], eax
push edi
push dword [ebx + 0xc]
call fcn.00420e20
push edi
call fcn.0041fe14
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0xc]
push ecx
push dword [ebx + 8]
push eax
call fcn.00420e20
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [ebx + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push 0xffff
push dword [ebx + 8]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470855
mov edi, dword [ebp - 8]
lea esi, [ebx + 0x38]
cmp dword [ebx + 8], 0
je 0x47091a
push dword [ebx + 8]
call fcn.0041fe14
and dword [ebx + 8], 0
pop ecx
mov ebx, 0x1f6
push ebx
push esi
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x47096b
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0
je 0x4709d7
push ebx
lea ebx, [edi + 0x38]
push dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp eax, 0x1f6
je 0x4709d6
push esi
lea esi, [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1f6
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0x34], 0
je 0x4709c2
push dword [edi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x34], 0
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
pop edi
ret
Function at 0x4709d9
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
inc ebx
cmp dword [edi + 0x20], 0
jne 0x470a19
test byte [edi], 2
je 0x4709f6
cmp dword [edi + 8], 0
je 0x4709f6
mov al, bl
jmp 0x4709f8
xor al, al
test al, al
je 0x470a19
mov esi, dword [edi + 8]
push 0x3c
call fcn.0041fddb
pop ecx
push esi
mov ecx, eax
call fcn.0047011d
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00470944
cmp dword [edi + 0x24], 0
jne 0x470a55
test byte [edi], 4
je 0x470a2a
cmp dword [edi + 0x10], 0
jne 0x470a2c
xor bl, bl
test bl, bl
je 0x470a55
test byte [edi], 8
jne 0x470a55
mov esi, dword [edi + 0x10]
push 0x3c
call fcn.0041fddb
pop ecx
push esi
mov ecx, eax
call fcn.0047011d
mov dword [edi + 0x24], eax
mov ecx, eax
pop edi
pop esi
pop ebx
jmp fcn.00470944
pop edi
pop esi
pop ebx
ret

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

Disassembly:
sub dword [0x4d06e0], 1
jne 0x471f6a
call fcn.00472046
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
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 0x471fa2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
sub dword [0x4d06e0], 1
jne 0x471fb5
call fcn.00472046
mov eax, dword [0x4d2ff4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4d2ff4], eax
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
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x471ff8
fadd qword [0x4c81c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4c8190]
leave
ret

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

Disassembly:
push esi
xor esi, esi
mov dword [0x4d2630], ecx
inc esi
mov edx, esi
mov eax, dword [edx*4 + 0x4d262c]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4d2630], eax
inc edx
cmp edx, 0x270
jl 0x472012
mov dword [0x4d06e0], esi
mov dword [0x4d2ff0], esi
pop esi
ret
Function at 0x472046
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x472069
push 0
call fcn.0042e4e8
pop ecx
mov ecx, eax
call fcn.00472006
mov dword [0x4d06e0], 0x270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x47207e
mov eax, dword [esi]
mov dword [ebp - 4], 0x18c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720b8
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x472557
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x47257c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00420e20
add esp, 0xc
jmp 0x47258f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0042e8c4
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push str.EA06
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.0042e980
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
leave
ret 4

Function at 0x472693
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10000
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0x4726a9
cmp ecx, eax
jne 0x4726c5
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.0042e8c4
add esp, 0x10
xor ecx, ecx
mov dword [esi + 0x464], ecx
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret

Function at 0x4726d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x460]
mov esi, dword [edi + 0x458]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x460]
cmp dword [edi + 0x460], eax
jne 0x47271e
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x458]
call fcn.0042dbb3
add esp, 0x10
and dword [edi + 0x460], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x472724
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x460]
test eax, eax
je 0x47274c
push dword [esi + 0x20]
push eax
push 1
push dword [esi + 0x458]
call fcn.0042dbb3
add esp, 0x10
and dword [esi + 0x460], 0
pop esi
ret

Function at 0x4728fe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 0xdc]
call fcn.0047274e
push dword [ebp + 8]
lea ecx, [ebp - 0xdc]
call fcn.00472792
xor esi, esi
test ebx, ebx
je 0x472942
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.004728d2
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jb 0x47292d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x473d1e
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00441f50
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x473dd4
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push 0x4c6e30
push eax
call fcn.0041fb21
lea eax, [ebp - 0x10004]
push eax
call fcn.00424963
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x473d97
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x473d97
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x473dac
cmp byte [ebp + 0x10], al
je 0x473dd4
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473ddc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.00422340
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042d2eb
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
test eax, eax
jne 0x473e6b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x473dcb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x473dd6
Function at 0x479642
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4796dd
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4796cb
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4796cb
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov eax, dword [ebp + 0x10]
or ecx, dword [ebp + 0xc]
not eax
and ecx, eax
lea eax, [ebp - 0x22c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47978e
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47966c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0x479785
lea eax, [ebp - 0x258]
push eax
push 0x4c6b74
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x47977c
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x47976a
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x47976a
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x47976a
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00479642
test al, al
je 0x479799
push 0x4c6b7c
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47970c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x479787
xor ebx, ebx
jmp 0x47977e
Function at 0x47979d
Capabilities:
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x479823
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479811
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479811
push dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x22c]
call fcn.0046dae5
pop ecx
test al, al
je 0x4798d4
mov bl, 1
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4797c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0x14], 0
je 0x4798cb
lea eax, [ebp - 0x258]
push eax
push 0x4c6b74
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4798c2
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ebx, dword [ebp - 4]
test byte [ebp - 0x258], 0x10
je 0x4798b0
lea eax, [ebp - 0x22c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4798b0
lea eax, [ebp - 0x22c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x4798b0
lea eax, [ebp - 0x22c]
push eax
call edi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0047979d
test al, al
je 0x4798df
push 0x4c6b7c
call edi
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x479852
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x4798cd
xor ebx, ebx
jmp 0x4798c4
Function at 0x479b2b
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]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x14]
call fcn.00409cb3
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
push 0x4c6b74
mov dword [ebp - 0x18], eax
inc dword [eax]
call fcn.004033c6
lea eax, [ebp - 0x278]
mov bl, 1
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x479c8a
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.00473874
cmp eax, 1
je 0x479c85
cmp eax, 0xb
jne 0x479bb0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x479b90
lea eax, [ebp - 0x24c]
push 0x49cc40
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479c6b
lea eax, [ebp - 0x24c]
push 0x4c6b7c
push eax
call fcn.00425232
pop ecx
pop ecx
test eax, eax
je 0x479c6b
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a8c7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004033c6
test byte [ebp - 0x278], 0x10
je 0x479c48
cmp byte [ebp + 0x18], 0
je 0x479c17
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x479c6b
push 0x49cb68
lea ecx, [ebp - 0x14]
call fcn.004033c6
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.00479b2b
mov bl, al
test bl, bl
je 0x479c87
jmp 0x479c6b
mov edx, dword [ebp + 0xc]
xor eax, eax
or eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x25c]
add dword [edx], eax
adc dword [edx + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x479c6b
add dword [edi], 1
adc dword [edi + 4], 0
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x479b90
jmp 0x479c87
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x24]
call fcn.0040988f
lea ecx, [ebp - 0x14]
call fcn.0040988f
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 0x18
Function at 0x47c476
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [edi + 0x74], 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 4], eax
jne 0x47c498
or eax, 0x800000
mov dword [ebp - 4], eax
movzx eax, word [edi + 0x78]
xor ebx, ebx
push ebx
push ebx
push dword [edi + 0x70]
push dword [edi + 0x30]
push dword [edi + 0x20]
push eax
push dword [edi + 0x10]
push dword [esi + 4]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi], eax
test eax, eax
jne 0x47c4e4
mov dword [esi + 0x18], 0xb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c4dd
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor al, al
jmp 0x47c603
push ebx
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [edi + 0x60]
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
jne 0x47c508
mov dword [esi + 0x18], 0xc
jmp 0x47c5dc
cmp byte [ebp + 0xc], bl
je 0x47c518
push dword [ebp + 8]
mov ecx, esi
push edi
call fcn.0047d001
test dword [ebp - 4], 0x1000
je 0x47c54f
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp + 0xc], 0x100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x47c5d5
push edi
call fcn.0047c437
cmp eax, 0xc8
jne 0x47c5d5
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x20
push eax
lea eax, [ebp - 0x24]
push eax
push 5
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x24]
push eax
call fcn.004262fb
pop ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp byte [ebp + 0x10], bl
je 0x47c5bd
mov ecx, esi
push edi
cmp byte [esi + 0x30], bl
je 0x47c5b4
call fcn.0047cf1a
jmp 0x47c5b9
call fcn.0047ce44
mov bl, al
jmp 0x47c5f6
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5d1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov bl, 1
jmp 0x47c5f6
mov dword [esi + 0x18], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x47c5f6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
test edi, edi
je 0x47c601
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc