joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467df8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x467e8c
push 0
mov eax, ebx
call fcn.00404c40
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x467e67
mov eax, esi
call fcn.00404a48
inc eax
push eax
mov eax, esi
call fcn.00404c40
push eax
push 1
push 0
mov eax, edi
call fcn.00404c40
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x467e82
mov ecx, dword [0x551964]
mov dl, 1
mov eax, dword [0x4663b4]
call fcn.0040d1a8
call fcn.0040412c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x467ea8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00404790
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404c40
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x467f4f
xor eax, eax
push ebp
push 0x467f48
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404dcc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404c40
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404c40
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x467f2a
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00404dcc
jmp 0x467f31
mov eax, ebx
call fcn.00404790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467f4f
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4894cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48964d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x54c210], 0
jne 0x48962a
push 0x553cc0
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x489623
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x54c210], 0
jne 0x48960b
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404dcc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404c40
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408e60
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x489664
call fcn.0040a1b0
mov eax, dword [ebp - 0xc]
call fcn.00404c40
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x48958c
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404dcc
jmp 0x4895c3
lea eax, [ebp - 8]
mov edx, 0x489684
call fcn.00404828
xor eax, eax
push ebp
push 0x4895b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00467fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4895c3
mov eax, dword [ebp - 8]
call fcn.00404c40
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x54c210], eax
cmp dword [0x54c210], 0
jne 0x4895f6
mov ecx, dword [0x551b54]
mov dl, 1
mov eax, dword [0x408208]
call fcn.0040d1a8
call fcn.0040412c
push 0x489690
mov eax, dword [0x54c210]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x553cd8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48962a
push 0x553cc0
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489654
lea eax, [ebp - 0x18]
call fcn.00404790
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047b4
ret

Function at 0x4898b0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xffffffb8
mov dword [esp], eax
mov eax, dword [0x551dd4]
cmp byte [eax], 0
je 0x48990a
mov eax, dword [0x5518fc]
call fcn.00402f50
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
call fcn.004099d0
push eax
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 8]
push eax
push 2
push 0x48994c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x489940
push 0x40
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x55184c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x553718]
call fcn.004062b4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x48
ret
Function at 0x48be5c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x54c9a3
lea ecx, [ebp - 0x200]
push ecx
call fcn.00489a58
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.00489a18
pop ecx
mov edx, 0x200
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.00489a18
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
push 0x54c9a5
lea ecx, [ebp - 0x200]
push ecx
call fcn.00489a58
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.00489a18
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.0048d884
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x48bf6d
push esi
call fcn.00489a18
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00489a18
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00489950
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x48bf44
xor eax, eax
jmp 0x48bff4
push esi
call fcn.00489a18
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00489a18
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004899e4
add esp, 0xc
jmp 0x48bfad
mov edi, dword [ebx + 0x24]
push edi
call fcn.00489a18
pop ecx
push eax
push esi
call fcn.00489a18
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00489a18
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0048998c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x48bfad
xor eax, eax
jmp 0x48bff4
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.00489a58
add esp, 8
push 0x54c9a7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00489a58
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.00489a58
add esp, 8
push 0x54c9a9
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.00489a58
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48e9e5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4001f
push 0
push 0
push 0
push eax
push 0x80000000
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x48ea39
push esi
call fcn.00489a18
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4c3534
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4c356f
cmp dword [ebx + 0x5c], 0
je 0x4c356f
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004bbbb8
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4c36ba
cmp dword [ebx + 0x7c], 0
jne 0x4c3595
mov dl, 1
mov eax, dword [0x416a28]
call fcn.0040386c
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4c3693
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4c36c0]
push eax
mov al, byte [0x4c36c4]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x551b84]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x48537c]
call fcn.0048730c
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4c368c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004bbbb8
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004bbbb8
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4b95fc]
call fcn.004060ac
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4c365f
mov edx, dword [0x551ecc]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4c3670
cmp eax, 0x1007
jne 0x4c366c
mov byte [ebx + 0x74], 0x18
jmp 0x4c3670
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c36ba
mov eax, dword [ebp - 4]
call fcn.0040389c
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004bbbb8
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cfd48
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
mov eax, ebx
call fcn.00404c40
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4cfd81
mov eax, esi
call fcn.00404c40
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edx
pop esi
pop ebx
ret
Function at 0x4d3b5c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d3cc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404828
mov eax, dword [ebp - 0x10]
call fcn.004d37ac
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4d3bae
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404ce0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d4094
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d3c83
xor eax, eax
push ebp
push 0x4d3c7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004d3958
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004d3cf4
test al, al
je 0x4d3c5a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404880
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d3c5a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4d3c54
mov eax, dword [ebp - 0x14]
call fcn.00404c40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404980
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004d3b5c
dec ebx
cmp ebx, 0xffffffff
jne 0x4d3c0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3c83
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004d3958
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404c40
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004d3944
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3ccc
lea eax, [ebp - 0x3c]
call fcn.00404790
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004047b4
ret
Function at 0x4d3c83
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d3cc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404828
mov eax, dword [ebp - 0x10]
call fcn.004d37ac
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4d3bae
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00404ce0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d4094
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d3c83
xor eax, eax
push ebp
push 0x4d3c7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004d3958
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004d3cf4
test al, al
je 0x4d3c5a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404880
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d3c5a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404c40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x4d3c54
mov eax, dword [ebp - 0x14]
call fcn.00404c40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404980
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004d3b5c
dec ebx
cmp ebx, 0xffffffff
jne 0x4d3c0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3c83
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004d3958
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404c40
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.004d3944
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3ccc
lea eax, [ebp - 0x3c]
call fcn.00404790
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004047b4
ret

