joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444d00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444d33
push esi
call fcn.00447e10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444d2c
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 0x444db9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444da2
mov eax, dword [esi + 8]
test eax, eax
je 0x444d57
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 0x444d9e
cmp eax, 2
je 0x444da2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444d4a
cmp eax, 3
je 0x444d7d
cmp eax, 1
jne 0x444d4a
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 0x444d4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444d4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444de0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444dc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444de0
add esp, 4
pop esi
ret

Function at 0x463568
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4635a0
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.0046161c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004615f4
jmp 0x4635ac
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464c56
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 0x464c98
call fcn.0046a70a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464c98
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464c8f
xor eax, eax
jmp 0x464ca0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464ca6
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ac3a
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 0x46ac68
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46ac86
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046aba0
jmp 0x46ac86
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46ac86
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046aba0
test edi, edi
mov eax, edi
jne 0x46ac70
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40abc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46e81c], eax
pop edi
pop esi
pop ebp
ret

Function at 0x40ac60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x40acd2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x40ad4e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403b60
push 0x14d
lea edx, [ebp - 0x1c]
push edx
call fcn.0040b240
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x40ad38
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40ad4e
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40acc9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411cd6
mov esp, ebp
pop ebp
ret
Function at 0x412321
Capabilities:
Parse pe header

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

Function at 0x41ee9c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4333c8
push 0x4333c0
push str.FlsAlloc
push 0x1e
call fcn.0041ed09
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41eed0
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f194]
call esi
jmp 0x41eed6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ef1a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4333d8
push 0x4333d0
push str.FlsGetValue
push 0x20
call fcn.0041ed09
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ef51
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421a38
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004216da

Function at 0x421a43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421869
Function at 0x422c7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004126c0
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00420431
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x422cbf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422e1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042dec0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4407e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004230a3
mov ecx, dword [esi*4 + 0x4407e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422e14
cmp eax, dword [edi + ecx + 0x24]
jne 0x422e14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422e14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004230a3
add esp, 0x14
test edx, edx
jl 0x422e14
jg 0x422d8a
test eax, eax
jb 0x422e14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422e14
jl 0x422da4
cmp dword [ebp - 0x1008], eax
ja 0x422e14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422dc2
test ebx, ebx
je 0x422dfb
cmp ecx, edi
jae 0x422dfb
mov al, byte [ecx]
cmp al, 0xd
jne 0x422ddc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422de8
cmp byte [ecx + 1], 0xa
jne 0x422de8
inc ecx
jmp 0x422de8
movzx eax, al
movsx eax, byte [eax + 0x43ea40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422dc2
cmp edx, ebx
jne 0x422dc2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422e19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411cd6
leave
ret
Function at 0x4263dd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42647a
push ebx
push esi
call fcn.004263a6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042502b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426427
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426479
push edi
push eax
call fcn.0041f4cf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426447
call fcn.0041e6cb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426478
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042502b
add esp, 0x20
test eax, eax
jne 0x426466
push edi
call fcn.0041e6cb
jmp 0x42646e
push ebx
call fcn.0041e6cb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42afc6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4407e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b006
cmp byte [ebx], 0xa
jne 0x42b006
or byte [eax + edi + 0x28], 4
jmp 0x42b00b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42b109
mov al, byte [edx]
cmp al, 0x1a
je 0x42b0eb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42b03a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42b05f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42b069
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42b01c
jmp 0x42b109
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b0e6
cmp dword [ebp - 0xc], 0
je 0x42b0e6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4407e0]
test byte [eax + edi + 0x28], 0x48
je 0x42b0c0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42b0ab
mov byte [esi], dl
jmp 0x42b0bc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4407e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42b109
cmp byte [ebp - 1], 0xa
jne 0x42b0cf
cmp esi, ebx
jne 0x42b0cf
mov byte [esi], 0xa
jmp 0x42b108
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004230c1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42b109
mov byte [esi], 0xd
jmp 0x42b108
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4407e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b105
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b109
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42b112
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4407e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42b155
cmp word [esi], dx
jne 0x42b155
or byte [edi + eax + 0x28], 4
jmp 0x42b15a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42b2ad
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42b28d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42b19c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42b1d2
cmp eax, edx
jae 0x42b1de
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x42b174
jmp 0x42b2ad
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42b289
cmp dword [ebp - 0x14], 0
je 0x42b289
mov eax, dword [ebx*4 + 0x4407e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x42b261
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42b22a
mov word [esi], cx
jmp 0x42b25d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4407e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4407e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4407e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42b2ad
pop ebx
cmp word [ebp - 4], bx
jne 0x42b272
cmp esi, dword [ebp + 0xc]
jne 0x42b272
mov word [esi], bx
jmp 0x42b2aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004230c1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42b2ad
push 0xd
jmp 0x42b2a6
mov ecx, dword [ebx*4 + 0x4407e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42b2a4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42b2ad
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42dcc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42dced
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42dced
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401780
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 4
lea eax, [esp]
push eax
push 0
push ecx
push 0x401220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 4
mov dword [0x408898], eax
ret

Function at 0x401bd0
Capabilities:
Shutdown system

Disassembly:
push 0x401a20
mov eax, dword [0x407148]
push 0
push 0x68
push eax
call fcn.00401d70
add esp, 0x10
test eax, eax
je 0x401bfa
call fcn.00401c00
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret

Function at 0x401df0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
mov dword [0x407024], 0
mov ecx, dword [esp + 0x28]
push ebx
mov edx, dword [esp + 0x28]
push esi
push edi
push ebp
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, eax
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call fcn.00401000
lea eax, [esp + 0x14]
add esp, 4
mov ebp, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
push eax
call ebp
test eax, eax
je 0x401e8e
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
push edi
call esi
test eax, eax
je 0x401e67
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
jne 0x401e7d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x10]
push 0
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x401e54
push edi
call fcn.00401050
add esp, 4
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x401fe0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x444
lea eax, [esp + 0x304]
push ebx
push esi
push edi
mov esi, dword [esp + 0x454]
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov edi, eax
jne 0x402017
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x444
ret
lea eax, [esp + 0x210]
push esi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call ebx
lea ecx, [esp + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
js 0x402054
mov ecx, 0x5c
cmp byte [esp + eax + 0x210], cl
je 0x40204c
dec eax
jns 0x40203e
jmp 0x402054
mov byte [esp + eax + 0x211], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x210]
lea ecx, [esp + 0x10]
push eax
push ecx
call ebx
lea ecx, [esp + 0x340]
lea edx, [esp + 0x10]
push ecx
push edx
call ebp
test byte [esp + 0x314], 0x10
je 0x4020f9
cmp byte [esp + 0x340], 0x2e
je 0x402110
lea eax, [esp + 0x10]
push 0x407894
push eax
call ebp
lea eax, [esp + 0x10]
push eax
call fcn.00401fe0
lea eax, [esp + 0x214]
lea ecx, [esp + 0x14]
add esp, 4
push eax
push ecx
call ebx
lea ecx, [esp + 0x340]
lea edx, [esp + 0x10]
push ecx
push edx
call ebp
lea ecx, [esp + 0x10]
push pe_nt_image_headers32
push ecx
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + eax + 0xf]
cmp byte [eax], 0x5c
jne 0x4020ec
mov byte [eax], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x402110
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x314]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x402060
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x444
ret
Function at 0x402140
Capabilities:
Delete directory
Set file attributes

Disassembly:
sub esp, 0x140
push esi
push edi
mov esi, dword [esp + 0x14c]
push 0x407160
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call edi
test eax, eax
jne 0x40216f
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push 0x407268
push esi
call edi
test eax, eax
jne 0x402189
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push 0x407370
push esi
call edi
test eax, eax
jne 0x4021a3
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push 0x407478
push esi
call edi
test eax, eax
jne 0x4021bd
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push 0x407580
push esi
call edi
test eax, eax
jne 0x4021d7
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push 0x407688
push esi
call edi
test eax, eax
jne 0x4021f1
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push 0x407790
push esi
call edi
test eax, eax
jne 0x40220b
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esi + eax - 1]
cmp byte [eax], 0x5c
jne 0x40221e
mov byte [eax], 0
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40223d
mov eax, 1
pop edi
pop esi
add esp, 0x140
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
add esp, 0x140
ret
Function at 0x402300
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x314
push ebx
push esi
mov ebx, dword [esp + 0x320]
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
test eax, eax
jle 0x402330
cmp byte [ecx + ebx], 0x2c
je 0x40232b
inc ecx
cmp ecx, eax
jl 0x40231e
jmp 0x402330
mov byte [ecx + ebx], 0
inc ecx
lea ebp, [ecx + ebx]
xor ecx, ecx
test eax, eax
jle 0x40234b
cmp byte [ecx + ebx], 0x2c
je 0x402346
inc ecx
cmp ecx, eax
jl 0x402339
jmp 0x40234b
mov byte [ecx + ebx], 0
inc ecx
lea esi, [ecx + ebx]
push str.HKEY_CLASSES_ROOT
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call edi
test eax, eax
jne 0x402367
mov eax, 0x80000000
jmp 0x4023de
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
test eax, eax
jne 0x40237a
mov eax, 0x80000005
jmp 0x4023de
push str.HKEY_CURRENT_USER
push ebx
call edi
test eax, eax
jne 0x40238d
mov eax, 0x80000001
jmp 0x4023de
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
test eax, eax
jne 0x4023a0
mov eax, 0x80000002
jmp 0x4023de
push str.HKEY_USERS
push ebx
call edi
test eax, eax
jne 0x4023b3
mov eax, 0x80000003
jmp 0x4023de
push str.HKEY_PERFORMANCE_DATA
push ebx
call edi
test eax, eax
jne 0x4023c6
mov eax, 0x80000004
jmp 0x4023de
push str.HKEY_DYN_DATA
push ebx
call edi
test eax, eax
mov eax, 0x80000006
je 0x4023de
mov eax, dword [esp + 0x220]
lea ecx, [esp + 0x10]
push ecx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4024c9
mov ebp, 0x104
lea eax, [esp + 0x14]
lea ecx, [esp + 0x220]
push eax
mov edx, dword [esp + 0x14]
push ecx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov dword [esp + 0x20], ebp
push edx
call ebx
lea ecx, [esp + 0x18]
push str.Save
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x11c]
lea eax, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov dword [esp + 0x1c], ebp
push eax
push ecx
call ebx
test eax, eax
jne 0x4024b2
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x220]
push eax
push ecx
call edi
test eax, eax
jne 0x402486
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ecx
call edi
mov ecx, dword [esp + 0x10]
push esi
push ecx
call edi
jmp 0x4024be
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esp + 0x120]
push eax
push 1
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
lea ecx, [esp + 0x18]
push ecx
jmp 0x4024b3
push esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x314
ret