joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4075d0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x407767
mov ecx, dword [0x6754d4]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x64f280
push eax
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.00594e74
inc edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x324]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x320]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x67a7a4
jne 0x4076f3
mov eax, 0x67a7a0
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.00594f6f
mov edx, dword [esi + 0x98]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x70]
mov eax, dword [edx + 0x18]
mov edx, dword [esi + 0x78]
push ecx
push edi
mov ebx, dword [eax + ebx]
push 0x1074
push edx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
call fcn.00594ef6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x407611
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a90
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac3fb
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x407ba8
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x407ba8
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x679a28
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x407b3a
lea ecx, [esp + 0x20]
call fcn.00480870
push 1
push 0x64f5e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x23c], edi
call fcn.00480980
lea ecx, [esp + 0x20]
mov dword [esp + 0x234], 0xffffffff
call fcn.00480970
jmp 0x407b80
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x64f5d8
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x64f5d4
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x407ad7
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x407ba8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x409dc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 0x14]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409e15
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x64fb48
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e15
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x409e24
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x40b5f0
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac68c
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x40b682
push 0
lea ecx, [esp + 0x18]
call fcn.004d6570
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.00596cd3
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.005a2849
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.0059547d
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.005a2881
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00596914
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b6d4
lea ecx, [esp + 8]
push ecx
push 0x64fe04
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40c430
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
add ecx, 4
push ebx
push ebp
push esi
push edi
push 0x64f6fc
call fcn.00409d60
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push 0x64ff60
push reloc.WSOCK32.dll_accept
call ebp
test eax, eax
jne 0x40c503
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x64ff54
push eax
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c4d1
test ebx, ebx
je 0x40c4f8
mov esi, 0x64ff2c
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40c4c8
test cl, cl
je 0x40c4c4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c4c8
add eax, 2
add esi, 2
test cl, cl
jne 0x40c4a4
xor eax, eax
jmp 0x40c4cd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c4f8
mov edi, 0x64ff2c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x64ff2c
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x64ff54
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push 0x64ff60
push reloc.WSOCK32.dll_bind
call ebp
test eax, eax
jne 0x40c5bd
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x64ff54
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c58b
test ebx, ebx
je 0x40c5b2
mov esi, 0x64ff2c
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40c582
test cl, cl
je 0x40c57e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40c582
add eax, 2
add esi, 2
test cl, cl
jne 0x40c55a
xor eax, eax
jmp 0x40c587
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c5b2
mov edi, 0x64ff2c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x64ff2c
push 1
push eax
mov eax, dword [esp + 0x20]
push 0x64ff54
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40dfd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 8
push esi
push edi
call fcn.00434b10
neg eax
sbb eax, eax
lea ecx, [esp + 8]
and eax, 0x100
push ecx
add eax, 0xf003f
push eax
push 0
push 0x650024
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40e036
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push 0x650194
push eax
mov dword [esp + 0x24], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call edi
lea edx, [esp + 8]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x64ee70
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e087
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push 0x650158
push ecx
mov dword [esp + 0x24], 1
call esi
mov edx, dword [esp + 8]
push edx
call edi
pop edi
pop esi
add esp, 8
ret
Function at 0x40e740
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push esi
lea eax, [esp + 0x10]
push edi
mov edi, ecx
push eax
xor esi, esi
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e78c
cmp dword [esp + 0x24], 2
jne 0x40e78c
cmp dword [esp + 0x18], 6
jb 0x40e79a
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov esi, 1
push 0x65020c
jmp 0x40e7ae
mov eax, dword [edi + 0x1c]
pop edi
pop esi
add esp, 0xa0
ret 4
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x650050
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40e7dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword [ecx], 1
add esp, 0xa0
ret 4
call fcn.00434b10
mov edi, dword [esp + 0xac]
neg eax
sbb eax, eax
mov dword [edi], 0
and eax, 0x100
add eax, 0x20019
test esi, esi
je 0x40e810
lea edx, [esp + 8]
push edx
push eax
push 0
push 0x6501e0
jmp 0x40e81d
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0x650024
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e875
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x650194
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e86a
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40e86a
cmp eax, 2
je 0x40e86a
mov dword [edi], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret 4
Function at 0x40f690
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
mov dword [esi + 0x34], edi
je 0x40f6af
call fcn.0040f8e0
test eax, eax
jne 0x40f6af
mov ecx, esi
call fcn.00411240
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f779
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40f779
push edi
push 0x6503dc
mov ecx, esi
call fcn.0040fc00
mov ecx, dword [0x67a050]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push 0x6503cc
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f728
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x64f5d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [0x67a050]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x6503cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40f779
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x64f5d4
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x40f790
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5acab0
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push 0x650450
push reloc.WSOCK32.dll_accept
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40f7de
mov ecx, dword [esp + 0xc]
push 0x65043c
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push 0x65040c
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
je 0x40f80d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x650404
push ecx
call esi
test eax, eax
jne 0x40f84f
mov edx, dword [esp + 8]
push 0x650400
push edx
call edi
mov eax, dword [esp + 8]
push 0x6503fc
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6503f4
push edx
call esi
test eax, eax
jne 0x40f87f
mov eax, dword [esp + 8]
push 0x650400
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x6503ec
push edx
call esi
test eax, eax
jne 0x40f8bb
mov eax, dword [esp + 8]
push 0x650400
push eax
call edi
mov ecx, dword [esp + 8]
push 0x6503fc
push ecx
call edi
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40f8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acacb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push 0x20019
push 0
push 0x6504d4
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x40fa5b
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push eax
push 0x6504ac
push edx
call esi
test eax, eax
jne 0x40fa5b
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
push 0x6504a0
push edx
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x40fa5b
cmp dword [ebp - 0x1c], 1
jne 0x40fa5b
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
call fcn.00434b10
test eax, eax
je 0x40fa0f
lea edx, [ebp - 0x18]
push edx
push 0x20119
push 0
push 0x6504d4
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40fa5b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push 0x6504ac
push ecx
call esi
test eax, eax
jne 0x40fa5b
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6504a0
push ecx
mov dword [ebp - 0x20], 4
call edi
test eax, eax
jne 0x40fa5b
cmp dword [ebp - 0x1c], 1
jne 0x40fa5b
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 0x18]
push eax
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fa70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acb11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
push ebx
mov edx, dword [0x67a050]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
mov ebx, 4
push edi
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40fadc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
jne 0x40fb76
mov ecx, dword [0x67a050]
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0
push edi
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40fb5e
lea ecx, [ebp - 0x228]
call fcn.00480870
mov edx, dword [0x6754d4]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push 0x650564
push eax
mov byte [ebp - 4], 2
call fcn.00593b08
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x228]
call fcn.00480980
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0059ad3d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00480970
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x228]
call fcn.00480870
mov edx, dword [0x6754d4]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push 0x650540
push eax
mov byte [ebp - 4], bl
call fcn.00593b08
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x228]
call fcn.00480980
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0059ad3d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
jmp 0x40fb59

Function at 0x40fc00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acb3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 4
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x67a050]
push 4
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40fc66
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x220]
call fcn.00480870
mov ecx, dword [0x6754d4]
mov dword [ebp + 0xc], ecx
push esi
lea edx, [ebp + 0xc]
push 0x6505b4
push edx
mov byte [ebp - 4], 2
call fcn.00593b08
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x220]
push 1
push eax
call fcn.00480980
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0059ad3d
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], bl
call fcn.00480970
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4100a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
mov ecx, esi
call fcn.00401070
mov eax, 0x679a28
test eax, eax
je 0x410110
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x410110
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push eax
push 0xffffffffffffffff
push 0x679a28
push eax
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x410110
lea ecx, [eax + eax + 2]
push ecx
call fcn.005970d9
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x410110
mov edx, dword [esi + 8]
push edx
push eax
push 0xffffffffffffffff
push 0x679a28
push 0
push 0
call edi
mov dword [esi + 8], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push 0x650734
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41013e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
mov ebx, 0x208
push 0x650714
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x4101f0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x6506f0
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x4101c1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x6506d0
push eax
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x4101f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
lea ecx, [esp + 0x14]
push 0x6506c8
push ecx
call fcn.0057f137
add esp, 8
test eax, eax
je 0x410249
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.0057e85a
add esp, 8
test eax, eax
je 0x4101f0
mov word [eax + 2], 0
lea eax, [esp + 0x14]
push eax
call fcn.0057e90a
add esp, 4
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x410217
lea ecx, [esp + 0x14]
push 0x64f038
push ecx
call fcn.0057ea80
add esp, 8
lea edx, [esp + 0x14]
push 0x6506a4
push edx
push 0x64f030
mov ecx, esi
call fcn.00410280
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x6506d0
push edx
mov dword [esp + 0x24], ebx
call edi
test eax, eax
je 0x4101f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret 4
Function at 0x411240
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push 0x6504d4
mov edi, ecx
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x411299
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push eax
push 0xf003f
push eax
push 0x679a28
push eax
push 0x6504ac
push edx
call esi
test eax, eax
je 0x4112b7
cmp eax, 5
je 0x4113d6
push eax
push 0x65090c
mov ecx, edi
call fcn.004113e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [0x650900]
mov ecx, dword [0x650904]
mov dx, word [0x650908]
mov dword [esp + 0x20], eax
mov al, byte [0x65090a]
mov dword [esp + 0x24], ecx
mov byte [esp + 0x2a], al
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov word [esp + 0x28], dx
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push eax
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push 0x6504a0
push ecx
mov dword [esp + 0x30], 1
call ebx
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
call fcn.00434b10
test eax, eax
je 0x4113d6
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0x679a28
push 0
push 0x6504d4
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x4113d6
lea edx, [esp + 0x10]
push eax
push edx
push eax
push 0xf013f
push eax
push 0x679a28
push eax
mov eax, dword [esp + 0x30]
push 0x6504ac
push eax
call esi
test eax, eax
jne 0x4113d6
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push eax
push edx
call ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push 0
push 0x6504a0
push ecx
mov dword [esp + 0x34], 1
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x412860
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [0x67a050]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push 0x650d6c
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4128a0
mov eax, dword [esp + 4]
test eax, eax
je 0x4128a0
mov eax, 1
add esp, 8
ret
xor eax, eax
add esp, 8
ret