joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.0040aaf0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push edi
push esi
mov dword [esp + 0x20], 0
call ebx
mov ebp, eax
test ebp, ebp
je 0x40e86f
push 0xf0
push edi
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x40e7e4
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call edi
test eax, eax
je 0x40e848
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40e848
push ebx
push edi
call fcn.0040def0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov esi, eax
test esi, esi
jne 0x40e834
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x40e856
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40e856
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e865
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x40ea80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1f4]
test eax, eax
jne 0x40eade
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1fc], eax
lea eax, [esi + 0x1f8]
push eax
push 0
push esi
push 0x40e990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x1fc]
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x1f4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
mov eax, dword [esi + 0x24]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x410190
Capabilities:
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4101e8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x410200
mov eax, dword [esi + 0x70]
test eax, eax
je 0x410200
mov ecx, dword [esi + 0x74]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x410200
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x410130
push 0
push 0
call fcn.0043d823
add esp, 0x18
test eax, eax
mov dword [esi + 0x54], eax
jne 0x4101ef
xor eax, eax
pop esi
add esp, 8
ret
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x41025e
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0x5c]
mov edx, dword [eax]
push 0
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x28]
push 0
push ecx
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x48]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x41025e
mov edx, dword [esi + 4]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x410cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov edx, dword [0x4626f8]
push esi
push edi
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x410dc6
mov eax, dword [0x4626f8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x410dc6
mov ecx, dword [0x4626f8]
push ebx
push ebp
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x410db5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x410dae
test edi, edi
je 0x410dae
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov esi, eax
mov eax, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.004109b0
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x412550
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0x44a768
push eax
mov eax, dword [esp + 0x28]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
push eax
mov eax, dword [esp + 0x30]
mov esi, ecx
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004123a0
mov dword [esp + 0x34], eax
xor ebx, ebx
push ebx
push 0x454808
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
lea ebp, [esi + 4]
push 0x44f0f4
mov ecx, ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], ebx
call fcn.00412420
mov eax, dword [esi + 0x64]
cmp eax, ebx
lea edi, [esi + 0x64]
je 0x4125cf
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [edi], ebx
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x4125e4
mov eax, dword [ebx]
push edi
push 0x44e318
push ebx
call dword [eax]
mov edi, dword [edi]
lea eax, [esi + 0x24]
mov edx, dword [eax + 0x28]
cmp edx, 0xfefefefe
lea ecx, [eax + 0x28]
jne 0x412604
push ecx
push 0x44f06c
push eax
push edi
call fcn.00408d90
add esi, 0x50
push esi
mov ecx, ebp
call fcn.00411440
test ebx, ebx
mov dword [esp + 0x18], 0xffffffff
je 0x412621
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x1c

Function at 0x413200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x413219
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x41322d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x41324e
cmp esi, eax
jae 0x413227
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x413240
cmp esi, eax
jae 0x413227
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x414050
Capabilities:
Set registry value

Disassembly:
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
lea ebp, [esi + 0x10]
jne 0x41407b
push str.Not_binded_to_registry_key.
lea ecx, [esp + 0x10]
call fcn.00413fb0
push 0x458e30
lea eax, [esp + 0x10]
push eax
call fcn.0043c34f
cmp dword [esi + 8], 1
je 0x41409e
push str.Incorrect_type._Not_a_REG_SZ.
lea ecx, [esp + 0x10]
call fcn.00413fb0
push 0x458e30
lea ecx, [esp + 0x10]
push ecx
call fcn.0043c34f
mov eax, dword [esi + 4]
test eax, eax
je 0x4140ae
push eax
call fcn.0043c389
add esp, 4
push ebx
mov ebx, dword [esp + 0x10]
mov eax, ebx
push edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4140c0
sub eax, edx
lea edi, [eax + 0xa]
push edi
call fcn.0043bc93
add esp, 4
mov dword [esi + 4], eax
mov ecx, ebx
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
mov byte [eax], dl
inc eax
test dl, dl
jne 0x4140e0
mov al, byte [esi + 0xc]
test al, al
jne 0x414182
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push ebp
push 0xf003f
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41412c
push str.Cant_open_registry_key.
lea ecx, [esp + 0x18]
call fcn.00413fb0
push 0x458e30
lea ecx, [esp + 0x18]
push ecx
call fcn.0043c34f
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp]
push edi
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41416e
mov edx, dword [ebp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Cant_write_a_LPTSTR_data_to_registry.
lea ecx, [esp + 0x18]
call fcn.00413fb0
push 0x458e30
lea eax, [esp + 0x18]
push eax
call fcn.0043c34f
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 4]
pop edi
pop ebx
pop esi
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp]
push edi
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x414178
push str.Cant_write_a_LPTSTR_data_to_registry.
lea ecx, [esp + 0x18]
call fcn.00413fb0
push 0x458e30
lea edx, [esp + 0x18]
push edx
call fcn.0043c34f
int3
Function at 0x414480
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
mov edi, ecx
lea esi, [edi + 0x10]
push esi
push 0
push 0xf003f
push 0
push 0
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4144ca
push str.Cant_create_key_in_registry.
lea ecx, [esp + 0x20]
call fcn.00413fb0
push 0x458e30
lea eax, [esp + 0x20]
push eax
call fcn.0043c34f
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41450f
push str.Cant_create_value.
lea ecx, [esp + 0x20]
call fcn.00413fb0
push 0x458e30
lea edx, [esp + 0x20]
push edx
call fcn.0043c34f
mov eax, dword [esp + 0x1c]
push eax
push ebx
push ebp
mov ecx, edi
call fcn.00414230
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x414550
Capabilities:
Get disk information
Get mac address on windows

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
lea ecx, [esp + 8]
mov dword [esp + 4], esi
call fcn.0040b440
lea eax, [esp + 4]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4145bd
mov eax, dword [esp + 4]
test eax, eax
je 0x4145bd
push eax
call fcn.0043bf47
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
push ecx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x4145bd
test esi, esi
je 0x4145bd
lea esp, [esp]
mov edx, dword [esi + 0x190]
push edx
lea eax, [esi + 0x194]
push eax
lea ecx, [esp + 0x10]
call fcn.0040b400
mov esi, dword [esi]
test esi, esi
jne 0x4145a0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x44f470
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.0040b400
push esi
call fcn.0043bf59
add esp, 4
lea ecx, [esp + 8]
call fcn.00410fc0
pop esi
add esp, 0x10
ret

Function at 0x414610
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov al, byte [ecx + 0x4bd]
sub esp, 0xc
test al, al
je 0x414653
push 8
lea eax, [esp + 8]
push eax
push 0x32
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x10
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 0
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
add esp, 0xc
ret
Function at 0x4150d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4150e0
mov eax, dword [eax + 4]
jmp 0x4150e3
add eax, 4
push esi
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415108
xor eax, eax
pop esi
pop ecx
ret 8
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x415128
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor eax, eax
pop esi
pop ecx
ret 8
push ebp
push edi
inc ebx
push ebx
call fcn.0043bf47
mov ebp, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
push edi
lea eax, [esp + 0x1c]
push eax
dec ebx
push ebx
push ebp
push esi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41517e
push ebp
call fcn.0043bf59
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
pop ecx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
xor edx, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415190
sub eax, esi
mov dword [esp + 0x10], eax
je case.default.0x4151ea
cmp byte [edx + ebp], 0x2e
jne 0x4151aa
inc edi
mov eax, ebp
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4151b0
sub eax, esi
cmp edx, eax
jb 0x4151a3
cmp edi, 3
jl case.default.0x4151ea
cmp edi, 4
jg case.default.0x4151ea
push 0x44f474
push ebp
call fcn.0043db50
add esp, 8
test eax, eax
je 0x41523c
mov esi, dword [esp + 0x1c]
cmp edi, 4
ja case.default.0x4151ea
jmp dword [edi*4 + 0x415268]
push eax
call fcn.0043df72
mov dword [esi], eax
jmp 0x415225
push eax
call fcn.0043df72
mov dword [esi + 4], eax
jmp 0x415225
push eax
call fcn.0043df72
mov dword [esi + 8], eax
jmp 0x415225
push eax
call fcn.0043df72
mov dword [esi + 0xc], eax
jmp 0x415225
push eax
call fcn.0043df72
mov dword [esi + 0x10], eax
add esp, 4
push 0x44f474
push 0
dec edi
call fcn.0043db50
add esp, 8
test eax, eax
jne 0x4151e5
push ebp
call fcn.0043bf59
add esp, 4
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
pop ecx
ret 8
push ebp
call fcn.0043bf59
add esp, 4
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x4182e7
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x44ab25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00415470
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
lea edi, [esi + 0xc]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.00415470
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x18]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00415470
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x24]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.004154b0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x30]
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.00415470
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov eax, 0xf
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], ebx
mov byte [esi + 0x40], bl
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x8c], eax
mov dword [esi + 0x88], ebx
mov byte [esi + 0x78], bl
lea edi, [esi + 0x90]
mov ecx, edi
mov byte [esp + 0x18], 7
call fcn.00415470
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb4], bl
mov dword [esi + 0xb0], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419740
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44ac10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
mov ecx, 0xf
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov edi, dword [esp + 0x7c]
cmp dword [edi + 8], 2
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x74], ebx
je 0x419803
push 0x26
push str.Script_error:_argument_missed__line_:
lea ecx, [esp + 0x1c]
call fcn.00401ab0
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x4197c8
push 0xffffffffffffffff
push ebx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x20]
call fcn.0040b9c0
push 1
push 0x44f5bc
lea ecx, [esp + 0x1c]
call fcn.0040bab0
mov esi, dword [esi]
cmp esi, dword [edi + 4]
jne 0x4197a1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [ebp + 0x2dc]
call fcn.0040bcc0
cmp dword [esp + 0x2c], 0x10
jb 0x4197ec
mov edx, dword [esp + 0x18]
push edx
call fcn.0043c389
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret 4
mov eax, dword [eax]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea esi, [eax + 8]
mov eax, dword [esi + 0x18]
mov ebp, 0x10
cmp eax, ebp
mov byte [esp + 0x74], 1
jb 0x41982a
mov eax, dword [esi + 4]
jmp 0x41982d
lea eax, [esi + 4]
push 0x3a
push eax
call fcn.0043dae5
add esp, 8
test eax, eax
jne 0x419852
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push ebx
add eax, 0x1c8
push eax
lea ecx, [esp + 0x3c]
call fcn.004019c0
cmp dword [esi + 0x18], ebp
jb 0x41985c
mov edx, dword [esi + 4]
jmp 0x41985f
lea edx, [esi + 4]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419864
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.0040bab0
cmp dword [esp + 0x48], ebp
mov eax, dword [esp + 0x34]
jae 0x419886
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41990c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.0043d549
add esp, 0xc
push 0x23
push str.Script_warning:_file_not_deleted_:
lea ecx, [esp + 0x1c]
call fcn.00401ab0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.0040b9c0
push 9
push str.__error:
lea ecx, [esp + 0x1c]
call fcn.0040bab0
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
jmp 0x4198e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4198e0
sub eax, edx
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x1c]
call fcn.0040bab0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
add ecx, 0x2dc
call fcn.0040bcc0
cmp dword [esp + 0x48], ebp
jb 0x41991f
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0043c389
add esp, 4
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jb 0x419942
mov edx, dword [esp + 0x18]
push edx
call fcn.0043c389
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x41a8e0
Capabilities:
Delete file
Print debug messages

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x26c]
push edi
mov edi, dword [eax]
cmp edi, eax
je 0x41a944
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, edi
cmp dword [edi + 0x20], 0x10
jb 0x41a90b
mov eax, dword [edi + 0xc]
jmp 0x41a90e
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41a93a
call ebp
push str.File_not_deleted:
call ebx
cmp dword [edi + 0x20], 0x10
jb 0x41a92d
mov eax, dword [edi + 0xc]
jmp 0x41a930
lea eax, [edi + 0xc]
push eax
call ebx
push 0x44e9e8
call ebx
mov edi, dword [edi]
cmp edi, dword [esi + 0x26c]
jne 0x41a900
mov eax, dword [esi + 0x4a4]
xor ebp, ebp
cmp eax, ebp
je 0x41a95f
lea eax, [esi + 0x490]
push eax
call fcn.0041a620
add esp, 4
mov eax, dword [esi + 0x26c]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [esi + 0x26c]
mov dword [eax + 4], eax
cmp edi, dword [esi + 0x26c]
mov dword [esi + 0x270], ebp
je 0x41a99e
mov ebx, dword [edi]
mov ecx, edi
call fcn.004155c0
push edi
call fcn.0043c389
mov eax, dword [esi + 0x26c]
add esp, 4
cmp ebx, eax
mov edi, ebx
jne 0x41a980
mov eax, dword [esi + 0x260]
mov edi, dword [eax]
cmp edi, eax
je 0x41a9c8
lea ebx, [ebx]
lea ecx, [edi + 8]
push ecx
call fcn.0041a620
mov edi, dword [edi]
mov eax, dword [esi + 0x260]
add esp, 4
cmp edi, eax
jne 0x41a9b0
mov eax, dword [esi + 0x260]
mov edi, dword [eax]
mov dword [eax], eax
mov eax, dword [esi + 0x260]
mov dword [eax + 4], eax
cmp edi, dword [esi + 0x260]
mov dword [esi + 0x264], ebp
je 0x41aa0e
lea esp, [esp]
mov ebx, dword [edi]
mov ecx, edi
call fcn.004155c0
push edi
call fcn.0043c389
mov eax, dword [esi + 0x260]
add esp, 4
cmp ebx, eax
mov edi, ebx
jne 0x41a9f0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41b210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44b078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
push 6
mov esi, ecx
xor ebx, ebx
push str.Server
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00401ab0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.004164e0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
mov edi, eax
call fcn.00403af0
lea edx, [esp + 0xc]
push edx
push edi
push eax
mov dword [esp + 0x18], ebx
call fcn.00415940
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp eax, 0x10
pop edi
pop esi
pop ebx
jb 0x41b299
mov eax, dword [esp + 8]
push eax
call fcn.0043c389
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x41cb70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44ae88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x34]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1c], ebx
call fcn.00416b70
mov eax, dword [edi + 4]
push eax
call fcn.0043c389
mov dword [edi + 4], ebx
mov eax, dword [esi + 0x30]
add esp, 4
cmp eax, 0x10
jb 0x41cbc4
mov eax, dword [esi + 0x1c]
push eax
call fcn.0043c389
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
lea edi, [esi + 0xc]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.0041af50
mov eax, dword [edi + 4]
push eax
call fcn.0043c389
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
call fcn.0041af50
mov edx, dword [esi + 4]
push edx
call fcn.0043c389
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret