joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0xff
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call fcn.0043aba0
push 0x104
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.0043aba0
add esp, 0x18
call fcn.00405950
push 0x104
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4055d2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0043671a
add esp, 0x210
ret
push str.driversetchosts
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x495244
lea ecx, [esp + 0x114]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00437b7b
mov edi, dword [esp + 0x14]
add esp, 0xc
test edi, edi
je 0x4055b9
push 0x100
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0043aba0
push edi
lea ecx, [esp + 0x20]
push 0x100
push ecx
call fcn.00437bce
add esp, 0x18
test eax, eax
je 0x405687
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + 0x10], 0x23
je 0x40566c
lea edx, [esp + 0x10]
push edx
call edi
cmp eax, 2
jb 0x40566c
cmp byte [esp + eax + 0xf], 0xa
lea eax, [esp + eax + 0xf]
jne 0x405656
mov byte [eax], 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00401fb0
call fcn.004059a0
mov ecx, dword [esp + 8]
push ecx
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.00437bce
add esp, 0xc
test eax, eax
jne 0x405635
mov eax, dword [esp + 8]
push eax
call fcn.00437d8d
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043671a
add esp, 0x210
ret
Function at 0x405710
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x314
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x310], eax
push esi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call fcn.0043aba0
push 0x103
lea ecx, [esp + 0x221]
push 0
push ecx
mov byte [esp + 0x228], 0
call fcn.0043aba0
push 0x104
lea edx, [esp + 0x24]
push 0
push edx
call fcn.0043aba0
add esp, 0x24
call fcn.00405950
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4057a2
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043671a
add esp, 0x314
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.driversetchosts
lea eax, [esp + 0xc]
push eax
call esi
push str.driversetchosts_bak
lea ecx, [esp + 0x110]
push ecx
call esi
lea edx, [esp + 8]
push 0x495260
push edx
call fcn.00437b64
mov esi, eax
add esp, 8
test esi, esi
jne 0x405819
lea eax, [esp + 8]
push eax
push str.Open_source_file:__s_failed_n
call fcn.00437e09
add esp, 8
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043671a
add esp, 0x314
ret
lea ecx, [esp + 0x10c]
push 0x495284
push ecx
call fcn.00437b64
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x40586a
lea edx, [esp + 0x10c]
push edx
push str.Create_source_file:__s_failed_n
call fcn.00437e09
push esi
call fcn.00437d8d
add esp, 0xc
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0043671a
add esp, 0x314
ret
push ebp
push esi
xor ebp, ebp
call fcn.00437ece
add esp, 4
test eax, eax
jne 0x4058e1
lea ebx, [ebx]
push 0x104
lea eax, [esp + 0x218]
push 0
push eax
call fcn.0043aba0
push esi
lea ecx, [esp + 0x224]
push 0x104
push ecx
call fcn.00437bce
lea edx, [esp + 0x22c]
push edi
push edx
call fcn.00437310
add esp, 0x20
test eax, eax
jne 0x4058d3
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x218]
push ecx
call fcn.00437f36
add esp, 8
jmp 0x4058d4
inc ebp
push esi
call fcn.00437ece
add esp, 4
test eax, eax
je 0x405880
push esi
call fcn.00437d8d
mov edx, dword [esp + 0xc]
push edx
call fcn.00437d8d
add esp, 8
test ebp, ebp
pop ebp
jle 0x40591b
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x405929
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x314]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043671a
add esp, 0x314
ret
Function at 0x405f20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48409b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ebp, 0xf
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
mov dword [esp + 0x158], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405fd5
push 6
push str.unknow
lea ecx, [esp + 0x24]
call fcn.00404eb0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
push ecx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405060
cmp dword [esp + 0x34], 0x10
jb 0x4060c8
mov edx, dword [esp + 0x20]
push edx
jmp 0x4060c0
push 0x103
lea eax, [esp + 0x3d]
push ebx
push eax
mov byte [esp + 0x44], bl
call fcn.0043aba0
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.svcVersion
push ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 1
call edi
test eax, eax
je 0x406062
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push str.Version
push edx
call edi
test eax, eax
je 0x406062
push 6
push str.unknow
lea ecx, [esp + 0x24]
call fcn.00404eb0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405fa8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push 0x4953f0
lea ecx, [esp + 0x24]
call fcn.00404eb0
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406084
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x24]
call fcn.00404b10
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x24]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405060
cmp dword [esp + 0x34], 0x10
jb 0x4060c8
mov eax, dword [esp + 0x20]
push eax
call fcn.00418124
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0043671a
add esp, 0x13c
ret
Function at 0x406240
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.0043aba0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x406296
push esi
push esi
push 0x495404
call fcn.00419d83
xor eax, eax
jmp 0x406309
lea ecx, [esp + 0x10]
push ecx
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406300
lea ecx, [ecx]
push ebx
call fcn.00438391
lea edx, [esp + 0x38]
push edx
mov esi, eax
call fcn.00438391
add esp, 8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4062e5
test cl, cl
je 0x4062e1
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4062e5
add eax, 2
add esi, 2
test cl, cl
jne 0x4062c5
xor eax, eax
jmp 0x4062ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406323
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4062b0
lea esi, [eax + 1]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043671a
add esp, 0x134
ret 4
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x406300
Function at 0x407800
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483e40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40789f
test dword [ebp - 0x14], 0x20
je 0x407874
cmp dword [ebp + 0x20], 0x10
jb 0x40785d
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00418124
add esp, 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x20], 0x10
jb 0x407886
mov edx, dword [ebp + 0xc]
push edx
call fcn.00418124
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push ebx
push ebx
push ebx
mov edi, 1
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0041a773
mov byte [ebp - 4], 2
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4078c2
lea eax, [ebp + 0xc]
push ebx
push ebx
push edi
push edi
push eax
lea ecx, [ebp - 0x30]
call fcn.0041b0d9
mov esi, eax
mov dword [ebp - 4], edi
cmp esi, ebx
je 0x40791f
push ebx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x20000013
mov ecx, esi
mov dword [ebp - 0x1c], 4
call fcn.0041a0ba
cmp eax, ebx
je 0x407906
mov edx, dword [ebp - 0x18]
add edx, 0xffffff38
cmp edx, 0x63
jbe 0x407909
mov edi, dword [ebp - 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 1
mov ecx, esi
call edx
jmp 0x407922
or edi, 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041ad3d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.0041ae20
cmp dword [ebp + 0x20], 0x10
jb 0x407947
mov eax, dword [ebp + 0xc]
push eax
call fcn.00418124
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4081a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043671a
add esp, 0x108
ret

Function at 0x4081f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408218
mov ecx, dword [str._system32]
mov edx, dword [0x495974]
mov dword [eax], ecx
mov cx, word [0x495978]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
push esi
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0043671a
add esp, 0x108
ret

Function at 0x408260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREJANSHETO_KEY_TRFYCZ
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4082b7
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043671a
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.Path
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40830b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043671a
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043671a
add esp, 0x114
ret
Function at 0x4083d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftwindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408427
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043671a
add esp, 0x114
ret
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.ProgramFilesDir
push edx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40847b
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043671a
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043671a
add esp, 0x114
ret

Function at 0x408b00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x48482b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x3c]
lea esi, [edi + 0x18]
push esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], ecx
call fcn.00409b80
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x408b62
call fcn.00437a73
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x18], edx
cmp ebp, dword [esi + 0x10]
jbe 0x408b75
call fcn.00437a73
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ebx
push ecx
push ebp
push eax
lea ebx, [esp + 0x28]
call fcn.00409c10
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x408d60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [0x4c0618]
mov esi, edx
mov edx, dword [0x4c061c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
test eax, eax
jbe 0x408e0e
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
jmp 0x408db0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00467820
push 1
lea edx, [esp + 0x1c]
push edx
push esi
push edi
call fcn.00467880
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor eax, eax
mov ecx, 8
lea ecx, [ecx]
mov dl, byte [eax + 0x4c0618]
xor byte [esp + eax + 0x94], dl
inc eax
sub ecx, 1
jne 0x408df0
add edi, 8
add esi, 8
sub ebp, 1
jne 0x408db0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043671a
add esp, 0x94
ret

Function at 0x408ee0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x94
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
push ebp
push esi
push edi
mov esi, ecx
mov ecx, dword [0x4c0618]
mov edi, edx
mov edx, dword [0x4c061c]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
test eax, eax
jbe 0x408f8e
lea ebp, [eax - 1]
shr ebp, 3
inc ebp
jmp 0x408f30
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.00467820
push 0
lea edx, [esp + 0x1c]
push edx
push edi
push esi
call fcn.00467880
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
xor eax, eax
mov ecx, 8
lea ecx, [ecx]
mov dl, byte [eax + 0x4c0618]
xor byte [esp + eax + 0x94], dl
inc eax
sub ecx, 1
jne 0x408f70
add esi, 8
add edi, 8
sub ebp, 1
jne 0x408f30
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043671a
add esp, 0x94
ret
Function at 0x40a580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.0041c6aa
Function at 0x40e4b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40e4c0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40e4d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40ed10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x128
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
mov ebp, dword [esp + 0x134]
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [esp + 0x20]
push edx
xor edi, edi
or eax, 0x2001f
push eax
push edi
push ebp
push ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, edi
jne 0x40ed85
xor eax, eax
cmp ecx, edi
je 0x40ed73
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov esi, eax
mov dword [esp + 0x14], ecx
cmp eax, edi
je 0x40ed93
cmp ecx, edi
je 0x40ee30
push ecx
jmp 0x40ee2a
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x28]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push edi
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40edfe
jmp 0x40edc0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040ed10
mov ebp, eax
cmp ebp, edi
jne 0x40ee4d
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
push edi
push edi
push edi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edi
push edx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40edc0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ee11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], edi
mov eax, dword [ebx]
push ebp
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ee30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043671a
add esp, 0x128
ret 4
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40ee5c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x40ee32
Function at 0x410400
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax - 0xd4]
sub esp, 8
push ebx
push esi
push ecx
lea ecx, [esp + 0xc]
call fcn.0041bcbb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x4104ca
mov esi, dword [esp + 0x18]
cmp dword [esi + 4], 0x100
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
jne 0x4104ca
push 0x4f
call ebx
test ax, ax
jge 0x41046c
cmp dword [esp + 0xc], 0
je 0x410462
mov eax, dword [esp + 8]
push eax
push 0
call fcn.0041b3a3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x4104ca
push 0x50
call ebx
test ax, ax
jge 0x41049b
cmp dword [esp + 0xc], 0
je 0x410491
mov ecx, dword [esp + 8]
push ecx
push 0
call fcn.0041b3a3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esi + 4], 0x100
jne 0x4104ca
push 0x4e
call ebx
test ax, ax
jge 0x4104ca
cmp dword [esp + 0xc], 0
je 0x4104c0
mov edx, dword [esp + 8]
push edx
push 0
call fcn.0041b3a3
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x10
cmp dword [esp + 0xc], 0
je 0x4104dd
mov eax, dword [esp + 8]
push eax
push 0
call fcn.0041b3a3
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 0x10

Function at 0x411c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484b20
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4a55d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], vtable.CArray_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char____.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
mov eax, 1
mov byte [esp + 0x28], al
mov edx, dword [esp + 0x30]
sub eax, dword [edx - 4]
mov ecx, dword [edx - 8]
or ecx, eax
jge 0x411c98
push esi
lea ecx, [esp + 0x34]
call fcn.00402360
mov edx, dword [esp + 0x30]
push edx
lea edi, [esp + 0x10]
call fcn.004056b0
mov esi, eax
call fcn.00405a30
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 4