joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100587e0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne 0x10058895
cmp dword [esi + 4], 0xffffffff
jne 0x10058895
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10058810
sub eax, edx
mov cl, byte [eax + esi + 0x13f]
cmp cl, 0x5c
je 0x1005883a
cmp cl, 0x2f
je 0x1005883a
mov byte [eax + esi + 0x140], 0x2f
mov byte [eax + esi + 0x141], 0
cmp ebp, 1
jne 0x1005885a
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1005885a
mov eax, 0x2000000
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
push ebx
call fcn.10057710
add esp, 0x10
test eax, eax
jne 0x1005887b
mov eax, dword [esp + 0x10]
pop edi
pop ebp
ret 8
call fcn.10057c20
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 8
pop edi
mov eax, 0x1000000
pop ebp
ret 8

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x218]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x220]
cmp ebp, ebx
je 0x10058f10
push 0x104
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.10129e6f
lea eax, [esp + 0x11c]
add esp, 0xc
lea edx, [eax + 1]
jmp 0x10058ed0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10058ed0
sub eax, edx
je 0x10058eee
lea ecx, [esp + eax + 0x10f]
mov al, byte [ecx]
cmp al, 0x2f
je 0x10058eec
cmp al, 0x5c
jne 0x10058eee
mov byte [ecx], bl
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10058f10
push ebx
lea edx, [esp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
cmp al, bl
je 0x10058fd2
push esi
mov esi, edi
mov ecx, edi
nop
cmp al, 0x2f
je 0x10058f28
cmp al, 0x5c
jne 0x10058f2a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
cmp al, bl
jne 0x10058f20
cmp esi, edi
je 0x10058f5f
sub esi, edi
push esi
lea eax, [esp + 0x118]
push edi
push eax
call fcn.10130710
lea ecx, [esp + 0x120]
push ecx
push ebp
mov byte [esp + esi + 0x128], bl
call fcn.10058e80
add esp, 0x14
mov byte [esp + 0x10], bl
pop esi
cmp ebp, ebx
je 0x10058f7b
push 0x104
lea edx, [esp + 0x10]
push ebp
push edx
call fcn.10129e6f
add esp, 0xc
lea eax, [esp + 0xc]
mov byte [esp + 0x10f], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10058f90
sub eax, edx
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x10]
push edi
push edx
call fcn.10129e6f
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x113], bl
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10058fd2
push ebx
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.10127db1
add esp, 0x20c
ret
Function at 0x10059a70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x41c], eax
mov eax, dword [esp + 0x424]
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, ecx
mov dword [esp + 0xc], 0
mov ebp, eax
test eax, eax
je 0x10059ab6
push eax
lea eax, [esp + 0x224]
push eax
call edi
lea ebp, [esp + 0x220]
push str.Random...
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x18], 0x208
call edi
push ebx
lea eax, [esp + 0x14]
lea edi, [esp + 0x1c]
mov ecx, ebp
mov edx, reloc.WS2_32.dll_bind
call fcn.10059d80
cmp al, 1
jne 0x10059af9
mov edx, edi
push esi
push edx
call fcn.10135887
add esp, 8
test eax, eax
jne 0x10059af9
push eax
jmp 0x10059bcc
test esi, esi
je 0x10059b2e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push str.REG_SZ
push 0
push ebp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10059b35
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x10059bd4
cmp byte [esi], 0x25
mov edi, 1
jne 0x10059b51
lea edx, [esi + 1]
push 0x25
push edx
call fcn.10128490
add esp, 8
test eax, eax
jne 0x10059b6e
cmp byte [esi], 0x22
jne 0x10059b73
cmp byte [esi + 1], 0x25
jne 0x10059b73
lea eax, [esi + 2]
push 0x25
push eax
call fcn.10128490
add esp, 8
test eax, eax
je 0x10059b73
mov edi, 2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10059b78
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
push esi
push edi
xor edi, edi
push edi
push ebx
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp esi, edi
je 0x10059bbc
cmp eax, edi
je 0x10059bb1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x10059bd4
cmp eax, edi
je 0x10059bcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10127db1
add esp, 0x420
ret 4
Function at 0x10059bf0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
cmp dword [0x101a42d8], 0xffffffff
push edi
mov edi, ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
jne 0x10059c2d
push 0x101a42d8
push str.RegDebug
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.WS2_32.dll_bind
call fcn.10059e30
test al, al
jne 0x10059c2d
mov dword [0x101a42d8], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
push ecx
push esi
mov ecx, ebx
mov edx, edi
mov dword [esp + 0x18], eax
call fcn.10059e30
cmp al, 1
jne 0x10059c7d
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0xc]
jne 0x10059c7d
cmp dword [0x101a42d8], ebp
je 0x10059d6f
push str._REGDEBUG__Same_Value...
push ebp
call fcn.1006ed90
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov al, 1
pop ebp
add esp, 0x10
ret
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push 0x20006
push ebp
push str.REG_DWORD
push ebp
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebp
je 0x10059cc8
cmp dword [0x101a42d8], ebp
je 0x10059cb9
push edi
push str._REGDEBUG__Error_in_RegCreateKeyExx._LastErr:_u
push ebp
call fcn.1006ed90
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop ebp
add esp, 0x10
ret
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov eax, dword [esp + 8]
cmp edi, ebp
je 0x10059d07
cmp eax, ebp
je 0x10059cf7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebp
cmp dword [0x101a42d8], ebp
je 0x10059cb9
push edi
push str._REGDEBUG__Error_in_RegSetValueEx._LastErr:_u
jmp 0x10059cb0
cmp eax, ebp
je 0x10059d16
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], ebp
cmp dword [0x101a42d8], ebp
je 0x10059d6f
cmp ebx, ebp
je 0x10059d57
cmp esi, ebp
je 0x10059d4a
mov ecx, dword [esp + 0xc]
push ecx
push esi
push ebx
push str._REGDEBUG__Success_in_writing_to__s__s____d
push ebp
call fcn.1006ed90
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov al, 1
pop ebp
add esp, 0x10
ret
mov edx, dword [esp + 0xc]
push edx
push ebx
push str._REGDEBUG__Success_in_writing_to__s_NULL____d
jmp 0x10059d66
cmp esi, ebp
je 0x10059d6f
mov eax, dword [esp + 0xc]
push eax
push esi
push str._REGDEBUG__Success_in_writing_to_NULL__s____d
push ebp
call fcn.1006ed90
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov al, 1
pop ebp
add esp, 0x10
ret
Function at 0x10059d80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, eax
mov dword [esp + 4], 0
test esi, esi
je 0x10059d9e
cmp dword [esi], 0
jbe 0x10059d9e
test edi, edi
je 0x10059d9e
mov byte [edi], 0
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10059dc3
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
test esi, esi
je 0x10059e09
test eax, eax
je 0x10059df9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
add esp, 8
ret 4
test eax, eax
je 0x10059e1c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
pop esi
add esp, 8
ret 4

Function at 0x10059e30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10059e66
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
add esp, 0xc
ret 8
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
test esi, esi
je 0x10059eb5
test eax, eax
je 0x10059ea5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
add esp, 0xc
ret 8
test eax, eax
je 0x10059ec8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
pop esi
add esp, 0xc
ret 8

Function at 0x10059ee0
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 2
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10059f0a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop ecx
ret 4
mov eax, dword [esp + 8]
mov ecx, dword [esp]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 4]
test esi, esi
je 0x10059f45
test eax, eax
je 0x10059f37
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop esi
pop ecx
ret 4
test eax, eax
je 0x10059f58
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x10059f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
test eax, eax
je 0x10059f9f
mov dword [eax], 0
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareMicroWorldeScan_for_WindowsMwMonitor
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10059fcd
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
push eax
call edi
test eax, eax
jne 0x1005a075
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005a075
add eax, 0x40
push eax
call fcn.1006a7b0
mov ecx, dword [esp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x1005a020
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea edx, [esp + 0x10]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
push ecx
call edi
test eax, eax
je 0x1005a052
push esi
call fcn.10128243
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1005a061
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x1005a380
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x108]
sub esp, 0x108
push 0xfffffffffffffffe
push 0x10181578
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x10189710]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x11c], bl
push 0x103
push ebx
lea eax, [ebp - 0x11b]
push eax
call fcn.1012e060
mov byte [ebp], bl
push 0x103
push ebx
lea ecx, [ebp + 1]
push ecx
call fcn.1012e060
add esp, 0x18
cmp edi, ebx
je 0x1005a533
cmp byte [edi], bl
je 0x1005a533
push 0x5c
push edi
call fcn.10128490
add esp, 8
test eax, eax
jne 0x1005a50b
call fcn.1006b040
test eax, eax
je 0x1005a491
lea esi, [ebp - 0x11c]
call fcn.100796a0
cmp byte [ebp - 0x11c], bl
je 0x1005a491
mov ecx, esi
lea edx, [ebp]
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x1005a440
lea ecx, [ebp]
call fcn.10065200
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005a456
sub eax, edx
lea edi, [ebp]
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1005a463
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005a53c
push 0x104
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [ebp - 0x11c], bl
je 0x1005a50b
lea ecx, [ebp - 0x11c]
lea edx, [ebp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x1005a4b4
lea ecx, [ebp]
call fcn.10065200
mov eax, edi
mov edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1005a4d0
sub eax, edx
lea edi, [ebp]
dec edi
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1005a4e0
mov ecx, eax
mov esi, edx
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]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005a53c
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005a53c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.10127db1
add ebp, 0x108
mov esp, ebp
pop ebp
ret
Function at 0x1005a710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x320
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x31c], eax
mov eax, dword [0x101c7c74]
push edi
test eax, eax
ja 0x1005a886
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.1012e060
add esp, 0xc
push 0x103
lea ecx, [esp + 0x219]
push 0
push ecx
mov byte [esp + 0x220], 0
call fcn.1012e060
add esp, 0xc
push 0x103
lea edx, [esp + 0x111]
push 0
push edx
mov byte [esp + 0x118], 0
call fcn.1012e060
add esp, 0xc
push 0x104
lea eax, [esp + 8]
push eax
push 0x1014d5e3
mov edx, str.Version
mov ecx, str.eScan
call fcn.1005ffb0
add esp, 0xc
cmp byte [esp + 4], 0
je 0x1005a7d9
lea ecx, [esp + 4]
push 0x2e
push ecx
call fcn.10128490
add esp, 8
test eax, eax
je 0x1005a7c7
mov byte [eax], 0
lea edx, [esp + 4]
push edx
call fcn.10128238
add esp, 4
mov dword [0x101c7c74], eax
cmp dword [0x101c7c74], 0
jne 0x1005a881
lea edi, [esp + 0x214]
call fcn.1005d0a0
cmp eax, 1
jne 0x1005a881
mov eax, edi
push eax
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10c]
call fcn.10065200
push str.verinfo.ini
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10c]
push eax
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0x1014d5e3
push str.Version
push 0x10156244
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 4], 0
je 0x1005a881
lea edx, [esp + 4]
push 0x2e
push edx
call fcn.10128490
add esp, 8
test eax, eax
je 0x1005a86f
mov byte [eax], 0
lea eax, [esp + 4]
push eax
call fcn.10128238
add esp, 4
mov dword [0x101c7c74], eax
mov eax, dword [0x101c7c74]
mov ecx, dword [esp + 0x320]
pop edi
xor ecx, esp
call fcn.10127db1
add esp, 0x320
ret
Function at 0x1005ad10
Capabilities:
Delete file
Set file attributes

