joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401045
Capabilities:
Delete file
Terminate process

Disassembly:
mov eax, dword [0x406554]
push esi
or esi, 0xffffffff
push edi
mov eax, dword [eax + 0x3c]
mov edi, ecx
test eax, eax
je 0x401074
cmp eax, esi
je 0x401074
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x406554]
add eax, 0x13bc4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x406554]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x40108b
cmp eax, esi
je 0x40108b
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [0x406554]
mov dword [eax + 0x3c], esi
mov eax, dword [0x406554]
mov dword [eax + 0x38], esi
mov eax, dword [0x40656c]
test eax, eax
je 0x4010ad
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [0x406554]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [eax + 0x372e]
test ecx, ecx
je 0x4010ca
push ecx
call esi
mov eax, dword [0x406554]
test eax, eax
je 0x4010d6
push eax
call esi
mov eax, dword [0x406554]
push 0x2010
push str.WinSFX32
push dword [eax + 0xc8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call sub.CRTDLL.dll_exit
pop ecx
pop edi
pop esi
ret

Function at 0x4011de
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x5c]
push ecx
mov dword [ebp - 0xc], edx
push eax
call esi
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x5c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40121e
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
jmp 0x401253
lea eax, [ebp + 0x10]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40124a
push dword [ebp + 8]
push dword [ebp + 0xc]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0xc
Function at 0x4013f3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov dword [ebp - 8], edx
push edi
xor ebx, ebx
push 6
mov edx, str._WORK_
mov dword [ebp - 4], ecx
mov byte [ebp - 0x110], bl
xor edi, edi
call fcn.00401288
test eax, eax
jne 0x401436
lea edx, [ebp - 0x110]
mov ecx, 0x100
call fcn.00401307
push 6
jmp 0x401518
mov ecx, dword [ebp - 4]
push 8
pop esi
mov edx, str._WinDir_
push esi
call fcn.00401288
test eax, eax
jne 0x401464
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, esi
jmp 0x40156c
mov ecx, dword [ebp - 4]
push 9
mov edx, str._WinRoot_
call fcn.00401288
test eax, eax
jne 0x401496
lea eax, [ebp - 0x110]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp - 0x10e], bl
push 9
jmp 0x401518
mov ecx, dword [ebp - 4]
push 0xb
mov edx, str._SystemDir_
call fcn.00401288
test eax, eax
jne 0x4014b6
push 0xb
pop edi
push 0x100
jmp 0x40155f
mov ecx, dword [ebp - 4]
push 0xe
mov edx, str._ProgramFiles_
call fcn.00401288
test eax, eax
jne 0x40151b
cmp dword [0x406550], ebx
mov byte [ebp - 0x110], bl
mov esi, 0x100
je 0x4014fa
mov edx, dword [str.ProgramFilesDir]
mov ecx, dword [section..data]
lea eax, [ebp - 0x110]
push esi
push eax
push 0x406518
call fcn.004011de
cmp byte [ebp - 0x110], bl
jne 0x401516
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp - 0x10e], bl
push 0xe
pop edi
jmp 0x40156c
mov ecx, dword [ebp - 4]
push esi
mov edx, str._Search_
call fcn.00401288
test eax, eax
jne 0x40156c
mov eax, dword [ebp - 8]
cmp byte [eax], bl
je 0x40156c
lea eax, [ebp - 0xc]
mov edi, esi
push eax
lea eax, [ebp - 0x110]
mov esi, 0x100
push eax
push esi
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jbe 0x40155e
mov eax, dword [ebp - 0xc]
mov byte [eax - 1], bl
jmp 0x40156c
push esi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x110]
add edi, esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], ebx
je 0x40159b
mov dl, 0x5c
mov ecx, esi
call fcn.00401258
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401785
Capabilities:
Encode data using xor