Function at 0x4d3cf4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0040310c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x55204c]
cmp byte [edx + 0xc], 0
je 0x4d3d58
mov edx, dword [0x552034]
cmp dword [edx], 2
jne 0x4d3d58
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4d3d5c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d3e14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004d3cf4
test al, al
je 0x4d3df6
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404880
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4d3df6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404c40
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404c40
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404980
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4d3daf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3e1b
lea eax, [ebp - 0x2c]
call fcn.00404790
lea eax, [ebp - 0xc]
call fcn.00404790
ret

Function at 0x4d3fa8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.004d37c0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4d4006
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x551bd0]
mov dl, 1
mov eax, dword [0x4d364c]
call fcn.0040d1e4
call fcn.0040412c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d4010
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4d4068
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x552058]
mov dl, 1
mov eax, dword [0x4d364c]
call fcn.0040d1e4
call fcn.0040412c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d37f0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4db79c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4db874
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x553e84], 0
jne 0x4db858
lea eax, [ebp - 4]
mov edx, 0x4db88c
call fcn.00404828
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c40
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4db858
mov eax, ebx
call fcn.00402808
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4db851
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4db83b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4db89c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4db83b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x553e84], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db858
mov eax, dword [ebp - 0xc]
call fcn.00402828
ret
mov ebx, dword [0x553e84]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db87b
lea eax, [ebp - 4]
call fcn.00404790
ret

Function at 0x4ea7a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4ea7dc]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4ea7ba
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4ea7c9
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4ea7d8
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4ebbe8
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x551cfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ebc0e
push 0
mov eax, dword [0x551cfc]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4ebfb8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4ebfdd
cmp dword [esp + 4], 5
jb 0x4ebfdd
mov al, 1
jmp 0x4ebfdf
xor eax, eax
add esp, 0x94
ret
Function at 0x4fd3d8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4fd461
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x553efc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4fd44b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c898
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4fd478
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x551e24]
mov dl, 1
mov eax, dword [0x4fc53c]
call fcn.0040d1e4
call fcn.0040412c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd468
lea eax, [ebp - 0x1c]
call fcn.00404790
ret

Function at 0x4fdb2c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004fda50
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403a98
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x4fdb7b
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x274d
jne 0x4fdb7b
mov ecx, 0x4fdbac
mov dl, 1
mov eax, dword [0x408270]
call fcn.0040d0ec
call fcn.0040412c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4fdb9e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403a98
pop esi
pop ebx
ret

Function at 0x4fdbfc
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004fd8d4
xor eax, eax
push ebp
push 0x4fdc77
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x4fdc32
call fcn.004041d8
jmp 0x4fdc7e
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x4fdc61
mov ax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fdc7e
mov eax, dword [ebp - 4]
call fcn.004fd8e0
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4fdde4
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404c40
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0040310c
test ebx, ebx
je 0x4fde2f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret