joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f35e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x650]
mov dword [ebp - 0x10], esp
cmp al, bl
je 0x4f36d8
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x624]
push eax
push ecx
mov byte [esi + 0x650], bl
mov edx, dword [0x67a050]
push ebx
push ebx
push 0x666ebc
push edx
mov dword [ebp - 0x14], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f36d8
cmp dword [esi + 0x62c], 3
jne 0x4f365e
push 3
mov ecx, esi
call fcn.0059a446
jmp 0x4f3688
mov eax, dword [esi + 0x644]
mov edx, dword [esi + 0x64c]
mov ecx, dword [esi + 0x640]
sub edx, eax
push 4
push edx
mov edx, dword [esi + 0x648]
sub edx, ecx
push edx
push eax
push ecx
push ebx
mov ecx, esi
call fcn.0059a3f7
mov ecx, dword [esi + 0x84]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
push ecx
call edi
mov eax, dword [esi + 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
call edi
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x20]
mov edx, ecx
mov edi, dword [ebp - 0x24]
sub edx, eax
sub eax, ecx
mov ecx, dword [ebp - 0x28]
push ebx
push edx
mov edx, dword [ebp - 0x1c]
lea eax, [eax + ecx - 0x55]
mov ecx, dword [ebp - 0x2c]
mov ebx, edx
sub ecx, edx
sub ebx, edi
push ebx
lea edx, [ecx + edi - 0x23]
push eax
push edx
lea ecx, [esi + 0x68]
call fcn.0059a3b6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f3710
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x5f4]
mov dword [ebp - 4], edi
cmp eax, 4
je 0x4f38a4
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x679a28
push edi
push 0x666f0c
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4f37d0
lea ecx, [ebp - 0x224]
call fcn.00480870
push 1
push 0x65620c
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.00480980
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0
call fcn.00480970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, 7
jge 0x4f37f6
mov edx, dword [esi + 0x520]
push 0
push edi
push 0x101d
push edx
call ebx
mov dword [esi + edi*4 + 0x654], eax
inc edi
jmp 0x4f37d6
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x654]
push 4
push eax
push 4
push 0
push 0x656200
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x658]
push 4
push edx
push 4
push 0
push 0x6561f4
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x65c]
push 4
push ecx
push 4
push 0
push 0x6561ec
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x660]
push 4
push eax
push 4
push 0
push 0x6568a8
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x664]
push 4
push edx
push 4
push 0
push 0x6561d8
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x668]
push 4
push ecx
push 4
push 0
push 0x651fe8
push edx
call edi
mov eax, dword [ebp - 0x14]
add esi, 0x66c
push 4
push esi
push 4
push 0
push 0x6561e4
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f7d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov edx, dword [0x67a050]
push edi
mov edi, ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0x666fdc
push edx
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x4f7d61
mov eax, dword [esp + 0xc]
test eax, eax
setne al
mov byte [edi + 4], al
mov eax, dword [0x67a050]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0
push 0x666fd0
push eax
mov dword [esp + 0x20], 4
call esi
test eax, eax
jne 0x4f7d8c
mov byte [edi + 5], 1
pop edi
pop esi
add esp, 8
ret
Function at 0x4fa9a0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push edi
mov edi, ecx
push eax
push 0
push edi
push 0x4faa10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4fa9ef
mov eax, dword [0x67a46c]
test eax, eax
jne 0x4fa9f1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x67a46c]
test eax, eax
je 0x4fa9cf
mov dword [edi + 0x24], eax
pop esi
mov dword [0x67a46c], 0
pop edi
pop ecx
ret
xor eax, eax
mov dword [edi + 0x24], eax
mov dword [0x67a46c], 0
pop edi
pop ecx
ret

Function at 0x4fad50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf186
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0x5ecbe4
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x11
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xa
mov dword [ebp - 4], eax
mov dword [esi + 0x28], 0x6190c4
mov dword [esi + 0x2c], eax
mov dword [esi], 0x5ecbe0
mov byte [ebp - 4], 2
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
call fcn.005a4ddf
call fcn.005a4ddf
mov eax, dword [eax + 0xc]
push 0x120
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fbdb0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bf2e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebx + 4]
cmp esi, 0xffffffff
je 0x4fbe0a
mov edx, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x20]
push 0
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
push 0
push ecx
push 2
push 0x64fb50
push edx
call esi
pop edi
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4fbe20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf30b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 4]
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x4fbf2b
push 0x6672a0
lea ecx, [ebp - 0x14]
call fcn.0059adab
mov eax, dword [0x6754d4]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 1
push ecx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.0052b350
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push edx
call fcn.0059b07b
cmp dword [esi + 0x38], ebx
je 0x4fbeab
push 0x667294
lea ecx, [ebp - 0x14]
call fcn.0059b03f
mov eax, dword [esi + 0x38]
lea ecx, [ebp - 0x14]
push eax
call fcn.0059b03f
cmp dword [esi + 0x3c], ebx
je 0x4fbec9
push 0x667288
lea ecx, [ebp - 0x14]
call fcn.0059b03f
mov ecx, dword [esi + 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0059b03f
mov edx, dword [esi + 0x17c]
add esi, 0x17c
cmp dword [edx - 8], ebx
je 0x4fbef0
push 0x667280
lea ecx, [ebp - 0x14]
call fcn.0059b03f
push esi
lea ecx, [ebp - 0x14]
call fcn.0059b07b
push 0x667278
lea ecx, [ebp - 0x14]
call fcn.0059b03f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ebx
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0059ad3d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4fe0f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5bf4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
push ebx
mov edx, dword [0x67a050]
push ebp
mov ebp, ecx
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x7e8]
push eax
push ecx
push 0
push 0
mov esi, 0x7d0
push 0x653480
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4fe14c
xor eax, eax
jmp 0x4fe24a
mov ebx, dword [esp + 0xfcc]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x4fe24a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x30000000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x1c]
and ecx, 3
lea eax, [esp + 0x1c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x7e8]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.004fdfc0
mov ebp, eax
test ebp, ebp
jne 0x4fe248
push 0x3f
push ebx
call fcn.0057e940
add esp, 8
test eax, eax
je 0x4fe248
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30000000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x1c]
and ecx, 3
mov dword [esp + 0x14], 0x7d0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
lea ecx, [esp + 0x18]
push 0x3f
push ecx
call fcn.0057e940
add esp, 8
test eax, eax
je 0x4fe248
mov ecx, dword [esp + 0x14]
mov byte [eax], 0
lea edx, [esp + 0x7e8]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004fdfc0
mov ebp, eax
mov eax, ebp
mov ecx, dword [esp + 0xfbc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfb8
ret 4
Function at 0x4fe270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfac
mov edx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x14], ecx
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x10], esp
cmp ecx, 0x7d0
mov dword [ebp - 4], 0
jb 0x4fe2c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e8]
lea ebx, [ebp - 0x7e8]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x25
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x7e8]
push ecx
call fcn.0057e940
add esp, 8
test eax, eax
je 0x4fe39b
lea edx, [ebp - 0x7e8]
push edx
call fcn.004fcb50
add esp, 4
mov bl, al
push 0x657810
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4fe360
push 0x6673b8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4fe357
push 0x2100000
push 0
lea ecx, [ebp - 0x7e8]
push 0
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4fe384
lea edx, [ebp + 8]
push 0x30000000
lea eax, [ebp - 0x7e8]
push edx
lea ecx, [ebp - 0x7e8]
push eax
push ecx
mov dword [ebp + 8], 0x7d0
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test bl, bl
je 0x4fe39b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e8]
push edx
push eax
call fcn.00552960
add esp, 8
lea ecx, [ebp - 0x7e8]
push 0x3f
push ecx
call fcn.0057e940
add esp, 8
test eax, eax
je 0x4fe3cb
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x67a050]
test eax, eax
jne 0x4fe411
push 0
push 0x67a050
push 0
push 0xf003f
push 0
push 0
push 0
push 0x652748
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4fe411
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x67a050]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xfb8]
push edx
push eax
push 0
push 0
push 0x653480
push ecx
mov dword [ebp - 0x18], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4fe452
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0xfb8]
lea eax, [ebp - 0x7e8]
push edx
push eax
call fcn.004fdfc0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fe4c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7d4
mov edx, dword [0x67a050]
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0
push 0x653480
push edx
mov dword [esp + 0x1c], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4fe501
xor eax, eax
pop esi
add esp, 0x7d4
ret 4
mov ecx, dword [esp + 0x7dc]
lea eax, [esp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004fdfc0
pop esi
add esp, 0x7d4
ret 4
Function at 0x4fe880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf54e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [edi], 0x5ed4f8
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 1
call fcn.0057e90a
add esp, 4
test eax, eax
jne 0x4fe8de
lea ecx, [edi + 4]
call fcn.005958e8
jmp 0x4fe9b6
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x4fe9b6
mov eax, dword [0x6754d4]
mov dword [ebp - 0x14], eax
mov ebx, dword [edi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4fe94e
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.0059ae76
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x664e04
push esi
call edi
jmp 0x4fe917
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0059ad3d
jmp 0x4fe995
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x4fe9a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.005958e8
mov edi, dword [ebp - 0x18]
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.0059591d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fead0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf5ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0xa
lea ecx, [edi + 4]
mov dword [ebp - 0x1c], edi
call fcn.005958a9
lea esi, [edi + 0x20]
push 0x679a2c
push esi
mov dword [ebp - 4], 0
mov dword [edi], 0x5ed7fc
mov dword [ebp - 0x20], 0xffffffff
call fcn.0057f81e
mov eax, dword [0x67a028]
add esp, 8
test eax, eax
mov byte [ebp - 4], 1
jne 0x4feb3a
mov eax, 0x67a02c
push 0x667590
push eax
push 0x64fde0
push esi
call fcn.0057f81e
add esp, 0x10
lea ecx, [ebp - 0x14]
push 0x679a28
call fcn.0059adab
mov eax, dword [0x6754d4]
mov dword [ebp - 0x18], eax
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x20], ebx
jne 0x4febb2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0059ad3d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0059ad3d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x428]
push eax
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x428]
push ecx
push 0x3ff
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fec58
mov eax, dword [ebp - 0x28]
test eax, eax
jbe 0x4fec58
lea eax, [ebp - 0x428]
lea ecx, [ebp - 0x14]
push eax
call fcn.0059b03f
push 0xa
lea ecx, [ebp - 0x14]
call fcn.0059b12a
mov esi, eax
cmp esi, 0xffffffff
jle 0x4febb2
test esi, esi
jne 0x4fec15
push 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00593496
jmp 0x4febf3
lea ecx, [ebp - 0x24]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0059370a
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0059ae76
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.0059ad3d
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [eax + 4]
call fcn.00595a52
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0
call fcn.00593496
jmp 0x4febf3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0059ad3d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0059ad3d
jmp 0x4fecab
cmp ebx, 0xffffffff
je 0x4fecb7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fecf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf5de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [edi], 0x5ed7fc
lea esi, [edi + 0x20]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x1c], 0xffffffff
mov byte [ebp - 4], 1
call fcn.0057e90a
add esp, 4
test eax, eax
jne 0x4fed4e
lea ecx, [edi + 4]
call fcn.005958e8
jmp 0x4fee26
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x1c], esi
je 0x4fee26
mov eax, dword [0x6754d4]
mov dword [ebp - 0x14], eax
mov ebx, dword [edi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4fedbe
mov eax, ebx
mov ebx, dword [ebx]
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.0059ae76
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push 0
push ecx
mov edx, dword [eax - 8]
push edx
push eax
push esi
call edi
lea eax, [ebp - 0x20]
push 0
push eax
push 1
push 0x664e04
push esi
call edi
jmp 0x4fed87
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0059ad3d
jmp 0x4fee05
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
je 0x4fee18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
add ecx, 4
call fcn.005958e8
mov edi, dword [ebp - 0x18]
lea ecx, [edi + 4]
mov dword [ebp - 4], 0xffffffff
call fcn.0059591d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bfa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x1c]
mov edx, dword [esi + 0x74]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x54]
xor ebx, ebx
push eax
push ecx
push ebx
push ebx
push 0x655480
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x10
call edi
test eax, eax
jne 0x505de1
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
push 0x655478
push ecx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x74]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
cmp eax, ebx
jne 0x505cfb
mov eax, dword [ebp - 0x5c]
cmp eax, 0xffffffff
jne 0x505d6f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
fild qword [ebp - 0x24]
fmul qword [0x5ee068]
fcom qword [esi + 0x50]
fnstsw ax
test ah, 1
je 0x505cf9
fld qword [esi + 0x50]
fsub st(1)
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
fstp st(0)
mov eax, dword [ebp - 0x50]
cmp eax, 0xffffffff
je 0x505de1
push eax
lea ecx, [ebp - 0x44]
push 0x64eff4
push ecx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push edx
mov edx, dword [esi + 0x74]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [ebp - 0x18], 0x10
call edi
test eax, eax
jne 0x505de1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x505c92
cmp eax, 0xffffffff
je 0x505c92
sub eax, ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], eax
fild qword [ebp - 0x34]
fmul qword [0x5ee068]
fsubr qword [esi + 0x18]
fstp qword [esi + 0x18]
jmp 0x505c92
mov ecx, dword [ebp - 0x4c]
cmp eax, ecx
jbe 0x505d92
sub eax, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
fild qword [ebp - 0x2c]
fmul qword [0x5ee068]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
jmp 0x505cfb
jae 0x505cfb
mov edx, dword [0x6754d4]
mov dword [ebp - 0x14], edx
push eax
mov eax, dword [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x54]
push eax
push ecx
lea edx, [ebp - 0x14]
push 0x668238
push edx
mov byte [ebp - 4], 1
call fcn.00593b08
mov eax, dword [ebp - 0x14]
add esp, 0x18
mov ecx, esi
push eax
call fcn.00502040
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0059ad3d
jmp 0x505cfb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x506d60
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [ecx + 0x74]
sub esp, 0x64
test eax, eax
push esi
lea esi, [ecx + 0x74]
je 0x506de7
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x506d8a
push eax
lea eax, [esp + 0xc]
push 0x6680a8
push eax
call fcn.0057f2ea
add esp, 0xc
jmp 0x506da4
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
push edx
push eax
lea ecx, [esp + 0x10]
push 0x667eec
push ecx
call fcn.0057f2ea
add esp, 0x10
mov eax, dword [esi]
test eax, eax
je 0x506db1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 8]
push edx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push esi
push 0
push 0xf003f
push 0
push 0x679a28
push 0
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop esi
add esp, 0x64
ret