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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eca00
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
movzx ecx, cl
push ebx
neg ecx
sbb ecx, ecx
lea eax, [ebp - 0x10]
push eax
push ebx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push ebx
push ebx
push ebx
push str.SOFTWARETpspCln
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea esi, [ebx + 0x10]
cmp eax, ebx
je 0x4201ec
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x4201b2
mov edx, dword [ebp + 8]
push edx
call fcn.00482674
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x4201d7
mov eax, dword [ebp + 0x24]
push eax
call fcn.00482674
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov ecx, dword [ebp + 0x24]
cmp dword [ebp + 0x38], esi
jae 0x4201f7
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x420202
lea eax, [ebp + 8]
mov edx, dword [ebp + 0x34]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x420267
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x42022d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00482674
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x4201d7
mov edx, dword [ebp + 0x24]
push edx
call fcn.00482674
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
cmp dword [ebp + 0x1c], esi
jb 0x420285
mov ecx, dword [ebp + 8]
push ecx
call fcn.00482674
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x4202aa
mov edx, dword [ebp + 0x24]
push edx
call fcn.00482674
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x4240c0
Capabilities:
Parse pe header
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4240e0
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4240e6
push str.Not_a_valid_executable_file._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x424106
push str.No_PE_header_found._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x34]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x42414d
mov ecx, dword [edi + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x42414d
push str.Cant_reserve_memory
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0x828
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
xor eax, eax
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [edi + 0x50]
push 4
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x50]
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ecx, dword [edi + 0x54]
push 4
push 0x1000
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
je 0x424255
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x54]
add edx, dword [ecx + 0x3c]
push edx
push ecx
push eax
call fcn.00486940
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push edi
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], ebx
call fcn.00423d80
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x4241e2
push eax
mov eax, esi
call fcn.00423f10
add esp, 4
push esi
call fcn.00423fa0
add esp, 4
test eax, eax
jne 0x424208
push str.Cant_BuildImportTable
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call fcn.00424320
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00423e40
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x424265
add eax, ebx
jne 0x424237
push str.Library_has_no_entry_point._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call fcn.00424320
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 1
push ebx
mov dword [esi + 0x14], eax
call eax
test eax, eax
jne 0x42425e
push str.Cant_attach_library._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call fcn.00424320
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4247d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x25
push eax
mov dword [ebp - 0x210], ecx
call fcn.004857c2
mov esi, eax
add esp, 8
test esi, esi
je 0x4248c6
push edi
lea edx, [esi + 1]
push 0x25
push edx
call fcn.004857c2
mov edi, eax
add esp, 8
test edi, edi
jne 0x424829
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret 4
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.004868c0
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.004868c0
mov edx, edi
sub edx, esi
inc edx
push edx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004856f8
add esp, 0x24
push 0x104
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x424895
mov ecx, dword [ebp - 0x210]
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00404020
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004822c9
mov esp, ebp
pop ebp
ret 4
Function at 0x4252d0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x518418
push 0x48bd00
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51f584]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov edi, ecx
test eax, eax
je 0x4254a8
test edi, edi
je 0x4254a8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], 0x7530
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 1
push edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
call ebx
test eax, eax
jne 0x4254a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xea
jne 0x4253a3
mov edx, dword [ebp - 0x44]
push edx
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4253a3
mov dword [ebp - 4], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push esi
push 1
push edi
call ebx
test eax, eax
jne 0x4253aa
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x51f584
call fcn.0048fd90
add esp, 0xc
xor eax, eax
jmp 0x4254ad
xor ebx, ebx
mov dword [ebp - 0x48], ebx
nop
cmp ebx, dword [ebp - 0x50]
jae 0x42549c
lea ecx, [ebx + ebx*8]
lea esi, [esi + ecx*4]
mov ecx, 9
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
push 0x24
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
jne 0x425402
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x51f584
call fcn.0048fd90
add esp, 0xc
xor eax, eax
jmp 0x4254ad
mov edi, 1
mov dword [ebp - 4], edi
lea edx, [ebp - 0x40]
push edx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x425390
mov edi, edi
cmp dword [ebp - 0x3c], edi
je 0x425470
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edx, [ebp - 0x44]
push edx
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4253e8
cmp dword [ebp - 0x3c], edi
je 0x425470
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x60]
jbe 0x425420
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x51f584
call fcn.0048fd90
add esp, 0xc
xor eax, eax
jmp 0x4254ad
mov dword [ebp - 4], 0
call fcn.00425494
add ebx, edi
mov dword [ebp - 0x48], ebx
mov esi, dword [ebp - 0x4c]
jmp 0x4253b0
mov dword [ebp - 4], 0xfffffffe
call fcn.004254cc
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x425750
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x42579c
push 0x2c
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4257b2
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea eax, [ebp - 0x34]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x425879
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x425879
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
cmp eax, 3
jne 0x42581c
mov edx, dword [ebp - 0x10]
push edx
call ebx
lea eax, [ebp - 0x34]
push eax
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 0
push esi
call edi
test eax, eax
je 0x425876
cmp dword [ebp - 0x24], 1
je 0x425876
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x425876
cmp dword [ebp - 0x24], 3
je 0x4257e7
mov edx, dword [ebp - 0x30]
push edx
mov ecx, esi
call fcn.004252d0
add esp, 4
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x425876
cmp dword [ebp - 0x24], 1
je 0x425876
mov ecx, dword [ebp - 0x10]
push ecx
call ebx
lea edx, [ebp - 0x34]
push edx
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call edi
test eax, eax
je 0x425876
cmp dword [ebp - 0x24], 1
je 0x425876
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp - 0x2c]
cmp eax, 0x7530
ja 0x425876
cmp dword [ebp - 0x24], 1
jne 0x425841
mov ebx, dword [ebp - 0x30]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x448860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x448867
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x44893d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50be80]
add ecx, 8
sub edx, 8
dec esi
jne 0x448880
pop edi
test edx, edx
je 0x44895a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x50be80]
inc ecx
dec edx
jne 0x448941
not eax
pop esi
ret

Function at 0x448960
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50be80]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x50be80]
mov dword [edx + 8], ecx
ret

Function at 0x4489b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x50be80]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x50be80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x449190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x4491c6
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4491bc
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x4491d7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.00486940
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x449200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x449233
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44922e
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x44925e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x449245
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.00486940
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x449273
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x44926d
cmp byte [esi + 8], 0
je 0x44926d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x449310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x449357
cmp byte [esi + 1], 0
je 0x44935f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x449372
cmp byte [esi + 1], 0
je 0x449366
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x44937a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x449331
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x44937a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x44938c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.00484b84
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4493a9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x4494bd
jmp 0x4493c9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x4493d8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x4493ef
mov ebx, 0x404
cmp byte [esi], 0
je 0x449414
cmp byte [esi + 1], 0
je 0x4494bd
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x449417
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x449440
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44943b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x449469
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x449451
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.00486940
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x4494bd
lea eax, [ebx - 3]
test eax, eax
js 0x4494ab
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x44949f
cmp byte [eax + ecx + 1], 0x4b
jne 0x44949f
cmp byte [eax + ecx + 2], 5
jne 0x44949f
cmp byte [eax + ecx + 3], 6
je 0x4494a5
test eax, eax
jns 0x449480
jmp 0x4494ab
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4494bd
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x4493c0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00484b0a
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x44a3ff
cmp dword [esi + 4], 0xffffffff
jne 0x44a3ff
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44a370
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x44a3a1
cmp al, 0x2f
je 0x44a3a1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x44a390
mov ax, word [0x50e3a0]
mov word [edi], ax
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x44a3c5
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x44a3c5
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edi
push edx
push ebx
call fcn.00449080
add esp, 0x10
test eax, eax
jne 0x44a3e4
mov eax, dword [ebp + 0xc]
pop edi
pop ecx
pop ebp
ret 8
call fcn.004494e0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8

Function at 0x44aaa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44aad4
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44aad4
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x44ab8e
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x44aaeb
cmp al, 0x5c
jne 0x44aaed
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x44aae3
cmp esi, ebx
je 0x44ab21
sub esi, ebx
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00486940
lea ecx, [ebp - 0x20c]
push ecx
push edi
mov byte [ebp + esi - 0x20c], 0
call fcn.0044aaa0
add esp, 0x14
mov byte [ebp - 0x108], 0
test edi, edi
je 0x44ab40
lea edx, [ebp - 0x108]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44ab36
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44ab44
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x44ab54
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x44ab8e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44b840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed34e
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 1
test byte [0x527408], al
jne 0x44b8ae
or dword [0x527408], eax
push 0x4f9830
mov dword [0x527400], 0xf
mov dword [0x5273fc], 0
mov byte [0x5273ec], 0
call fcn.00482e37
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x5273fc], 0
je 0x44b8c7
push 0xffffffffffffffff
push 0
push 0x5273ec
mov ecx, esi
call fcn.00402c40
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.004868c0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesEyooClientSVC
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44b9d6
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x11c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x118]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x44b952
mov eax, edi
jmp 0x44b9d6
lea eax, [ebp - 0x114]
push 0x5c
push eax
call fcn.00485b2f
add esp, 8
test eax, eax
je 0x44b96a
mov byte [eax], 0
cmp byte [ebp - 0x114], 0x22
jne 0x44b993
lea eax, [ebp - 0x113]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b980
sub eax, edx
push eax
lea ecx, [ebp - 0x113]
push ecx
jmp 0x44b9b1
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44b9a0
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call fcn.00402a50
cmp dword [esi + 0x10], 0
jne 0x44b9c5
mov eax, 3
jmp 0x44b9d6
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x5273ec
call fcn.00402c40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret