joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e760
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x497e66
mov eax, dword fs:[0]
push eax
sub esp, 0x124
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40e79c
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40e7ba
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e87a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.0040e500
test al, al
je 0x40e87a
cmp byte [esi + 0x11c], 0
je 0x40e7f1
add esi, 0xc
jmp 0x40e7f4
mov esi, dword [esi + 8]
lea ecx, [esp + 0xc]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0xc]
call fcn.00410960
mov eax, ebx
mov dword [esp + 0x138], 1
call fcn.0040f780
mov esi, eax
call fcn.004103f0
mov eax, ebx
call fcn.0040f780
mov esi, eax
push 0x4b91f0
lea eax, [esp + 0x10]
call fcn.00410580
cmp byte [esp + 0x128], 0
mov dword [esp + 0xc], vtable.t_str.0
jne 0x40e860
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x40e860
push eax
call fcn.00475125
add esp, 4
xor al, al
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x130
ret
mov al, 1
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x130
ret
Function at 0x40e8f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x497e21
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov edi, dword [esp + 0x270]
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40e942
mov eax, dword [esi + 8]
push 2
add eax, 4
push 0x4b9200
push eax
call fcn.00475f8b
add esp, 0xc
test eax, eax
je 0x40ea38
mov ecx, esi
call fcn.0040e540
test al, al
jne 0x40ea38
lea ecx, [esp + 0x134]
call fcn.0040df10
push esi
lea ebx, [esp + 0x138]
mov dword [esp + 0x26c], 2
call fcn.0040edb0
test al, al
je 0x40e9a2
push 0
push edi
mov ecx, ebx
call fcn.0040e8f0
test al, al
je 0x40ea0e
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x40e9b1
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ea1e
cmp byte [esi + 0x11c], al
je 0x40e9ce
add esi, 0xc
jmp 0x40e9d1
mov esi, dword [esi + 8]
lea ecx, [esp + 0x10]
call fcn.00410770
lea eax, [esi + 4]
lea edx, [esp + 0x10]
call fcn.00410960
push 0x4b9208
mov ebx, edi
mov byte [esp + 0x26c], 4
call fcn.004103c0
mov esi, eax
lea eax, [esp + 0x14]
call fcn.00410580
lea ecx, [esp + 0x10]
call fcn.0040e2d0
lea ecx, [esp + 0x134]
call fcn.0040e2d0
xor al, al
jmp 0x40ea3a
mov eax, esi
call fcn.0040f6d0
mov eax, esi
call fcn.0040f670
lea ecx, [esp + 0x134]
call fcn.0040e2d0
mov al, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.00474db0
add esp, 0x25c
ret 8
Function at 0x4116e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x804
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [esp + 0x80c]
push 0x4cb5c0
push esi
call fcn.0047728c
add esp, 8
test eax, eax
je 0x411726
xor eax, eax
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00474db0
add esp, 0x804
ret
mov eax, 0x4000
test word [0x4cb5c6], ax
je 0x411848
push edi
push esi
push str._s.
lea edx, [esp + 0x10]
call fcn.00412ae0
add esp, 8
push 0x4cb370
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41182a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
mov ecx, 0x4b7bcc
mov eax, 0x4cb39c
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4117a6
test dx, dx
je 0x4117a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4117a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411780
xor eax, eax
jmp 0x4117ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411812
mov ecx, 0x4b9848
mov eax, 0x4cb39c
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4117e6
test dx, dx
je 0x4117e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4117e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4117c0
xor eax, eax
jmp 0x4117eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x411812
push 0x4cb39c
push esi
push 0x4b9b6c
lea edx, [esp + 0x18]
call fcn.00412ae0
lea edx, [esp + 0x18]
push 1
push edx
call fcn.004116e0
add esp, 0x14
push 0x4cb370
push edi
call ebx
test eax, eax
jne 0x411770
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00474db0
add esp, 0x804
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00474db0
add esp, 0x804
ret
Function at 0x4123c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebp
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4123f6
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push eax
call fcn.00475202
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412454
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x4b7bc8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412454
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xa]
mov word [edi], cx
movzx edx, word [eax + 8]
mov word [edi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [edi + 4], cx
movzx edx, word [eax + 0xc]
mov word [edi + 6], dx
mov byte [esp + 0xf], 1
cmp esi, ebx
je 0x412461
push esi
call fcn.00475125
add esp, 4
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x412470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00479770
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4124c9
xor al, al
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00474db0
add esp, 0x214
ret
push edi
push str.kernel32.dll
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0047679e
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x14]
call fcn.004123c0
add esp, 0x10
pop edi
test al, al
je 0x4124b2
movzx ecx, word [esp + 4]
movzx edx, word [esp]
movzx eax, word [esp + 2]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x210]
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi + 8], eax
xor ecx, esp
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], dx
mov al, 1
call fcn.00474db0
add esp, 0x214
ret
Function at 0x413500
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ebx, eax
mov eax, dword [esp + 0x20]
mov esi, ecx
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 4]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x41362b
test ebx, ebx
je 0x4135d7
cmp word [ebx], 0
je 0x4135d7
cmp byte [esi + 0x128], 0
je 0x413569
add esi, 0x18
mov dword [esp + 0x20], esi
jmp 0x413570
mov eax, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov eax, ebp
call fcn.0040f780
mov esi, eax
call fcn.004103f0
mov eax, ebp
call fcn.0040f780
mov esi, eax
push 0x4b9e70
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
mov ecx, dword [esp + 0x28]
add ecx, 4
push ecx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
push 0x4b7bc8
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x20
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x4135e6
mov ebx, dword [esi + 0x14]
mov eax, ebp
call fcn.0040f780
mov esi, eax
call fcn.004103f0
mov eax, ebp
call fcn.0040f780
mov esi, eax
push 0x4b9e70
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add ebx, 4
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
mov eax, 1
cmp dword [esp + 0x18], eax
je 0x4136dc
test ebx, ebx
je 0x413694
cmp word [ebx], 0
je 0x413694
cmp byte [esi + 0x128], 0
je 0x413656
add esi, 0x18
mov dword [esp + 0x20], esi
jmp 0x41365d
mov edx, dword [esi + 0x14]
mov dword [esp + 0x20], edx
mov eax, ebp
call fcn.0040f780
xor edi, edi
mov esi, eax
call fcn.004103f0
mov eax, ebp
call fcn.0040f780
mov esi, eax
push 0x4b9e80
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
mov eax, dword [esp + 0x28]
add eax, 4
push eax
jmp 0x4135a0
cmp byte [esi + 0x128], 0
je 0x4136a2
add esi, 0x18
jmp 0x4136a5
mov esi, dword [esi + 0x14]
mov eax, ebp
call fcn.0040f780
mov edi, eax
push 0x4b9e80
push 0x4b8ff4
mov edx, edi
call fcn.00410f90
add esi, 4
push esi
push 0x4b8ff4
mov edx, edi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
pop ecx
ret 0xc
Function at 0x4136f0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x41380f
test ebx, ebx
je 0x4137bc
cmp word [ebx], 0
je 0x4137bc
cmp byte [esi + 0x128], 0
je 0x41373e
add esi, 0x18
mov dword [esp + 0x1c], esi
jmp 0x413745
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x1c], ecx
mov eax, ebp
call fcn.0040f780
mov esi, eax
call fcn.004103f0
mov eax, ebp
call fcn.0040f780
mov esi, eax
push 0x4b9e98
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
mov edx, dword [esp + 0x24]
add edx, 4
push edx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
push 0x4b9eb0
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
push 0x4b9eb8
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x28
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
cmp byte [esi + 0x128], 0
lea ebx, [esi + 0x18]
jne 0x4137cb
mov ebx, dword [esi + 0x14]
mov eax, ebp
call fcn.0040f780
mov esi, eax
call fcn.004103f0
mov eax, ebp
call fcn.0040f780
mov esi, eax
push 0x4b9e98
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add ebx, 4
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x415eb0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [edi + 0x130]
mov edx, dword [eax + 0x18]
lea ebx, [edi + 0x130]
push esi
push ebp
mov ecx, ebx
call edx
test al, al
jne 0x415eff
mov eax, ebp
call fcn.0040f780
push 0x4b91e0
push 0x4b8ff4
mov edx, eax
call fcn.00410f90
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov ecx, ebx
call edx
test al, al
jne 0x415f64
push str.t_mutex::Lock
mov eax, ebp
call fcn.0040f830
xor ecx, ecx
add esp, 4
cmp al, cl
je 0x415ed8
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
mov dword [edi + 0x348], ebx
mov ebx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
mov eax, ebp
mov dword [edi + 8], ebx
call fcn.00415cd0
add esp, 0xc
test al, al
jne 0x415fb6
cmp byte [esi + 0x11c], al
je 0x415f7a
add esi, 0xc
jmp 0x415f7d
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push ebp
mov ecx, ebx
call edx
test al, al
je 0x415ed8
xor ecx, ecx
jmp 0x415f21
mov esi, dword [esi + 8]
mov eax, ebp
call fcn.0040f780
mov edi, eax
push 0x4ba2bc
push 0x4b8ff4
mov edx, edi
call fcn.00410f90
add esi, 4
push esi
push 0x4b8ff4
mov edx, edi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push ebp
push 0
push eax
push ecx
mov eax, esi
call fcn.00410eb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
mov ebx, 1
cmp eax, 0xffffffff
jne 0x41605a
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x416012
cmp ebx, 3
jge 0x41609b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41602f
cmp eax, 5
jne 0x416070
cmp ebx, 3
jge 0x41609b
push 0x80
mov eax, esi
call fcn.00410eb0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push 0x80
push ebp
push 0
push edx
push eax
mov eax, esi
call fcn.00410eb0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc ebx
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x415ff0
lea edx, [edi + 0xc]
mov eax, esi
call fcn.0040e350
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
test eax, eax
jne 0x41609b
cmp byte [esi + 0x11c], al
je 0x416081
add esi, 0xc
jmp 0x416084
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x20]
push 0x4ba2cc
call fcn.00407b00
add esi, 4
push esi
jmp 0x415ee4
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x4160aa
mov ebx, dword [esi + 8]
mov ebp, dword [esp + 0x20]
mov eax, ebp
call fcn.0040f780
mov edi, dword [esp + 0x24]
mov esi, eax
call fcn.004103f0
mov eax, ebp
call fcn.0040f780
mov esi, eax
push 0x4ba2bc
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add ebx, 4
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x416190
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov ebx, eax
mov edi, ecx
mov esi, edx
call ebp
test edi, edi
jne 0x4161b9
test ebx, ebx
je 0x4161af
mov dword [ebx], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41623f
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x4161ea
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x18]
call fcn.0040f780
mov esi, eax
call fcn.004103f0
push 0
call ebp
mov eax, dword [esp + 0x18]
call fcn.0040f780
mov esi, eax
push 0x4ba2ec
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add ebx, 4
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x416249
mov dword [ebx], eax
test eax, eax
jne 0x4161af
cmp byte [esi + 0x128], al
je 0x41625e
add esi, 0x18
jmp 0x416261
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
call fcn.0040f780
mov edi, eax
push 0x4ba2fc
push 0x4b8ff4
mov edx, edi
call fcn.00410f90
add esi, 4
push esi
push 0x4b8ff4
mov edx, edi
call fcn.00410f90
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8

