joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100182e0
Capabilities:
Create thread
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057350
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x1007105c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3f0
call fcn.100387fe
add esp, 4
mov edi, eax
mov eax, 0x15b4
push 0x3e8
lea esi, [edi + 8]
mov word [edi + 2], ax
push 0
push esi
mov dword [edi + 4], 1
call fcn.10034110
mov ecx, 0x10064b87
add esp, 0xc
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x10018347
mov ecx, dword [0x10073c94]
mov eax, 0x3f0
mov word [edi], ax
test ecx, ecx
je 0x10018373
mov edx, dword [0x10073cb0]
push eax
push edi
call fcn.10009cf0
push edi
call fcn.100384dc
mov edx, dword [0x100740b0]
add esp, 4
call fcn.10018820
mov eax, dword [0x100740b0]
push 0
push 2
mov dword [eax], eax
mov eax, dword [0x100740b0]
mov dword [eax + 4], eax
mov dword [0x100740b4], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100184ee
lea eax, [ebp - 0x2a8]
mov dword [ebp - 0x2a8], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x100184e7
lea ecx, [ebp - 0x78]
call fcn.1000b250
mov dword [ebp - 4], 0
lea eax, [ebp - 0x284]
cmp word [ebp - 0x284], 0
je 0x100183fd
add eax, 2
cmp word [eax], 0
jne 0x100183f4
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.1000c2c0
mov byte [ebp - 4], 1
cmp dword [0x100740b4], 0x7ffffff
mov edi, dword [0x100740b0]
je 0x1001850a
mov dword [ebp - 0x2b0], 0x100740b0
mov byte [ebp - 4], 2
push 0x20
mov dword [ebp - 0x2ac], 0
call fcn.10032212
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2ac], esi
lea ecx, [esi + 8]
push eax
call fcn.1000b740
inc dword [0x100740b4]
mov eax, dword [edi + 4]
mov dword [esi], edi
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov dword [edi + 4], esi
mov dword [ebp - 0x2ac], 0
mov dword [eax], esi
cmp edx, 0x10
jb 0x100184b2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100184a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018514
push edx
push ecx
call fcn.1003255c
add esp, 8
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.1000b190
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x100183d5
push eax
push eax
push eax
push 0x10017a30
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003213a
mov esp, ebp
pop ebp
ret
push str.list_too_long
call fcn.1001c166
call fcn.100387ad
int3
Function at 0x10019400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100195b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100194cd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001944a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10071004]
ja 0x1001944a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001941a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10034110
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10019470
jmp 0x100194cd
cmp dword [ebp - 0x14], 0x10000
jne 0x100194b3
cmp dword [ebp - 0x18], 0x10000
jb 0x100194b3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100194a6
mov eax, dword [ebp - 8]
jmp 0x100194cf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100194c8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100195b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001941a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100194e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100195e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100195a5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10019525
mov eax, dword [ebp - 4]
cmp eax, dword [0x10071004]
ja 0x10019525
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100194f5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10034110
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1001954b
jmp 0x100195a5
cmp dword [ebp - 0x14], 0x10000
jne 0x1001958e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001958e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10019581
mov eax, dword [ebp - 8]
jmp 0x100195a7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100195a0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100195e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100194f5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001a9b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10072ae8], eax
je 0x1001a9ce
mov eax, 0x10dd
jmp 0x1001aaaf
mov eax, dword [0x10072af8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001aa4c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1001aa2a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001aa2a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10019a60
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10032135
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1001a9d6
mov dword [0x10072af8], 0
call fcn.1001a340
mov ecx, dword [0x10072af4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1001aa99
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10032135
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1001aa64
mov dword [0x10072af4], 0
mov dword [0x10072ae8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1001afa0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10072aec], 0
je 0x1001afb9
mov eax, dword [0x10072aec]
jmp 0x1001b059
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1001afcb
xor eax, eax
jmp 0x1001b059
push 8
call fcn.10032212
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001b021
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001b00a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10032135
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10072aec], eax
mov dword [0x10072af0], 0
mov eax, dword [ebp - 8]
jmp 0x1001b059
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001b03b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001afeb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10072af4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10072af4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100477ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10047624
Function at 0x1004e5f9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004e276
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x4015c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x447998
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x401600
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.004030c0
mov ebx, esi
mov eax, 0x459d10
mov dword [esp + 0x40], ebp
call fcn.00403320
mov esi, eax
mov edi, 0x459d10
mov eax, edi
call fcn.00403060
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x18]
push edx
push esi
push edi
mov ecx, edi
push eax
push ecx
lea edi, [esp + 0x2c]
call fcn.00403c90
xor eax, eax
add esp, 0x14
cmp eax, dword [esp + 0x18]
sbb esi, esi
neg esi
cmp dword [esp + 0x34], 8
jb 0x401671
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00422b32
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x4028d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4474db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0042200d
push 4
mov dword [esp + 0x20], 0
call fcn.00422ea8
mov edi, eax
add esp, 4
test edi, edi
je 0x402950
call fcn.00421f29
mov dword [edi], eax
call fcn.00421d5d
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0042246d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x402945
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0042248e
jmp 0x402952
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x405e80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44988e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.00412000
xor ebx, ebx
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esp + 0x14], ebx
call fcn.00403370
mov dword [esi + 0x10], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x10]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x10]
mov dword [eax], eax
mov eax, dword [esi + 0x10]
mov dword [eax + 8], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], ebx
mov word [esi + 0x1c], bx
mov byte [esp + 0x14], 2
call fcn.004158f0
mov dword [esi + 0x24c], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esi + 0x24c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x24c]
mov dword [eax], eax
mov eax, dword [esi + 0x24c]
mov dword [eax + 8], eax
mov dword [esi + 0x250], ebx
mov dword [esi + 0x34], ebx
mov byte [esi + 0x246], 1
mov byte [esi + 0x244], bl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40d300
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x880
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x87c], eax
mov eax, dword [esp + 0x888]
push ebx
mov ebx, dword [esp + 0x8a0]
push ebp
mov ebp, dword [esp + 0x8a0]
push esi
mov esi, dword [esp + 0x890]
push edi
push esi
mov edi, ecx
lea ecx, [esp + 0x684]
push 0x104
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], eax
call fcn.004231e5
add esp, 0xc
push 0x44e920
lea edx, [esp + 0x684]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x40d3b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.__Error_0x_X_retrieving_folder_contents
push 0x4575e0
xor eax, eax
call fcn.00419140
add esp, 0xc
jmp 0x40d527
mov ecx, 0x44e978
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d3e6
test dx, dx
je 0x40d3e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d3e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d3c0
xor eax, eax
jmp 0x40d3eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d4f5
mov ecx, 0x44e97c
lea eax, [esp + 0x4c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d426
test dx, dx
je 0x40d422
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d426
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d400
xor eax, eax
jmp 0x40d42b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d4f5
push esi
lea edx, [esp + 0x47c]
push 0x104
push edx
call fcn.004231e5
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x47c]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x274]
push 0x104
push eax
call fcn.004231e5
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x274]
push edx
call esi
test byte [esp + 0x20], 0x10
je 0x40d4c1
mov eax, dword [esp + 0x8a4]
mov ecx, dword [esp + 0x8a0]
mov edx, dword [esp + 0x89c]
push ebx
push ebp
push eax
push ecx
push edx
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x490]
push ecx
mov ecx, edi
call fcn.0040d300
jmp 0x40d4eb
mov edx, dword [esp + 0x8a4]
mov eax, dword [esp + 0x89c]
push edx
push eax
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x484]
push edx
push edi
mov edx, ebx
mov ecx, ebp
call fcn.0040d550
mov esi, eax
test esi, esi
jne 0x40d51c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d3b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x40d51c
xor esi, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x88c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422b23
add esp, 0x880
ret 0x1c
Function at 0x40dc40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x448a16
mov eax, dword fs:[0]
push eax
sub esp, 0xa54
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0xa50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0xa68]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa78]
mov ebp, dword [esp + 0xa7c]
mov dword [esp + 0x20], ecx
xor ecx, ecx
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ecx
mov word [esp + 0x44], cx
mov dword [esp + 0xa70], ecx
cmp byte [eax + 0x246], cl
je 0x40dde6
add eax, 0x18
push eax
mov ebx, str.Uninstall
lea esi, [esp + 0x28]
call fcn.00416100
add esp, 4
push edi
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa78], 1
call fcn.00403460
mov esi, 8
mov byte [esp + 0xa70], 0
cmp dword [esp + 0x3c], esi
jb 0x40dd07
mov edx, dword [esp + 0x28]
push edx
call fcn.00422b32
add esp, 4
cmp dword [esp + 0x58], esi
mov eax, dword [esp + 0x44]
jae 0x40dd15
lea eax, [esp + 0x44]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add edi, 1
push edi
push ebp
lea edx, [esp + 0x64]
push str._s_d
push edx
call esi
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6c]
push eax
push ecx
call ebx
cmp eax, 2
jne 0x40dd41
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x268]
push eax
mov eax, dword [esp + 0x28]
call fcn.00421020
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [ecx + ecx]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x268]
push eax
push 7
push 0
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40ddc7
push eax
push str.Error_creating_uninstall_key_0x_X
push 0x4575e0
mov eax, 2
call fcn.00419140
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x58], 8
jb 0x40dde6
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00422b32
add esp, 4
mov ecx, dword [esp + 0xa68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa50]
xor ecx, esp
call fcn.00422b23
add esp, 0xa60
ret 8
Function at 0x40de10
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4489d0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4563c4]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x4563c4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
xor ebx, ebx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
push str.path
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x60], ebx
call fcn.004057e0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
call fcn.00403460
mov esi, 8
mov byte [esp + 0x54], bl
cmp dword [esp + 0x28], esi
jb 0x40de98
mov edx, dword [esp + 0x14]
push edx
call fcn.00422b32
add esp, 4
push str.File
push str.__s_
push 0x4575e0
xor eax, eax
call fcn.00419140
add dword [0x457600], 1
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x44], esi
jae 0x40dec6
lea eax, [esp + 0x30]
push eax
push str.Deleting__s
push 0x4575e0
xor eax, eax
call fcn.00419140
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x44], esi
jae 0x40dee9
lea eax, [esp + 0x30]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x40df03
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40df6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40df38
cmp eax, 3
je 0x40df38
push eax
push str.Delete_error_0x_X__marking_for_delete_on_next_reboot
push 0x4575e0
mov eax, 1
call fcn.00419140
add esp, 0xc
jmp 0x40df4f
push str.Does_not_exist__skipping
push 0x4575e0
mov eax, 1
call fcn.00419140
add esp, 8
cmp dword [esp + 0x44], esi
mov eax, dword [esp + 0x30]
jae 0x40df5d
lea eax, [esp + 0x30]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [edi + 0x34], 1
sub dword [0x457600], 1
cmp dword [esp + 0x44], esi
jb 0x40df88
mov eax, dword [esp + 0x30]
push eax
call fcn.00422b32
add esp, 4
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00422b23
add esp, 0x4c
ret 4