Disassembly:
push edi
mov edi, eax
test edi, edi
je 0x1005adf6
cmp byte [edi], 0
je 0x1005adf6
inc eax
cmp byte [eax], 0
jne 0x1005ad24
sub eax, edi
push ebx
push esi
cmp eax, 0x104
jbe 0x1005ad52
mov eax, edi
inc eax
cmp byte [eax], 0
jne 0x1005ad37
sub eax, edi
lea esi, [eax + eax + 0x20]
push esi
call fcn.1006a7b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1005ad83
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x1005ad7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1005ad7d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call ebx
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop edi
ret
cmp byte [edi], 0x5c
jne 0x1005ada9
cmp byte [edi + 1], 0x5c
jne 0x1005ada9
shr esi, 1
lea eax, [edi + 2]
dec esi
cmp byte [eax], 0x3f
jne 0x1005ada1
push edi
push 0x1015874c
jmp 0x1005adb2
push eax
push 0x10169298
jmp 0x1005adb2
push edi
shr esi, 1
push str.__S
dec esi
push esi
push ebx
call fcn.1012bab8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x10
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x1005ade7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1005ade7
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call edi
mov esi, eax
push ebx
call fcn.10128243
add esp, 4
mov eax, esi
pop esi
pop ebx
pop edi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
ret
Function at 0x1005c230
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push str.EnableDHCP
mov ecx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov edx, reloc.WS2_32.dll_bind
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.10059e30
test al, al
je 0x1005c296
cmp dword [esp + 0xc], ebx
je 0x1005c296
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
push 9
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1005c3a1
push 0x207
lea edx, [esp + 0x2d]
push ebx
push edx
call fcn.1012e060
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor edi, edi
mov byte [esp + 0x48], bl
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1005c3a1
mov edi, edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 9
push ebx
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x1005c36e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x10]
push edx
push ebx
push ebx
push str.EnableDHCP
push eax
mov dword [esp + 0x3c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xc], ebx
jne 0x1005c3a1
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
inc edi
push edi
push edx
mov byte [esp + 0x48], bl
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1005c310
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1005c3b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret
Function at 0x1005ead0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x52c
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x524], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x115]
push ebx
push eax
mov byte [esp + 0x11c], bl
call fcn.1012e060
add esp, 0xc
cmp esi, ebx
je 0x1005eb0b
mov byte [esi], bl
push 0x104
lea ecx, [esp + 0x114]
push ecx
push 0x1014d5e3
mov edx, str.IsCloud
mov ecx, str.eScan
call fcn.1005ffb0
add esp, 0xc
cmp byte [esp + 0x110], 0x31
jne 0x1005eca6
push 0x103
lea edx, [esp + 0xd]
push ebx
push edx
mov byte [esp + 0x14], bl
call fcn.1012e060
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push eax
push 0x1014d5e3
mov edx, str.CloudHost
mov ecx, str.eScan
call fcn.1005ffb0
add esp, 0xc
cmp byte [esp + 8], bl
je 0x1005eca6
lea ecx, [esp + 8]
push 0x2c
push ecx
call fcn.10128490
add esp, 8
test eax, eax
jne 0x1005eca6
lea edx, [esp + 8]
push ebx
push edx
call fcn.10069e60
add esp, 8
test eax, eax
jne 0x1005eca6
cmp byte [0x101c81c0], bl
jne 0x1005ec09
push 0x103
lea eax, [esp + 0x21d]
push ebx
push eax
mov byte [esp + 0x224], bl
call fcn.1012e060
add esp, 0xc
lea edi, [esp + 0x218]
call fcn.1005d0a0
test eax, eax
je 0x1005ec09
mov ecx, edi
push ecx
push 0x101c81c0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x101c81c0
call fcn.10065200
push str.eupdate.ini
push 0x101c81c0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x207
lea edx, [esp + 0x325]
push ebx
push edx
mov byte [esp + 0x32c], bl
call fcn.1012e060
add esp, 0xc
push 0x101c81c0
push 0x208
lea eax, [esp + 0x328]
push eax
push 0x1014d5e3
push str.httphost
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x320], bl
je 0x1005eca6
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x328]
push edx
call fcn.10063340
add esp, 0xc
cmp eax, 0xffffffff
je 0x1005eca6
cmp esi, ebx
je 0x1005ec8a
lea eax, [esp + 8]
mov edx, esi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1005ec80
mov eax, 1
pop edi
pop ebx
mov ecx, dword [esp + 0x524]
xor ecx, esp
call fcn.10127db1
add esp, 0x52c
ret
mov ecx, dword [esp + 0x52c]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10127db1
add esp, 0x52c
ret