Function at 0x4162a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov edi, eax
mov esi, ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41633d
push ebx
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x4162e8
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x18]
call fcn.0040f780
mov esi, eax
call fcn.004103f0
push 0
call ebp
mov eax, dword [esp + 0x18]
call fcn.0040f780
mov esi, eax
push 0x4ba31c
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add ebx, 4
push ebx
push 0x4b8ff4
mov edx, esi
call fcn.00410f90
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0xc
test edi, edi
je 0x416347
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0xc
Function at 0x4167e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41684e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x41681f
cmp eax, 2
jne 0x41683a
mov eax, dword [esp]
test esi, esi
je 0x416848
test eax, eax
je 0x416843
test al, 1
jne 0x41683a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x416848
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x416920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4973d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 0xc], ebx
cmp eax, str.http
je 0x4169e8
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
mov dword [esp + 0x38], ebx
call fcn.00416860
cmp eax, 2
jne 0x416995
lea edx, [esp + 0x10]
push edx
call fcn.00416e80
add esp, 4
test al, al
jne 0x4169b4
mov edi, str.http
lea ecx, [esp + 0x10]
call fcn.00416a20
test al, al
jne 0x4169b4
push edi
lea edi, [esp + 0x14]
call fcn.00416b20
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], ax
push ebx
lea eax, [esp + 0x18]
mov ecx, esi
call fcn.004170f0
cmp dword [esp + 0x28], 8
jb 0x4169f8
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00474da5
add esp, 4
jmp 0x4169f8
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], dx
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00474db0
add esp, 0x30
ret
Function at 0x416a20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4973d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x14], ax
push 0x11
mov eax, str.SoftwareClasses_
lea esi, [esp + 0x14]
mov ebx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00417280
mov eax, edi
mov dword [esp + 0x38], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416a86
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x14]
call fcn.004171a0
push 6
mov eax, str.Shell
lea ecx, [esp + 0x14]
call fcn.004171a0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
xor edx, edx
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
lea eax, [esp + 0x34]
mov word [ecx + 4], dx
call fcn.004170f0
push SysReAllocString
push ebx
call fcn.00416c10
add esp, 0x24
cmp dword [esp + 0x28], 8
mov bl, al
jb 0x416afe
mov eax, dword [esp + 0x14]
push eax
call fcn.00474da5
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00474db0
add esp, 0x30
ret
Function at 0x416e80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x497b16
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
xor ebx, ebx
xor ecx, ecx
push 0x3e
mov eax, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociations_
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
call fcn.00417280
mov eax, str.http
mov dword [esp + 0x458], ebx
lea edx, [eax + 2]
jmp 0x416f00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x416f00
sub eax, edx
sar eax, 1
push eax
mov eax, str.http
lea ecx, [esp + 0x2c]
call fcn.004171a0
push 0xb
mov eax, 0x4ba3d4
lea ecx, [esp + 0x2c]
call fcn.004171a0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x458], 1
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x416f4d
lea eax, [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push eax
push SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x417020
mov eax, dword [esp + 0x14]
push 0x3fe
lea edx, [esp + 0x4a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x50], cx
call fcn.00479770
add esp, 0xc
push str.Progid
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x2c]
lea esi, [esp + 0x4c]
mov dword [esp + 0x2c], 0x200
call fcn.004167e0
test eax, eax
jne 0x417011
xor ecx, ecx
cmp cx, word [esp + 0x44]
je 0x417011
mov edi, esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.00416a20
test al, al
jne 0x416fe3
mov eax, edi
push eax
mov edi, esi
call fcn.00416b20
add esp, 4
mov byte [esp + 0x13], al
jmp 0x416fe8
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x416ff7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x40], 8
jb 0x41700b
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00474da5
add esp, 4
mov al, byte [esp + 0x13]
jmp 0x417036
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x417020
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x40], 8
jb 0x417034
mov edx, dword [esp + 0x2c]
push edx
call fcn.00474da5
add esp, 4
xor al, al
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.00474db0
mov esp, ebp
pop ebp
ret