joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e598
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0001416c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x2e5b1
test al, 0x10
je 0x2e5b5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x307b4
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x30a01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00013d6c
cmp dword [0x16aaf4], 1
jne 0x307ff
cmp dword [0x16aaf8], 4
jle 0x3083e
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.0001416c
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x309e3
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.00013ee0
jmp 0x309e3
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00012aac
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x309e3
cmp byte [ebp - 0x15], 0x5a
ja 0x309e3
mov eax, dword [ebp - 4]
call fcn.00013fa8
cmp eax, 3
jl 0x309e3
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x309e3
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x309e3
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x309e3
xor edx, edx
push ebp
push 0x309dc
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.0001271c
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x309be
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.mpr.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x3090d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0001274c
jmp 0x308d1
test eax, eax
je 0x30920
call fcn.000137e8
call fcn.000137e8
jmp 0x309e3
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jl 0x308d1
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x3099c
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00012aac
cmp al, byte [ebp - 0x15]
jne 0x3099c
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00013fa8
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.000141b0
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.00013ee0
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00013ff4
call fcn.000137e8
call fcn.000137e8
jmp 0x309e3
inc edi
dec esi
jne 0x3092b
jmp 0x308d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30a08
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00013d3c
ret
Function at 0x30b0c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00013e00
add esp, 0x104
pop ebx
ret

Function at 0x3192c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x31965
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00013e00
jmp 0x3196e
mov eax, ebx
mov edx, esi
call fcn.00013d6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x31978
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x31999
mov al, byte [esp]
jmp 0x3199b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x3c448
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x3c458
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x3c46d
mov byte [ebx + 0xd], 0
pop ebx
ret
Function at 0x406c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40726
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x2514f8]
cmp byte [eax], 0
je 0x406f4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 8], eax
jmp 0x40710
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00013f10
mov eax, dword [ebp - 0xc]
call fcn.0001416c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4072d
lea eax, [ebp - 0xc]
call fcn.00013d18
ret

Function at 0x40a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.000180e4
cmp ax, 0xffff
jne 0x40a8a
mov eax, dword [ebp - 8]
neg eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shr eax, 4
and eax, 0xffff
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
and eax, 0xf
mov dword [ebp - 0x20], eax
push 6
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40b5a
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40b5a
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x40b10
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
add eax, eax
add eax, dword [ebp - 0x1c]
add eax, 2
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x24]
dec dword [ebp - 0x2c]
jne 0x40af7
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov dword [ebp - 0x10], eax
add dword [ebp - 0x1c], 2
cmp dword [ebp - 0xc], 0
je 0x40b5a
cmp dword [ebp + 8], 0
jle 0x40b5a
mov eax, dword [ebp + 8]
dec eax
mov edx, dword [ebp - 0x10]
call fcn.0003f104
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40b4e
mov ecx, dword [ebp - 0x10]
add ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.000180f8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov word [eax + edx*2], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x41d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x41d8f
lea eax, [ebp - 4]
push eax
push 0x40
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x41d63
call fcn.0003f584
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 6
call fcn.0001291c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x41d8f
call fcn.0003f584
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b4ac
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4b63b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b612
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4b511
cmp dword [ebp - 0xc], 0
je 0x4b4fe
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4b600
mov edi, 0xa
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.000271f0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call fcn.0004b438
mov ebx, eax
test ebx, ebx
jne 0x4b589
cmp dword [ebp - 8], 1
jbe 0x4b589
cmp dword [ebp - 8], 0x9c4000
ja 0x4b589
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00027218
mov edi, dword [ebp - 8]
add edi, 0x400
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.000271f0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call fcn.0004b438
mov ebx, eax
test ebx, ebx
je 0x4b5f6
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x16bef8
call sub.advapi32.dll_AllocateAndInitializeSid
xor ebx, ebx
xor esi, esi
jmp 0x4b5ca
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*8 + 4]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_EqualSid
mov ebx, eax
inc esi
test ebx, ebx
jne 0x4b5ed
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4b5e9
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4b5b6
jmp 0x4b5ed
pop edx
pop eax
jg 0x4b5b6
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_FreeSid
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00027218
neg ebx
sbb eax, eax
neg eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b61e
cmp dword [ebp - 0xc], 0
je 0x4b62d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b642
ret
Function at 0x4caf4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x4cb09
add esp, 0xfffffff0
call fcn.000132f0
mov ebx, ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
call fcn.0001442c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0001ba04
test al, al
jne 0x4cb99
xor eax, eax
push ebp
push 0x4cb8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xe], 0xff
mov byte [ebp - 0xd], 0xfe
push 0
push 0x80
push 2
push 0
push 1
push 0x10000000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00014620
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cb85
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0xe]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4cb99
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x4cbb1
call fcn.00013348
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d1c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4d2f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x4d2d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, 0x400
call fcn.000271f0
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x18]
call fcn.00026f98
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d2a7
mov dword [ebp - 0xc], 0x3ff
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4d308
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d2a7
cmp dword [ebp - 0x10], 1
jne 0x4d2a7
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00013ee0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.000273cc
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x4d334
call fcn.000273cc
mov edx, dword [ebp - 0x24]
pop eax
call fcn.000140b8
jne 0x4d2a7
mov byte [ebp - 1], 0
cmp dword [ebp - 8], 0
je 0x4d2b6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov edx, 0x400
call fcn.00027218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d2dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2fe
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00013d3c
ret
Function at 0x4d338
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4d46b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x4d446
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.000271f0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x18]
call fcn.00026f98
mov eax, dword [ebp - 0x18]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d41b
mov dword [ebp - 0x14], 0x3ff
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4d47c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d41b
cmp dword [ebp - 0xc], 1
jne 0x4d41b
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00013ee0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.000273cc
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x4d4d0
call fcn.000273cc
mov edx, dword [ebp - 0x24]
pop eax
call fcn.000140b8
jne 0x4d41b
mov byte [ebp - 1], 1
cmp dword [ebp - 0x10], 0
je 0x4d42a
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.00027218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d450
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d472
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00013d3c
ret

Function at 0x4d4d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4d588
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.00026f98
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4d55e
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x4d598
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d55e
mov bl, byte [ebp - 8]
and bl, 0xf
cmp dword [ebp - 0x10], 0
je 0x4d56d
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d58f
lea eax, [ebp - 0x14]
call fcn.00013d18
ret
Function at 0x4d5b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
mov dword [ebx], 0xffffffff
mov dword [esi], 0xffffffff
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0x4d6a8
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4d68b
mov dword [esp + 4], 4
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0x4d6e4
mov eax, dword [esp + 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d646
cmp dword [esp], 4
jne 0x4d646
mov eax, dword [esp + 0x10]
mov dword [ebx], eax
mov dword [esp + 4], 4
xor eax, eax
mov dword [esp], eax
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0x4d6f4
mov eax, dword [esp + 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4d68b
cmp dword [esp], 4
jne 0x4d68b
mov eax, dword [esp + 0x10]
mov dword [esi], eax
cmp dword [esp + 8], 0
je 0x4d69c
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [esp + 8], eax
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x4dbbc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4dc32
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0x4dc44
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
movzx eax, bx
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x4dc8c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dc3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dc98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xffffffec
mov bx, 0xd3d
push esp
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0
push 0
push 0x4dd44
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [esp + 4], 0xd3d
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x4dd8c
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4dd31
cmp dword [esp + 4], 0
jbe 0x4dd15
cmp dword [esp + 4], 0x3e8
jb 0x4dd26
cmp dword [esp + 4], 0xffff
jae 0x4dd26
cmp dword [esp + 0x10], 4
je 0x4dd2c
mov bx, 0xd3d
jmp 0x4dd31
mov bx, word [esp + 4]
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x14
pop ebx
ret

Function at 0x4dd98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov ebx, eax
mov esi, 2
mov eax, ebx
call fcn.00013d18
lea eax, [esp + 4]
mov edx, 0x2800
call fcn.000271f0
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
push 0x4de84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4de56
mov dword [esp + 8], 0x27ff
xor eax, eax
mov dword [esp], eax
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0x4debc
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4de56
cmp dword [esp], 1
jne 0x4de56
mov eax, ebx
mov edx, dword [esp + 4]
call fcn.00013ee0
mov edx, dword [ebx]
mov eax, 0x4ded0
call fcn.00014294
mov esi, eax
cmp esi, 3
jle 0x4de51
mov eax, dword [ebx]
call fcn.00013fa8
mov ecx, eax
mov eax, ebx
mov edx, esi
call fcn.000141f0
xor esi, esi
jmp 0x4de56
mov esi, 0xd
cmp dword [esp + 0xc], 0
je 0x4de67
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
mov edx, 0x2800
call fcn.00027218
mov eax, esi
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4ded4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4dedc
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4e01e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
push ebp
push 0x4dff7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x2514d0]
mov eax, dword [eax]
add eax, case.0x1ffea.3
push eax
push 0
lea eax, [ebp - 0x14]
call fcn.00026f98
mov eax, dword [ebp - 0x14]
call fcn.0001416c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4dfd9
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.000271f0
mov dword [ebp - 0x10], 0x3ff
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x4e030
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4dfcc
cmp dword [ebp - 8], 1
jne 0x4dfcc
cmp dword [ebp - 0x10], 0
jbe 0x4dfcc
cmp dword [ebp - 0x10], 0xc8
ja 0x4dfcc
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00013ee0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.000272e8
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.000273cc
mov eax, dword [ebp - 0x18]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x4e05c
call fcn.000273cc
mov edx, dword [ebp - 0x24]
pop eax
call fcn.000140b8
sete bl
lea eax, [ebp - 0xc]
mov edx, 0x400
call fcn.00027218
cmp dword [ebp - 4], 0
je 0x4dfe8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e003
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e025
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00013d3c
ret