Disassembly:
mov eax, edx
dec edx
push esi
mov esi, ecx
test eax, eax
jle 0x4017c9
push edi
push ebx
lea edi, [edx + 1]
mov eax, dword [0x406554]
movzx ebx, byte [esi]
mov dx, word [eax + 0x2d4]
mov ecx, edx
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, dh
mov cx, word [eax + ecx*2 + 0xcc]
xor cx, bx
inc esi
dec edi
mov word [eax + 0x2d4], cx
jne 0x401794
pop ebx
pop edi
mov eax, dword [0x406554]
pop esi
mov ax, word [eax + 0x2d4]
ret
Function at 0x401b15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x401b64
lea eax, [ebp + 8]
push 0
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401b3e
cmp esi, dword [ebp + 8]
je 0x401b59
mov eax, dword [0x406554]
mov ecx, dword [eax + 0x5c]
lea edx, [eax + 0x13bc4]
call fcn.004016fb
push 1
pop ecx
call fcn.00401045
mov edx, esi
mov ecx, edi
call fcn.00401785
jmp 0x401ba8
mov eax, dword [0x406554]
mov cl, byte [eax + 0x34d2]
cmp cl, 1
jne 0x401b89
mov ecx, 0x400
cmp esi, ecx
ja 0x401b80
lea ecx, [esi + 1]
push ecx
push edi
add eax, 0x17ec8
jmp 0x401ba1
cmp cl, 2
jne 0x401ba8
mov ecx, 0x1000
cmp esi, ecx
ja 0x401b9a
lea ecx, [esi + 1]
push ecx
push edi
add eax, 0x182c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop esi
pop ebp
ret 4

Function at 0x402693
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
mov ebx, ecx
push 0x64
push eax
push 0x4061c4
mov edi, dword [ebx]
xor esi, esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40270d
mov cl, byte [ebp - 0x6c]
lea eax, [ebp - 0x6c]
test cl, cl
je 0x4026e2
cmp cl, 0x2b
je 0x4026e2
cmp cl, 0x2d
je 0x4026e2
cmp cl, 0x30
jb 0x4026dc
cmp cl, 0x39
jbe 0x4026e2
mov cl, byte [eax + 1]
inc eax
jmp 0x4026c4
mov cl, byte [eax]
cmp cl, 0x2d
jne 0x4026ef
and dword [ebp - 4], 0
jmp 0x4026f4
cmp cl, 0x2b
jne 0x4026f5
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jb 0x40270d
cmp cl, 0x39
ja 0x40270d
movzx ecx, cl
lea edx, [esi + esi*4]
lea esi, [ecx + edx*2 - 0x30]
jmp 0x4026f4
imul esi, esi, 0xe10
cmp dword [ebp - 4], 0
je 0x40271d
sub edi, esi
jmp 0x40271f
add edi, esi
mov dword [ebx], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402dcc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 4
mov edi, edx
mov dword [ebp - 4], ecx
je 0x402dee
cmp esi, 1
jne 0x402eb5
cmp esi, 4
mov ebx, dword [ebp + 0x10]
jne 0x402dfd
mov ecx, ebx
call fcn.00402bd3
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor edi, edi
cmp dword [0x406550], edi
jne 0x402e58
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x58]
push 0x4061e8
push eax
call esi
lea eax, [ebp - 0x58]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x402ea7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push 1
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
jmp 0x402ea7
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [0x406554]
push edi
push 0x20006
push edi
push dword [eax + 0x7c]
lea eax, [ebp - 0x58]
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402ea7
cmp esi, 1
jne 0x402e93
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
push esi
jmp 0x402e9a
lea eax, [ebp + 0x10]
push 4
push eax
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp + 0xc], edi
je 0x402eb5
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40486a
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4049bc
push eax
mov eax, dword [0x406514]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x406510]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.004049b2
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x40650c]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x408004
push section..CRT
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x404905
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4048fd
cmp al, 0x22
jne 0x4048f2
cmp byte [esi], 0x22
jne 0x40490f
inc esi
jmp 0x40490f
cmp al, 0x20
jbe 0x40490f
inc esi
cmp byte [esi], 0x20
ja 0x404909
cmp byte [esi], 0
je 0x40491f
cmp byte [esi], 0x20
ja 0x40491f
inc esi
cmp byte [esi], 0
jne 0x404914
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x40493f
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x40497b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406a00
Capabilities:
Encode data using xor

Disassembly:
sal bl, cl
cmpsb byte [esi], byte es:[edi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
push ds
xchg ebp, eax
inc ebx
xor byte [ecx], al
mov eax, 0x335e0000
rcr byte [ebx - 0x75], 0xe5
add ecx, dword [edi + 8]
add byte [eax + 0x975ef], bh
mov eax, 0x975ef
pop edi
pop esi
pop ebx
jo 0x4069de
pop ebp
ret 0xc1
push ebp
js 0x4069ef
sub esp, 8
lea edx, [edx - 0xafa908]
adc eax, 0x48278
mov edi, ecx
cld
mov ecx, dword [ebx - 8]
aas
div byte [ebx]
leave
or edx, esi
push esi
or edx, dword [ecx + 0x6a]
or dl, byte [edx + 0x51]
call fcn.0040b590
sub eax, 0x48864000
adc eax, 0x5e96da81
sub dword [eax], eax
mov ebx, dword [ebp + ebx*2 - 0x6fce6f3d]
nop
nop
nop
nop
push ebp
xor ch, ah
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
xor esi, esi
jns 0x4069d8
dec eax
push cs
mov dword [ecx + ecx*4], ecx
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 8]
shl edx, 0x1a
mov dword [ecx], edx
push es
adc dword [esi - 0x75], esp
push eax
or al, 0x89
invalid
Function at 0x405f50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491611
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7a03c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
call fcn.00405b70
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00405b70
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00405b70
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.00405b70
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00405b70
mov byte [ebp - 4], 9
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004077b0
lea ecx, [ebp + 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004077b0
lea edx, [ebp + 0x38]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004077b0
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0x50]
mov byte [eax + 0x48], cl
lea edx, [ebp + 0x54]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x4c
call fcn.004077b0
mov eax, dword [ebp - 0x10]
mov cl, byte [ebp + 0x6c]
mov byte [eax + 0x49], cl
lea edx, [ebp + 0x70]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.004077b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x88]
mov dword [eax + 0x7c], ecx
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x4a], 0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.004070e0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
call fcn.004070e0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x38]
call fcn.004070e0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x54]
call fcn.004070e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x70]
call fcn.004070e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x84
Function at 0x409190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x7a03c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x4091b7
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4091be
mov al, 1
jmp 0x4092a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x40], edx
call fcn.0040c8d0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
call dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
call fcn.0040c8d0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040c900
add esp, 8
movzx eax, al
test eax, eax
je 0x409204
xor al, al
jmp 0x4092a9
mov dword [ebp - 0x54], 0x20
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x4c], edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00410190
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x409246
cmp dword [ebp - 0x30], 1
je 0x40924d
cmp dword [ebp - 0x30], 3
je 0x40929c
jmp 0x4092a7
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x40927c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call fcn.00472bd9
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x40927c
xor al, al
jmp 0x4092a9
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x409290
mov dword [ebp - 0x38], 1
jmp 0x409297
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x4092a9
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x4092a9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c5de
mov esp, ebp
pop ebp
ret
Function at 0x40b780
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491a1b
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x7a03c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], 0
lea ecx, [ebp - 0x2e8]
call fcn.00405dc0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2ec], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x2cc], eax
push 0x22c
push 0
lea eax, [ebp - 0x2c0]
push eax
call fcn.0046f9a0
add esp, 0xc
mov dword [ebp - 0x2c0], 0x22c
lea ecx, [ebp - 0x2c0]
push ecx
mov edx, dword [ebp - 0x2cc]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b93e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2d0], eax
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, dword [ebp - 0x2d0]
call fcn.0040ab80
lea edx, [ebp - 0x2d8]
push edx
mov ecx, dword [ebp - 0x2d0]
call fcn.0040ac10
nop
jmp 0x40b857
lea ecx, [ebp - 0x2c4]
call fcn.00407bd0
nop
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004079d0
movzx ecx, al
test ecx, ecx
je 0x40b923
lea ecx, [ebp - 0x2c4]
call fcn.00407b70
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x2c8]
call fcn.0040d140
mov dword [ebp - 0x2dc], eax
push 0
mov ecx, dword [ebp - 0x2dc]
call fcn.00407a60
push eax
lea edx, [ebp - 0x29c]
push edx
call fcn.00471abf
add esp, 8
test eax, eax
jne 0x40b91e
mov eax, dword [ebp - 0x2b8]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x2c8]
push ecx
lea ecx, [ebp - 0x90]
call fcn.00406090
mov byte [ebp - 4], 1
lea edx, [ebp - 0x94]
push edx
lea ecx, [ebp - 0x2e8]
call fcn.0040eb50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.004072b0
nop
mov ecx, dword [ebp - 0x2c8]
call fcn.0040cfd0
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
or ecx, dword [ebp - 0x2e0]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x40b923
jmp 0x40b84b
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b81b
mov edx, dword [ebp - 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2e8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405d60
mov ecx, dword [ebp - 0x2d4]
or ecx, 1
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e8]
call fcn.00407190
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c5de
mov esp, ebp
pop ebp
ret
Function at 0x40cff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x7a03c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x414], reloc.WS2_32.dll_accept
mov dword [ebp - 0x410], str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov dword [ebp - 0x40c], 0
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
cmp dword [ebp - 0x40c], 0
jne 0x40d07b
push 0x49366c
mov ecx, dword [ebp + 8]
call fcn.00405690
mov eax, dword [ebp - 0x408]
or eax, 1
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 8]
jmp 0x40d126
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], 0x200
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x404]
push edx
lea eax, [ebp - 0x41c]
push eax
push 0
push str.ProgId
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x420], eax
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
push 0x493690
lea eax, [ebp - 0x404]
push eax
call fcn.004719bf
add esp, 8
test eax, eax
jne 0x40d105
push str.not_found
mov ecx, dword [ebp + 8]
call fcn.00405690
mov ecx, dword [ebp - 0x408]
or ecx, 1
mov dword [ebp - 0x408], ecx
mov eax, dword [ebp + 8]
jmp 0x40d126
lea edx, [ebp - 0x404]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405690
mov eax, dword [ebp - 0x408]
or eax, 1
mov dword [ebp - 0x408], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c5de
mov esp, ebp
pop ebp
ret
Function at 0x40d2c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491c10
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x7a03c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.00405f10
mov byte [ebp - 4], 1
push 0x493e34
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.00401d90
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x198]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040b6c0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0xffffffff
je 0x40d3ed
mov eax, dword [ebp - 0x198]
and eax, 0x10
je 0x40d3c3
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004052b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp + 0x10]
call fcn.00407f70
mov byte [ebp - 0x199], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004070c0
movzx eax, byte [ebp - 0x199]
test eax, eax
je 0x40d3c3
lea ecx, [ebp - 0x16c]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004052b0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.0040ebb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004070c0
nop
lea eax, [ebp - 0x198]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40d34d
mov edx, dword [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
nop
lea eax, [ebp - 0x1b0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405e40
mov ecx, dword [ebp - 0x1a4]
or ecx, 1
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.004070c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b0]
call fcn.00407230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00407150
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046c5de
mov esp, ebp
pop ebp
ret
Function at 0x40dd70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x7a03c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.004719ff
add esp, 8
push 0x493948
lea edx, [ebp - 0x204]
push edx
call fcn.0047198e
add esp, 8
mov eax, dword [str.fgimllnamdeacpaddbdafchhcmapebgj]
push eax
lea ecx, [ebp - 0x204]
push ecx
call fcn.0047198e
add esp, 8
mov dword [ebp - 0x408], 0
push 0
lea edx, [ebp - 0x408]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x204]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ddfe
mov eax, 2
jmp 0x40deb2
mov dword [ebp - 0x40c], 0
push str.https:__clients2.google.com_service_update2_crx
lea edx, [ebp - 0x404]
push edx
call fcn.004719ff
add esp, 8
lea eax, [ebp - 0x404]
push eax
call fcn.00471a21
add esp, 4
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x40c], ecx
mov edx, dword [ebp - 0x40c]
shl edx, 1
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 0x200
jae 0x40de51
jmp 0x40de57
call fcn.0046c501
nop
xor eax, eax
mov ecx, dword [ebp - 0x410]
mov word [ebp + ecx - 0x404], ax
mov edx, dword [ebp - 0x40c]
push edx
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push str.update_url
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40dea3
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 3
jmp 0x40deb2
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c5de
mov esp, ebp
pop ebp
ret