joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad9ec
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404de8
xor eax, eax
push ebp
push 0x4adb3e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4adb16
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.00409e78
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4adaff
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4adaf9
mov ebx, dword [edx]
test ebx, ebx
je 0x4adaf3
lea eax, [ebp - 0x29c]
push eax
xor eax, eax
mov al, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
xor eax, eax
mov al, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
xor eax, eax
mov al, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
xor eax, eax
mov al, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4adb58
call fcn.0040a4bc
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.0040498c
mov byte [ebp - 5], 1
jmp 0x4adb03
mov byte [ebp - 5], 0
jmp 0x4adb03
mov byte [ebp - 5], 0
jmp 0x4adb03
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4adb1d
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4add14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404de8
xor eax, eax
push ebp
push 0x4addf2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x209]
mov edx, dword [ebp - 4]
call fcn.00409e78
lea eax, [ebp - 0x250]
xor ecx, ecx
mov edx, 0x44
call fcn.00403198
mov dword [ebp - 0x250], 0x44
mov dword [ebp - 0x224], 1
mov word [ebp - 0x220], bx
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x209]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4adda5
or ebx, 0xffffffff
jmp 0x4adddc
push 0x64
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
call fcn.00473998
cmp ebx, 0x102
je 0x4adda5
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x260]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4addf9
lea eax, [ebp - 4]
call fcn.00404938
ret

Function at 0x4bf5f0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4bf604
Capabilities:
Hide graphical window

Disassembly:
push 9
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_SetForegroundWindow
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
cmp byte [eax + 0x5b], 0
jne 0x4bf659
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
mov byte [eax + 0x5b], 1
mov eax, dword [0x4ddfa4]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4bf659
mov edx, dword [0x4ddfa4]
mov dl, 1
call fcn.0046d098
ret

Function at 0x4c28c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c29fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041eeb8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x4c2940
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4c2940
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408f78
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x4dda80]
mov ebx, dword [ebx]
mov eax, 0x4c2a14
call ebx
dec eax
jne 0x4c2940
mov ebx, 1
jmp 0x4c2942
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x4c29e3
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004c23d4
test al, al
jne 0x4c29d7
mov eax, dword [ebp - 4]
call fcn.004c28b8
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.0040498c
xor edx, edx
push ebp
push 0x4c29c5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x4c29bb
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.004c2cd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c29d7
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x4c295a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2a05
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040495c
ret
Function at 0x4cc740
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4cc748
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4cc93a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4cc950
mov eax, esi
call fcn.004ca5cc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040498c
lea ecx, [ebp - 0x10]
mov edx, 0x4cc964
mov eax, esi
call fcn.004ca5cc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040498c
lea ecx, [ebp - 0x14]
mov edx, 0x4cc97c
mov eax, esi
call fcn.004ca5cc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040498c
lea ecx, [ebp - 0x18]
mov edx, 0x4cc998
mov eax, esi
call fcn.004ca5cc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040498c
lea ecx, [ebp - 0x1c]
mov edx, 0x4cc9b4
mov eax, esi
call fcn.004ca5cc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040498c
lea ecx, [ebp - 0x24]
mov edx, 0x4cc9cc
mov eax, esi
call fcn.004ca5cc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409194
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004096dc
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4cc9e4
mov eax, esi
call fcn.004ca5cc
mov eax, dword [ebp - 0x28]
call fcn.004b3454
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4cc9f4
mov eax, esi
call fcn.004ca5cc
mov eax, dword [ebp - 0x2c]
call fcn.004b3454
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4cca0c
mov eax, esi
call fcn.004ca5cc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004096dc
inc eax
je 0x4cc8dd
lea ecx, [ebp - 0x34]
mov edx, 0x4cca0c
mov eax, esi
call fcn.004ca5cc
mov eax, dword [ebp - 0x34]
call fcn.004096a0
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b290
fstp qword [ebp - 0x3c]
wait
call fcn.0040b5f4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4cc8f8
lea ecx, [ebp - 0x40]
mov edx, 0x4cca0c
mov eax, esi
call fcn.004ca5cc
mov eax, dword [ebp - 0x40]
call fcn.004b3454
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4cca1c
mov eax, esi
call fcn.004ca5cc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040498c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc941
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040495c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040495c
ret
Function at 0x4d365c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4d36b6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004d364c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004b20c0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004b1cc0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d36bd
lea eax, [ebp - 4]
call fcn.00404938
ret

Function at 0x4d7110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404de8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4d7278
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004c59d8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004c59f8
jmp 0x4d724a
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404ba8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409cdc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408f78
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408f78
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404d44
je 0x4d722a
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404ba8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408f78
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408f78
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404d44
jne 0x4d7241
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004c5a18
test eax, eax
jne 0x4d718b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d727f
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040495c
lea eax, [ebp - 4]
call fcn.00404938
ret
Function at 0x4d993c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d9944
push ecx
push ebx
push esi
mov ebx, dword [0x4ddb48]
xor eax, eax
push ebp
push 0x4d9b87
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4d9b65
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0x30]
lea eax, [ebp - 0x10]
mov ecx, 0x4d9ba0
call fcn.00404c44
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x437a94]
call fcn.00437b44
mov dword [ebp - 8], eax
push 0x4d9bb8
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4d9bc4
mov edx, 0x4d9bd0
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x14]
xor edx, edx
call fcn.004096dc
mov edx, dword [0x4de1ac]
mov dword [edx], eax
push 0x4d9bb8
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4d9bc4
mov edx, 0x4d9be8
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.004096dc
mov edx, dword [0x4de1ac]
mov dword [edx + 4], eax
push 0x4d9bb8
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x4d9bc4
mov edx, 0x4d9bfc
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.004096dc
mov edx, dword [0x4de1ac]
mov dword [edx + 0xc], eax
push 0x4d9bb8
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x4d9bc4
mov edx, 0x4d9c10
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.004096dc
mov edx, dword [0x4de1ac]
mov dword [edx + 8], eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4d9c24
mov edx, 0x4d9c34
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0xc]
call fcn.0040498c
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x4d9c44
mov edx, 0x4d9c34
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x28]
lea eax, [ebx + 8]
call fcn.0040498c
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, 0x4d9c54
mov edx, 0x4d9c34
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x38]
call fcn.0040498c
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x4d9c64
mov edx, 0x4d9c34
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x28]
call fcn.0040498c
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x4d9c78
mov edx, 0x4d9c34
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x10]
call fcn.0040498c
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4d9c88
mov edx, 0x4d9c9c
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx]
cmp dword [ebp - 0xc], 0
jne 0x4d9b30
push 0x4d9bb8
mov ecx, 0x4d9c88
mov edx, 0x4d9c9c
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 4]
lea eax, [ebp - 0xc]
mov edx, 0x4d9bb8
call fcn.004049d0
mov eax, dword [ebp - 0xc]
mov edx, 0x4d9bb8
call fcn.00404d44
jne 0x4d9b48
mov byte [0x4e11bc], 0
jmp 0x4d9b4f
mov byte [0x4e11bc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9b6c
mov eax, dword [ebp - 8]
call fcn.00403a5c
ret
Function at 0x4da854
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00404938
mov ecx, dword [0x4ddfa4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4d3d60]
call fcn.004d4248
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4da8dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x110], 1
mov eax, dword [ebp - 4]
call fcn.004d5c40
add eax, 0x70
mov edx, 0x4da8f4
call fcn.0040498c
mov ecx, edi
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.004d43c8
test bl, bl
je 0x4da8c6
mov edx, edi
mov eax, dword [edi]
call fcn.00406ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da8e3
lea eax, [ebp - 4]
call fcn.0040f0c4
ret
Function at 0x402440
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x402ccb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push esi
mov ebx, 0x4032ac
push edi
mov edi, ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x130]
mov ecx, dword [edi + 4]
push 0xf003f
push eax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], 0
call fcn.00402400
mov esi, eax
test esi, esi
je 0x4024a5
mov dword [esp + 0xc], ebx
jmp 0x402534
lea edx, [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x100
call ebx
test eax, eax
jne 0x40250f
lea eax, [esp + 0x20]
lea ecx, [esp + 0xc]
push eax
call fcn.00402440
mov esi, eax
test esi, esi
jne 0x40252c
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea eax, [esp + 0x30]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x34], 0x100
call ebx
test eax, eax
je 0x4024d5
lea ecx, [esp + 0xc]
call fcn.004023e0
mov edx, dword [esp + 0x130]
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov dword [esp + 0xc], 0x4032ac
lea ecx, [esp + 0xc]
call fcn.004023e0
mov ecx, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret 4
Function at 0x402560
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x402cf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push edi
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0
call sub.MFC42.DLL_CString::MakeUpper
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x402662
push ebp
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x128
call fcn.0040293e
lea eax, [esp + 0x10]
mov byte [esp + 0x140], 1
push eax
push edi
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40264d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x150]
push 0
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40263c
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x40263c
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebp
lea eax, [esp + 0x18]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4025de
pop esi
pop ebx
push edi
call ebp
lea ecx, [esp + 8]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
pop ebp
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x134]
pop edi
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x4026f0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x402d20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
push str..
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_2
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x48], 2
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4027cf
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov esi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4027cb
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x40]
test eax, eax
je 0x4027af
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::GetFilePath
call fcn.004026f0
add esp, 4
jmp 0x4027cb
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40276b
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 0
call fcn.00402974
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x38
ret
Function at 0x417f27
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004180d7
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x418025
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x417fc8
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x41800b
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x417fdf
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x417ffa
test al, 0x40
je 0x417ff1
mov ecx, dword [edi + 0x20]
jmp 0x417ff8
test al, 0x80
je 0x41800b
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x41800b
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x417f97
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42eac7
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0042ec77
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42ebc5
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x42eb68
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x42ebab
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x42eb7f
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x42eb9a
test al, 0x40
je 0x42eb91
mov ecx, dword [edi + 0x20]
jmp 0x42eb98
test al, 0x80
je 0x42ebab
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x42ebab
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x42eb37
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret